Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
chicpro
2013-04-11 14:50:32 +09:00
6 changed files with 294 additions and 190 deletions

View File

@ -6,10 +6,19 @@ $max_limit = 7; // 몇행 출력할 것인지?
$g4['title'] = ' 쇼핑몰관리';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$pg_anchor ="<ul class=\"anchor\">
<li><a href=\"#frm_rdy\">입금완료미배송내역</a></li>
<li><a href=\"#frm_wait\">미입금주문내역</a></li>
<li><a href=\"#frm_ps\">사용후기</a></li>
<li><a href=\"#frm_qna\">상품문의</a></li>
</ul>
";
?>
<section class="cbox">
<section id="frm_rdy" class="cbox">
<h2>입금완료 미배송내역</h2>
<?=$pg_anchor?>
<table>
<thead>
@ -55,11 +64,11 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
}
?>
<tr>
<td><?=$row['od_id']?></td>
<td><?=$name?></td>
<td><?=display_amount($row['receiptamount'])?></td>
<td><?=$settle_method?></td>
<td><a href="./orderform.php?od_id=<?=$row['od_id']?>">수정</a></td>
<td class="td_odrnum2"><?=$row['od_id']?></td>
<td class="td_name"><?=$name?></td>
<td class="td_bignum"><?=display_amount($row['receiptamount'])?></td>
<td class="td_payby"><?=$settle_method?></td>
<td class="td_mng"><a href="./orderform.php?od_id=<?=$row['od_id']?>">수정</a></td>
</tr>
<?
}
@ -73,8 +82,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</div>
</section>
<section class="cbox">
<section id="frm_wait" class="cbox">
<h2>미입금 주문내역</h2>
<?=$pg_anchor?>
<table>
<thead>
@ -119,11 +129,11 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
}
?>
<tr>
<td><a href="./orderstatuslist.php?sort1=od_id&amp;sel_field=od_id&amp;search=<?=$row['od_id']?>"><?=$row['od_id']?></a></td>
<td><?=$name?></td>
<td><?=display_amount($row['orderamount'])?></td>
<td><?=$settle_method?></td>
<td><a href="./orderform.php?od_id=<?=$row['od_id']?>">수정</a></td>
<td class="td_odrnum2"><a href="./orderstatuslist.php?sort1=od_id&amp;sel_field=od_id&amp;search=<?=$row['od_id']?>"><?=$row['od_id']?></a></td>
<td class="td_name"><?=$name?></td>
<td class="td_bignum"><?=display_amount($row['orderamount'])?></td>
<td class="td_payby"><?=$settle_method?></td>
<td class="td_mng"><a href="./orderform.php?od_id=<?=$row['od_id']?>">수정</a></td>
</tr>
<?
}
@ -137,8 +147,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</div>
</section>
<section class="cbox">
<section id="frm_ps" class="cbox">
<h2>사용후기</h2>
<?=$pg_anchor?>
<table>
<thead>
@ -163,9 +174,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$name = get_sideview($row['mb_id'], get_text($row['is_name']), $row1['mb_email'], $row1['mb_homepage']);
?>
<tr>
<td><?=$name?></td>
<td class="td_name"><?=$name?></td>
<td><?=cut_str($row['is_subject'],40)?></td>
<td><a href="./itempsform.php?w=u&amp;is_id=<?=$row['is_id']?>">수정</a></td>
<td class="td_mng"><a href="./itempsform.php?w=u&amp;is_id=<?=$row['is_id']?>">수정</a></td>
</tr>
<?
}
@ -179,8 +190,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
</div>
</section>
<section class="cbox">
<section id="frm_qna" class="cbox">
<h2>상품문의</h2>
<?=$pg_anchor?>
<table>
<thead>
@ -205,9 +217,9 @@ include_once (G4_ADMIN_PATH.'/admin.head.php');
$name = get_sideview($row['mb_id'], get_text($row['iq_name']), $row1['mb_email'], $row1['mb_homepage']);
?>
<tr>
<td><?=$name?></td>
<td class="td_name"><?=$name?></td>
<td><?=cut_str($row['iq_subject'],40)?></td>
<td><a href="./itemqaform.php?w=u&amp;iq_id=<?=$row['iq_id']?>">수정</a></td>
<td class="td_mng"><a href="./itemqaform.php?w=u&amp;iq_id=<?=$row['iq_id']?>">수정</a></td>
</tr>";
<?
}

