관리자 따옴표 수정
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
<?
|
||||
$sub_menu = "300400";
|
||||
include_once("./_common.php");
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
auth_check($auth[$sub_menu], 'r');
|
||||
|
||||
if (empty($fr_date)) $fr_date = $g4[time_ymd];
|
||||
if (empty($to_date)) $to_date = $g4[time_ymd];
|
||||
if (empty($fr_date)) $fr_date = $g4['time_ymd'];
|
||||
if (empty($to_date)) $to_date = $g4['time_ymd'];
|
||||
|
||||
$qstr = "fr_date=$fr_date&to_date=$to_date";
|
||||
|
||||
$sql_common = " from $g4[popular_table] a ";
|
||||
$sql_common = " from {$g4['popular_table']} a ";
|
||||
$sql_search = " where trim(pp_word) <> '' and pp_date between '$fr_date' and '$to_date' ";
|
||||
$sql_group = " group by pp_word ";
|
||||
$sql_order = " order by cnt desc ";
|
||||
@ -21,12 +21,12 @@ $sql = " select pp_word
|
||||
$result = sql_query($sql);
|
||||
$total_count = mysql_num_rows($result);
|
||||
|
||||
$rows = $config[cf_page_rows];
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page == "") { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select pp_word, count(*) as cnt
|
||||
$sql = " select pp_word, count(*) as cnt
|
||||
$sql_common
|
||||
$sql_search
|
||||
$sql_group
|
||||
@ -34,10 +34,10 @@ $sql = " select pp_word, count(*) as cnt
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$listall = "<a href='$_SERVER[PHP_SELF]'>처음</a>";
|
||||
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">처음</a>';
|
||||
|
||||
$g4[title] = "인기검색어순위";
|
||||
include_once("./admin.head.php");
|
||||
$g4['title'] = '인기검색어순위';
|
||||
include_once('./admin.head.php');
|
||||
|
||||
$colspan = 3;
|
||||
?>
|
||||
@ -57,7 +57,7 @@ $colspan = 3;
|
||||
<style type="text/css">
|
||||
<!--
|
||||
.ui-datepicker { font:12px dotum; }
|
||||
.ui-datepicker select.ui-datepicker-month,
|
||||
.ui-datepicker select.ui-datepicker-month,
|
||||
.ui-datepicker select.ui-datepicker-year { width: 70px;}
|
||||
.ui-datepicker-trigger { margin:0 0 -5px 2px; }
|
||||
-->
|
||||
@ -89,7 +89,7 @@ jQuery(function($){
|
||||
|
||||
$('#fr_date, #to_date').datepicker({
|
||||
showOn: 'button',
|
||||
buttonImage: '<?=$g4[path]?>/img/calendar.gif',
|
||||
buttonImage: "<?=$g4['path']?>/img/calendar.gif",
|
||||
buttonImageOnly: true,
|
||||
buttonText: "달력",
|
||||
changeMonth: true,
|
||||
@ -97,7 +97,7 @@ jQuery(function($){
|
||||
showButtonPanel: true,
|
||||
yearRange: 'c-99:c+99',
|
||||
maxDate: '+0d'
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?
|
||||
@ -109,11 +109,11 @@ jQuery(function($){
|
||||
<tr>
|
||||
<td width=50% align=left><?=$listall?> (건수 : <?=number_format($total_count)?>개)</td>
|
||||
<td width=50% align=right>
|
||||
기간 :
|
||||
기간 :
|
||||
<input type='text' id='fr_date' name='fr_date' size=11 maxlength=10 value='<?=$fr_date?>' class=ed>
|
||||
-
|
||||
<input type='text' id='to_date' name='to_date' size=11 maxlength=10 value='<?=$to_date?>' class=ed>
|
||||
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle></td>
|
||||
<input type=image src='<?=$g4['admin_path']?>/img/btn_search.gif' align=absmiddle></td>
|
||||
</tr>
|
||||
</form>
|
||||
</table>
|
||||
@ -139,30 +139,30 @@ jQuery(function($){
|
||||
<?
|
||||
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)));
|
||||
|
||||
$list = $i % 2;
|
||||
echo "<tr class='list$list col1 ht center'>";
|
||||
echo "<td align='left'> $word</td>";
|
||||
echo "<td>$row[cnt]</td>";
|
||||
echo "<td>{$row['cnt']}</td>";
|
||||
echo "<td>$rank</td>";
|
||||
echo "</tr>";
|
||||
echo "<tr class='list$list col1 ht center'>";
|
||||
echo "</tr>\n";
|
||||
}
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
echo "<tr><td colspan='$colspan' align=center height=100 bgcolor=#ffffff>자료가 없습니다.</td></tr>";
|
||||
echo "<tr><td colspan='$colspan' align=center height=100 bgcolor=#ffffff>자료가 없습니다.</td></tr>";
|
||||
|
||||
echo "<tr><td colspan='$colspan' class='line2'></td></tr>";
|
||||
echo "</table>";
|
||||
|
||||
$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=");
|
||||
echo "<table width=100% cellpadding=3 cellspacing=1>";
|
||||
echo "<tr><td width=50%>";
|
||||
|
||||
if ($is_admin == "super")
|
||||
if ($is_admin == 'super')
|
||||
echo "<input type=button class='btn1' value='선택삭제' onclick=\"btn_check(this.form, 'delete')\">";
|
||||
|
||||
echo "</td>";
|
||||
@ -174,5 +174,5 @@ if ($stx)
|
||||
</form>
|
||||
|
||||
<?
|
||||
include_once("./admin.tail.php");
|
||||
include_once('./admin.tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user