<!--
<?php
if($job=="view"){
print <<<EOT
--> 
<style type="text/css">
.FormTable dl{
	width:49%;
	height:25px;
	float:left;
	line-height:25px;
	overflow:hidden;
}
.FormTable dl dt{
	float:left;
	font-weight:bold;
	padding:0 5px 0 5px;
}
.FormTable dl dd{
	float:left;
	color:#888;
}
</style>
<div class="MainCont">
	<div class="head"><div class="tag">订单详情</div></div>
    <div class="cont">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="FormTable">
         <tr>
          <td>
              <dl>
                <dt>订单号:</dt>
                <dd>$rsdb[Id]</dd>
              </dl>
              <dl>
                <dt>联系人:</dt>
                <dd>$rsdb[truename] $rsdb[sex] </dd>
              </dl>
              <dl>
                <dt>联系手机:</dt>
                <dd>$rsdb[telphone]</dd>
              </dl>
              <dl>
                <dt>联系电话:</dt>
                <dd>$rsdb[mobphone]</dd>
              </dl>
              <dl>
                <dt>联系邮箱:</dt>
                <dd>$rsdb[email]</dd>
              </dl>
              <dl>
                <dt>联系QQ:</dt>
                <dd>$rsdb[oicq]</dd>
              </dl>
              <dl>
                <dt>邮政编码:</dt>
                <dd>$rsdb[postalcode]</dd>
              </dl>
              <dl>
                <dt>送货方式:</dt>
                <dd>$rsdb[sendtype]</dd>
              </dl>
              <dl>
                <dt>付款方式:</dt>
                <dd>$rsdb[paytype]</dd>
              </dl>
              <dl>
                <dt>收货地址:</dt>
                <dd>$rsdb[address]</dd>
              </dl>
              <dl>
                <dt>付注信息:</dt>
                <dd>$rsdb[othersay]</dd>
              </dl>
              <dl>
                <dt>下单日期:</dt>
                <dd>$rsdb[posttime]</dd>
              </dl>
              <dl>
                <dt>发货与否:</dt>
                <dd>$rsdb[ifsend]</dd>
              </dl>
              <dl>
                <dt>付款情况:</dt>
                <dd>$rsdb[ifpay]</dd>
              </dl>
              <dl>
                <dt>应付金额:</dt>
                <dd>$rsdb[totalmoney]</dd>
              </dl>
          </td>
         </tr>
        </table>
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable mt10">
          <tr>
            <th width="35%">商品名称</th>
            <th width="20%">商品分类</th>
            <th width="20%">商品型号</th>
            <th width="15%">商品价格</th>
            <th width="10%">数量</th>
          </tr>
<!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
          <tr>
            <td class="tL"><a href="..$webdb[path]/bencandy.php?fid=$rs[fid]&id=$rs[aid]" target="_blank">$rs[title]</a></td>
            <td>$rs[fname]</td>
            <td>$rs[shoptype]</td>
            <td>$rs[nowprice]</td>
            <td>$rs[amount]</td>
          </tr>
<!--
EOT;
}
print <<<EOT
-->
        </table>
       <div style="text-align:center;padding:15px 0 10px 0;"> [<a href="?job=list">点击返回</a>]</div>
    </div>
</div>
<!--
EOT;
}else{
print <<<EOT
-->
<div class="MainCont">
	<div class="head"><div class="tag">所有商品订单</div></div>
    <div class="cont">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListTable">
          <tr>
            <th width="15%">订单号</th>
            <th width="20%">下单日期</th>
            <th width="20%">应付金额</th>
            <th width="15%">付款情况</th>
            <th width="15%">发货与否</th>
            <th width="15%">详情/删除</th>
          </tr>
<!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
          <tr>
            <td>$rs[Id]</td>
            <td>$rs[posttime]</td>
            <td>$rs[totalmoney] 元</td>
            <td>$rs[ifpay]</td>
            <td>$rs[ifsend]</td>
            <td>
            	<a href="?job=view&id=$rs[id]"><img alt='浏览' src='../member/images/icon_view.gif'/></a> 
                <a href="?job=$job&action=del_record&id=$rs[id]" onclick="return confirm('你确实要删除吗?');"><img alt='点击删除' src='./images/del_icon2.gif' /></a>
            </td>
          </tr>
<!--
EOT;
}
$showpage=$showpage?"<div class=\"Showpage\">$showpage</div>":"";
print <<<EOT
-->
        </table>
        $showpage
    </div>
</div>
<!--
EOT;
}
?>
-->
