diff --git a/adm/shop_admin/itemqalist.php b/adm/shop_admin/itemqalist.php
index c0be29bfa..34d2d4a67 100644
--- a/adm/shop_admin/itemqalist.php
+++ b/adm/shop_admin/itemqalist.php
@@ -1,11 +1,11 @@
-$sub_menu = "400660";
-include_once("./_common.php");
+$sub_menu = '400660';
+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');
$where = " where ";
$sql_search = "";
@@ -28,17 +28,17 @@ if (!$sst) {
$sod = "desc";
}
-$sql_common = " from $g4[yc4_item_qa_table] a
- left join $g4[yc4_item_table] b on (a.it_id = b.it_id)
- left join $g4[member_table] c on (a.mb_id = c.mb_id) ";
+$sql_common = " from {$g4['yc4_item_qa_table']} a
+ left join {$g4['yc4_item_table']} b on (a.it_id = b.it_id)
+ left join {$g4['member_table']} c on (a.mb_id = c.mb_id) ";
$sql_common .= $sql_search;
// 테이블의 전체 레코드수만 얻음
$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; // 시작 열을 구함
@@ -57,18 +57,18 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
- | 처음 |
+ '>처음 |
@@ -82,7 +82,7 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
-
+
|
건수 : echo $total_count ?> |
@@ -109,24 +109,24 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
- $row[iq_subject] = cut_str($row[iq_subject], 30, "...");
+ $row['iq_subject'] = cut_str($row['iq_subject'], 30, "...");
- $href = "$g4[shop_path]/item.php?it_id=$row[it_id]";
+ $href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
- $name = get_sideview($row[mb_id], $row[iq_name], $row[mb_email], $row[mb_homepage]);
+ $name = get_sideview($row['mb_id'], $row['iq_name'], $row['mb_email'], $row['mb_homepage']);
- $s_mod = icon("수정", "./itemqaform.php?w=u&iq_id=$row[iq_id]&$qstr");
- $s_del = icon("삭제", "javascript:del('./itemqaformupdate.php?w=d&iq_id=$row[iq_id]&$qstr');");
+ $s_mod = icon("수정", "./itemqaform.php?w=u&iq_id={$row['iq_id']}&$qstr");
+ $s_del = icon("삭제", "javascript:del('./itemqaformupdate.php?w=d&iq_id={$row['iq_id']}&$qstr');");
- $answer = $row[iq_answer] ? "Y" : " ";
+ $answer = $row['iq_answer'] ? "Y" : " ";
$list = $i%2;
echo "
- | ".get_it_image("{$row[it_id]}_s", 50, 50)." |
- ".cut_str($row[it_name],30)." |
+ ".get_it_image($row['it_id'].'_s', 50, 50)." |
+ ".cut_str($row['it_name'],30)." |
$name |
- $row[iq_subject] |
+ {$row['iq_subject']} |
$answer |
$s_mod $s_del |
";
@@ -143,11 +143,11 @@ if ($i == 0) {
| |
- =get_paging($config[cf_write_pages], $page, $total_page, "$_SERVER[PHP_SELF]?$qstr&page=");?> |
+ =get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?> |
-include_once ("$g4[admin_path]/admin.tail.php");
+include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>
diff --git a/adm/shop_admin/orderlist.php b/adm/shop_admin/orderlist.php
index 75bd2ce82..464ab11fd 100644
--- a/adm/shop_admin/orderlist.php
+++ b/adm/shop_admin/orderlist.php
@@ -183,7 +183,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$list = $i%2;
echo "
- | {$row['od_id']} |
+ {$row['od_id']} |
$mb_nick |
{$row['mb_id']} |