관리자 따옴표 수정

This commit is contained in:
chicpro
2012-11-05 11:55:58 +09:00
parent 41b1e2d8db
commit 1e974943c9
16 changed files with 480 additions and 480 deletions

View File

@ -1,8 +1,8 @@
<?
$sub_menu = "300300";
include_once("./_common.php");
include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
auth_check($auth[$sub_menu], 'r');
// 체크된 자료 삭제
if (is_array($_POST['chk'])) {
@ -10,11 +10,11 @@ if (is_array($_POST['chk'])) {
// 실제 번호를 넘김
$k = $chk[$i];
sql_query(" delete from $g4[popular_table] where pp_id = '{$_POST['pp_id'][$k]}' ", true);
sql_query(" delete from {$g4['popular_table']} where pp_id = '{$_POST['pp_id'][$k]}' ", true);
}
}
$sql_common = " from $g4[popular_table] a ";
$sql_common = " from {$g4['popular_table']} a ";
$sql_search = " where (1) ";
if ($stx) {
@ -26,7 +26,7 @@ if ($stx) {
case "pp_date" :
$sql_search .= " ($sfl = '$stx') ";
break;
default :
default :
$sql_search .= " ($sfl like '%$stx%') ";
break;
}
@ -44,24 +44,24 @@ $sql = " select count(*) as cnt
$sql_search
$sql_order ";
$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 페이지)
if ($page == '') { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
$from_record = ($page - 1) * $rows; // 시작 열을 구함
$sql = " select *
$sql = " select *
$sql_common
$sql_search
$sql_order
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 = 4;
?>
@ -81,7 +81,7 @@ var list_delete_php = 'popular_list.php';
<option value='pp_date'>등록일</option>
</select>
<input type=text name=stx class=ed required itemname='검색어' value='<?=$stx?>'>
<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>
@ -101,7 +101,7 @@ var list_delete_php = 'popular_list.php';
<tr><td colspan='<?=$colspan?>' class='line1'></td></tr>
<tr class='bgcol1 bold col1 ht center'>
<td><input type=checkbox name=chkall value="1" onclick="check_all(this.form)"></td>
<td><?=subject_sort_link("pp_word")?>검색어</a></td>
<td><?=subject_sort_link('pp_word')?>검색어</a></td>
<td>등록일</td>
<td>등록IP</td>
</tr>
@ -109,31 +109,31 @@ var list_delete_php = 'popular_list.php';
<?
for ($i=0; $row=sql_fetch_array($result); $i++) {
$word = get_text($row[pp_word]);
$word = get_text($row['pp_word']);
$list = $i % 2;
echo "<input type=hidden name=pp_id[$i] value='$row[pp_id]'>";
echo "<input type=hidden name=pp_id[$i] value='{$row['pp_id']}'>";
echo "<tr class='list$list col1 ht center'>";
echo "<td height=25><input type=checkbox name=chk[] value='$i'></td>";
echo "<td align='left'>&nbsp; <a href='$_SERVER[PHP_SELF]?sfl=pp_word&stx=$word'>$word</a></td>";
echo "<td>$row[pp_date]</td>";
echo "<td>$row[pp_ip]</td>";
echo "<td align='left'>&nbsp; <a href='{$_SERVER['PHP_SELF']}?sfl=pp_word&stx=$word'>$word</a></td>";
echo "<td>{$row['pp_date']}</td>";
echo "<td>{$row['pp_ip']}</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>";
@ -145,5 +145,5 @@ if ($stx)
</form>
<?
include_once("./admin.tail.php");
include_once('./admin.tail.php');
?>