View File

@ -62,7 +62,7 @@ $qstr = "$qstr&sca=$sca&save_stx=$stx";
<fieldset>
<legend>상품문의 검색</legend>
<select name="sca">
<option value=''>전체분류</option>
<option value='' title="검색분류">전체분류</option>
<?
$sql1 = " select ca_id, ca_name from {$g4['shop_category_table']} order by ca_id ";
$result1 = sql_query($sql1);

View File

@ -54,96 +54,106 @@ $result = sql_query($sql);
$qstr1 = "$qstr&sort1=$sort1&sort2=$sort2&fr_date=$fr_date&to_date=$to_date&sel_ca_id=$sel_ca_id";
?>
<table width=100% cellpadding=4 cellspacing=0>
<form name=flist>
<input type=hidden name=doc value="<? echo $doc ?>">
<input type=hidden name=sort1 value="<? echo $sort1 ?>">
<input type=hidden name=sort2 value="<? echo $sort2 ?>">
<input type=hidden name=page value="<? echo $page ?>">
<tr>
<td width=10%><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></td>
<td width=80% align=center>
<select name="sel_ca_id">
<option value=''>전체분류
<?
$sql1 = " select ca_id, ca_name from {$g4['shop_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;
$nbsp = "";
for ($i=0; $i<$len; $i++) $nbsp .= "&nbsp;&nbsp;&nbsp;";
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
}
?>
</select>
<script> document.flist.sel_ca_id.value = '<?=$sel_ca_id?>';</script>
<style type="text/css">
.itemsellrank{text-align:center}
</style>
기간 : <input type=text name=fr_date size=8 maxlength=8 itemname='기간' value='<?=$fr_date?>'> ~ <input type=text name=to_date size=8 maxlength=8 itemname='기간' value='<?=$to_date?>'>
<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>
</table>
<form name="flist">
<input type="hidden" name="doc" value="<? echo $doc ?>">
<input type="hidden" name="sort1" value="<? echo $sort1 ?>">
<input type="hidden" name="sort2" value="<? echo $sort2 ?>">
<input type="hidden" name="page" value="<? echo $page ?>">
<p><a href='<?=$_SERVER['PHP_SELF']?>'>처음</a></p>
<fieldset>
<legend>상품판매순위 검색</legend>
<select name="sel_ca_id" title="검색분류">
<option value=''>전체분류</option>
<?
$sql1 = " select ca_id, ca_name from {$g4['shop_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;
$nbsp = "";
for ($i=0; $i<$len; $i++) $nbsp .= "&nbsp;&nbsp;&nbsp;";
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
}
?>
</select>
<script> document.flist.sel_ca_id.value = '<?=$sel_ca_id?>';</script>
<table cellpadding=0 cellspacing=0 width=100%>
<tr><td colspan=20 height=3 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td width=50>순위</td>
<td width=80></td>
<td width=''>상품명</td>
<td width=50><a href='<?=title_sort("ct_status_1",1)."&$qstr1"?>'>쇼핑</a></td>
<td width=50><a href='<?=title_sort("ct_status_2",1)."&$qstr1"?>'>주문</a></td>
<td width=50><a href='<?=title_sort("ct_status_3",1)."&$qstr1"?>'>준비</a></td>
<td width=50><a href='<?=title_sort("ct_status_4",1)."&$qstr1"?>'>배송</a></td>
<td width=50><a href='<?=title_sort("ct_status_5",1)."&$qstr1"?>'>완료</a></td>
<td width=50><a href='<?=title_sort("ct_status_6",1)."&$qstr1"?>'>취소</a></td>
<td width=50><a href='<?=title_sort("ct_status_7",1)."&$qstr1"?>'>반품</a></td>
<td width=50><a href='<?=title_sort("ct_status_8",1)."&$qstr1"?>'>품절</a></td>
<td width=50><a href='<?=title_sort("ct_status_sum",1)."&$qstr1"?>'>합계</a></td>
</tr>
<tr><td colspan=20 height=1 bgcolor=#CCCCCC></td></tr>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
기간 : <input type="text" name="fr_date" value="<?=$fr_date?>" class="frm_input" size="8" maxlength="8"> ~ <input type="text" name="to_date" value="<?=$to_date?>" class="frm_input" size="8" maxlength="8">
<input type="submit" value="검색" class="btn_submit">
</fieldset>
</form>
<p>건수 : <? echo $total_count ?></p>
<section class="cbox">
<h2>상품판매순위</h2>
<p>*수량을 합산하여 순위를 출력합니다.</p>
<table class="frm_basic">
<colgroup>
<col class="grid_1">
<col class="grid_8">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
<col class="grid_1">
</colgroup>
<thead>
<tr>
<th scope="col">순위</th>
<th scope="col">상품평</th>
<th scope="col"><a href="<?=title_sort("ct_status_1",1)."&$qstr1"?>">쇼핑</a></th>
<th scope="col"><a href="<?=title_sort("ct_status_2",1)."&$qstr1"?>">주문</a></th>
<th scope="col"><a href="<?=title_sort("ct_status_3",1)."&$qstr1"?>">준비</a></th>
<th scope="col"><a href="<?=title_sort("ct_status_4",1)."&$qstr1"?>">배송</a></th>
<th scope="col"><a href="<?=title_sort("ct_status_5",1)."&$qstr1"?>">완료</a></th>
<th scope="col"><a href="<?=title_sort("ct_status_6",1)."&$qstr1"?>">취소</a></th>
<th scope="col"><a href="<?=title_sort("ct_status_7",1)."&$qstr1"?>">반품</a></th>
<th scope="col"><a href="<?=title_sort("ct_status_8",1)."&$qstr1"?>">품절</a></th>
<th scope="col"><a href="<?=title_sort("ct_status_sum",1)."&$qstr1"?>">합계</a></th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
$num = $rank + $i + 1;
$num = $rank + $i + 1;
$list = $i%2;
echo "
<tr class='list$list center'>
<td>$num</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><a href='$href'>".cut_str($row['it_name'],30)."</a></td>
<td>".$row['ct_status_1']."</td>
<td>".$row['ct_status_2']."</td>
<td>".$row['ct_status_3']."</td>
<td>".$row['ct_status_4']."</td>
<td>".$row['ct_status_5']."</td>
<td>".$row['ct_status_6']."</td>
<td>".$row['ct_status_7']."</td>
<td>".$row['ct_status_8']."</td>
<td>".$row['ct_status_sum']."</td>
</tr><tr><td colspan=20 height=1 bgcolor=F5F5F5></td></tr>";
}
$list = $i%2;
?>
<tr>
<td class="itemsellrank"><?=$num?></td>
<td><a href="<?=$href?>"><?=get_it_image($row['it_id'].'_s', 50, 50)?><?=cut_str($row['it_name'],30)?></a></td>
<td class="itemsellrank"><?=$row['ct_status_1']?></td>
<td class="itemsellrank"><?=$row['ct_status_2']?></td>
<td class="itemsellrank"><?=$row['ct_status_3']?></td>
<td class="itemsellrank"><?=$row['ct_status_4']?></td>
<td class="itemsellrank"><?=$row['ct_status_5']?></td>
<td class="itemsellrank"><?=$row['ct_status_6']?></td>
<td class="itemsellrank"><?=$row['ct_status_7']?></td>
<td class="itemsellrank"><?=$row['ct_status_8']?></td>
<td class="itemsellrank"><?=$row['ct_status_sum']?></td>
</tr>
<?
}
if ($i == 0) {
echo "<tr><td colspan=20 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
<tr><td colspan=20 height=1 bgcolor=CCCCCC></td></tr>
</table>
if ($i == 0) {
echo '<tr><td colspan="20" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';
}
?>
</tbody>
</table>
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr1&page=");?>
</section>
<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']}?$qstr1&page=");?></td>
</tr>
</table>
* 수량을 합산하여 순위를 출력합니다.
<?
include_once (G4_ADMIN_PATH.'/admin.tail.php');
?>

View File

@ -4,7 +4,7 @@ include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
$g4['title'] = '주문서관리';
$g4['title'] = '주문내역';
include_once (G4_ADMIN_PATH.'/admin.head.php');
$where = " where ";
@ -71,18 +71,17 @@ for ($i=0; $row=mysql_fetch_array($result); $i++)
$tot_misu += $row['misu'];
}
//$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search";
//$qstr1 = "sel_ca_id=$sel_ca_id&amp;sel_field=$sel_field&amp;search=$search";
// 김선용 200805 : sel_ca_id - 쓰레기 코드
//$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search";
$qstr1 = "sel_field=$sel_field&search=$search&save_search=$search";
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
?>
<style type="text/css">
//$qstr1 = "sel_ca_id=$sel_ca_id&amp;sel_field=$sel_field&amp;search=$search&amp;save_search=$search";
$qstr1 = "sel_field=$sel_field&amp;search=$search&amp;save_search=$search";
$qstr = "$qstr1&amp;sort1=$sort1&amp;sort2=$sort2&amp;page=$page";
.orderlist{text-align:center}
.order_sum{color:#1275d3}
.order_outstanding{color:#ff6600}
.order_care{color:red}
$listall = '';
if ($search) // 검색렬일 때만 처음 버튼을 보여줌
$listall = '<a href="'.$_SERVER['PHP_SELF'].'">전체목록</a>';
?>
<style>
</style>
@ -91,69 +90,63 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
<input type="hidden" name="sort1" value="<? echo $sort1 ?>">
<input type="hidden" name="sort2" value="<? echo $sort2 ?>">
<input type="hidden" name="page" value="<? echo $page ?>">
<input type="hidden" name="save_search" value="<?=$search?>">
<fieldset>
<legend>주문내역 검색</legend>
<span>
<?=$listall?>
전체 주문내역 <?=$total_count ?>건
</span>
<select name="sel_field" title="검색대상">
<option value="od_id" <?=get_selected($sel_field, 'od_id')?>>주문번호</option>
<option value="mb_id" <?=get_selected($sel_field, 'mb_id')?>>회원 ID</option>
<option value="od_name" <?=get_selected($sel_field, 'od_name')?>>주문자</option>
<option value="od_tel" <?=get_selected($sel_field, 'od_tel')?>>주문자전화</option>
<option value="od_hp" <?=get_selected($sel_field, 'od_hp')?>>주문자핸드폰</option>
<option value="od_b_name" <?=get_selected($sel_field, 'od_b_name')?>>받는분</option>
<option value="od_b_tel" <?=get_selected($sel_field, 'od_b_tel')?>>받는분전화</option>
<option value="od_b_hp" <?=get_selected($sel_field, 'od_b_hp')?>>받는분핸드폰</option>
<option value="od_deposit_name" <?=get_selected($sel_field, 'od_deposit_name')?>>입금자</option>
<option value="od_invoice" <?=get_selected($sel_field, 'od_invoice')?>>운송장번호</option>
</select>
<input type="text" name="search" value="<? echo $search ?>" required class="required frm_input" autocomplete="off">
<input type="submit" value="검색" class="btn_submit">
</fieldset>
</form>
<section class="cbox">
<h2>주문 목록</h2>
<div>
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a></p>
<select name="sel_field">
<option value="od_id">주문번호</option>
<option value="mb_id">회원 ID</option>
<option value="od_name">주문자</option>
<option value="od_tel">주문자전화</option>
<option value="od_hp">주문자핸드폰</option>
<option value="od_b_name">받는분</option>
<option value="od_b_tel">받는분전화</option>
<option value="od_b_hp">받는분핸드폰</option>
<option value="od_deposit_name">입금자</option>
<option value="od_invoice">운송장번호</option>
</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_URL?>/img/btn_search.gif">
<p>건수 <? echo $total_count ?></p>
</div>
<table>
<colgroup>
<col class="grid_3">
<col>
<col>
<col>
<col>
<col>
<col>
<col>
<col>
<col>
<col>
<col class="grid_3">
</colgroup>
<h2>주문내역 목록</h2>
<p><?=help('<strong>주의!</strong> 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.')?></p>
<table id="sodr_list">
<thead>
<tr>
<th><a href="<?=title_sort("od_id", 1)."&$qstr1";?>">주문번호</a></th>
<th><a href="<?=title_sort("od_name")."&$qstr1";?>">주문자</a></th>
<th><a href="<? echo title_sort("mb_id")."&$qstr1"; ?>">회원ID</a></th>
<th><a href="<?=title_sort("itemcount", 1)."&$qstr1";?>">건수</a> <span title="회원별 누적 건수">(누적)</span></th>
<th><a href="<?=title_sort("orderamount", 1)."&$qstr1";?>" class="order_sum">주문합계</a></th>
<th><a href="<?=title_sort("ordercancel", 1)."&$qstr1";?>">주문취소</a></th>
<th><a href="<?=title_sort("od_dc_amount", 1)."&$qstr1";?>">DC</a></th>
<th><a href="<?=title_sort("receiptamount")."&$qstr1";?>" class="order_sum">입금합계</a></th>
<th><a href="<?=title_sort("receiptcancel", 1)."&$qstr1";?>">입금취소</a></th>
<th><a href="<?=title_sort("misu", 1)."&$qstr1";?>" class="order_outstanding">미수금</a></th>
<th>결제수단</th>
<th>관리</th>
<th scope="col"><a href="<?=title_sort("od_id", 1)."&amp;$qstr1";?>">주문번호<span class="sound_only"> 순 정렬</span><br>주문일시</a></th>
<th scope="col">
<a href="<?=title_sort("od_name")."&amp;$qstr1";?>">주문자<span class="sound_only"> 순 정렬</span></a><br>
<a href="<?=title_sort("mb_id")."&amp;$qstr1"; ?>">회원ID<span class="sound_only"> 순 정렬</span>
</th>
<th scope="col"><a href="<?=title_sort("itemcount", 1)."&amp;$qstr1";?>">건수<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("orderamount", 1)."&amp;$qstr1";?>" class="order_sum">주문합계<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("ordercancel", 1)."&amp;$qstr1";?>">주문취소<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("od_dc_amount", 1)."&amp;$qstr1";?>">DC<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("receiptamount")."&amp;$qstr1";?>" class="order_sum">입금합계<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("receiptcancel", 1)."&amp;$qstr1";?>">입금취소<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col"><a href="<?=title_sort("misu", 1)."&amp;$qstr1";?>" class="order_outstanding">미수금<span class="sound_only"> 순 정렬</span></a></th>
<th scope="col">결제수단</th>
<th scope="col">관리</th>
</tr>
</thead>
<tfoot>
<tr class="orderlist">
<td colspan="3">합 계</td>
<th scope="row" colspan="2">합 계</td>
<td><?=(int)$tot_itemcount?>건</td>
<td class="order_sum"><?=number_format($tot_orderamount)?></td>
<td class="td_sodr_sum"><?=number_format($tot_orderamount)?></td>
<td><?=number_format($tot_ordercancel)?></td>
<td><?=number_format($tot_dc_amount)?></td>
<td class="order_sum"><?=number_format($tot_receiptamount)?></td>
<td class="td_sodr_sum"><?=number_format($tot_receiptamount)?></td>
<td><?=number_format($tot_receiptcancel)?></td>
<td class="order_outstanding"><?=number_format($tot_misu)?></td>
<td class="td_sodr_nonpay"><?=number_format($tot_misu)?></td>
<td colspan="2"></td>
</tr>
</tfoot>
@ -195,54 +188,52 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
if ($lines[$i]['od_receipt_point'] > 0)
$s_receipt_way .= $s_br."포인트";
$s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['od_id']}&amp;$qstr");
$s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$lines[$i]['od_id']}&uq_id={$lines[$i]['uq_id']}&mb_id={$lines[$i]['mb_id']}&$qstr');");
$mb_nick = get_sideview($lines[$i]['mb_id'], $lines[$i]['od_name'], $lines[$i]['od_email'], '');
$tot_cnt = "";
if ($lines[$i]['mb_id'])
{
$sql2 = " select count(*) as cnt from {$g4['shop_order_table']} where mb_id = '{$lines[$i]['mb_id']}' ";
$row2 = sql_fetch($sql2);
$tot_cnt = '('.$row2['cnt'].')';
}
$list = $i%2;
?>
<tr class="orderlist">
<td title="주문일시 : <?=$lines[$i]['od_time']?>"><a href="<?=G4_SHOP_URL?>/orderinquiryview.php?od_id=<?=$lines[$i]['od_id']?>&amp;uq_id=<?=$lines[$i]['uq_id']?>"><?=$lines[$i]['od_id']?></a></td>
<!-- <td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$lines[$i]['od_name']}'><span title='$od_deposit_name'>".cut_str($lines[$i]['od_name'],8,"")."</span></a></td> -->
<td><?=$mb_nick?></td>
<td><a href="<?=$_SERVER['PHP_SELF']?>?sort1=<?=$sort1?>&sort2=<?=$sort2?>&sel_field=mb_id&search=<?=$lines[$i]['mb_id']?>"><?=$lines[$i]['mb_id']?></a></td>
<td><?=$lines[$i]['itemcount']?>건 <?=$tot_cnt?></td>
<td class="order_sum"><?=number_format($lines[$i]['orderamount'])?></td>
<td class="td_odrnum2">
<a href="<?=G4_SHOP_URL?>/orderinquiryview.php?od_id=<?=$lines[$i]['od_id']?>&amp;uq_id=<?=$lines[$i]['uq_id']?>">
<?=$lines[$i]['od_id']?><br>
<span class="sound_only">주문일시 </span><?=$lines[$i]['od_time']?>
</a>
</td>
<!-- <td align=center><a href="<?=$_SERVER['PHP_SELF']?>?sort1=$sort1&amp;sort2=$sort2&amp;sel_field=od_name&amp;search=<?=$lines[$i]['od_name']?>'><span title="<?=$od_deposit_name?>"><?=cut_str($lines[$i]['od_name'],8,"")?></span></a></td> -->
<td class="td_name">
<?=$mb_nick?><br>
<a href="<?=$_SERVER['PHP_SELF']?>?sort1=<?=$sort1?>&sort2=<?=$sort2?>&sel_field=mb_id&search=<?=$lines[$i]['mb_id']?>">
<?=$lines[$i]['mb_id']?>
</a>
</td>
<td class="td_sodr_cnt"><b><?=$lines[$i]['itemcount']?></b>건<br><span class="sodr_tot">누적 <?=$row2['cnt']?>건</span></td>
<td class="td_sodr_sum"><?=number_format($lines[$i]['orderamount'])?></td>
<td><?=number_format($lines[$i]['ordercancel'])?></td>
<td><?=number_format($lines[$i]['od_dc_amount'])?></td>
<td class="order_sum"><?=number_format($lines[$i]['receiptamount'])?></td>
<td class="td_sodr_sum"><?=number_format($lines[$i]['receiptamount'])?></td>
<td><?=number_format($lines[$i]['receiptcancel'])?></td>
<td class="order_outstanding"><?=number_format($lines[$i]['misu'])?></td>
<td class="td_sodr_nonpay"><?=number_format($lines[$i]['misu'])?></td>
<td><?=$s_receipt_way?></td>
<td><a href="./orderform.php?od_id=<?=$lines[$i]['od_id']?>&amp;<?=$qstr?>">수정</a> <a href="javascript:del('./orderdelete.php?od_id=<?=$lines[$i]['od_id']?>&amp;uq_id=<?=$lines[$i]['uq_id']?>&amp;mb_id=<?=$lines[$i]['mb_id']?>&amp;<?=$qstr?>)">삭제</a></td>
<td>
<a href="./orderform.php?od_id=<?=$lines[$i]['od_id']?>&amp;<?=$qstr?>">수정</a>
<a href="javascript:del('./orderdelete.php?od_id=<?=$lines[$i]['od_id']?>&amp;uq_id=<?=$lines[$i]['uq_id']?>&amp;mb_id=<?=$lines[$i]['mb_id']?>&amp;<?=$qstr?>)">삭제</a>
</td>
</tr>
<?
}
mysql_free_result($result);
if ($i == 0)
echo '<tr><td colspan="12" class="orderlist"><span>자료가 한건도 없습니다.</span></td></tr>';
echo '<tr><td colspan="11" class="empty_table"><span>자료가 한건도 없습니다.</span></td></tr>';
?>
</tbody>
</table>
</section>
</form>
<p><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");?></p>
<p><span class="order_care">주의)</span> 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.</p>
<script>
var f = document.frmorderlist;
f.sel_field.value = '<? echo $sel_field ?>';
</script>
<?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&amp;page=");?>
<?
include_once (G4_ADMIN_PATH.'/admin.tail.php');

