관리자: 리디자인 14, cbox 적용 중
This commit is contained in:
@ -94,22 +94,20 @@ var list_delete_php = 'board_list_delete.php';
|
|||||||
</div>
|
</div>
|
||||||
<?}?>
|
<?}?>
|
||||||
|
|
||||||
<form id="fboardlist" name="fboardlist" method="post" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);">
|
<section class="cbox">
|
||||||
<input type="hidden" name="sst" value="<?=$sst?>">
|
<h2>생성된 게시판 목록</h2>
|
||||||
<input type="hidden" name="sod" value="<?=$sod?>">
|
<p>여러개의 게시판 설정을 한번에 바꾸실 때는 게시판 체크기능을 이용하세요.</p>
|
||||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
|
||||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
<form id="fboardlist" name="fboardlist" method="post" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);">
|
||||||
<input type="hidden" name="page" value="<?=$page?>">
|
<input type="hidden" name="sst" value="<?=$sst?>">
|
||||||
<input type="hidden" name="token" value="<?=$token?>">
|
<input type="hidden" name="sod" value="<?=$sod?>">
|
||||||
<table class="tbl_bo_list">
|
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||||
<caption>
|
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||||
생성된 게시판 목록
|
<input type="hidden" name="page" value="<?=$page?>">
|
||||||
<p>
|
<input type="hidden" name="token" value="<?=$token?>">
|
||||||
여러개의 게시판 설정을 한번에 바꾸실 때는 게시판 체크기능을 이용하세요.
|
<table class="tbl_bo_list">
|
||||||
</p>
|
<thead>
|
||||||
</caption>
|
<tr>
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 게시판 전체선택" onclick="check_all(this.form)"></th>
|
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 게시판 전체선택" onclick="check_all(this.form)"></th>
|
||||||
<th scope="col"><?=subject_sort_link('a.gr_id')?>그룹</a></th>
|
<th scope="col"><?=subject_sort_link('a.gr_id')?>그룹</a></th>
|
||||||
<th scope="col"><?=subject_sort_link('bo_table')?>TABLE</a></th>
|
<th scope="col"><?=subject_sort_link('bo_table')?>TABLE</a></th>
|
||||||
@ -121,17 +119,18 @@ var list_delete_php = 'board_list_delete.php';
|
|||||||
<th scope="col">다운P<span class="sound_only">포인트</span></th>
|
<th scope="col">다운P<span class="sound_only">포인트</span></th>
|
||||||
<th scope="col">검색<br>사용</th>
|
<th scope="col">검색<br>사용</th>
|
||||||
<th scope="col">검색<br>순서</th>
|
<th scope="col">검색<br>순서</th>
|
||||||
|
<th scope="col">선택</th>
|
||||||
<th scope="col">관리</th>
|
<th scope="col">관리</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
$one_update = '<a href="./board_form.php?w=u&bo_table='.$row['bo_table'].'&'.$qstr.'">수정</a>';
|
$one_update = '<a href="./board_form.php?w=u&bo_table='.$row['bo_table'].'&'.$qstr.'">수정</a>';
|
||||||
$one_copy = '<a href="./board_copy.php?bo_table='.$row['bo_table'].'" class="board_copy" target="win_board_copy">복사</a>';
|
$one_copy = '<a href="./board_copy.php?bo_table='.$row['bo_table'].'" class="board_copy" target="win_board_copy">복사</a>';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=get_text($row['bo_subject'])?> 게시판선택">
|
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=get_text($row['bo_subject'])?> 게시판선택">
|
||||||
</td>
|
</td>
|
||||||
@ -166,29 +165,27 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td><?=$one_update?> <?=$one_copy?></td>
|
<td><?=$one_update?> <?=$one_copy?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="btn_list">
|
<div class="btn_list">
|
||||||
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택수정">
|
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택수정">
|
||||||
<?if ($is_admin == 'super') {?>
|
<?if ($is_admin == 'super') {?>
|
||||||
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택삭제">
|
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택삭제">
|
||||||
<a href="./board_form.php">게시판추가</a>
|
<a href="./board_form.php">게시판추가</a>
|
||||||
<?}?>
|
<?}?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?
|
</form>
|
||||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');
|
</section>
|
||||||
echo $pagelist;
|
|
||||||
?>
|
|
||||||
|
|
||||||
</form>
|
<?=get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');?>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fboardlist_submit(f)
|
function fboardlist_submit(f)
|
||||||
|
|||||||
@ -88,22 +88,22 @@ var list_update_php = "./boardgroup_list_update.php";
|
|||||||
</div>
|
</div>
|
||||||
<?}?>
|
<?}?>
|
||||||
|
|
||||||
<form id="fboardgrouplist" name="fboardgrouplist" method="post">
|
<section class="cbox">
|
||||||
<input type="hidden" name="sst" value="<?=$sst?>">
|
<h2>게시판그룹 목록</h2>
|
||||||
<input type="hidden" name="sod" value="<?=$sod?>">
|
<p>
|
||||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
|
||||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
|
||||||
<input type="hidden" name="page" value="<?=$page?>">
|
|
||||||
<table class="tbl_gr_list">
|
|
||||||
<caption>
|
|
||||||
게시판그룹 목록
|
|
||||||
<p>
|
|
||||||
접근사용 옵션을 설정하시면 관리자가 지정한 회원만 해당 그룹에 접근할 수 있습니다.<br>
|
접근사용 옵션을 설정하시면 관리자가 지정한 회원만 해당 그룹에 접근할 수 있습니다.<br>
|
||||||
접근사용 옵션은 해당 그룹에 속한 모든 게시판에 적용됩니다.
|
접근사용 옵션은 해당 그룹에 속한 모든 게시판에 적용됩니다.
|
||||||
</p>
|
</p>
|
||||||
</caption>
|
|
||||||
<thead>
|
<form id="fboardgrouplist" name="fboardgrouplist" method="post">
|
||||||
<tr>
|
<input type="hidden" name="sst" value="<?=$sst?>">
|
||||||
|
<input type="hidden" name="sod" value="<?=$sod?>">
|
||||||
|
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||||
|
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||||
|
<input type="hidden" name="page" value="<?=$page?>">
|
||||||
|
<table class="tbl_gr_list">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 그룹 전체선택" onclick="check_all(this.form)"></th>
|
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 그룹 전체선택" onclick="check_all(this.form)"></th>
|
||||||
<th scope="col"><?=subject_sort_link('gr_id')?>그룹아이디</a></th>
|
<th scope="col"><?=subject_sort_link('gr_id')?>그룹아이디</a></th>
|
||||||
<th scope="col"><?=subject_sort_link('gr_subject')?>제목</a></th>
|
<th scope="col"><?=subject_sort_link('gr_subject')?>제목</a></th>
|
||||||
@ -113,12 +113,12 @@ var list_update_php = "./boardgroup_list_update.php";
|
|||||||
<th scope="col">접근회원수</th>
|
<th scope="col">접근회원수</th>
|
||||||
<th scope="col"><?=subject_sort_link('gr_use')?>사용여부</a></th>
|
<th scope="col"><?=subject_sort_link('gr_use')?>사용여부</a></th>
|
||||||
<th scope="col">관리</th>
|
<th scope="col">관리</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||||
{
|
{
|
||||||
// 접근회원수
|
// 접근회원수
|
||||||
$sql1 = " select count(*) as cnt from {$g4['group_member_table']} where gr_id = '{$row['gr_id']}' ";
|
$sql1 = " select count(*) as cnt from {$g4['group_member_table']} where gr_id = '{$row['gr_id']}' ";
|
||||||
$row1 = sql_fetch($sql1);
|
$row1 = sql_fetch($sql1);
|
||||||
@ -132,9 +132,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
if ($is_admin == 'super') {
|
if ($is_admin == 'super') {
|
||||||
$s_del = '<a href="javascript:post_delete(\'boardgroup_delete.php\', \''.$row['gr_id'].'\');">삭제</a>';
|
$s_del = '<a href="javascript:post_delete(\'boardgroup_delete.php\', \''.$row['gr_id'].'\');">삭제</a>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_chk">
|
<td class="td_chk">
|
||||||
<input type="hidden" id="gr_id" name="gr_id[<?=$i?>]" value="<?=$row['gr_id']?>">
|
<input type="hidden" id="gr_id" name="gr_id[<?=$i?>]" value="<?=$row['gr_id']?>">
|
||||||
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=$row['gr_subject']?> 그룹선택">
|
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=$row['gr_subject']?> 그룹선택">
|
||||||
@ -162,20 +162,22 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
|||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td class="td_mng"><?=$s_upd?> <?=$s_del?></td>
|
<td class="td_mng"><?=$s_upd?> <?=$s_del?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="btn_list">
|
<div class="btn_list">
|
||||||
<button onclick="btn_check(this.form, 'update')">선택수정</button>
|
<button onclick="btn_check(this.form, 'update')">선택수정</button>
|
||||||
<!-- <button onclick="btn_check(this.form, 'delete')">선택삭제</button> -->
|
<!-- <button onclick="btn_check(this.form, 'delete')">선택삭제</button> -->
|
||||||
<a href="./boardgroup_form.php">게시판그룹 추가</a>
|
<a href="./boardgroup_form.php">게시판그룹 추가</a>
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');
|
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');
|
||||||
@ -186,7 +188,6 @@ echo $pagelist;
|
|||||||
if (isset($stx))
|
if (isset($stx))
|
||||||
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>';
|
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>';
|
||||||
?>
|
?>
|
||||||
</form>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// POST 방식으로 삭제
|
// POST 방식으로 삭제
|
||||||
|
|||||||
@ -26,49 +26,51 @@ $colspan = 6;
|
|||||||
<a href="./mail_form.php" id="mail_add">메일내용추가</a>
|
<a href="./mail_form.php" id="mail_add">메일내용추가</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table>
|
<section class="cbox">
|
||||||
<caption>
|
<h2>등록된 메일내용 목록</h2>
|
||||||
등록된 메일내용 목록 (전체 <?=$total_count ?>건)
|
|
||||||
<p>
|
<p>
|
||||||
<strong>테스트</strong>는 등록된 최고관리자의 이메일로 테스트 메일을 발송
|
<strong>테스트</strong>는 등록된 최고관리자의 이메일로 테스트 메일을 발송합니다.<br>
|
||||||
|
현재 등록된 메일은 총 <?=$total_count ?>건입니다.
|
||||||
</p>
|
</p>
|
||||||
</caption>
|
|
||||||
<thead>
|
<table>
|
||||||
<tr>
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">번호</th>
|
<th scope="col">번호</th>
|
||||||
<th scope="col">제목</th>
|
<th scope="col">제목</th>
|
||||||
<th scope="col">작성일시</th>
|
<th scope="col">작성일시</th>
|
||||||
<th scope="col">테스트</th>
|
<th scope="col">테스트</th>
|
||||||
<th scope="col">보내기</th>
|
<th scope="col">보내기</th>
|
||||||
<th scope="col">관리</th>
|
<th scope="col">관리</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||||
$s_mod = '<a href="./mail_form.php?w=u&ma_id='.$row['ma_id'].'">수정</a>';
|
$s_mod = '<a href="./mail_form.php?w=u&ma_id='.$row['ma_id'].'">수정</a>';
|
||||||
$s_del = '<a href="javascript:post_delete(\'mail_update.php\', '.$row['ma_id'].');">삭제</a>';
|
$s_del = '<a href="javascript:post_delete(\'mail_update.php\', '.$row['ma_id'].');">삭제</a>';
|
||||||
$s_vie = '<a href="./mail_preview.php?ma_id='.$row['ma_id'].'" target="_blank">미리보기</a>';
|
$s_vie = '<a href="./mail_preview.php?ma_id='.$row['ma_id'].'" target="_blank">미리보기</a>';
|
||||||
|
|
||||||
$num = number_format($total_count - ($page - 1) * $config['cf_page_rows'] - $i);
|
$num = number_format($total_count - ($page - 1) * $config['cf_page_rows'] - $i);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_num"><?=$num?></td>
|
<td class="td_num"><?=$num?></td>
|
||||||
<td><?=$row['ma_subject']?></td>
|
<td><?=$row['ma_subject']?></td>
|
||||||
<td class="td_time"><?=$row['ma_time']?></td>
|
<td class="td_time"><?=$row['ma_time']?></td>
|
||||||
<td class="td_test"><a href="./mail_test.php?ma_id=<?=$row['ma_id']?>">테스트</a></td>
|
<td class="td_test"><a href="./mail_test.php?ma_id=<?=$row['ma_id']?>">테스트</a></td>
|
||||||
<td class="td_send"><a href="./mail_select_form.php?ma_id=<?=$row['ma_id']?>">보내기</a></td>
|
<td class="td_send"><a href="./mail_select_form.php?ma_id=<?=$row['ma_id']?>">보내기</a></td>
|
||||||
<td class="td_mng"><?=$s_mod?> <?=$s_del?> <?=$s_vie?></td>
|
<td class="td_mng"><?=$s_mod?> <?=$s_del?> <?=$s_vie?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
if (!$i)
|
if (!$i)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// POST 방식으로 삭제
|
// POST 방식으로 삭제
|
||||||
|
|||||||
@ -102,20 +102,20 @@ function point_clear()
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form id="fpointlist" name="fpointlist" method="post">
|
<section class="cbox">
|
||||||
<input type="hidden" name="sst" value="<?=$sst?>">
|
<h2>포인트 내역</h2>
|
||||||
<input type="hidden" name="sod" value="<?=$sod?>">
|
|
||||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
|
||||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
|
||||||
<input type="hidden" name="page" value="<?=$page?>">
|
|
||||||
<input type="hidden" name="token" value="<?=$token?>">
|
|
||||||
|
|
||||||
<table class="tbl_pt_list">
|
<form id="fpointlist" name="fpointlist" method="post">
|
||||||
<caption>
|
<input type="hidden" name="sst" value="<?=$sst?>">
|
||||||
포인트 내역
|
<input type="hidden" name="sod" value="<?=$sod?>">
|
||||||
</caption>
|
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||||
<thead>
|
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||||
<tr>
|
<input type="hidden" name="page" value="<?=$page?>">
|
||||||
|
<input type="hidden" name="token" value="<?=$token?>">
|
||||||
|
|
||||||
|
<table class="tbl_pt_list">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 포인트 내역 전체선택" onclick="check_all(this.form)"></th>
|
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" title="현재 페이지 포인트 내역 전체선택" onclick="check_all(this.form)"></th>
|
||||||
<th scope="col"><?=subject_sort_link('mb_id')?>회원아이디</a></th>
|
<th scope="col"><?=subject_sort_link('mb_id')?>회원아이디</a></th>
|
||||||
<th scope="col">이름</th>
|
<th scope="col">이름</th>
|
||||||
@ -124,11 +124,11 @@ function point_clear()
|
|||||||
<th scope="col"><?=subject_sort_link('po_content')?>포인트 내용</a></th>
|
<th scope="col"><?=subject_sort_link('po_content')?>포인트 내용</a></th>
|
||||||
<th scope="col"><?=subject_sort_link('po_point')?>포인트</a></th>
|
<th scope="col"><?=subject_sort_link('po_point')?>포인트</a></th>
|
||||||
<th scope="col">포인트합</th>
|
<th scope="col">포인트합</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
if ($i==0 || ($row2['mb_id'] != $row['mb_id'])) {
|
if ($i==0 || ($row2['mb_id'] != $row['mb_id'])) {
|
||||||
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
|
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||||
$row2 = sql_fetch($sql2);
|
$row2 = sql_fetch($sql2);
|
||||||
@ -141,9 +141,9 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
$link1 = '<a href="'.$g4['bbs_path'].'/board.php?bo_table='.$row['po_rel_table'].'&wr_id='.$row['po_rel_id'].'" target="_blank">';
|
$link1 = '<a href="'.$g4['bbs_path'].'/board.php?bo_table='.$row['po_rel_table'].'&wr_id='.$row['po_rel_id'].'" target="_blank">';
|
||||||
$link2 = '</a>';
|
$link2 = '</a>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_chk">
|
<td class="td_chk">
|
||||||
<input type="hidden" id="mb_id_<?=$i?>" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
|
<input type="hidden" id="mb_id_<?=$i?>" name="mb_id[<?=$i?>]" value="<?=$row['mb_id']?>">
|
||||||
<input type="hidden" id="po_id_<?=$i?>" name="po_id[<?=$i?>]" value="<?=$row['po_id']?>">
|
<input type="hidden" id="po_id_<?=$i?>" name="po_id[<?=$i?>]" value="<?=$row['po_id']?>">
|
||||||
@ -154,40 +154,36 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
<td class="td_name"><div><?=$mb_nick?></div></td>
|
<td class="td_name"><div><?=$mb_nick?></div></td>
|
||||||
<td><?=$row['po_datetime']?></td>
|
<td><?=$row['po_datetime']?></td>
|
||||||
<td class="td_pt_log"><?=$link1?><?=$row['po_content']?><?=$link2?></td>
|
<td class="td_pt_log"><?=$link1?><?=$row['po_content']?><?=$link2?></td>
|
||||||
<td class="td_bignum"><?=number_format($row['po_point'])?></td>
|
<td class="td_num"><?=number_format($row['po_point'])?></td>
|
||||||
<td class="td_bignum"><?=number_format($row2['mb_point'])?></td>
|
<td class="td_bignum"><?=number_format($row2['mb_point'])?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="btn_list">
|
<div class="btn_list">
|
||||||
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
if (isset($stx))
|
||||||
echo $pagelist;
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?
|
|
||||||
if (isset($stx))
|
|
||||||
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>'.PHP_EOL;
|
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>'.PHP_EOL;
|
||||||
|
|
||||||
if (strstr($sfl, 'mb_id'))
|
if (strstr($sfl, 'mb_id'))
|
||||||
$mb_id = $stx;
|
$mb_id = $stx;
|
||||||
else
|
else
|
||||||
$mb_id = '';
|
$mb_id = '';
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?$colspan=5?>
|
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
||||||
|
|
||||||
<form id="fpointlist2" name="fpointlist2" method="post" onsubmit="return fpointlist2_submit(this);" autocomplete="off">
|
<form id="fpointlist2" name="fpointlist2" method="post" onsubmit="return fpointlist2_submit(this);" autocomplete="off">
|
||||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||||
@ -211,7 +207,6 @@ else
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function fpointlist2_submit(f)
|
function fpointlist2_submit(f)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -89,30 +89,34 @@ var list_delete_php = 'popular_list.php';
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form id="fpopularlist" name="fpopularlist" method="post">
|
<section class="cbox">
|
||||||
<input type="hidden" name="sst" value="<?=$sst?>">
|
<h2>인기검색어 목록</h2>
|
||||||
<input type="hidden" name="sod" value="<?=$sod?>">
|
|
||||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
<form id="fpopularlist" name="fpopularlist" method="post">
|
||||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
<input type="hidden" name="sst" value="<?=$sst?>">
|
||||||
<input type="hidden" name="page" value="<?=$page?>">
|
<input type="hidden" name="sod" value="<?=$sod?>">
|
||||||
<input type="hidden" name="token" value="<?=$token?>">
|
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||||
<table class="tbl_pop_list">
|
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||||
<thead>
|
<input type="hidden" name="page" value="<?=$page?>">
|
||||||
<tr>
|
<input type="hidden" name="token" value="<?=$token?>">
|
||||||
|
|
||||||
|
<table class="tbl_pop_list">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)" title="현재 페이지 인기검색어 전체선택"></th>
|
<th scope="col"><input type="checkbox" id="chkall" name="chkall" value="1" onclick="check_all(this.form)" title="현재 페이지 인기검색어 전체선택"></th>
|
||||||
<th scope="col"><?=subject_sort_link('pp_word')?>검색어</a></th>
|
<th scope="col"><?=subject_sort_link('pp_word')?>검색어</a></th>
|
||||||
<th scope="col">등록일</th>
|
<th scope="col">등록일</th>
|
||||||
<th scope="col">등록IP</th>
|
<th scope="col">등록IP</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
|
|
||||||
$word = get_text($row['pp_word']);
|
$word = get_text($row['pp_word']);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_chk">
|
<td class="td_chk">
|
||||||
<input type="hidden" name="pp_id[<?=$i?>]" value="<?=$row['pp_id']?>">
|
<input type="hidden" name="pp_id[<?=$i?>]" value="<?=$row['pp_id']?>">
|
||||||
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=$word?> 선택">
|
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=$word?> 선택">
|
||||||
@ -120,29 +124,27 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
<td> <a href="<?=$_SERVER['PHP_SELF']?>?sfl=pp_word&stx=<?=$word?>"><?=$word?></a></td>
|
<td> <a href="<?=$_SERVER['PHP_SELF']?>?sfl=pp_word&stx=<?=$word?>"><?=$word?></a></td>
|
||||||
<td><?=$row['pp_date']?></td>
|
<td><?=$row['pp_date']?></td>
|
||||||
<td><?=$row['pp_ip']?></td>
|
<td><?=$row['pp_ip']?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<?if ($is_admin == 'super'){ ?>
|
<?if ($is_admin == 'super'){ ?>
|
||||||
<div class="btn_list">
|
<div class="btn_list">
|
||||||
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
||||||
</div>
|
</div>
|
||||||
<?}?>
|
<?}?>
|
||||||
|
|
||||||
<?
|
</form>
|
||||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
</section>
|
||||||
echo $pagelist;
|
|
||||||
?>
|
|
||||||
|
|
||||||
</form>
|
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
if (isset($stx))
|
if (isset($stx))
|
||||||
|
|||||||
@ -49,49 +49,53 @@ $colspan = 3;
|
|||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<form id="fpopularrank" name="fpopularrank" method="post">
|
<section class="cbox">
|
||||||
<input type="hidden" name="sst" value="<?=$sst?>">
|
<h2>인기검색어 순위 및 내역</h2>
|
||||||
<input type="hidden" name="sod" value="<?=$sod?>">
|
<form id="fpopularrank" name="fpopularrank" method="post">
|
||||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
<input type="hidden" name="sst" value="<?=$sst?>">
|
||||||
<input type="hidden" name="stx" value="<?=$stx?>">
|
<input type="hidden" name="sod" value="<?=$sod?>">
|
||||||
<input type="hidden" name="page" value="<?=$page?>">
|
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||||
<input type="hidden" name="token" value="<?=$token?>">
|
<input type="hidden" name="stx" value="<?=$stx?>">
|
||||||
<table class="tbl_pop_list">
|
<input type="hidden" name="page" value="<?=$page?>">
|
||||||
<thead>
|
<input type="hidden" name="token" value="<?=$token?>">
|
||||||
<tr>
|
<table class="tbl_pop_list">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">순위</th>
|
<th scope="col">순위</th>
|
||||||
<th scope="col">검색어</th>
|
<th scope="col">검색어</th>
|
||||||
<th scope="col">검색회수</th>
|
<th scope="col">검색회수</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
|
|
||||||
$word = get_text($row['pp_word']);
|
$word = get_text($row['pp_word']);
|
||||||
$rank = ($i + 1 + ($rows * ($page - 1)));
|
$rank = ($i + 1 + ($rows * ($page - 1)));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_num"><?=$rank?></td>
|
<td class="td_num"><?=$rank?></td>
|
||||||
<td><?=$word?></td>
|
<td><?=$word?></td>
|
||||||
<td class="td_bignum"><?=$row['cnt']?></td>
|
<td class="td_bignum"><?=$row['cnt']?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||||
?>
|
?>
|
||||||
</form>
|
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
|
|||||||
@ -25,31 +25,34 @@ while ($row=sql_fetch_array($result)) {
|
|||||||
$sum_count++;
|
$sum_count++;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<table>
|
|
||||||
<caption>브라우저별 접속자 수</caption>
|
<section class="cbox">
|
||||||
<thead>
|
<h2>브라우저별 접속자 수</h2>
|
||||||
<tr>
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">순위</th>
|
<th scope="col">순위</th>
|
||||||
<th scope="col">브라우저</th>
|
<th scope="col">브라우저</th>
|
||||||
<th scope="col">그래프</th>
|
<th scope="col">그래프</th>
|
||||||
<th scope="col">접속자수</th>
|
<th scope="col">접속자수</th>
|
||||||
<th scope="col">비율(%)</th>
|
<th scope="col">비율(%)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">합계</td>
|
<td colspan="3">합계</td>
|
||||||
<td><strong><?=$sum_count?></strong></td>
|
<td><strong><?=$sum_count?></strong></td>
|
||||||
<td></td>
|
<td>100%</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$k = 0;
|
$k = 0;
|
||||||
$save_count = -1;
|
$save_count = -1;
|
||||||
$tot_count = 0;
|
$tot_count = 0;
|
||||||
if (count($arr)) {
|
if (count($arr)) {
|
||||||
arsort($arr);
|
arsort($arr);
|
||||||
foreach ($arr as $key=>$value) {
|
foreach ($arr as $key=>$value) {
|
||||||
$count = $arr[$key];
|
$count = $arr[$key];
|
||||||
@ -63,9 +66,9 @@ if (count($arr)) {
|
|||||||
|
|
||||||
$rate = ($count / $sum_count * 100);
|
$rate = ($count / $sum_count * 100);
|
||||||
$s_rate = number_format($rate, 1);
|
$s_rate = number_format($rate, 1);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_num"><?=$no?></td>
|
<td class="td_num"><?=$no?></td>
|
||||||
<td class="td_category"><?=$key?></td>
|
<td class="td_category"><?=$key?></td>
|
||||||
<td>
|
<td>
|
||||||
@ -75,16 +78,17 @@ if (count($arr)) {
|
|||||||
</td>
|
</td>
|
||||||
<td class="td_bignum"><?=$count?></td>
|
<td class="td_bignum"><?=$count?></td>
|
||||||
<td class="td_num"><?=$s_rate?></td>
|
<td class="td_num"><?=$s_rate?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
|
|||||||
@ -26,38 +26,40 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table>
|
<section class="cbox">
|
||||||
<caption>일별 접속자 수</caption>
|
<h2>일별 접속자 수</h2>
|
||||||
<thead>
|
|
||||||
<tr>
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">년-월-일</th>
|
<th scope="col">년-월-일</th>
|
||||||
<th scope="col">그래프</th>
|
<th scope="col">그래프</th>
|
||||||
<th scope="col">접속자수</th>
|
<th scope="col">접속자수</th>
|
||||||
<th scope="col">비율(%)</th>
|
<th scope="col">비율(%)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">합계</td>
|
<td colspan="2">합계</td>
|
||||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||||
<td></td>
|
<td>100%</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$k = 0;
|
$k = 0;
|
||||||
$save_count = -1;
|
$save_count = -1;
|
||||||
$tot_count = 0;
|
$tot_count = 0;
|
||||||
if (count($arr)) {
|
if (count($arr)) {
|
||||||
foreach ($arr as $key=>$value) {
|
foreach ($arr as $key=>$value) {
|
||||||
$count = $value;
|
$count = $value;
|
||||||
|
|
||||||
$rate = ($count / $sum_count * 100);
|
$rate = ($count / $sum_count * 100);
|
||||||
$s_rate = number_format($rate, 1);
|
$s_rate = number_format($rate, 1);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_category"><a href="./visit_list.php?fr_date=<?=$key?>&to_date=<?=$key?>"><?=$key?></a></td>
|
<td class="td_category"><a href="./visit_list.php?fr_date=<?=$key?>&to_date=<?=$key?>"><?=$key?></a></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="visit_bar">
|
<div class="visit_bar">
|
||||||
@ -66,16 +68,17 @@ if (count($arr)) {
|
|||||||
</td>
|
</td>
|
||||||
<td class="td_bignum"><?=number_format($value)?></td>
|
<td class="td_bignum"><?=number_format($value)?></td>
|
||||||
<td class="td_num"><?=$s_rate?></td>
|
<td class="td_num"><?=$s_rate?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
|
|||||||
@ -28,31 +28,33 @@ while ($row=sql_fetch_array($result)) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table>
|
<section class="cbox">
|
||||||
<caption>도메인별 접속자 수</caption>
|
<h2>도메인별 접속자 수</h2>
|
||||||
<thead>
|
|
||||||
<tr>
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">순위</th>
|
<th scope="col">순위</th>
|
||||||
<th scope="col">접속 도메인</th>
|
<th scope="col">접속 도메인</th>
|
||||||
<th scope="col">그래프</th>
|
<th scope="col">그래프</th>
|
||||||
<th scope="col">접속자수</th>
|
<th scope="col">접속자수</th>
|
||||||
<th scope="col">비율(%)</th>
|
<th scope="col">비율(%)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">합계</td>
|
<td colspan="3">합계</td>
|
||||||
<td><strong><?=$sum_count?></strong></td>
|
<td><strong><?=$sum_count?></strong></td>
|
||||||
<td></td>
|
<td>100%</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$k = 0;
|
$k = 0;
|
||||||
$save_count = -1;
|
$save_count = -1;
|
||||||
$tot_count = 0;
|
$tot_count = 0;
|
||||||
if (count($arr)) {
|
if (count($arr)) {
|
||||||
arsort($arr);
|
arsort($arr);
|
||||||
foreach ($arr as $key=>$value) {
|
foreach ($arr as $key=>$value) {
|
||||||
$count = $arr[$key];
|
$count = $arr[$key];
|
||||||
@ -75,8 +77,8 @@ if (count($arr)) {
|
|||||||
|
|
||||||
$rate = ($count / $sum_count * 100);
|
$rate = ($count / $sum_count * 100);
|
||||||
$s_rate = number_format($rate, 1);
|
$s_rate = number_format($rate, 1);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_num"><?=$no?></td>
|
<td class="td_num"><?=$no?></td>
|
||||||
<td class="td_category"><?=$link?><?=$key?><?=$link2?></td>
|
<td class="td_category"><?=$link?><?=$key?><?=$link2?></td>
|
||||||
<td>
|
<td>
|
||||||
@ -86,15 +88,16 @@ if (count($arr)) {
|
|||||||
</td>
|
</td>
|
||||||
<td class="td_bignum"><?=$count?></td>
|
<td class="td_bignum"><?=$count?></td>
|
||||||
<td class="td_num"><?=$s_rate?></td>
|
<td class="td_num"><?=$s_rate?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
|
|||||||
@ -27,35 +27,37 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table>
|
<section class="cbox">
|
||||||
<caption>시간대별 접속자 수</caption>
|
<h2>시간대별 접속자 수</h2>
|
||||||
<thead>
|
|
||||||
<tr>
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">시간</th>
|
<th scope="col">시간</th>
|
||||||
<th scope="col">그래프</th>
|
<th scope="col">그래프</th>
|
||||||
<th scope="col">접속자수</th>
|
<th scope="col">접속자수</th>
|
||||||
<th scope="col">비율(%)</th>
|
<th scope="col">비율(%)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">합계</td>
|
<td colspan="2">합계</td>
|
||||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||||
<td></td>
|
<td>100%</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
$k = 0;
|
$k = 0;
|
||||||
if ($i) {
|
if ($i) {
|
||||||
for ($i=0; $i<24; $i++) {
|
for ($i=0; $i<24; $i++) {
|
||||||
$hour = sprintf("%02d", $i);
|
$hour = sprintf("%02d", $i);
|
||||||
$count = (int)$arr[$hour];
|
$count = (int)$arr[$hour];
|
||||||
|
|
||||||
$rate = ($count / $sum_count * 100);
|
$rate = ($count / $sum_count * 100);
|
||||||
$s_rate = number_format($rate, 1);
|
$s_rate = number_format($rate, 1);
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_category"><?=$hour?></td>
|
<td class="td_category"><?=$hour?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="visit_bar">
|
<div class="visit_bar">
|
||||||
@ -64,15 +66,16 @@ if ($i) {
|
|||||||
</td>
|
</td>
|
||||||
<td class="td_bignum"><?=number_format($count)?></td>
|
<td class="td_bignum"><?=number_format($count)?></td>
|
||||||
<td class="td_num"><?=$s_rate?></td>
|
<td class="td_num"><?=$s_rate?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
|
|||||||
@ -34,20 +34,23 @@ $sql = " select *
|
|||||||
$result = sql_query($sql);
|
$result = sql_query($sql);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table>
|
<section class="cbox">
|
||||||
<caption>접속자 개요 (IP, 경로, 브라우저, 운영체제, 일시)</caption>
|
<h2>접속자 개요</h2>
|
||||||
<thead>
|
<p>IP, 경로, 브라우저, 운영체제, 일시</p>
|
||||||
<tr>
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">IP</th>
|
<th scope="col">IP</th>
|
||||||
<th scope="col">접속 경로</th>
|
<th scope="col">접속 경로</th>
|
||||||
<th scope="col">브라우저</th>
|
<th scope="col">브라우저</th>
|
||||||
<th scope="col">운영체제</th>
|
<th scope="col">운영체제</th>
|
||||||
<th scope="col">일시</th>
|
<th scope="col">일시</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||||
$brow = get_brow($row['vi_agent']);
|
$brow = get_brow($row['vi_agent']);
|
||||||
$os = get_os($row['vi_agent']);
|
$os = get_os($row['vi_agent']);
|
||||||
|
|
||||||
@ -85,22 +88,24 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
if ($brow == '기타') { $brow = '<span title="'.$row['vi_agent'].'">'.$brow.'</span>'; }
|
if ($brow == '기타') { $brow = '<span title="'.$row['vi_agent'].'">'.$brow.'</span>'; }
|
||||||
if ($os == '기타') { $os = '<span title="'.$row['vi_agent'].'">'.$os.'</span>'; }
|
if ($os == '기타') { $os = '<span title="'.$row['vi_agent'].'">'.$os.'</span>'; }
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_category"><?=$ip?></td>
|
<td class="td_category"><?=$ip?></td>
|
||||||
<td><?=$link?><?=$title?><?=$link2?></td>
|
<td><?=$link?><?=$title?><?=$link2?></td>
|
||||||
<td class="td_category"><?=$brow?></td>
|
<td class="td_category"><?=$brow?></td>
|
||||||
<td class="td_category"><?=$os?></td>
|
<td class="td_category"><?=$os?></td>
|
||||||
<td class="td_time"><?=$row['vi_date']?> <?=$row['vi_time']?></td>
|
<td class="td_time"><?=$row['vi_date']?> <?=$row['vi_time']?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
if ($i == 0)
|
if ($i == 0)
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
if (isset($domain))
|
if (isset($domain))
|
||||||
$qstr .= "&domain=$domain";
|
$qstr .= "&domain=$domain";
|
||||||
|
|||||||
@ -27,38 +27,40 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table>
|
<section class="cbox">
|
||||||
<caption>월별 접속자 수</caption>
|
<h2>월별 접속자 수</h2>
|
||||||
<thead>
|
|
||||||
<tr>
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">년-월</th>
|
<th scope="col">년-월</th>
|
||||||
<th scope="col">그래프</th>
|
<th scope="col">그래프</th>
|
||||||
<th scope="col">접속자수</th>
|
<th scope="col">접속자수</th>
|
||||||
<th scope="col">비율(%)</th>
|
<th scope="col">비율(%)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">합계</td>
|
<td colspan="2">합계</td>
|
||||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||||
<td></td>
|
<td>100%</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$k = 0;
|
$k = 0;
|
||||||
$save_count = -1;
|
$save_count = -1;
|
||||||
$tot_count = 0;
|
$tot_count = 0;
|
||||||
if (count($arr)) {
|
if (count($arr)) {
|
||||||
foreach ($arr as $key=>$value) {
|
foreach ($arr as $key=>$value) {
|
||||||
$count = $value;
|
$count = $value;
|
||||||
|
|
||||||
$rate = ($count / $sum_count * 100);
|
$rate = ($count / $sum_count * 100);
|
||||||
$s_rate = number_format($rate, 1);
|
$s_rate = number_format($rate, 1);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_category"><a href="./visit_date.php?fr_date=<?=$key?>-01&to_date=<?=$key?>-31"><?=$key?></a></td>
|
<td class="td_category"><a href="./visit_date.php?fr_date=<?=$key?>-01&to_date=<?=$key?>-31"><?=$key?></a></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="visit_bar">
|
<div class="visit_bar">
|
||||||
@ -67,19 +69,20 @@ if (count($arr)) {
|
|||||||
</td>
|
</td>
|
||||||
<td class="td_bignum"><?=number_format($value)?></td>
|
<td class="td_bignum"><?=number_format($value)?></td>
|
||||||
<td class="td_num"><?=$s_rate?></td>
|
<td class="td_num"><?=$s_rate?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
|
|||||||
@ -26,31 +26,33 @@ while ($row=sql_fetch_array($result)) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table>
|
<section class="cbox">
|
||||||
<caption>운영체제별 접속자 수</caption>
|
<h2>운영체제별 접속자 수</h2>
|
||||||
<thead>
|
|
||||||
<tr>
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">순위</th>
|
<th scope="col">순위</th>
|
||||||
<th scope="col">OS</th>
|
<th scope="col">OS</th>
|
||||||
<th scope="col">그래프</th>
|
<th scope="col">그래프</th>
|
||||||
<th scope="col">접속자수</th>
|
<th scope="col">접속자수</th>
|
||||||
<th scope="col">비율(%)</th>
|
<th scope="col">비율(%)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3">합계</td>
|
<td colspan="3">합계</td>
|
||||||
<td><strong><?=$sum_count?></strong></td>
|
<td><strong><?=$sum_count?></strong></td>
|
||||||
<td></td>
|
<td>100%</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$k = 0;
|
$k = 0;
|
||||||
$save_count = -1;
|
$save_count = -1;
|
||||||
$tot_count = 0;
|
$tot_count = 0;
|
||||||
if (count($arr)) {
|
if (count($arr)) {
|
||||||
arsort($arr);
|
arsort($arr);
|
||||||
foreach ($arr as $key=>$value) {
|
foreach ($arr as $key=>$value) {
|
||||||
$count = $arr[$key];
|
$count = $arr[$key];
|
||||||
@ -68,9 +70,9 @@ if (count($arr)) {
|
|||||||
|
|
||||||
$rate = ($count / $sum_count * 100);
|
$rate = ($count / $sum_count * 100);
|
||||||
$s_rate = number_format($rate, 1);
|
$s_rate = number_format($rate, 1);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_num"><?=$no?></td>
|
<td class="td_num"><?=$no?></td>
|
||||||
<td class="td_category"><?=$key?></td>
|
<td class="td_category"><?=$key?></td>
|
||||||
<td>
|
<td>
|
||||||
@ -80,16 +82,17 @@ if (count($arr)) {
|
|||||||
</td>
|
</td>
|
||||||
<td class="td_bignum"><?=$count?></td>
|
<td class="td_bignum"><?=$count?></td>
|
||||||
<td class="td_num"><?=$s_rate?></td>
|
<td class="td_num"><?=$s_rate?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
|
|||||||
@ -25,35 +25,37 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table>
|
<section class="cbox">
|
||||||
<caption>요일별 접속자 수</caption>
|
<h2>요일별 접속자 수</h2>
|
||||||
<thead>
|
|
||||||
<tr>
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">요일</th>
|
<th scope="col">요일</th>
|
||||||
<th scope="col">그래프</th>
|
<th scope="col">그래프</th>
|
||||||
<th scope="col">접속자수</th>
|
<th scope="col">접속자수</th>
|
||||||
<th scope="col">비율(%)</th>
|
<th scope="col">비율(%)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">합계</td>
|
<td colspan="2">합계</td>
|
||||||
<td><strong><?=$sum_count?></strong></td>
|
<td><strong><?=$sum_count?></strong></td>
|
||||||
<td></td>
|
<td>100%</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
$k = 0;
|
$k = 0;
|
||||||
if ($i) {
|
if ($i) {
|
||||||
for ($i=0; $i<7; $i++) {
|
for ($i=0; $i<7; $i++) {
|
||||||
$count = (int)$arr[$i];
|
$count = (int)$arr[$i];
|
||||||
|
|
||||||
$rate = ($count / $sum_count * 100);
|
$rate = ($count / $sum_count * 100);
|
||||||
$s_rate = number_format($rate, 1);
|
$s_rate = number_format($rate, 1);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_category"><?=$weekday[$i]?></td>
|
<td class="td_category"><?=$weekday[$i]?></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="visit_bar">
|
<div class="visit_bar">
|
||||||
@ -62,16 +64,17 @@ if ($i) {
|
|||||||
</td>
|
</td>
|
||||||
<td class="td_bignum"><?=$count?></td>
|
<td class="td_bignum"><?=$count?></td>
|
||||||
<td class="td_num"><?=$s_rate?></td>
|
<td class="td_num"><?=$s_rate?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
|
|||||||
@ -27,38 +27,40 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table>
|
<section class="cbox">
|
||||||
<caption>연간 접속자 수</caption>
|
<h2>연간 접속자 수</h2>
|
||||||
<thead>
|
|
||||||
<tr>
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
<th scope="col">년</th>
|
<th scope="col">년</th>
|
||||||
<th scope="col">그래프</th>
|
<th scope="col">그래프</th>
|
||||||
<th scope="col">접속자수</th>
|
<th scope="col">접속자수</th>
|
||||||
<th scope="col">비율(%)</th>
|
<th scope="col">비율(%)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">합계</td>
|
<td colspan="2">합계</td>
|
||||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||||
<td></td>
|
<td>100%</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tfoot>
|
</tfoot>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$k = 0;
|
$k = 0;
|
||||||
$save_count = -1;
|
$save_count = -1;
|
||||||
$tot_count = 0;
|
$tot_count = 0;
|
||||||
if (count($arr)) {
|
if (count($arr)) {
|
||||||
foreach ($arr as $key=>$value) {
|
foreach ($arr as $key=>$value) {
|
||||||
$count = $value;
|
$count = $value;
|
||||||
|
|
||||||
$rate = ($count / $sum_count * 100);
|
$rate = ($count / $sum_count * 100);
|
||||||
$s_rate = number_format($rate, 1);
|
$s_rate = number_format($rate, 1);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td class="td_category"><a href="./visit_month.php?fr_date=<?=$key?>-01-01&to_date=<?=$key?>-12-31"><?=$key?></a></td>
|
<td class="td_category"><a href="./visit_month.php?fr_date=<?=$key?>-01-01&to_date=<?=$key?>-12-31"><?=$key?></a></td>
|
||||||
<td>
|
<td>
|
||||||
<div class="visit_bar">
|
<div class="visit_bar">
|
||||||
@ -67,16 +69,17 @@ if (count($arr)) {
|
|||||||
</td>
|
</td>
|
||||||
<td class="td_bignum"><?=number_format($value)?></td>
|
<td class="td_bignum"><?=number_format($value)?></td>
|
||||||
<td class="td_num"><?=$s_rate?></td>
|
<td class="td_num"><?=$s_rate?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</section>
|
||||||
|
|
||||||
<?
|
<?
|
||||||
include_once('./admin.tail.php');
|
include_once('./admin.tail.php');
|
||||||
|
|||||||
@ -133,7 +133,6 @@ textarea, .frm_input {padding:3px}
|
|||||||
textarea:focus,
|
textarea:focus,
|
||||||
.frm_input:focus {padding:4px;border:0;background:#434f54;color:#fff}
|
.frm_input:focus {padding:4px;border:0;background:#434f54;color:#fff}
|
||||||
textarea {width:90%}
|
textarea {width:90%}
|
||||||
select {padding:2px}
|
|
||||||
button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer}
|
button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer}
|
||||||
.readonly {background:#ff3061}
|
.readonly {background:#ff3061}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user