쇼핑몰관리자: 쇼핑몰관리 인덱스 표준화 및 스타일 작업 중

This commit is contained in:
whitedot
2013-04-11 10:28:08 +09:00
parent 9db0e6ae31
commit ea017fe740
2 changed files with 209 additions and 230 deletions

View File

@ -8,243 +8,220 @@ $g4['title'] = ' 쇼핑몰관리';
include_once (G4_ADMIN_PATH.'/admin.head.php'); include_once (G4_ADMIN_PATH.'/admin.head.php');
?> ?>
<table width=100%> <section class="cbox">
<tr> <h2>입금완료 미배송내역</h2>
<td width=50% valign=top>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=70%><?//=subtitle("입금완료 미배송내역")?></td>
<td width=30% align=right><a href='./deliverylist.php?sort1=od_invoice&sort2=asc&chk_misu=1'><img src='<?=G4_ADMIN_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0> <table>
<tr><td colspan=5 height=2 bgcolor=#0E87F9></td></tr> <thead>
<tr align=center class=ht> <tr>
<td width=80>주문번호</td> <th scope="col">주문번호</th>
<td>주문자</td> <th scope="col">주문자</th>
<td width=90>입금액</td> <th scope="col">입금액</th>
<td width=90>결제방법</td> <th scope="col">결제방법</th>
<td width=40>수정</td> <th scope="col">수정</th>
</tr> </tr>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr> </thead>
<? <tbody>
// 미수금이 없고 운송장번호가 없는 자료를 구함 <?
$sql = " select a.od_id, // 미수금이 없고 운송장번호가 없는 자료를 구함
a.*, "._MISU_QUERY_." $sql = " select a.od_id,
from {$g4['shop_order_table']} a a.*, "._MISU_QUERY_."
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id) from {$g4['shop_order_table']} a
group by a.od_id left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
/*having misu <= 0 and a.od_invoice = '' and ordercancel = 0*/ group by a.od_id
/*having orderamount - receiptamount = 0 and a.od_invoice = ''*/ /*having misu <= 0 and a.od_invoice = '' and ordercancel = 0*/
having misu <= 0 and a.od_invoice = '' /*having orderamount - receiptamount = 0 and a.od_invoice = ''*/
order by a.od_id desc having misu <= 0 and a.od_invoice = ''
limit $max_limit "; order by a.od_id desc
$result = sql_query($sql); limit $max_limit ";
for ($i=0; $row=sql_fetch_array($result); $i++) $result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
$settle_method = "";
if ($row['od_settle_case'])
{ {
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' "; $settle_method = $row['od_settle_case'];
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
$settle_method = "";
if ($row['od_settle_case'])
{
$settle_method = $row['od_settle_case'];
}
else
{
if ($row['od_receipt_bank']) $settle_method .= "무통장";
if ($row['od_receipt_card']) $settle_method .= "카드";
if ($row['od_receipt_point']) $settle_method .= "포인트";
}
$list = $i%2;
echo "
<tr align=center class='list$list ht'>
<td>{$row['od_id']}</td>
<td>$name</td>
<td align=right>".display_amount($row['receiptamount'])."&nbsp;</td>
<td>$settle_method</td>
<td>".icon("수정", "./orderform.php?od_id={$row['od_id']}")."</td>
</tr>
";
} }
else
if ($i == 0) {
echo "<tr><td colspan=5 align=center class=ht>자료가 없습니다.</td></tr>";
}
?>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
</table>
</td>
<td width=1%></td>
<td width=49% valign=top>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=70%><?//=subtitle("미입금 주문내역")?></td>
<td width=30% align=right><a href='./orderlist.php?sort1=receiptamount&sort2=asc'><img src='<?=G4_ADMIN_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=5 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td width=80>주문번호</td>
<td>주문자</td>
<td width=90>주문액</td>
<td width=90>결제방법</td>
<td width=40>수정</td>
</tr>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr>
<?
// 미수금이 있고 송장번호가 없는 자료를 구함
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from {$g4['shop_order_table']} a
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
group by a.od_id
/* having receiptamount <= 0 */
having misu > 0
order by a.od_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{ {
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' "; if ($row['od_receipt_bank']) $settle_method .= "무통장";
$row1 = sql_fetch($sql1); if ($row['od_receipt_card']) $settle_method .= "카드";
if ($row['od_receipt_point']) $settle_method .= "포인트";
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
$settle_method = "";
if ($row['od_settle_case'])
{
$settle_method = $row['od_settle_case'];
}
else
{
if ($row['od_temp_bank']) $settle_method .= "무통장";
if ($row['od_temp_card']) $settle_method .= "카드";
if ($row['od_temp_milage']) $settle_method .= "포인트";
}
$list = $i%2;
echo "
<tr align=center class='list$list ht'>
<td><a href='./orderstatuslist.php?sort1=od_id&sel_field=od_id&search={$row['od_id']}'>{$row['od_id']}</a></td>
<td>$name</td>
<td align=right>".display_amount($row['orderamount'])."&nbsp;</td>
<td>$settle_method</td>
<td>".icon("수정", "./orderform.php?od_id={$row['od_id']}")."</td>
</tr>";
} }
?>
<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>
</tr>
<?
}
if ($i == 0) echo '<tr><td colspan="5" class="empty_table">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
if ($i == 0) <div class="btn_ft">
echo "<tr><td colspan=5 align=center class=ht>자료가 없습니다.</td></tr>"; <a href="./deliverylist.php?sort1=od_invoice&amp;sort2=asc&amp;chk_misu=1">입금완료 미배송내역 더보기</a>
?> </div>
<tr><td colspan=5 height=1 bgcolor=#CCCCCC></td></tr> </section>
</table>
<section class="cbox">
<h2>미입금 주문내역</h2>
</td> <table>
</tr> <thead>
</table><br> <tr>
<th scope="col">주문번호</th>
<th scope="col">주문자</th>
<th scope="col">주문액</th>
<th scope="col">결제방법</th>
<th scope="col">수정</th>
</tr>
</thead>
<tbody>
<?
// 미수금이 있고 송장번호가 없는 자료를 구함
$sql = " select a.od_id,
a.*, "._MISU_QUERY_."
from {$g4['shop_order_table']} a
left join {$g4['shop_cart_table']} b on (b.uq_id=a.uq_id)
group by a.od_id
/* having receiptamount <= 0 */
having misu > 0
order by a.od_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['od_name']), $row1['mb_email'], $row1['mb_homepage']);
<table width=100%> $settle_method = "";
<tr> if ($row['od_settle_case'])
<td width=50% valign=top>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=70%><?//=subtitle("사용후기")?></td>
<td width=30% align=right><a href='./itempslist.php?sort1=is_confirm&sort2=asc'><img src='<?=G4_ADMIN_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=3 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td width=100>회원명</td>
<td>제목</td>
<td width=40>수정</td>
</tr>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
<?
$sql = " select * from {$g4[shop_item_ps_table]}
where is_confirm = 0
order by is_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{ {
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' "; $settle_method = $row['od_settle_case'];
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['is_name']), $row1['mb_email'], $row1['mb_homepage']);
$list = $i%2;
echo "
<tr align=center class='list$list ht'>
<td align=center>$name</td>
<td>".cut_str($row['is_subject'],40)."</td>
<td align=center>".icon("수정", "./itempsform.php?w=u&is_id={$row['is_id']}")."</td>
</tr>";
} }
else
if ($i == 0)
echo "<tr><td colspan=3 align=center class=ht>자료가 없습니다.</td></tr>";
?>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
</table>
<td>
<td width=1%></td>
<td width=50% valign=top>
<table width=100% cellpadding=0 cellspacing=0>
<tr>
<td width=70%><?//=subtitle("상품문의")?></td>
<td width=30% align=right><a href='./itemqalist.php?sort1=iq_answer&sort2=asc'><img src='<?=G4_ADMIN_URL?>/img/icon_more.gif' border=0></a>&nbsp;</td>
</tr>
</table>
<table width=100% cellpadding=0 cellspacing=0>
<tr><td colspan=3 height=2 bgcolor=#0E87F9></td></tr>
<tr align=center class=ht>
<td width=100>회원명</td>
<td>제목</td>
<td width=40>수정</td>
</tr>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr>
<?
$sql = " select * from {$g4['shop_item_qa_table']}
where iq_answer = ''
order by iq_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{ {
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' "; if ($row['od_temp_bank']) $settle_method .= "무통장";
$row1 = sql_fetch($sql1); if ($row['od_temp_card']) $settle_method .= "카드";
if ($row['od_temp_milage']) $settle_method .= "포인트";
$name = get_sideview($row['mb_id'], get_text($row['iq_name']), $row1['mb_email'], $row1['mb_homepage']);
$list = $i%2;
echo "
<tr align=center class='list$list ht'>
<td align=center>$name</td>
<td>".cut_str($row['iq_subject'],40)."</td>
<td align=center>".icon("수정", "./itemqaform.php?w=u&iq_id={$row['iq_id']}")."</td>
</tr>";
} }
?>
<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>
</tr>
<?
}
if ($i == 0) echo '<tr><td colspan="5">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
if ($i == 0) <div class="btn_ft">
echo "<tr><td colspan=3 align=center class=ht>자료가 없습니다.</td></tr>"; <a href="./orderlist.php?sort1=receiptamount&amp;sort2=asc">미입금 주문내역 더보기</a>
?> </div>
<tr><td colspan=3 height=1 bgcolor=#CCCCCC></td></tr> </section>
</table>
</td> <section class="cbox">
</tr> <h2>사용후기</h2>
</table><br>
<table>
<thead>
<tr>
<th scope="col">회원명</th>
<th scope="col">제목</th>
<th scope="col">수정</th>
</tr>
</thead>
<tbody>
<?
$sql = " select * from {$g4[shop_item_ps_table]}
where is_confirm = 0
order by is_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['is_name']), $row1['mb_email'], $row1['mb_homepage']);
?>
<tr>
<td><?=$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>
</tr>
<?
}
if ($i == 0) echo '<tr><td colspan="3" class="empty_table">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
<div class="btn_ft">
<a href="./itempslist.php?sort1=is_confirm&amp;sort2=asc">사용후기 더보기</a>
</div>
</section>
<section class="cbox">
<h2>상품문의</h2>
<table>
<thead>
<tr>
<th scope="col">회원명</th>
<th scope="col">제목</th>
<th scope="col">수정</th>
</tr>
</thead>
<tbody>
<?
$sql = " select * from {$g4['shop_item_qa_table']}
where iq_answer = ''
order by iq_id desc
limit $max_limit ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++)
{
$sql1 = " select * from {$g4['member_table']} where mb_id = '{$row['mb_id']}' ";
$row1 = sql_fetch($sql1);
$name = get_sideview($row['mb_id'], get_text($row['iq_name']), $row1['mb_email'], $row1['mb_homepage']);
?>
<tr>
<td><?=$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>
</tr>";
<?
}
if ($i == 0)
echo '<tr><td colspan="3" class="empty_table">자료가 없습니다.</td></tr>';
?>
</tbody>
</table>
<div class="btn_ft">
<a href="./itemqalist.php?sort1=iq_answer&amp;sort2=asc">상품문의 더보기</a>
</div>
</section>
<? <?
include_once (G4_ADMIN_PATH.'/admin.tail.php'); include_once (G4_ADMIN_PATH.'/admin.tail.php');