View File

@ -46,6 +46,88 @@ $qstr = "page=$page&sort1=$sort1&sort2=$sort2";
$qstr1 = "fr_date=$fr_date&to_date=$to_date&sel_ca_id=$sel_ca_id";
?>
<style type="text/css">
.wishlist{text-align:center}
</style>
<form name="flist">
<input type="hidden" name="doc" value="<? echo $doc ?>">
<input type="hidden" name="sort1" value="<? echo $sort1 ?>">
<input type="hidden" name="sort2" value="<? echo $sort2 ?>">
<input type="hidden" name="page" value="<? echo $page ?>">
<p><a href="<?=$_SERVER['PHP_SELF']?>">처음</a></p>
<fieldset>
</fieldset>
<td width=80% align=center>
<select name="sel_ca_id">
<option value=''>전체분류
<?
$sql1 = " select ca_id, ca_name from {$g4['shop_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;
$nbsp = "";
for ($i=0; $i<$len; $i++) $nbsp .= "&nbsp;&nbsp;&nbsp;";
echo "<option value='{$row1['ca_id']}'>$nbsp{$row1['ca_name']}\n";
}
?>
</select>
<script> document.flist.sel_ca_id.value = '<?=$sel_ca_id?>';</script>
기간 : <input type=text name=fr_date size=8 maxlength=8 itemname='기간' value='<?=$fr_date?>'> ~ <input type=text name=to_date size=8 maxlength=8 itemname='기간' value='<?=$to_date?>'>
<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>
</table>
<section class="cbox">
<h2>보관함현황</h2>
<p> *수량을 합산하여 순위를 출력합니다.</p>
<table>
<colgroup>
<col class="grid_2">
<col class="gird_14">
<col class="grid_2">
</colgroup>
<thead>
<tr>
<th scope="col">순위</th>
<th scope="col">상품평</th>
<th scope="col">건수</th>
</tr>
</thead>
<tbody>
<?
for ($i=0; $row=mysql_fetch_array($result); $i++)
{
$s_mod = icon("수정", "./itemqaform.php?w=u&iq_id={$row['iq_id']}&$qstr");
$s_del = icon("삭제", "javascript:del('./itemqaupdate.php?w=d&iq_id={$row['iq_id']}&$qstr');");
$href = G4_SHOP_URL."/item.php?it_id={$row['it_id']}";
$num = $rank + $i + 1;
$list = $i%2;
?>
<tr>
<td class="wishlist"><?=$num?></td>
<td><a href="<?=$href?>"><?=get_it_image($row['it_id'].'_s', 50, 50)?><?=cut_str($row['it_name'],30)?></a></td>
<td class="wishlist"><?=$row[it_id_cnt]?></td>
</tr>
<?
}
if ($i == 0) {
echo "<tr><td colspan=20 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
}
?>
</tbody>
</table>
</section>
<table width=100% cellpadding=4 cellspacing=0>
<form name=flist>
<input type=hidden name=doc value="<? echo $doc ?>">

