관리자 경로 수정 작업 중
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
<?
|
||||
$sub_menu = "400410";
|
||||
include_once("./_common.php");
|
||||
$sub_menu = '400410';
|
||||
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 = "";
|
||||
@ -26,17 +26,17 @@ if ($sel_field == "") $sel_field = "od_id";
|
||||
if ($sort1 == "") $sort1 = "od_id";
|
||||
if ($sort2 == "") $sort2 = "desc";
|
||||
|
||||
$sql_common = " from $g4[yc4_order_table] a
|
||||
left join $g4[yc4_cart_table] b on (a.on_uid = b.on_uid)
|
||||
left join $g4[yc4_item_table] c on (b.it_id = c.it_id)
|
||||
$sql_common = " from {$g4['yc4_order_table']} a
|
||||
left join {$g4['yc4_cart_table']} b on (a.on_uid = b.on_uid)
|
||||
left join {$g4['yc4_item_table']} c on (b.it_id = c.it_id)
|
||||
$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; // 시작 열을 구함
|
||||
@ -81,7 +81,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<input type=hidden name=page value="<? echo $page ?>">
|
||||
<table width=100% cellpadding=4 cellspacing=0>
|
||||
<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>
|
||||
<!-- <input type=button value='주문' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=주문"?>'">
|
||||
<input type=button value='준비' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=준비"?>'">
|
||||
@ -91,13 +91,13 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
<input type=button value='반품' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=반품"?>'">
|
||||
<input type=button value='품절' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=품절"?>'"> -->
|
||||
<!-- utf-8 에서 처리되도록 변경 -->
|
||||
<input type=button value='주문' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('주문')?>'">
|
||||
<input type=button value='준비' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('준비')?>'">
|
||||
<input type=button value='배송' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('배송')?>'">
|
||||
<input type=button value='완료' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('완료')?>'">
|
||||
<input type=button value='취소' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('취소')?>'">
|
||||
<input type=button value='반품' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('반품')?>'">
|
||||
<input type=button value='품절' class=btn1 onclick="location.href='<?="$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('품절')?>'">
|
||||
<input type=button value='주문' class=btn1 onclick="location.href='<?=$_SERVER['PHP_SELF']."?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('주문')?>'">
|
||||
<input type=button value='준비' class=btn1 onclick="location.href='<?=$_SERVER['PHP_SELF']."?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('준비')?>'">
|
||||
<input type=button value='배송' class=btn1 onclick="location.href='<?=$_SERVER['PHP_SELF']."?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('배송')?>'">
|
||||
<input type=button value='완료' class=btn1 onclick="location.href='<?=$_SERVER['PHP_SELF']."?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('완료')?>'">
|
||||
<input type=button value='취소' class=btn1 onclick="location.href='<?=$_SERVER['PHP_SELF']."?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('취소')?>'">
|
||||
<input type=button value='반품' class=btn1 onclick="location.href='<?=$_SERVER['PHP_SELF']."?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('반품')?>'">
|
||||
<input type=button value='품절' class=btn1 onclick="location.href='<?=$_SERVER['PHP_SELF']."?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=".urlencode('품절')?>'">
|
||||
|
||||
<select name=sel_field>
|
||||
<option value='od_id'>주문번호
|
||||
@ -110,7 +110,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
</select>
|
||||
<input type=hidden name=save_search value='<?=$search?>'>
|
||||
<input type=text name=search value='<? echo $search ?>' autocomplete="off">
|
||||
<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 ?> </td>
|
||||
</tr>
|
||||
@ -150,35 +150,35 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
|
||||
$od_deposit_name = "";
|
||||
if ($row[od_deposit_name] != "")
|
||||
$od_deposit_name = "title='입금자 : $row[od_deposit_name]'";
|
||||
if ($row['od_deposit_name'] != "")
|
||||
$od_deposit_name = "title='입금자 : {$row['od_deposit_name']}'";
|
||||
|
||||
$href = "$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=c.it_id&search=$row[it_id]";
|
||||
$it_name = "<a href='$href'>".cut_str($row[it_name],35)."</a><br>";
|
||||
$it_name .= print_item_options($row[it_id], $row[it_opt1], $row[it_opt2], $row[it_opt3], $row[it_opt4], $row[it_opt5], $row[it_opt6]);
|
||||
$it_name = "<a href='$href'>".cut_str($row['it_name'],35)."</a><br>";
|
||||
$it_name .= print_item_options($row['it_id'], $row['it_opt1'], $row['it_opt2'], $row['it_opt3'], $row['it_opt4'], $row['it_opt5'], $row['it_opt6']);
|
||||
|
||||
$s_mod = icon("수정", "./orderform.php?od_id=$row[od_id]");
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$row['od_id']}");
|
||||
|
||||
$list = $i%2;
|
||||
echo "
|
||||
<tr class='list$list center'>
|
||||
<td align=center title='주문일시 : $row[od_time]'><a href='$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=od_id&search=$row[od_id]'>$row[od_id]</a></td>
|
||||
<td align=center $od_deposit_name><a href='$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=od_name&search=$row[od_name]'>".cut_str($row[od_name],10,"")."</a></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>
|
||||
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image("{$row[it_id]}_s", 50, 50)."</a></td>
|
||||
<td align=center title='주문일시 : {$row['od_time']}'><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_id&search={$row['od_id']}'>{$row['od_id']}</a></td>
|
||||
<td align=center $od_deposit_name><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$row['od_name']}'>".cut_str($row['od_name'],10,"")."</a></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>
|
||||
<td style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($row['it_id'].'_s', 50, 50)."</a></td>
|
||||
<td align=left>$it_name</td>
|
||||
<td align=right>".number_format($row[ct_amount])." </td>
|
||||
<td align=right>".number_format($row['ct_amount'])." </td>
|
||||
<td align=center>$row[ct_qty]</td>
|
||||
<td align=right>".number_format($row[ct_sub_amount])." </td>
|
||||
<td align=right>".number_format($row[ct_sub_point])." </td>
|
||||
<td align=center><a href='$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search=$row[ct_status]'>$row[ct_status]</a></td>
|
||||
<td align=right>".number_format($row['ct_sub_amount'])." </td>
|
||||
<td align=right>".number_format($row['ct_sub_point'])." </td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search={$row['ct_status']}'>{$row['ct_status']}</a></td>
|
||||
<td align=center>$s_mod</td>
|
||||
</tr>";
|
||||
|
||||
$tot_amount += $row[ct_amount];
|
||||
$tot_qty += $row[ct_qty];
|
||||
$tot_sub_amount += $row[ct_sub_amount];
|
||||
$tot_sub_point += $row[ct_sub_point];
|
||||
$tot_amount += $row['ct_amount'];
|
||||
$tot_qty += $row['ct_qty'];
|
||||
$tot_sub_amount += $row['ct_sub_amount'];
|
||||
$tot_sub_point += $row['ct_sub_point'];
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
@ -199,7 +199,7 @@ if ($i == 0)
|
||||
<table width=100%>
|
||||
<tr>
|
||||
<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>
|
||||
</form>
|
||||
@ -211,5 +211,5 @@ f.sel_field.value = '<? echo $sel_field ?>';
|
||||
</script>
|
||||
|
||||
<?
|
||||
include_once ("$g4[admin_path]/admin.tail.php");
|
||||
include_once (G4_ADMIN_PATH.'/admin.tail.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user