관리자: 리디자인 14, cbox 적용 중
This commit is contained in:
@ -94,101 +94,98 @@ var list_delete_php = 'board_list_delete.php';
|
||||
</div>
|
||||
<?}?>
|
||||
|
||||
<form id="fboardlist" name="fboardlist" method="post" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);">
|
||||
<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?>">
|
||||
<input type="hidden" name="token" value="<?=$token?>">
|
||||
<table class="tbl_bo_list">
|
||||
<caption>
|
||||
생성된 게시판 목록
|
||||
<p>
|
||||
여러개의 게시판 설정을 한번에 바꾸실 때는 게시판 체크기능을 이용하세요.
|
||||
</p>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<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('bo_table')?>TABLE</a></th>
|
||||
<th scope="col"><?=subject_sort_link('bo_skin', '', 'desc')?>스킨</a></th>
|
||||
<th scope="col"><?=subject_sort_link('bo_subject')?>제목</a></th>
|
||||
<th scope="col">읽기P<span class="sound_only">포인트</span></th>
|
||||
<th scope="col">쓰기P<span class="sound_only">포인트</span></th>
|
||||
<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">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
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_copy = '<a href="./board_copy.php?bo_table='.$row['bo_table'].'" class="board_copy" target="win_board_copy">복사</a>';
|
||||
?>
|
||||
<section class="cbox">
|
||||
<h2>생성된 게시판 목록</h2>
|
||||
<p>여러개의 게시판 설정을 한번에 바꾸실 때는 게시판 체크기능을 이용하세요.</p>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=get_text($row['bo_subject'])?> 게시판선택">
|
||||
</td>
|
||||
<td>
|
||||
<?if ($is_admin == 'super'){?>
|
||||
<?=get_group_select("gr_id[$i]", $row['gr_id'])?>
|
||||
<?}else{?>
|
||||
<input type="hidden" name="gr_id[<?=$i?>]" value="<?=$row['gr_id']?>"><?=$row['gr_subject']?>
|
||||
<form id="fboardlist" name="fboardlist" method="post" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);">
|
||||
<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?>">
|
||||
<input type="hidden" name="token" value="<?=$token?>">
|
||||
<table class="tbl_bo_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"><?=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_skin', '', 'desc')?>스킨</a></th>
|
||||
<th scope="col"><?=subject_sort_link('bo_subject')?>제목</a></th>
|
||||
<th scope="col">읽기P<span class="sound_only">포인트</span></th>
|
||||
<th scope="col">쓰기P<span class="sound_only">포인트</span></th>
|
||||
<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">선택</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
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_copy = '<a href="./board_copy.php?bo_table='.$row['bo_table'].'" class="board_copy" target="win_board_copy">복사</a>';
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=get_text($row['bo_subject'])?> 게시판선택">
|
||||
</td>
|
||||
<td>
|
||||
<?if ($is_admin == 'super'){?>
|
||||
<?=get_group_select("gr_id[$i]", $row['gr_id'])?>
|
||||
<?}else{?>
|
||||
<input type="hidden" name="gr_id[<?=$i?>]" value="<?=$row['gr_id']?>"><?=$row['gr_subject']?>
|
||||
<?}?>
|
||||
</td>
|
||||
<td class="td_boid">
|
||||
<input type="hidden" name="board_table[<?=$i?>]" value="<?=$row['bo_table']?>">
|
||||
<a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$row['bo_table']?>"><?=$row['bo_table']?></a>
|
||||
</td>
|
||||
<td>
|
||||
<?=get_skin_select("board", "bo_skin_$i", "bo_skin[$i]", $row['bo_skin']);?>
|
||||
</td>
|
||||
<td><input type="text" id="bo_subject[<?=$i?>]" name="bo_subject[<?=$i?>]" class="required" value="<?=get_text($row['bo_subject'])?>" title="게시판제목" size="10" required="required"></td>
|
||||
<td><input type="text" name="bo_read_point[<?=$i?>]" value="<?=$row['bo_read_point']?>" size="1" title="읽기포인트"></td>
|
||||
<td><input type="text" name="bo_write_point[<?=$i?>]" value="<?=$row['bo_write_point']?>" size="1" title="쓰기포인트"></td>
|
||||
<td><input type="text" name="bo_comment_point[<?=$i?>]" value="<?=$row['bo_comment_point']?>" size="1" title="댓글포인트"></td>
|
||||
<td><input type="text" name="bo_download_point[<?=$i?>]" value="<?=$row['bo_download_point']?>" size="1" title="다운포인트"></td>
|
||||
<td><input type="checkbox" id="bo_use_search_<?=$i?>" name="bo_use_search[<?=$i?>]" <?=$row['bo_use_search']?"checked":""?> value="1" title="검색사용"></td>
|
||||
<td><input type="text" id="bo_order_search_<?=$i?>" name="bo_order_search[<?=$i?>]" value="<?=$row['bo_order_search']?>" size="1" title="검색순서"></td>
|
||||
</td>
|
||||
<td>
|
||||
<select id="bo_use_<?=$i?>" name="bo_use[<?=$i?>]">
|
||||
<option value="both" <?=get_selected($row['bo_use'], 'both', true);?>>양쪽</option>
|
||||
<option value="pc" <?=get_selected($row['bo_use'], 'pc');?>>PC</option>
|
||||
<option value="mobile" <?=get_selected($row['bo_use'], 'mobile');?>>모바일</option>
|
||||
<option value="none" <?=get_selected($row['bo_use'], 'none');?>>미사용</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><?=$one_update?> <?=$one_copy?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_list">
|
||||
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택수정">
|
||||
<?if ($is_admin == 'super') {?>
|
||||
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택삭제">
|
||||
<a href="./board_form.php">게시판추가</a>
|
||||
<?}?>
|
||||
</td>
|
||||
<td class="td_boid">
|
||||
<input type="hidden" name="board_table[<?=$i?>]" value="<?=$row['bo_table']?>">
|
||||
<a href="<?=G4_BBS_URL?>/board.php?bo_table=<?=$row['bo_table']?>"><?=$row['bo_table']?></a>
|
||||
</td>
|
||||
<td>
|
||||
<?=get_skin_select("board", "bo_skin_$i", "bo_skin[$i]", $row['bo_skin']);?>
|
||||
</td>
|
||||
<td><input type="text" id="bo_subject[<?=$i?>]" name="bo_subject[<?=$i?>]" class="required" value="<?=get_text($row['bo_subject'])?>" title="게시판제목" size="10" required="required"></td>
|
||||
<td><input type="text" name="bo_read_point[<?=$i?>]" value="<?=$row['bo_read_point']?>" size="1" title="읽기포인트"></td>
|
||||
<td><input type="text" name="bo_write_point[<?=$i?>]" value="<?=$row['bo_write_point']?>" size="1" title="쓰기포인트"></td>
|
||||
<td><input type="text" name="bo_comment_point[<?=$i?>]" value="<?=$row['bo_comment_point']?>" size="1" title="댓글포인트"></td>
|
||||
<td><input type="text" name="bo_download_point[<?=$i?>]" value="<?=$row['bo_download_point']?>" size="1" title="다운포인트"></td>
|
||||
<td><input type="checkbox" id="bo_use_search_<?=$i?>" name="bo_use_search[<?=$i?>]" <?=$row['bo_use_search']?"checked":""?> value="1" title="검색사용"></td>
|
||||
<td><input type="text" id="bo_order_search_<?=$i?>" name="bo_order_search[<?=$i?>]" value="<?=$row['bo_order_search']?>" size="1" title="검색순서"></td>
|
||||
</td>
|
||||
<td>
|
||||
<select id="bo_use_<?=$i?>" name="bo_use[<?=$i?>]">
|
||||
<option value="both" <?=get_selected($row['bo_use'], 'both', true);?>>양쪽</option>
|
||||
<option value="pc" <?=get_selected($row['bo_use'], 'pc');?>>PC</option>
|
||||
<option value="mobile" <?=get_selected($row['bo_use'], 'mobile');?>>모바일</option>
|
||||
<option value="none" <?=get_selected($row['bo_use'], 'none');?>>미사용</option>
|
||||
</select>
|
||||
</td>
|
||||
<td><?=$one_update?> <?=$one_copy?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="btn_list">
|
||||
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택수정">
|
||||
<?if ($is_admin == 'super') {?>
|
||||
<input type="submit" name="btn_submit" onclick="document.pressed=this.value" value="선택삭제">
|
||||
<a href="./board_form.php">게시판추가</a>
|
||||
<?}?>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<?
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');
|
||||
echo $pagelist;
|
||||
?>
|
||||
|
||||
</form>
|
||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');?>
|
||||
|
||||
<script>
|
||||
function fboardlist_submit(f)
|
||||
|
||||
@ -88,94 +88,96 @@ var list_update_php = "./boardgroup_list_update.php";
|
||||
</div>
|
||||
<?}?>
|
||||
|
||||
<form id="fboardgrouplist" name="fboardgrouplist" method="post">
|
||||
<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">
|
||||
<caption>
|
||||
게시판그룹 목록
|
||||
<p>
|
||||
접근사용 옵션을 설정하시면 관리자가 지정한 회원만 해당 그룹에 접근할 수 있습니다.<br>
|
||||
접근사용 옵션은 해당 그룹에 속한 모든 게시판에 적용됩니다.
|
||||
</p>
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<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_subject')?>제목</a></th>
|
||||
<th scope="col"><?=subject_sort_link('gr_admin')?>그룹관리자</a></th>
|
||||
<th scope="col">게시판</th>
|
||||
<th scope="col">접근사용</th>
|
||||
<th scope="col">접근회원수</th>
|
||||
<th scope="col"><?=subject_sort_link('gr_use')?>사용여부</a></th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
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']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
<section class="cbox">
|
||||
<h2>게시판그룹 목록</h2>
|
||||
<p>
|
||||
접근사용 옵션을 설정하시면 관리자가 지정한 회원만 해당 그룹에 접근할 수 있습니다.<br>
|
||||
접근사용 옵션은 해당 그룹에 속한 모든 게시판에 적용됩니다.
|
||||
</p>
|
||||
|
||||
// 게시판수
|
||||
$sql2 = " select count(*) as cnt from {$g4['board_table']} where gr_id = '{$row['gr_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
<form id="fboardgrouplist" name="fboardgrouplist" method="post">
|
||||
<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"><?=subject_sort_link('gr_id')?>그룹아이디</a></th>
|
||||
<th scope="col"><?=subject_sort_link('gr_subject')?>제목</a></th>
|
||||
<th scope="col"><?=subject_sort_link('gr_admin')?>그룹관리자</a></th>
|
||||
<th scope="col">게시판</th>
|
||||
<th scope="col">접근사용</th>
|
||||
<th scope="col">접근회원수</th>
|
||||
<th scope="col"><?=subject_sort_link('gr_use')?>사용여부</a></th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
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']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
|
||||
$s_upd = '<a href="./boardgroup_form.php?$qstr&w=u&gr_id='.$row['gr_id'].'">수정</a>';
|
||||
$s_del = '';
|
||||
if ($is_admin == 'super') {
|
||||
$s_del = '<a href="javascript:post_delete(\'boardgroup_delete.php\', \''.$row['gr_id'].'\');">삭제</a>';
|
||||
}
|
||||
?>
|
||||
// 게시판수
|
||||
$sql2 = " select count(*) as cnt from {$g4['board_table']} where gr_id = '{$row['gr_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<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']?> 그룹선택">
|
||||
</td>
|
||||
<td><a href="<?=$g4['bbs_path']?>/group.php?gr_id=<?=$row['gr_id']?>"><?=$row['gr_id']?></a></td>
|
||||
<td>
|
||||
<input type="text" id="gr_subject_<?=$i?>" name="gr_subject[<?=$i?>]" value="<?=get_text($row['gr_subject'])?>" title="그룹제목 수정">
|
||||
</td>
|
||||
<td>
|
||||
<?if ($is_admin == 'super'){?>
|
||||
<input type="text" id="gr_admin" name="gr_admin[<?=$i?>]" value="<?=$row['gr_admin']?>" title="그룹관리자 수정" maxlength="20">
|
||||
<?}else{?>
|
||||
<input type="hidden" name="gr_admin[<?=$i?>]" value="<?=$row['gr_admin']?>"><td><?=$row['gr_admin']?>
|
||||
<?}?>
|
||||
</td>
|
||||
<td><a href="./board_list.php?sfl=a.gr_id&stx=<?=$row['gr_id']?>"><?=$row2['cnt']?></a></td>
|
||||
<td><input type="checkbox" id="gr_use_access" name="gr_use_access[<?=$i?>]" <?=$row['gr_use_access']?'checked':''?> value="1" title="선택 시 접근회원 사용"></td>
|
||||
<td><a href="./boardgroupmember_list.php?gr_id=<?=$row['gr_id']?>"><?=$row1['cnt']?></a></td>
|
||||
<td>
|
||||
<select id="gr_use_<?=$i?>" name="gr_use[<?=$i?>]">
|
||||
<option value="both" <?=get_selected($row['gr_use'], 'both', true);?>>양쪽</option>
|
||||
<option value="pc" <?=get_selected($row['gr_use'], 'pc');?>>PC</option>
|
||||
<option value="mobile" <?=get_selected($row['gr_use'], 'mobile');?>>모바일</option>
|
||||
<option value="none" <?=get_selected($row['gr_use'], 'none');?>>미사용</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="td_mng"><?=$s_upd?> <?=$s_del?></td>
|
||||
</tr>
|
||||
$s_upd = '<a href="./boardgroup_form.php?$qstr&w=u&gr_id='.$row['gr_id'].'">수정</a>';
|
||||
$s_del = '';
|
||||
if ($is_admin == 'super') {
|
||||
$s_del = '<a href="javascript:post_delete(\'boardgroup_delete.php\', \''.$row['gr_id'].'\');">삭제</a>';
|
||||
}
|
||||
?>
|
||||
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</table>
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<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']?> 그룹선택">
|
||||
</td>
|
||||
<td><a href="<?=$g4['bbs_path']?>/group.php?gr_id=<?=$row['gr_id']?>"><?=$row['gr_id']?></a></td>
|
||||
<td>
|
||||
<input type="text" id="gr_subject_<?=$i?>" name="gr_subject[<?=$i?>]" value="<?=get_text($row['gr_subject'])?>" title="그룹제목 수정">
|
||||
</td>
|
||||
<td>
|
||||
<?if ($is_admin == 'super'){?>
|
||||
<input type="text" id="gr_admin" name="gr_admin[<?=$i?>]" value="<?=$row['gr_admin']?>" title="그룹관리자 수정" maxlength="20">
|
||||
<?}else{?>
|
||||
<input type="hidden" name="gr_admin[<?=$i?>]" value="<?=$row['gr_admin']?>"><td><?=$row['gr_admin']?>
|
||||
<?}?>
|
||||
</td>
|
||||
<td><a href="./board_list.php?sfl=a.gr_id&stx=<?=$row['gr_id']?>"><?=$row2['cnt']?></a></td>
|
||||
<td><input type="checkbox" id="gr_use_access" name="gr_use_access[<?=$i?>]" <?=$row['gr_use_access']?'checked':''?> value="1" title="선택 시 접근회원 사용"></td>
|
||||
<td><a href="./boardgroupmember_list.php?gr_id=<?=$row['gr_id']?>"><?=$row1['cnt']?></a></td>
|
||||
<td>
|
||||
<select id="gr_use_<?=$i?>" name="gr_use[<?=$i?>]">
|
||||
<option value="both" <?=get_selected($row['gr_use'], 'both', true);?>>양쪽</option>
|
||||
<option value="pc" <?=get_selected($row['gr_use'], 'pc');?>>PC</option>
|
||||
<option value="mobile" <?=get_selected($row['gr_use'], 'mobile');?>>모바일</option>
|
||||
<option value="none" <?=get_selected($row['gr_use'], 'none');?>>미사용</option>
|
||||
</select>
|
||||
</td>
|
||||
<td class="td_mng"><?=$s_upd?> <?=$s_del?></td>
|
||||
</tr>
|
||||
|
||||
<div class="btn_list">
|
||||
<button onclick="btn_check(this.form, 'update')">선택수정</button>
|
||||
<!-- <button onclick="btn_check(this.form, 'delete')">선택삭제</button> -->
|
||||
<a href="./boardgroup_form.php">게시판그룹 추가</a>
|
||||
</div>
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</table>
|
||||
|
||||
<div class="btn_list">
|
||||
<button onclick="btn_check(this.form, 'update')">선택수정</button>
|
||||
<!-- <button onclick="btn_check(this.form, 'delete')">선택삭제</button> -->
|
||||
<a href="./boardgroup_form.php">게시판그룹 추가</a>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<?
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, $_SERVER['PHP_SELF'].'?'.$qstr.'&page=');
|
||||
@ -186,7 +188,6 @@ echo $pagelist;
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>';
|
||||
?>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
// POST 방식으로 삭제
|
||||
|
||||
@ -26,61 +26,63 @@ $colspan = 6;
|
||||
<a href="./mail_form.php" id="mail_add">메일내용추가</a>
|
||||
</div>
|
||||
|
||||
<table>
|
||||
<caption>
|
||||
등록된 메일내용 목록 (전체 <?=$total_count ?>건)
|
||||
<section class="cbox">
|
||||
<h2>등록된 메일내용 목록</h2>
|
||||
<p>
|
||||
<strong>테스트</strong>는 등록된 최고관리자의 이메일로 테스트 메일을 발송
|
||||
<strong>테스트</strong>는 등록된 최고관리자의 이메일로 테스트 메일을 발송합니다.<br>
|
||||
현재 등록된 메일은 총 <?=$total_count ?>건입니다.
|
||||
</p>
|
||||
</caption>
|
||||
<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>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
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_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>';
|
||||
|
||||
$num = number_format($total_count - ($page - 1) * $config['cf_page_rows'] - $i);
|
||||
?>
|
||||
<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>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
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_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>';
|
||||
|
||||
<tr>
|
||||
<td class="td_num"><?=$num?></td>
|
||||
<td><?=$row['ma_subject']?></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_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>
|
||||
</tr>
|
||||
$num = number_format($total_count - ($page - 1) * $config['cf_page_rows'] - $i);
|
||||
?>
|
||||
|
||||
<?
|
||||
}
|
||||
if (!$i)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<tr>
|
||||
<td class="td_num"><?=$num?></td>
|
||||
<td><?=$row['ma_subject']?></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_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>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
if (!$i)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
// POST 방식으로 삭제
|
||||
function post_delete(action_url, val)
|
||||
{
|
||||
var f = document.fpost;
|
||||
var f = document.fpost;
|
||||
|
||||
if(confirm('한번 삭제한 자료는 복구할 방법이 없습니다. 정말 삭제하시겠습니까?')) {
|
||||
if(confirm('한번 삭제한 자료는 복구할 방법이 없습니다. 정말 삭제하시겠습니까?')) {
|
||||
f.ma_id.value = val;
|
||||
f.action = action_url;
|
||||
f.submit();
|
||||
}
|
||||
f.action = action_url;
|
||||
f.submit();
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@ -102,92 +102,88 @@ function point_clear()
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<form id="fpointlist" name="fpointlist" method="post">
|
||||
<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?>">
|
||||
<input type="hidden" name="token" value="<?=$token?>">
|
||||
<section class="cbox">
|
||||
<h2>포인트 내역</h2>
|
||||
|
||||
<table class="tbl_pt_list">
|
||||
<caption>
|
||||
포인트 내역
|
||||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<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">이름</th>
|
||||
<th scope="col">별명</th>
|
||||
<th scope="col"><?=subject_sort_link('po_datetime')?>일시</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">포인트합</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
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']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
<form id="fpointlist" name="fpointlist" method="post">
|
||||
<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?>">
|
||||
<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"><?=subject_sort_link('mb_id')?>회원아이디</a></th>
|
||||
<th scope="col">이름</th>
|
||||
<th scope="col">별명</th>
|
||||
<th scope="col"><?=subject_sort_link('po_datetime')?>일시</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">포인트합</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
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']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
}
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row2['mb_nick'], $row2['mb_email'], $row2['mb_homepage']);
|
||||
|
||||
$link1 = $link2 = '';
|
||||
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table']) {
|
||||
$link1 = '<a href="'.$g4['bbs_path'].'/board.php?bo_table='.$row['po_rel_table'].'&wr_id='.$row['po_rel_id'].'" target="_blank">';
|
||||
$link2 = '</a>';
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<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="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="내역선택">
|
||||
</td>
|
||||
<td class="td_mbid"><a href="?sfl=mb_id&stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
|
||||
<td class="td_mbname"><?=$row2['mb_name']?></td>
|
||||
<td class="td_name"><div><?=$mb_nick?></div></td>
|
||||
<td><?=$row['po_datetime']?></td>
|
||||
<td class="td_pt_log"><?=$link1?><?=$row['po_content']?><?=$link2?></td>
|
||||
<td class="td_num"><?=number_format($row['po_point'])?></td>
|
||||
<td class="td_bignum"><?=number_format($row2['mb_point'])?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row2['mb_nick'], $row2['mb_email'], $row2['mb_homepage']);
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
$link1 = $link2 = '';
|
||||
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table']) {
|
||||
$link1 = '<a href="'.$g4['bbs_path'].'/board.php?bo_table='.$row['po_rel_table'].'&wr_id='.$row['po_rel_id'].'" target="_blank">';
|
||||
$link2 = '</a>';
|
||||
}
|
||||
?>
|
||||
<div class="btn_list">
|
||||
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
||||
</div>
|
||||
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<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="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="내역선택">
|
||||
</td>
|
||||
<td class="td_mbid"><a href="?sfl=mb_id&stx=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
|
||||
<td class="td_mbname"><?=$row2['mb_name']?></td>
|
||||
<td class="td_name"><div><?=$mb_nick?></div></td>
|
||||
<td><?=$row['po_datetime']?></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_bignum"><?=number_format($row2['mb_point'])?></td>
|
||||
</tr>
|
||||
<?
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>'.PHP_EOL;
|
||||
|
||||
<?
|
||||
}
|
||||
if (strstr($sfl, 'mb_id'))
|
||||
$mb_id = $stx;
|
||||
else
|
||||
$mb_id = '';
|
||||
?>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="btn_list">
|
||||
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
||||
</div>
|
||||
|
||||
<?
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
echo $pagelist;
|
||||
?>
|
||||
|
||||
<?
|
||||
if (isset($stx))
|
||||
echo '<script>document.fsearch.sfl.value = \''.$sfl.'\';</script>'.PHP_EOL;
|
||||
|
||||
if (strstr($sfl, 'mb_id'))
|
||||
$mb_id = $stx;
|
||||
else
|
||||
$mb_id = '';
|
||||
?>
|
||||
</form>
|
||||
|
||||
<?$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">
|
||||
<input type="hidden" name="sfl" value="<?=$sfl?>">
|
||||
@ -211,7 +207,6 @@ else
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
<script>
|
||||
function fpointlist2_submit(f)
|
||||
{
|
||||
|
||||
@ -89,60 +89,62 @@ var list_delete_php = 'popular_list.php';
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<form id="fpopularlist" name="fpopularlist" method="post">
|
||||
<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?>">
|
||||
<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"><?=subject_sort_link('pp_word')?>검색어</a></th>
|
||||
<th scope="col">등록일</th>
|
||||
<th scope="col">등록IP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<section class="cbox">
|
||||
<h2>인기검색어 목록</h2>
|
||||
|
||||
$word = get_text($row['pp_word']);
|
||||
?>
|
||||
<form id="fpopularlist" name="fpopularlist" method="post">
|
||||
<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?>">
|
||||
<input type="hidden" name="token" value="<?=$token?>">
|
||||
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<input type="hidden" name="pp_id[<?=$i?>]" value="<?=$row['pp_id']?>">
|
||||
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=$word?> 선택">
|
||||
</td>
|
||||
<td> <a href="<?=$_SERVER['PHP_SELF']?>?sfl=pp_word&stx=<?=$word?>"><?=$word?></a></td>
|
||||
<td><?=$row['pp_date']?></td>
|
||||
<td><?=$row['pp_ip']?></td>
|
||||
</tr>
|
||||
<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"><?=subject_sort_link('pp_word')?>검색어</a></th>
|
||||
<th scope="col">등록일</th>
|
||||
<th scope="col">등록IP</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
<?
|
||||
}
|
||||
$word = get_text($row['pp_word']);
|
||||
?>
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<tr>
|
||||
<td class="td_chk">
|
||||
<input type="hidden" name="pp_id[<?=$i?>]" value="<?=$row['pp_id']?>">
|
||||
<input type="checkbox" id="chk_<?=$i?>" name="chk[]" value="<?=$i?>" title="<?=$word?> 선택">
|
||||
</td>
|
||||
<td> <a href="<?=$_SERVER['PHP_SELF']?>?sfl=pp_word&stx=<?=$word?>"><?=$word?></a></td>
|
||||
<td><?=$row['pp_date']?></td>
|
||||
<td><?=$row['pp_ip']?></td>
|
||||
</tr>
|
||||
|
||||
<?if ($is_admin == 'super'){ ?>
|
||||
<div class="btn_list">
|
||||
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
||||
</div>
|
||||
<?}?>
|
||||
<?
|
||||
}
|
||||
|
||||
<?
|
||||
$pagelist = get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
echo $pagelist;
|
||||
?>
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
<?if ($is_admin == 'super'){ ?>
|
||||
<div class="btn_list">
|
||||
<button onclick="btn_check(this.form, 'delete')">선택삭제</button>
|
||||
</div>
|
||||
<?}?>
|
||||
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?>
|
||||
|
||||
<?
|
||||
if (isset($stx))
|
||||
|
||||
@ -49,49 +49,53 @@ $colspan = 3;
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<form id="fpopularrank" name="fpopularrank" method="post">
|
||||
<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?>">
|
||||
<input type="hidden" name="token" value="<?=$token?>">
|
||||
<table class="tbl_pop_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">검색어</th>
|
||||
<th scope="col">검색회수</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
<section class="cbox">
|
||||
<h2>인기검색어 순위 및 내역</h2>
|
||||
<form id="fpopularrank" name="fpopularrank" method="post">
|
||||
<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?>">
|
||||
<input type="hidden" name="token" value="<?=$token?>">
|
||||
<table class="tbl_pop_list">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">검색어</th>
|
||||
<th scope="col">검색회수</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
$word = get_text($row['pp_word']);
|
||||
$rank = ($i + 1 + ($rows * ($page - 1)));
|
||||
$word = get_text($row['pp_word']);
|
||||
$rank = ($i + 1 + ($rows * ($page - 1)));
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_num"><?=$rank?></td>
|
||||
<td><?=$word?></td>
|
||||
<td class="td_bignum"><?=$row['cnt']?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="td_num"><?=$rank?></td>
|
||||
<td><?=$word?></td>
|
||||
<td class="td_bignum"><?=$row['cnt']?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
<?
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</section>
|
||||
|
||||
<?
|
||||
echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");
|
||||
?>
|
||||
</form>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
|
||||
@ -25,66 +25,70 @@ while ($row=sql_fetch_array($result)) {
|
||||
$sum_count++;
|
||||
}
|
||||
?>
|
||||
<table>
|
||||
<caption>브라우저별 접속자 수</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">브라우저</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3">합계</td>
|
||||
<td><strong><?=$sum_count?></strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
arsort($arr);
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $arr[$key];
|
||||
if ($save_count != $count) {
|
||||
$i++;
|
||||
$no = $i;
|
||||
$save_count = $count;
|
||||
} else {
|
||||
$no = "";
|
||||
|
||||
<section class="cbox">
|
||||
<h2>브라우저별 접속자 수</h2>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">브라우저</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3">합계</td>
|
||||
<td><strong><?=$sum_count?></strong></td>
|
||||
<td>100%</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
arsort($arr);
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $arr[$key];
|
||||
if ($save_count != $count) {
|
||||
$i++;
|
||||
$no = $i;
|
||||
$save_count = $count;
|
||||
} else {
|
||||
$no = "";
|
||||
}
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_num"><?=$no?></td>
|
||||
<td class="td_category"><?=$key?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=$count?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_num"><?=$no?></td>
|
||||
<td class="td_category"><?=$key?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=$count?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
|
||||
@ -26,56 +26,59 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
}
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>일별 접속자 수</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">년-월-일</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $value;
|
||||
<section class="cbox">
|
||||
<h2>일별 접속자 수</h2>
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">년-월-일</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||
<td>100%</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $value;
|
||||
|
||||
<tr>
|
||||
<td class="td_category"><a href="./visit_list.php?fr_date=<?=$key?>&to_date=<?=$key?>"><?=$key?></a></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=number_format($value)?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
|
||||
<?
|
||||
<tr>
|
||||
<td class="td_category"><a href="./visit_list.php?fr_date=<?=$key?>&to_date=<?=$key?>"><?=$key?></a></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=number_format($value)?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
|
||||
@ -28,73 +28,76 @@ while ($row=sql_fetch_array($result)) {
|
||||
}
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>도메인별 접속자 수</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">접속 도메인</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3">합계</td>
|
||||
<td><strong><?=$sum_count?></strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
arsort($arr);
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $arr[$key];
|
||||
if ($save_count != $count) {
|
||||
$i++;
|
||||
$no = $i;
|
||||
$save_count = $count;
|
||||
} else {
|
||||
$no = '';
|
||||
}
|
||||
<section class="cbox">
|
||||
<h2>도메인별 접속자 수</h2>
|
||||
|
||||
if (!$key) {
|
||||
$link = '';
|
||||
$link2 = '';
|
||||
$key = '직접';
|
||||
} else {
|
||||
$link = '<a href="./visit_list.php?$qstr&domain='.$key.'">';
|
||||
$link2 = '</a>';
|
||||
}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">접속 도메인</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3">합계</td>
|
||||
<td><strong><?=$sum_count?></strong></td>
|
||||
<td>100%</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
arsort($arr);
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $arr[$key];
|
||||
if ($save_count != $count) {
|
||||
$i++;
|
||||
$no = $i;
|
||||
$save_count = $count;
|
||||
} else {
|
||||
$no = '';
|
||||
}
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_num"><?=$no?></td>
|
||||
<td class="td_category"><?=$link?><?=$key?><?=$link2?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=$count?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
<?
|
||||
if (!$key) {
|
||||
$link = '';
|
||||
$link2 = '';
|
||||
$key = '직접';
|
||||
} else {
|
||||
$link = '<a href="./visit_list.php?$qstr&domain='.$key.'">';
|
||||
$link2 = '</a>';
|
||||
}
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_num"><?=$no?></td>
|
||||
<td class="td_category"><?=$link?><?=$key?><?=$link2?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=$count?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
|
||||
@ -27,52 +27,55 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
}
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>시간대별 접속자 수</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">시간</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$k = 0;
|
||||
if ($i) {
|
||||
for ($i=0; $i<24; $i++) {
|
||||
$hour = sprintf("%02d", $i);
|
||||
$count = (int)$arr[$hour];
|
||||
<section class="cbox">
|
||||
<h2>시간대별 접속자 수</h2>
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_category"><?=$hour?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=number_format($count)?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
<?
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">시간</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||
<td>100%</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$k = 0;
|
||||
if ($i) {
|
||||
for ($i=0; $i<24; $i++) {
|
||||
$hour = sprintf("%02d", $i);
|
||||
$count = (int)$arr[$hour];
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_category"><?=$hour?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=number_format($count)?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
<?
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
|
||||
@ -34,73 +34,78 @@ $sql = " select *
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>접속자 개요 (IP, 경로, 브라우저, 운영체제, 일시)</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">IP</th>
|
||||
<th scope="col">접속 경로</th>
|
||||
<th scope="col">브라우저</th>
|
||||
<th scope="col">운영체제</th>
|
||||
<th scope="col">일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$brow = get_brow($row['vi_agent']);
|
||||
$os = get_os($row['vi_agent']);
|
||||
<section class="cbox">
|
||||
<h2>접속자 개요</h2>
|
||||
<p>IP, 경로, 브라우저, 운영체제, 일시</p>
|
||||
|
||||
$link = '';
|
||||
$link2 = '';
|
||||
$referer = '';
|
||||
$title = '';
|
||||
if ($row['vi_referer']) {
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">IP</th>
|
||||
<th scope="col">접속 경로</th>
|
||||
<th scope="col">브라우저</th>
|
||||
<th scope="col">운영체제</th>
|
||||
<th scope="col">일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$brow = get_brow($row['vi_agent']);
|
||||
$os = get_os($row['vi_agent']);
|
||||
|
||||
$referer = get_text(cut_str($row['vi_referer'], 255, ''));
|
||||
$referer = urldecode($referer);
|
||||
$link = '';
|
||||
$link2 = '';
|
||||
$referer = '';
|
||||
$title = '';
|
||||
if ($row['vi_referer']) {
|
||||
|
||||
if (strtolower($g4['charset']) == 'utf-8') {
|
||||
if (!is_utf8($referer)) {
|
||||
$referer = iconv('euc-kr', 'utf-8', $referer);
|
||||
$referer = get_text(cut_str($row['vi_referer'], 255, ''));
|
||||
$referer = urldecode($referer);
|
||||
|
||||
if (strtolower($g4['charset']) == 'utf-8') {
|
||||
if (!is_utf8($referer)) {
|
||||
$referer = iconv('euc-kr', 'utf-8', $referer);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (is_utf8($referer)) {
|
||||
$referer = iconv('utf-8', 'euc-kr', $referer);
|
||||
else {
|
||||
if (is_utf8($referer)) {
|
||||
$referer = iconv('utf-8', 'euc-kr', $referer);
|
||||
}
|
||||
}
|
||||
|
||||
$title = str_replace(array('<', '>', '&'), array("<", ">", "&"), $referer);
|
||||
$link = '<a href="'.$row['vi_referer'].'" target="_blank">';
|
||||
$link = str_replace('&', "&", $link);
|
||||
$link2 = '</a>';
|
||||
}
|
||||
|
||||
$title = str_replace(array('<', '>', '&'), array("<", ">", "&"), $referer);
|
||||
$link = '<a href="'.$row['vi_referer'].'" target="_blank">';
|
||||
$link = str_replace('&', "&", $link);
|
||||
$link2 = '</a>';
|
||||
if ($is_admin == 'super')
|
||||
$ip = $row['vi_ip'];
|
||||
else
|
||||
$ip = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row['vi_ip']);
|
||||
|
||||
if ($brow == '기타') { $brow = '<span title="'.$row['vi_agent'].'">'.$brow.'</span>'; }
|
||||
if ($os == '기타') { $os = '<span title="'.$row['vi_agent'].'">'.$os.'</span>'; }
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_category"><?=$ip?></td>
|
||||
<td><?=$link?><?=$title?><?=$link2?></td>
|
||||
<td class="td_category"><?=$brow?></td>
|
||||
<td class="td_category"><?=$os?></td>
|
||||
<td class="td_time"><?=$row['vi_date']?> <?=$row['vi_time']?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
if ($is_admin == 'super')
|
||||
$ip = $row['vi_ip'];
|
||||
else
|
||||
$ip = preg_replace("/([0-9]+).([0-9]+).([0-9]+).([0-9]+)/", "\\1.♡.\\3.\\4", $row['vi_ip']);
|
||||
|
||||
if ($brow == '기타') { $brow = '<span title="'.$row['vi_agent'].'">'.$brow.'</span>'; }
|
||||
if ($os == '기타') { $os = '<span title="'.$row['vi_agent'].'">'.$os.'</span>'; }
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td class="td_category"><?=$ip?></td>
|
||||
<td><?=$link?><?=$title?><?=$link2?></td>
|
||||
<td class="td_category"><?=$brow?></td>
|
||||
<td class="td_category"><?=$os?></td>
|
||||
<td class="td_time"><?=$row['vi_date']?> <?=$row['vi_time']?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
if ($i == 0)
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?
|
||||
if (isset($domain))
|
||||
$qstr .= "&domain=$domain";
|
||||
|
||||
@ -27,59 +27,62 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
}
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>월별 접속자 수</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">년-월</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $value;
|
||||
<section class="cbox">
|
||||
<h2>월별 접속자 수</h2>
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">년-월</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||
<td>100%</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $value;
|
||||
|
||||
<tr>
|
||||
<td class="td_category"><a href="./visit_date.php?fr_date=<?=$key?>-01&to_date=<?=$key?>-31"><?=$key?></a></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=number_format($value)?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
|
||||
<?
|
||||
<tr>
|
||||
<td class="td_category"><a href="./visit_date.php?fr_date=<?=$key?>-01&to_date=<?=$key?>-31"><?=$key?></a></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=number_format($value)?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
|
||||
127
adm/visit_os.php
127
adm/visit_os.php
@ -26,70 +26,73 @@ while ($row=sql_fetch_array($result)) {
|
||||
}
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>운영체제별 접속자 수</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">OS</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3">합계</td>
|
||||
<td><strong><?=$sum_count?></strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
arsort($arr);
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $arr[$key];
|
||||
if ($save_count != $count) {
|
||||
$i++;
|
||||
$no = $i;
|
||||
$save_count = $count;
|
||||
} else {
|
||||
$no = '';
|
||||
<section class="cbox">
|
||||
<h2>운영체제별 접속자 수</h2>
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">OS</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="3">합계</td>
|
||||
<td><strong><?=$sum_count?></strong></td>
|
||||
<td>100%</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
arsort($arr);
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $arr[$key];
|
||||
if ($save_count != $count) {
|
||||
$i++;
|
||||
$no = $i;
|
||||
$save_count = $count;
|
||||
} else {
|
||||
$no = '';
|
||||
}
|
||||
|
||||
if (!$key) {
|
||||
$key = '직접';
|
||||
}
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_num"><?=$no?></td>
|
||||
<td class="td_category"><?=$key?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=$count?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
if (!$key) {
|
||||
$key = '직접';
|
||||
}
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_num"><?=$no?></td>
|
||||
<td class="td_category"><?=$key?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=$count?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
|
||||
@ -25,53 +25,56 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
}
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>요일별 접속자 수</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">요일</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=$sum_count?></strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$k = 0;
|
||||
if ($i) {
|
||||
for ($i=0; $i<7; $i++) {
|
||||
$count = (int)$arr[$i];
|
||||
<section class="cbox">
|
||||
<h2>요일별 접속자 수</h2>
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">요일</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=$sum_count?></strong></td>
|
||||
<td>100%</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$k = 0;
|
||||
if ($i) {
|
||||
for ($i=0; $i<7; $i++) {
|
||||
$count = (int)$arr[$i];
|
||||
|
||||
<tr>
|
||||
<td class="td_category"><?=$weekday[$i]?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=$count?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
|
||||
<?
|
||||
<tr>
|
||||
<td class="td_category"><?=$weekday[$i]?></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=$count?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
|
||||
@ -27,56 +27,59 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
}
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption>연간 접속자 수</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">년</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $value;
|
||||
<section class="cbox">
|
||||
<h2>연간 접속자 수</h2>
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">년</th>
|
||||
<th scope="col">그래프</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2">합계</td>
|
||||
<td><strong><?=number_format($sum_count)?></strong></td>
|
||||
<td>100%</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
$tot_count = 0;
|
||||
if (count($arr)) {
|
||||
foreach ($arr as $key=>$value) {
|
||||
$count = $value;
|
||||
|
||||
<tr>
|
||||
<td class="td_category"><a href="./visit_month.php?fr_date=<?=$key?>-01-01&to_date=<?=$key?>-12-31"><?=$key?></a></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=number_format($value)?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
?>
|
||||
|
||||
<?
|
||||
<tr>
|
||||
<td class="td_category"><a href="./visit_month.php?fr_date=<?=$key?>-01-01&to_date=<?=$key?>-12-31"><?=$key?></a></td>
|
||||
<td>
|
||||
<div class="visit_bar">
|
||||
<span style="width:<?=$s_rate?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="td_bignum"><?=number_format($value)?></td>
|
||||
<td class="td_num"><?=$s_rate?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
} else {
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
|
||||
<?
|
||||
include_once('./admin.tail.php');
|
||||
|
||||
@ -133,7 +133,6 @@ textarea, .frm_input {padding:3px}
|
||||
textarea:focus,
|
||||
.frm_input:focus {padding:4px;border:0;background:#434f54;color:#fff}
|
||||
textarea {width:90%}
|
||||
select {padding:2px}
|
||||
button {padding:3px;border:1px solid #ced9de;background:#f6f9fa;cursor:pointer}
|
||||
.readonly {background:#ff3061}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user