쇼핑몰관리자: #37 에 따른 tfoot 이동 처리를 위한 마크업 준비

This commit is contained in:
whitedot
2013-04-09 11:46:55 +09:00
parent 512c8feaf8
commit d487a064cb
3 changed files with 46 additions and 36 deletions

View File

@ -11,9 +11,9 @@ $where = " where ";
$sql_search = "";
if ($search != "")
{
if ($sel_field != "")
if ($sel_field != "")
{
$sql_search .= " $where $sel_field like '%$search%' ";
$sql_search .= " $where $sel_field like '%$search%' ";
$where = " and ";
}
@ -129,6 +129,19 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
<th>관리</th>
</tr>
</thead>
<tfoot>
<tr class="orderlist">
<td colspan="3">합 계</td>
<td><?=(int)$tot_itemcount?>건</td>
<td class="order_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><?=number_format($tot_receiptcancel)?></td>
<td class="order_outstanding"><?=number_format($tot_misu)?></td>
<td colspan="2"></td>
</tr>
</tfoot>
<tbody>
<?
$tot_itemcnt = 0;
@ -219,19 +232,6 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
echo '<tr><td colspan="12" class="orderlist"><span>자료가 한건도 없습니다.</span></td></tr>';
?>
</tbody>
<tfoot>
<tr class="orderlist">
<td colspan="3">합 계</td>
<td><?=(int)$tot_itemcount?>건</td>
<td class="order_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><?=number_format($tot_receiptcancel)?></td>
<td class="order_outstanding"><?=number_format($tot_misu)?></td>
<td colspan="2"></td>
</tr>
</tfoot>
</table>
</section>
</form>

View File

@ -91,6 +91,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
<colgroup width=60>
<colgroup width=55>
<tr><td colspan=12 height=2 bgcolor=#0E87F9></td></tr>
<thead>
<tr align=center class=ht>
<td><a href='<?=title_sort("od_id", 1)."&$qstr1";?>'>주문번호</a></td>
<td><a href='<?=title_sort("od_name")."&$qstr1";?>'>주문자</a></td>
@ -117,7 +118,21 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
<td></td>
</tr>
<tr><td colspan=12 height=1 bgcolor=#CCCCCC></td></tr>
</thead>
<tfoot>
<tr class=ht>
<td colspan=3 align=center>합 계</td>
<td align=center><?=(int)$tot_itemcount?>건</td>
<td align=right><FONT COLOR='#1275D3'><?=number_format($tot_orderamount)?></FONT></td>
<td align=right><?=number_format($tot_ordercancel)?></td>
<td align=right><?=number_format($tot_dc_amount)?></td>
<td align=right><FONT COLOR='#1275D3'><?=number_format($tot_receiptamount)?></FONT></td>
<td align=right><?=number_format($tot_receiptcancel)?></td>
<td align=right><FONT COLOR='#FF6600'><?=number_format($tot_misu)?></FONT></td>
<td colspan=2></td>
</tr>
</tfoot>
<tbody>
<?
$tot_itemcnt = 0;
$tot_orderamount = 0;
@ -236,18 +251,8 @@ if ($i == 0)
?>
</form>
<tr><td colspan=12 bgcolor='#CCCCCC'></td></tr>
<tr class=ht>
<td colspan=3 align=center>합 계</td>
<td align=center><?=(int)$tot_itemcount?>건</td>
<td align=right><FONT COLOR='#1275D3'><?=number_format($tot_orderamount)?></FONT></td>
<td align=right><?=number_format($tot_ordercancel)?></td>
<td align=right><?=number_format($tot_dc_amount)?></td>
<td align=right><FONT COLOR='#1275D3'><?=number_format($tot_receiptamount)?></FONT></td>
<td align=right><?=number_format($tot_receiptcancel)?></td>
<td align=right><FONT COLOR='#FF6600'><?=number_format($tot_misu)?></FONT></td>
<td colspan=2></td>
</tr>
<tr><td colspan=12 bgcolor='#CCCCCC'></td></tr>
</tbody>
</table>
<table width=100%>

View File

@ -130,6 +130,7 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
<colgroup width=30>
<colgroup width=30>
<tr><td colspan=11 height=3 bgcolor=#0E87F9></td></tr>
<thead>
<tr align=center class=ht>
<td><a href="<?=title_sort("od_id")."&$qstr1";?>">주문번호</a></td>
<td><a href="<?=title_sort("od_name")."&$qstr1";?>">주문자</a></td>
@ -143,9 +144,20 @@ $qstr = "$qstr1&sort1=$sort1&sort2=$sort2&page=$page";
<td><a href="<?=title_sort("ct_status")."&$qstr1";?>">상태</a></td>
<td>수정</td>
</tr>
</thead>
<tfoot>
<tr class=ht>
<td colspan=5 align=right>합 계&nbsp;</td>
<td align=right><?=number_format($tot_amount)?>&nbsp;</td>
<td align=right><?=number_format($tot_qty)?>&nbsp;</td>
<td align=right><?=number_format($tot_sub_amount)?>&nbsp;</td>
<td align=right><?=number_format($tot_sub_point)?>&nbsp;</td>
<td colspan=2></td>
</tr>
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
<tr><td colspan=11 height=3 bgcolor=#F8F8F8></td></tr>
</tfoot>
<tbody>
<?
for ($i=0; $row=sql_fetch_array($result); $i++) {
@ -185,15 +197,8 @@ if ($i == 0)
echo "<tr><td colspan=11 align=center height=100 bgcolor=#ffffff><span class=point>자료가 한건도 없습니다.</span></td></tr>\n";
?>
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
<tr class=ht>
<td colspan=5 align=right>합 계&nbsp;</td>
<td align=right><?=number_format($tot_amount)?>&nbsp;</td>
<td align=right><?=number_format($tot_qty)?>&nbsp;</td>
<td align=right><?=number_format($tot_sub_amount)?>&nbsp;</td>
<td align=right><?=number_format($tot_sub_point)?>&nbsp;</td>
<td colspan=2></td>
</tr>
<tr><td colspan=11 height=1 bgcolor=#CCCCCC></td></tr>
</tbody>
</table>
<table width=100%>