관리자 따옴표 수정

This commit is contained in:
chicpro
2012-11-05 13:32:28 +09:00
parent 1e974943c9
commit 1288772680
15 changed files with 238 additions and 238 deletions

View File

@ -1,12 +1,12 @@
<?
$sub_menu = "200800";
include_once("./_common.php");
include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
auth_check($auth[$sub_menu], 'r');
$g4[title] = "시간별 접속자현황";
include_once("./admin.head.php");
include_once("./visit.sub.php");
$g4['title'] = '시간별 접속자현황';
include_once('./admin.head.php');
include_once('./visit.sub.php');
$colspan = 4;
?>
@ -27,18 +27,18 @@ $colspan = 4;
<?
$max = 0;
$sum_count = 0;
$sql = " select SUBSTRING(vi_time,1,2) as vi_hour, count(vi_id) as cnt
from $g4[visit_table]
$sql = " select SUBSTRING(vi_time,1,2) as vi_hour, count(vi_id) as cnt
from {$g4['visit_table']}
where vi_date between '$fr_date' and '$to_date'
group by vi_hour
order by vi_hour ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
$arr[$row[vi_hour]] = $row[cnt];
$arr[$row['vi_hour']] = $row['cnt'];
if ($row[cnt] > $max) $max = $row[cnt];
if ($row['cnt'] > $max) $max = $row['cnt'];
$sum_count += $row[cnt];
$sum_count += $row['cnt'];
}
$k = 0;
@ -51,7 +51,7 @@ if ($i) {
$s_rate = number_format($rate, 1);
$bar = (int)($count / $max * 100);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$bar%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
$list = ($k++%2);
echo "
@ -78,5 +78,5 @@ if ($i) {
</table><br><br>
<?
include_once("./admin.tail.php");
include_once('./admin.tail.php');
?>