View File

@ -71,7 +71,7 @@ h2 {font-size:1.2em}
#gnb_ul:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1depth {z-index:13;clear:both;zoom:1}
.gnb_1depth:after {display:block;visibility:hidden;clear:both;content:""}
.gnb_1depth a {display:block;float:left;width:80px;height:35px;color:#e0e0e0;font-weight:bold;line-height:2.95em;text-decoration:none}
.gnb_1depth a {display:block;float:left;width:120px;height:35px;color:#e0e0e0;font-weight:bold;line-height:2.95em;text-decoration:none}
.gnb_1depth a:focus,
.gnb_1depth a:hover {text-decoration:none}
.gnb_sub_ul {float:left;width:auto}
@ -263,6 +263,8 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
.td_chk {width:30px;text-align:center}
.td_num {width:60px;text-align:center}
.td_bignum {width:100px;text-align:center}
.td_odrnum {width:250px;text-align:center}
.td_odrnum2 {text-align:center}
.td_grid {width:60px;text-align:center}
.td_mbid,
.td_name,
@ -270,6 +272,7 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
.td_time {width:150px;text-align:center}
.td_boolean {width:50px;text-align:center}
.td_pt {text-align:right !important}
.td_payby {width:100px;text-align:center}
.txt_true {color:#e8180c}
.txt_false {color:#ccc}
@ -314,6 +317,12 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
.scf_sms_img span {display:block}
.scf_sms_cnt {display:block}
/* 주문내역 */
#sodr_list {text-align:center}
.td_sodr_sum {color:#1275d3}
.td_sodr_nonpay {color:#ff6600}
.sodr_tot {color:#bbb}
/* 분류관리 목록 */
.cate_list_lbl {display:inline-block;padding-left:15px;background:url('../adm/shop_admin/img/icon_reply.gif') 0 2px no-repeat}