View File

@ -191,7 +191,7 @@ tfoot td {border-color:#666;background:#484848;color:#fff;font-weight:bold;text-
td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all} td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;line-height:1.5em;word-break:break-all}
.bo_sideview td {padding:6px 4px} /* 사이드뷰 사용하는 테이블 셀 패딩값 */ .bo_sideview td {padding:6px 4px} /* 사이드뷰 사용하는 테이블 셀 패딩값 */
/* 내용 없는 테이블 */ /* 내용 없는 테이블 */
.empty_table {padding:200px 0;text-align:center} .empty_table {padding:100px 0;text-align:center}
/* 테이블 그리드 padding 0 5px 고려한 넓이 */ /* 테이블 그리드 padding 0 5px 고려한 넓이 */
.grid_1 {width:40px} .grid_1 {width:40px}
.grid_2 {width:90px} .grid_2 {width:90px}
@ -300,15 +300,17 @@ td {padding:8px 5px 6px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9
#scf_cardtest_tip dd {padding:0;overflow:hidden} #scf_cardtest_tip dd {padding:0;overflow:hidden}
.scf_cardtest_tip {display:none} .scf_cardtest_tip {display:none}
#frm_sms dl {border-bottom:1px solid #ddd;zoom:1} #scf_sms_pre h3 {padding:10px 0 0}
#frm_sms dl:after {display:block;visibility:hidden;clear:both;content:""} #scf_sms_pre dl {margin:10px 0 0;zoom:1}
#frm_sms dt {clear:both;float:left;padding:5px 0;width:100px} #scf_sms_pre dl:after {display:block;visibility:hidden;clear:both;content:""}
#frm_sms dd {padding:5px 0;overflow:hidden} #scf_sms_pre dt {clear:both;float:left;padding:5px 0;width:100px}
#scf_sms {padding:0 0 10px;border-bottom:1px solid #ddd;zoom:1} #scf_sms_pre dd {padding:5px 0;overflow:hidden}
#scf_sms_pre p {margin:0 0 20px}
#scf_sms {margin:0 0 30px;zoom:1}
#scf_sms:after {display:block;visibility:hidden;clear:both;content:""} #scf_sms:after {display:block;visibility:hidden;clear:both;content:""}
.scf_sms_box {float:left;margin:0 31px;width:163px;text-align:center} .scf_sms_box {float:left;margin:0 31px;width:163px;text-align:center}
.scf_sms_box h3 {margin:0 0 10px} .scf_sms_box h4 {margin:0 0 5px}
.scf_sms_img {margin:0 0 10px;width:163px;height:191px;background:url('../adm/shop_admin/img/sms_back.gif') no-repeat 0 0;text-align:center} .scf_sms_img {margin:10px 0;width:163px;height:191px;background:url('../adm/shop_admin/img/sms_back.gif') no-repeat 0 0;text-align:center}
.scf_sms_img textarea {margin:54px 0 0;width:115px;height:85px;border:0;background:transparent;font-size:0.95em;overflow:hidden} .scf_sms_img textarea {margin:54px 0 0;width:115px;height:85px;border:0;background:transparent;font-size:0.95em;overflow:hidden}
.scf_sms_img span {display:block} .scf_sms_img span {display:block}
.scf_sms_cnt {display:block} .scf_sms_cnt {display:block}