관리가 경로 수정

This commit is contained in:
chicpro
2013-03-19 17:32:21 +09:00
parent c2ff7fa460
commit 31b6189e06
2 changed files with 26 additions and 26 deletions

View File

@ -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";
<table width=100% cellpadding=4 cellspacing=0>
<input type=hidden name=page value="<?=$page?>">
<tr>
<td width=10%><a href='<?=$_SERVER[PHP_SELF]?>'>처음</a></td>
<td width=10%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
<td width=80% align=center>
<select name="sca">
<option value=''>전체분류
<?
$sql1 = " select ca_id, ca_name from $g4[yc4_category_table] order by ca_id ";
$sql1 = " select ca_id, ca_name from {$g4['yc4_category_table']} order by ca_id ";
$result1 = sql_query($sql1);
for ($i=0; $row1=mysql_fetch_array($result1); $i++) {
$len = strlen($row1[ca_id]) / 2 - 1;
$len = strlen($row1['ca_id']) / 2 - 1;
$nbsp = "";
for ($i=0; $i<$len; $i++) $nbsp .= "&nbsp;&nbsp;&nbsp;";
echo "<option value='$row1[ca_id]'>$nbsp$row1[ca_name]\n";
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
}
?>
</select>
@ -82,7 +82,7 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
<input type=hidden name=save_stx value='<?=$stx?>'>
<input type=text name=stx value='<?=$stx?>'>
<input type=image src='<?=$g4[admin_path]?>/img/btn_search.gif' align=absmiddle>
<input type=image src='<?=G4_ADMIN_URL?>/img/btn_search.gif' align=absmiddle>
</td>
<td width=10% align=right>건수 : <? echo $total_count ?>&nbsp;</td>
</tr>
@ -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" : "&nbsp;";
$answer = $row['iq_answer'] ? "Y" : "&nbsp;";
$list = $i%2;
echo "
<tr class='list$list'>
<td align=center style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image("{$row[it_id]}_s", 50, 50)."</a></td>
<td><a href='$href'>".cut_str($row[it_name],30)."</a></td>
<td align=center style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'].'_s', 50, 50)."</a></td>
<td><a href='$href'>".cut_str($row['it_name'],30)."</a></td>
<td align=center>$name</td>
<td>$row[iq_subject]</td>
<td>{$row['iq_subject']}</td>
<td align=center>$answer</td>
<td align=center>$s_mod $s_del</td>
</tr>";
@ -143,11 +143,11 @@ if ($i == 0) {
<table width=100%>
<tr>
<td width=50%>&nbsp;</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');
?>

View File

@ -183,7 +183,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$list = $i%2;
echo "
<tr class='list$list ht'>
<td align=center title='주문일시 : {$row['od_time']}'><a href='"G4_SHOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&on_uid={$row['on_uid']}'>{$row['od_id']}</a></td>
<td align=center title='주문일시 : {$row['od_time']}'><a href='".G4_SHOP_URL."/orderinquiryview.php?od_id={$row['od_id']}&on_uid={$row['on_uid']}'>{$row['od_id']}</a></td>
<!-- <td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$row['od_name']}'><span title='$od_deposit_name'>".cut_str($row['od_name'],8,"")."</span></a></td> -->
<td align=center>$mb_nick</td>
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=mb_id&search={$row['mb_id']}'>{$row['mb_id']}</a></td>