tfoot 에 합계 출력되도록 수정
This commit is contained in:
@ -49,12 +49,27 @@ $sql = " select a.*, "._MISU_QUERY_."
|
||||
order by $sort1 $sort2
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql, false);
|
||||
if (!$result) {
|
||||
sql_query(" ALTER TABLE `{$g4['shop_order_table']}` ADD `od_temp_hp` INT NOT NULL AFTER `od_temp_card` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_order_table']}` ADD `od_receipt_hp` INT NOT NULL AFTER `od_receipt_card` ", false);
|
||||
sql_query(" ALTER TABLE `{$g4['shop_order_table']}` ADD `od_hp_time` DATETIME NOT NULL AFTER `od_card_time` ", false);
|
||||
|
||||
$lines = array();
|
||||
$tot_itemcnt = 0;
|
||||
$tot_orderamount = 0;
|
||||
$tot_ordercancel = 0;
|
||||
$tot_dc_amount = 0;
|
||||
$tot_receiptamount = 0;
|
||||
$tot_receiptcancel = 0;
|
||||
$tot_misuamount = 0;
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$lines[$i] = $row;
|
||||
|
||||
$tot_itemcount += $row['itemcount'];
|
||||
$tot_orderamount += $row['orderamount'];
|
||||
$tot_ordercancel += $row['ordercancel'];
|
||||
$tot_dc_amount += $row['od_dc_amount'];
|
||||
$tot_receiptamount += $row['receiptamount'];
|
||||
$tot_receiptcancel += $row['receiptcancel'];
|
||||
$tot_misu += $row['misu'];
|
||||
}
|
||||
//echo $sql;
|
||||
|
||||
//$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search";
|
||||
// 김선용 200805 : sel_ca_id - 쓰레기 코드
|
||||
@ -144,58 +159,51 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$tot_itemcnt = 0;
|
||||
$tot_orderamount = 0;
|
||||
$tot_ordercancel = 0;
|
||||
$tot_dc_amount = 0;
|
||||
$tot_receiptamount = 0;
|
||||
$tot_receiptcancel = 0;
|
||||
$tot_misuamount = 0;
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
for ($i=0; $i<count($lines[$i]); $i++)
|
||||
{
|
||||
// 결제 수단
|
||||
$s_receipt_way = $s_br = "";
|
||||
if ($row[od_settle_case])
|
||||
if ($lines[$i]['od_settle_case'])
|
||||
{
|
||||
$s_receipt_way = $row['od_settle_case'];
|
||||
$s_receipt_way = $lines[$i]['od_settle_case'];
|
||||
$s_br = '<br />';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($row['od_temp_bank'] > 0 || $row['od_receipt_bank'] > 0)
|
||||
if ($lines[$i]['od_temp_bank'] > 0 || $lines[$i]['od_receipt_bank'] > 0)
|
||||
{
|
||||
//$s_receipt_way = "무통장입금";
|
||||
$s_receipt_way = cut_str($row['od_bank_account'],8,"");
|
||||
$s_receipt_way = cut_str($lines[$i]['od_bank_account'],8,"");
|
||||
$s_br = "<br />";
|
||||
}
|
||||
|
||||
if ($row['od_temp_card'] > 0 || $row['od_receipt_card'] > 0)
|
||||
if ($lines[$i]['od_temp_card'] > 0 || $lines[$i]['od_receipt_card'] > 0)
|
||||
{
|
||||
// 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임
|
||||
if ($row['misuamount'] <= 0 && $row['od_receipt_card'] == 0)
|
||||
if ($lines[$i]['misuamount'] <= 0 && $lines[$i]['od_receipt_card'] == 0)
|
||||
; // 화면 출력하지 않음
|
||||
else
|
||||
{
|
||||
$s_receipt_way .= $s_br."카드";
|
||||
if ($row['od_receipt_card'] == 0)
|
||||
if ($lines[$i]['od_receipt_card'] == 0)
|
||||
$s_receipt_way .= "<span><span>(미승인)</span></span>";
|
||||
$s_br = "<br />";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($row['od_receipt_point'] > 0)
|
||||
if ($lines[$i]['od_receipt_point'] > 0)
|
||||
$s_receipt_way .= $s_br."포인트";
|
||||
|
||||
$s_mod = icon("수정", "./orderform.php?od_id=$row[od_id]&$qstr");
|
||||
$s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}&mb_id={$row['mb_id']}&$qstr');");
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['od_id']}&$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($row['mb_id'], $row['od_name'], $row['od_email'], '');
|
||||
$mb_nick = get_sideview($lines[$i]['mb_id'], $lines[$i]['od_name'], $lines[$i]['od_email'], '');
|
||||
|
||||
$tot_cnt = "";
|
||||
if ($row['mb_id'])
|
||||
if ($lines[$i]['mb_id'])
|
||||
{
|
||||
$sql2 = " select count(*) as cnt from {$g4['shop_order_table']} where mb_id = '{$row['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'].')';
|
||||
}
|
||||
@ -203,29 +211,21 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
$list = $i%2;
|
||||
?>
|
||||
<tr class="orderlist">
|
||||
<td title="주문일시 : <?=$row['od_time']?>"><a href="<?=G4_SHOP_URL?>/orderinquiryview.php?od_id=<?=$row['od_id']?>&uq_id=<?=$row['uq_id']?>"><?=$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 title="주문일시 : <?=$lines[$i]['od_time']?>"><a href="<?=G4_SHOP_URL?>/orderinquiryview.php?od_id=<?=$lines[$i]['od_id']?>&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=<?=$row['mb_id']?>"><?=$row['mb_id']?></a></td>
|
||||
<td><?=$row['itemcount']?>건 <?=$tot_cnt?></td>
|
||||
<td class="order_sum"><?=number_format($row['orderamount'])?></td>
|
||||
<td><?=number_format($row['ordercancel'])?></td>
|
||||
<td><?=number_format($row['od_dc_amount'])?></td>
|
||||
<td class="order_sum"><?=number_format($row['receiptamount'])?></td>
|
||||
<td><?=number_format($row['receiptcancel'])?></td>
|
||||
<td class="order_outstanding"><?=number_format($row['misu'])?></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><?=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><?=number_format($lines[$i]['receiptcancel'])?></td>
|
||||
<td class="order_outstanding"><?=number_format($lines[$i]['misu'])?></td>
|
||||
<td><?=$s_receipt_way?></td>
|
||||
<td><a href="./orderform.php?od_id=<?=$row[od_id]?>&<?=$qstr?>">수정</a> <a href="javascript:del('./orderdelete.php?od_id=<?=$row['od_id']?>&uq_id=<?=$row['uq_id']?>&mb_id=<?=$row['mb_id']?>&<?=$qstr?>)">삭제</a></td>
|
||||
<td><a href="./orderform.php?od_id=<?=$lines[$i]['od_id']?>&<?=$qstr?>">수정</a> <a href="javascript:del('./orderdelete.php?od_id=<?=$lines[$i]['od_id']?>&uq_id=<?=$lines[$i]['uq_id']?>&mb_id=<?=$lines[$i]['mb_id']?>&<?=$qstr?>)">삭제</a></td>
|
||||
</tr>
|
||||
<?
|
||||
|
||||
$tot_itemcount += $row['itemcount'];
|
||||
$tot_orderamount += $row['orderamount'];
|
||||
$tot_ordercancel += $row['ordercancel'];
|
||||
$tot_dc_amount += $row['od_dc_amount'];
|
||||
$tot_receiptamount += $row['receiptamount'];
|
||||
$tot_receiptcancel += $row['receiptcancel'];
|
||||
$tot_misu += $row['misu'];
|
||||
<?
|
||||
}
|
||||
mysql_free_result($result);
|
||||
if ($i == 0)
|
||||
@ -235,7 +235,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
</table>
|
||||
</section>
|
||||
</form>
|
||||
<p><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></p>
|
||||
<p><?=get_paging($config['cf_write_pages'], $page, $total_page, "{$_SERVER['PHP_SELF']}?$qstr&page=");?></p>
|
||||
|
||||
<p><span class="order_care">주의)</span> 주문번호를 클릭하여 나오는 주문상세내역의 주소를 외부에서 조회가 가능한곳에 올리지 마십시오.</p>
|
||||
|
||||
|
||||
@ -46,6 +46,27 @@ $sql = " select a.od_id,
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$lines = array();
|
||||
$tot_itemcnt = 0;
|
||||
$tot_orderamount = 0;
|
||||
$tot_ordercancel = 0;
|
||||
$tot_dc_amount = 0;
|
||||
$tot_receiptamount = 0;
|
||||
$tot_receiptcancel = 0;
|
||||
$tot_misuamount = 0;
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
{
|
||||
$lines[$i] = $row;
|
||||
|
||||
$tot_itemcount += $row['itemcount'];
|
||||
$tot_orderamount += $row['orderamount'];
|
||||
$tot_ordercancel += $row['ordercancel'];
|
||||
$tot_dc_amount += $row['od_dc_amount'];
|
||||
$tot_receiptamount += $row['receiptamount'];
|
||||
$tot_receiptcancel += $row['receiptcancel'];
|
||||
$tot_misu += $row['misu'];
|
||||
}
|
||||
|
||||
//$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search";
|
||||
$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search";
|
||||
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
@ -134,87 +155,72 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
$tot_itemcnt = 0;
|
||||
$tot_orderamount = 0;
|
||||
$tot_ordercancel = 0;
|
||||
$tot_dc_amount = 0;
|
||||
$tot_receiptamount = 0;
|
||||
$tot_receiptcancel = 0;
|
||||
$tot_misuamount = 0;
|
||||
for ($i=0; $row=mysql_fetch_array($result); $i++)
|
||||
for ($i=0; $i<count($lines); $i++)
|
||||
{
|
||||
// 결제 수단
|
||||
$s_receipt_way = $s_br = "";
|
||||
if ($row['od_settle_case'])
|
||||
if ($lines[$i]['od_settle_case'])
|
||||
{
|
||||
$s_receipt_way = $row['od_settle_case'];
|
||||
$s_receipt_way = $lines[$i]['od_settle_case'];
|
||||
$s_br = '<br/>';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($row['od_temp_bank'] > 0 || $row['od_receipt_bank'] > 0)
|
||||
if ($lines[$i]['od_temp_bank'] > 0 || $lines[$i]['od_receipt_bank'] > 0)
|
||||
{
|
||||
//$s_receipt_way = "무통장입금";
|
||||
$s_receipt_way = cut_str($row['od_bank_account'],8,"");
|
||||
$s_receipt_way = cut_str($lines[$i]['od_bank_account'],8,"");
|
||||
$s_br = "<br>";
|
||||
}
|
||||
|
||||
if ($row['od_temp_card'] > 0 || $row['od_receipt_card'] > 0)
|
||||
if ($lines[$i]['od_temp_card'] > 0 || $lines[$i]['od_receipt_card'] > 0)
|
||||
{
|
||||
// 미수금이 없고 카드결제를 하지 않았다면 카드결제를 선택후 무통장 입금한 경우임
|
||||
if ($row['misuamount'] <= 0 && $row['od_receipt_card'] == 0)
|
||||
if ($lines[$i]['misuamount'] <= 0 && $lines[$i]['od_receipt_card'] == 0)
|
||||
; // 화면 출력하지 않음
|
||||
else
|
||||
{
|
||||
$s_receipt_way .= $s_br."카드";
|
||||
if ($row['od_receipt_card'] == 0)
|
||||
$s_receipt_way .= "<span class=small><span class=point style='font-size:8pt;'>(미승인)</span></span>";
|
||||
$s_br = "<br>";
|
||||
if ($lines[$i]['od_receipt_card'] == 0)
|
||||
$s_receipt_way .= '<span class="small"><span class="point" style="font-size:8pt;">(미승인)</span></span>';
|
||||
$s_br = '<br>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($row['od_receipt_point'] > 0)
|
||||
$s_receipt_way .= $s_br."포인트";
|
||||
if ($lines[$i]['od_receipt_point'] > 0)
|
||||
$s_receipt_way .= $s_br.'포인트';
|
||||
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$row['od_id']}&$qstr");
|
||||
$s_del = icon("삭제", "javascript:del('./orderdelete.php?od_id={$row['od_id']}&uq_id={$row['uq_id']}&mb_id={$row['mb_id']}&$qstr&list=2');");
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['od_id']}&$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&list=2');");
|
||||
|
||||
if ($i>0)
|
||||
echo "<tr><td colspan=12 height=1 bgcolor='#CCCCCC'></td></tr>";
|
||||
echo '<tr><td colspan="12" height="1" bgcolor="#CCCCCC"></td></tr>';
|
||||
|
||||
$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']}&uq_id={$row['uq_id']}'>{$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'],30,"")."</span></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 align=center>{$row['itemcount']}건</td>
|
||||
<td align=right><FONT COLOR='#1275D3'>".number_format($row['orderamount'])."</font></td>
|
||||
<td align=right>".number_format($row['ordercancel'])."</td>
|
||||
<td align=right>".number_format($row['od_dc_amount'])."</td>
|
||||
<td align=right><FONT COLOR='#1275D3'>".number_format($row['receiptamount'])."</font></td>
|
||||
<td align=right>".number_format($row['receiptcancel'])."</td>
|
||||
<td align=right><FONT COLOR='#FF6600'>".number_format($row['misu'])."</FONT></td>
|
||||
<tr class=\"list$list ht\">
|
||||
<td align=center title='주문일시 : {$lines[$i]['od_time']}'><a href='".G4_SHOP_URL."/orderinquiryview.php?od_id={$lines[$i]['od_id']}&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'],30,"")."</span></a></td>
|
||||
<td align=center><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 align=center>{$lines[$i]['itemcount']}건</td>
|
||||
<td align=right><FONT COLOR='#1275D3'>".number_format($lines[$i]['orderamount'])."</font></td>
|
||||
<td align=right>".number_format($lines[$i]['ordercancel'])."</td>
|
||||
<td align=right>".number_format($lines[$i]['od_dc_amount'])."</td>
|
||||
<td align=right><FONT COLOR='#1275D3'>".number_format($lines[$i]['receiptamount'])."</font></td>
|
||||
<td align=right>".number_format($lines[$i]['receiptcancel'])."</td>
|
||||
<td align=right><FONT COLOR='#FF6600'>".number_format($lines[$i]['misu'])."</FONT></td>
|
||||
<td align=center>$s_receipt_way</td>
|
||||
<td align=center>$s_mod $s_del</a></td>
|
||||
</tr>";
|
||||
|
||||
$tot_itemcount += $row['itemcount'];
|
||||
$tot_orderamount += $row['orderamount'];
|
||||
$tot_ordercancel += $row['ordercancel'];
|
||||
$tot_dc_amount += $row['od_dc_amount'];
|
||||
$tot_receiptamount += $row['receiptamount'];
|
||||
$tot_receiptcancel += $row['receiptcancel'];
|
||||
$tot_misu += $row['misu'];
|
||||
|
||||
// 상품개별출력
|
||||
$sql2 = " select c.it_name,
|
||||
b.*
|
||||
from {$g4['shop_order_table']} a
|
||||
left join {$g4['shop_cart_table']} b on (a.uq_id = b.uq_id)
|
||||
left join {$g4['shop_item_table']} c on (b.it_id = c.it_id)
|
||||
where od_id = '{$row['od_id']}' ";
|
||||
where od_id = '{$lines[$i]['od_id']}' ";
|
||||
$result2 = sql_query($sql2);
|
||||
for ($k=0; $row2=sql_fetch_array($result2); $k++)
|
||||
{
|
||||
|
||||
@ -71,6 +71,17 @@ $sql = " select a.od_id,
|
||||
limit $from_record, $rows ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$lines = array();
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
$lines[$i] = $row;
|
||||
|
||||
$tot_amount += $row['ct_amount'];
|
||||
$tot_qty += $row['ct_qty'];
|
||||
$tot_sub_amount += $row['ct_sub_amount'];
|
||||
$tot_sub_point += $row['ct_sub_point'];
|
||||
}
|
||||
|
||||
$qstr1 = "sel_ca_id=$sel_ca_id&sel_field=$sel_field&search=$search&save_search=$search";
|
||||
$qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
?>
|
||||
@ -159,38 +170,33 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
|
||||
</tfoot>
|
||||
<tbody>
|
||||
<?
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
for ($i=0; $i<count($lines); $i++) {
|
||||
|
||||
$od_deposit_name = "";
|
||||
if ($row['od_deposit_name'] != "")
|
||||
$od_deposit_name = "title='입금자 : {$row['od_deposit_name']}'";
|
||||
if ($lines[$i]['od_deposit_name'] != "")
|
||||
$od_deposit_name = "title='입금자 : {$lines[$i]['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']);
|
||||
$href = "$_SERVER[PHP_SELF]?sort1=$sort1&sort2=$sort2&sel_field=c.it_id&search=$lines[$i][it_id]";
|
||||
$it_name = "<a href='$href'>".cut_str($lines[$i]['it_name'],35)."</a><br>";
|
||||
$it_name .= print_item_options($lines[$i]['it_id'], $lines[$i]['it_opt1'], $lines[$i]['it_opt2'], $lines[$i]['it_opt3'], $lines[$i]['it_opt4'], $lines[$i]['it_opt5'], $lines[$i]['it_opt6']);
|
||||
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$row['od_id']}");
|
||||
$s_mod = icon("수정", "./orderform.php?od_id={$lines[$i]['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='주문일시 : {$lines[$i]['od_time']}'><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_id&search={$lines[$i]['od_id']}'>{$lines[$i]['od_id']}</a></td>
|
||||
<td align=center $od_deposit_name><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=od_name&search={$lines[$i]['od_name']}'>".cut_str($lines[$i]['od_name'],10,"")."</a></td>
|
||||
<td align=center><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 style='padding-top:5px; padding-bottom:5px;'><a href='$href'>".get_it_image($lines[$i]['it_id'].'_s', 50, 50)."</a></td>
|
||||
<td align=left>$it_name</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($lines[$i]['ct_amount'])." </td>
|
||||
<td align=center>{$lines[$i]['ct_qty']}</td>
|
||||
<td align=right>".number_format($lines[$i]['ct_sub_amount'])." </td>
|
||||
<td align=right>".number_format($lines[$i]['ct_sub_point'])." </td>
|
||||
<td align=center><a href='{$_SERVER['PHP_SELF']}?sort1=$sort1&sort2=$sort2&sel_field=ct_status&search={$lines[$i]['ct_status']}'>{$lines[$i]['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'];
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
|
||||
Reference in New Issue
Block a user