diff --git a/adm/admin.tail.php b/adm/admin.tail.php index e30b0949f..cf8887a65 100644 --- a/adm/admin.tail.php +++ b/adm/admin.tail.php @@ -17,7 +17,6 @@ if (!defined("_GNUBOARD_")) exit; - '' and pp_date between '{$fr_date}' and ' $sql_group = " group by pp_word "; $sql_order = " order by cnt desc "; -$sql = " select pp_word - {$sql_common} - {$sql_search} - {$sql_group} "; +$sql = " select pp_word {$sql_common} {$sql_search} {$sql_group} "; $result = sql_query($sql); $total_count = mysql_num_rows($result); @@ -26,12 +23,7 @@ $total_page = ceil($total_count / $rows); // 전체 페이지 계산 if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지) $from_record = ($page - 1) * $rows; // 시작 열을 구함 -$sql = " select pp_word, count(*) as cnt - {$sql_common} - {$sql_search} - {$sql_group} - {$sql_order} - limit {$from_record}, {$rows} "; +$sql = " select pp_word, count(*) as cnt {$sql_common} {$sql_search} {$sql_group} {$sql_order} limit {$from_record}, {$rows} "; $result = sql_query($sql); $listall = ''; @@ -97,15 +89,7 @@ if ($i == 0) -
- -
- -document.fsearch.sfl.value = '$sfl';"; +echo get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page="); ?> diff --git a/head.php b/head.php index 2d0534bb8..32f016bc0 100644 --- a/head.php +++ b/head.php @@ -1,4 +1,4 @@ - + +