마크업:관리자>접속자
This commit is contained in:
@ -4,7 +4,7 @@ $menu['menu200'] = array (
|
||||
array('200100', '회원관리', ''.$g4['admin_path'].'/member_list.php', 'mb_list'),
|
||||
array('200200', '포인트관리', ''.$g4['admin_path'].'/point_list.php', 'mb_point'),
|
||||
array('200300', '회원메일발송', ''.$g4['admin_path'].'/mail_list.php', 'mb_mail'),
|
||||
array('200800', '접속자현황', ''.$g4['admin_path'].'/visit_list.php', 'mb_visit'),
|
||||
array('200800', '접속자집계', ''.$g4['admin_path'].'/visit_list.php', 'mb_visit'),
|
||||
array('200900', '투표관리', ''.$g4['admin_path'].'/poll_list.php', 'mb_poll')
|
||||
);
|
||||
?>
|
||||
@ -11,7 +11,7 @@ $qstr = 'fr_date='.$fr_date.'&to_date='.$to_date;
|
||||
|
||||
<form id="fvisit" name="fvisit" method="get">
|
||||
<fieldset>
|
||||
<legend>접속자현황 열람조건 지정</legend>
|
||||
<legend>접속자집계 열람조건 지정</legend>
|
||||
<span>기간지정 <input type="text" id="fr_date" name="fr_date" size=11 maxlength=10 value='<?=$fr_date?>'> 부터 <input type="text" id="to_date" name="to_date" size=11 maxlength=10 value='<?=$to_date?>'> 까지</span>
|
||||
<input type="button" value="접속자" onclick="fvisit_submit('visit_list.php');">
|
||||
<input type="button" value="도메인" onclick="fvisit_submit('visit_domain.php');">
|
||||
@ -25,7 +25,7 @@ $qstr = 'fr_date='.$fr_date.'&to_date='.$to_date;
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
<script type='text/javascript'>
|
||||
<script>
|
||||
function fvisit_submit(act)
|
||||
{
|
||||
var f = document.fvisit;
|
||||
|
||||
@ -4,7 +4,7 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$g4['title'] = '브라우저별 접속자현황';
|
||||
$g4['title'] = '브라우저별 접속자집계';
|
||||
include_once('./admin.head.php');
|
||||
include_once('./visit.sub.php');
|
||||
|
||||
@ -26,14 +26,14 @@ while ($row=sql_fetch_array($result)) {
|
||||
}
|
||||
?>
|
||||
<table>
|
||||
<caption></caption>
|
||||
<caption>브라우저별 접속자 수</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>순위</td>
|
||||
<td>브라우저</td>
|
||||
<td>방문자수</td>
|
||||
<td>비율(%)</td>
|
||||
<td>그래프</td>
|
||||
<th scope="col">순위</th>
|
||||
<th scope="col">브라우저</th>
|
||||
<th scope="col">접속자수</th>
|
||||
<th scope="col">비율(%)</th>
|
||||
<th scope="col">그래프</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
|
||||
@ -4,7 +4,7 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$g4['title'] = '일별 접속자현황';
|
||||
$g4['title'] = '일별 접속자집계';
|
||||
include_once('./admin.head.php');
|
||||
include_once('./visit.sub.php');
|
||||
|
||||
@ -27,11 +27,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption></caption>
|
||||
<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>
|
||||
|
||||
@ -4,7 +4,7 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$g4['title'] = '도메인별 접속자현황';
|
||||
$g4['title'] = '도메인별 접속자집계';
|
||||
include_once('./admin.head.php');
|
||||
include_once('./visit.sub.php');
|
||||
|
||||
@ -29,12 +29,12 @@ while ($row=sql_fetch_array($result)) {
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption></caption>
|
||||
<caption>도메인별 접속자 수</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>
|
||||
|
||||
@ -4,7 +4,7 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$g4['title'] = '시간별 접속자현황';
|
||||
$g4['title'] = '시간별 접속자집계';
|
||||
include_once('./admin.head.php');
|
||||
include_once('./visit.sub.php');
|
||||
|
||||
@ -28,11 +28,11 @@ for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption></caption>
|
||||
<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>
|
||||
|
||||
@ -4,7 +4,7 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$g4['title'] = '접속자현황';
|
||||
$g4['title'] = '접속자집계';
|
||||
include_once('./admin.head.php');
|
||||
include_once('./visit.sub.php');
|
||||
|
||||
@ -14,38 +14,38 @@ $colspan = 5;
|
||||
//unset($os); // OS
|
||||
|
||||
$sql_common = " from {$g4['visit_table']} ";
|
||||
$sql_search = " where vi_date between '$fr_date' and '$to_date' ";
|
||||
$sql_search = " where vi_date between '{$fr_date}' and '{$to_date}' ";
|
||||
if ($domain) {
|
||||
$sql_search .= " and vi_referer like '%$domain%' ";
|
||||
$sql_search .= " and vi_referer like '%{$domain}%' ";
|
||||
}
|
||||
|
||||
$sql = " select count(*) as cnt
|
||||
$sql_common
|
||||
$sql_search ";
|
||||
{$sql_common}
|
||||
{$sql_search} ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
$total_count = $row[cnt];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$rows = $config[cf_page_rows];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == '') $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
$sql_common
|
||||
$sql_search
|
||||
order by vi_id desc
|
||||
limit $from_record, $rows ";
|
||||
{$sql_common}
|
||||
{$sql_search}
|
||||
order by vi_id desc
|
||||
limit {$from_record}, {$rows} ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption></caption>
|
||||
<caption>접속자 개요 (IP, 경로, 브라우저, 운영체제, 일시)</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">IP</th>
|
||||
<th scope="col">접속 경로</th>
|
||||
<th scope="col">브라우저</th>
|
||||
<th scope="col">OS</th>
|
||||
<th scope="col">운영체제</th>
|
||||
<th scope="col">일시</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -4,44 +4,48 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$g4['title'] = '월별 접속자현황';
|
||||
$g4['title'] = '월별 접속자집계';
|
||||
include_once('./admin.head.php');
|
||||
include_once('./visit.sub.php');
|
||||
|
||||
$colspan = 4;
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="row">년-월</th>
|
||||
<th scope="row">방문자수</th>
|
||||
<th scope="row">비율(%)</th>
|
||||
<th scope="row">그래프</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
<?
|
||||
$max = 0;
|
||||
$sum_count = 0;
|
||||
$sql = " select SUBSTRING(vs_date,1,7) as vs_month, SUM(vs_count) as cnt
|
||||
from {$g4['visit_sum_table']}
|
||||
where vs_date between '$fr_date' and '$to_date'
|
||||
group by vs_month
|
||||
order by vs_month desc ";
|
||||
from {$g4['visit_sum_table']}
|
||||
where vs_date between '{$fr_date}' and '{$to_date}'
|
||||
group by vs_month
|
||||
order by vs_month desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$arr[$row['vs_month']] = $row['cnt'];
|
||||
$arr[$row['vs_month']] = $row[cnt];
|
||||
|
||||
if ($row['cnt'] > $max) $max = $row['cnt'];
|
||||
if ($row[cnt] > $max) $max = $row[cnt];
|
||||
|
||||
$sum_count += $row['cnt'];
|
||||
$sum_count += $row[cnt];
|
||||
}
|
||||
?>
|
||||
|
||||
<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>합계</td>
|
||||
<td><?=number_format($sum_count)?></td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
@ -54,30 +58,29 @@ if (count($arr)) {
|
||||
$s_rate = number_format($rate, 1);
|
||||
|
||||
$bar = (int)($count / $max * 100);
|
||||
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
|
||||
?>
|
||||
|
||||
$list = ($k++%2);
|
||||
echo "
|
||||
<tr class='list$list ht center'>
|
||||
<td><a href='./visit_date.php?fr_date=$key-01&to_date=$key-31' class=tt>$key</a></td>
|
||||
<td>".number_format($value)."</td>
|
||||
<td>$s_rate</td>
|
||||
<td align=left>$graph</td>
|
||||
</tr>";
|
||||
<tr>
|
||||
<td><a href="./visit_date.php?fr_date=<?=$key?>-01&to_date=<?=$key?>-31"><?=$key?></a></td>
|
||||
<td><?=number_format($value)?></td>
|
||||
<td><?=$s_rate?></td>
|
||||
<td>
|
||||
<div class="visit_graph">
|
||||
<span style="width:<?=$bar?>%"></span>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
echo "
|
||||
<tr><td colspan='$colspan' class='line2'></td></tr>
|
||||
<tr class='bgcol2 bold col1 ht center'>
|
||||
<td>합계</td>
|
||||
<td>".number_format($sum_count)."</td>
|
||||
<td colspan=2> </td>
|
||||
</tr>";
|
||||
|
||||
} else {
|
||||
echo "<tr><td colspan='$colspan' height=100 align=center>자료가 없습니다.</td></tr>";
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?
|
||||
|
||||
@ -4,29 +4,12 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$g4['title'] = 'OS별 접속자현황';
|
||||
$g4['title'] = 'OS별 접속자집계';
|
||||
include_once('./admin.head.php');
|
||||
include_once('./visit.sub.php');
|
||||
|
||||
$colspan = 5;
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="row">순위</th>
|
||||
<th scope="row">OS</th>
|
||||
<th scope="row">방문자수</th>
|
||||
<th scope="row">비율(%)</th>
|
||||
<th scope="row">그래프</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
<?
|
||||
$max = 0;
|
||||
$sum_count = 0;
|
||||
$sql = " select * from {$g4['visit_table']}
|
||||
@ -41,7 +24,28 @@ while ($row=sql_fetch_array($result)) {
|
||||
|
||||
$sum_count++;
|
||||
}
|
||||
?>
|
||||
|
||||
<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="2">합계</td>
|
||||
<td><?=$sum_count?></td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
@ -66,31 +70,23 @@ if (count($arr)) {
|
||||
$s_rate = number_format($rate, 1);
|
||||
|
||||
$bar = (int)($count / $max * 100);
|
||||
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
|
||||
?>
|
||||
|
||||
$list = ($k++%2);
|
||||
echo "
|
||||
<tr class='list$list ht center'>
|
||||
<td>$no</td>
|
||||
<td>$key</td>
|
||||
<td>$count</td>
|
||||
<td>$s_rate</td>
|
||||
<td align=left>$graph</td>
|
||||
</tr>";
|
||||
<tr>
|
||||
<td><?=$no?></td>
|
||||
<td><?=$key?></td>
|
||||
<td><?=$count?></td>
|
||||
<td><?=$s_rate?></td>
|
||||
<td><?=$graph?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
echo "
|
||||
<tr><td colspan='$colspan' class='line2'></td></tr>
|
||||
<tr class='bgcol2 bold col1 ht center'>
|
||||
<td colspan=2>합계</td>
|
||||
<td>$sum_count</td>
|
||||
<td colspan=2> </td>
|
||||
</tr>";
|
||||
} else {
|
||||
echo "<tr><td colspan='$colspan' height=100 align=center>자료가 없습니다.</td></tr>";
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?
|
||||
|
||||
@ -4,43 +4,46 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$g4['title'] = '요일별 접속자현황';
|
||||
$g4['title'] = '요일별 접속자집계';
|
||||
include_once('./admin.head.php');
|
||||
include_once('./visit.sub.php');
|
||||
|
||||
$colspan = 4;
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="row">요일</th>
|
||||
<th scope="row">방문자수</th>
|
||||
<th scope="row">비율(%)</th>
|
||||
<th scope="row">그래프</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
<?
|
||||
$weekday = array ('월', '화', '수', '목', '금', '토', '일');
|
||||
|
||||
$sum_count = 0;
|
||||
$sql = " select WEEKDAY(vs_date) as weekday_date, SUM(vs_count) as cnt
|
||||
from {$g4['visit_sum_table']}
|
||||
where vs_date between '$fr_date' and '$to_date'
|
||||
group by weekday_date
|
||||
order by weekday_date ";
|
||||
from {$g4['visit_sum_table']}
|
||||
where vs_date between '{$fr_date}' and '{$to_date}'
|
||||
group by weekday_date
|
||||
order by weekday_date ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$arr[$row['weekday_date']] = $row['cnt'];
|
||||
$arr[$row['weekday_date']] = $row[cnt];
|
||||
|
||||
$sum_count += $row['cnt'];
|
||||
$sum_count += $row[cnt];
|
||||
}
|
||||
?>
|
||||
|
||||
<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>합계</td>
|
||||
<td><?=$sum_count?></td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$k = 0;
|
||||
if ($i) {
|
||||
for ($i=0; $i<7; $i++) {
|
||||
@ -48,30 +51,22 @@ if ($i) {
|
||||
|
||||
$rate = ($count / $sum_count * 100);
|
||||
$s_rate = number_format($rate, 1);
|
||||
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$rate%' height='18'>";
|
||||
?>
|
||||
|
||||
$list = ($k++%2);
|
||||
echo "
|
||||
<tr class='list$list ht center'>
|
||||
<td>$weekday[$i]</td>
|
||||
<td>$count</td>
|
||||
<td>$s_rate</td>
|
||||
<td align=left>$graph</td>
|
||||
</tr>";
|
||||
<tr>
|
||||
<td><?=$weekday[$i]?></td>
|
||||
<td><?=$count?></td>
|
||||
<td><?=$s_rate?></td>
|
||||
<td><?=$graph?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
echo "
|
||||
<tr><td colspan='$colspan' class='line2'></td></tr>
|
||||
<tr class='bgcol2 bold col1 ht center'>
|
||||
<td>합계</td>
|
||||
<td>$sum_count</td>
|
||||
<td colspan=2> </td>
|
||||
</tr>";
|
||||
} else {
|
||||
echo "<tr><td colspan='$colspan' height=100 align=center>자료가 없습니다.</td></tr>";
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?
|
||||
|
||||
@ -4,44 +4,48 @@ include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
$g4['title'] = '연도별 접속자현황';
|
||||
$g4['title'] = '연도별 접속자집계';
|
||||
include_once('./admin.head.php');
|
||||
include_once('./visit.sub.php');
|
||||
|
||||
$colspan = 4;
|
||||
?>
|
||||
|
||||
<table>
|
||||
<caption></caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="row">년</th>
|
||||
<th scope="row">방문자수</th>
|
||||
<th scope="row">비율(%)</th>
|
||||
<th scope="row">그래프</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tfoot>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
<?
|
||||
$max = 0;
|
||||
$sum_count = 0;
|
||||
$sql = " select SUBSTRING(vs_date,1,4) as vs_year, SUM(vs_count) as cnt
|
||||
from {$g4['visit_sum_table']}
|
||||
where vs_date between '$fr_date' and '$to_date'
|
||||
group by vs_year
|
||||
order by vs_year desc ";
|
||||
from {$g4['visit_sum_table']}
|
||||
where vs_date between '{$fr_date}' and '{$to_date}'
|
||||
group by vs_year
|
||||
order by vs_year desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$arr[$row['vs_year']] = $row['cnt'];
|
||||
$arr[$row['vs_year']] = $row[cnt];
|
||||
|
||||
if ($row['cnt'] > $max) $max = $row['cnt'];
|
||||
if ($row[cnt] > $max) $max = $row[cnt];
|
||||
|
||||
$sum_count += $row['cnt'];
|
||||
$sum_count += $row[cnt];
|
||||
}
|
||||
?>
|
||||
|
||||
<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>합계</td>
|
||||
<td><?=number_format($sum_count)?></td>
|
||||
<td colspan="2"></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$i = 0;
|
||||
$k = 0;
|
||||
$save_count = -1;
|
||||
@ -54,30 +58,22 @@ if (count($arr)) {
|
||||
$s_rate = number_format($rate, 1);
|
||||
|
||||
$bar = (int)($count / $max * 100);
|
||||
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
|
||||
?>
|
||||
|
||||
$list = ($k++%2);
|
||||
echo "
|
||||
<tr class='list$list ht center'>
|
||||
<td><a href='./visit_month.php?fr_date=$key-01-01&to_date=$key-12-31' class=tt>$key</a></td>
|
||||
<td>".number_format($value)."</td>
|
||||
<td>$s_rate</td>
|
||||
<td align=left>$graph</td>
|
||||
</tr>";
|
||||
<tr>
|
||||
<td><a href="./visit_month.php?fr_date=<?=$key?>-01-01&to_date=<?=$key?>-12-31"><?=$key?></a></td>
|
||||
<td><?=number_format($value)?></td>
|
||||
<td><?=$s_rate?></td>
|
||||
<td><?=$graph?></td>
|
||||
</tr>
|
||||
|
||||
<?
|
||||
}
|
||||
|
||||
echo "
|
||||
<tr><td colspan='$colspan' class='line2'></td></tr>
|
||||
<tr class='bgcol2 bold col1 ht center'>
|
||||
<td>합계</td>
|
||||
<td>".number_format($sum_count)."</td>
|
||||
<td colspan=2> </td>
|
||||
</tr>";
|
||||
} else {
|
||||
echo "<tr><td colspan='$colspan' height=100 align=center>자료가 없습니다.</td></tr>";
|
||||
echo '<tr><td colspan="'.$colspan.'" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<?
|
||||
|
||||
Reference in New Issue
Block a user