관리자 경로 수정
This commit is contained in:
@ -1,31 +1,31 @@
|
||||
<?
|
||||
$sub_menu = "400700";
|
||||
include_once("./_common.php");
|
||||
$sub_menu = '400700';
|
||||
include_once('./_common.php');
|
||||
|
||||
auth_check($auth[$sub_menu], "r");
|
||||
|
||||
$g4[title] = "내용관리";
|
||||
include_once ("$g4[admin_path]/admin.head.php");
|
||||
$g4['title'] = '내용관리';
|
||||
include_once (G4_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
$sql_common = " from $g4[yc4_content_table] ";
|
||||
$sql_common = " from {$g4['yc4_content_table']} ";
|
||||
|
||||
// 테이블의 전체 레코드수만 얻음
|
||||
$sql = " select count(*) as cnt " . $sql_common;
|
||||
$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 order by co_id limit $from_record, $config[cf_page_rows] ";
|
||||
$sql = "select * $sql_common order by co_id limit $from_record, {$config['cf_page_rows']} ";
|
||||
$result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<table width=100%>
|
||||
<tr>
|
||||
<td width=20%><a href='<?=$_SERVER[PHP_SELF]?>'>처음</a></td>
|
||||
<td width=20%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
|
||||
<td width=60% align=center> </td>
|
||||
<td width=20% align=right>건수 : <? echo $total_count ?> </td>
|
||||
</tr>
|
||||
@ -40,20 +40,20 @@ $result = sql_query($sql);
|
||||
<tr align=center class=ht>
|
||||
<td>ID</td>
|
||||
<td>제목</td>
|
||||
<td><a href='./contentform.php'><img src='<?=$g4[admin_path]?>/img/icon_insert.gif' border=0></a></td>
|
||||
<td><a href='./contentform.php'><img src='<?=G4_ADMIN_URL?>/img/icon_insert.gif' border=0></a></td>
|
||||
</tr>
|
||||
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
|
||||
<?
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++) {
|
||||
$s_mod = icon("수정", "./contentform.php?w=u&co_id=$row[co_id]");
|
||||
$s_del = icon("삭제", "javascript:del('./contentformupdate.php?w=d&co_id=$row[co_id]')");
|
||||
$s_vie = icon("보기", "$g4[shop_path]/content.php?co_id=$row[co_id]");
|
||||
$s_mod = icon("수정", "./contentform.php?w=u&co_id={$row['co_id']}");
|
||||
$s_del = icon("삭제", "javascript:del('./contentformupdate.php?w=d&co_id={$row['co_id']}')");
|
||||
$s_vie = icon("보기", G4_SHOP_URL."/content.php?co_id={$row['co_id']}");
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<tr class='list$list ht'>
|
||||
<td align=center>$row[co_id]</td>
|
||||
<td>".htmlspecialchars2($row[co_subject])."</td>
|
||||
<td align=center>{$row['co_id']}</td>
|
||||
<td>".htmlspecialchars2($row['co_subject'])."</td>
|
||||
<td align=center width=80>$s_mod $s_del $s_vie</td>
|
||||
</tr>";
|
||||
}
|
||||
@ -68,11 +68,11 @@ if ($i == 0) {
|
||||
<table width=100%>
|
||||
<tr bgcolor=#ffffff>
|
||||
<td width=50%></td>
|
||||
<td width=50% align=right><?=get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?></td>
|
||||
<td width=50% align=right><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
<?
|
||||
include_once ("$g4[admin_path]/admin.tail.php");
|
||||
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user