<!--
<?php
print <<<EOT
--> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
<tr> 
  <td class="head"><a href="?job=list">我的收货地址列表</a> <a href="?job=postnew">添加新地址</a></td>
</tr>
<tr> 
  <td class="middle"> 
<style>
.listtable{
	border:#FFF solid 2px;
	border-right:0;
}
.listtable th,.listtable td{
	text-align:center;
	vertical-align:middle;
	height:30px;
	font-size:12px;
	border-right:#FFF solid 2px;
	border-bottom:#DDD dotted 1px;
}
.listtable th{
	background:#EFEFEF;	
}
.listtable .tl{
	text-align:left;
	padding:0 5px 0 5px;
}
.listtable .tr{
	text-align:right;
	padding:0 10px 0 5px;
	width:200px;
}
.showpage{
	height:30px;
	text-align:center;
	padding-top:5px;
	line-height:30px;
	border-top:#DDD solid 1px;
}

</style>
<!--
EOT;
if($job=="postnew" || $job=="edit"){
$heads[postnew]="添加";
$heads[edit]="修改";
print <<<EOT
-->    
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="listtable">
    <form name="form1" method="post" action="?action=$job&rid=$rid">
      <tr> 
        <th colspan="2">$heads[$job]收货地址</th>
      </tr>
      <tr>
        <td class="tr">收货改名：</td>
        <td class="tl"><input type="text" name="order_username" size="15" value="$rsdb[order_username]"></td>
      </tr>
      <tr>
        <td class="tr">联系电话：</td>
        <td class="tl"><input type="text" name="order_phone" size="15" value="$rsdb[order_phone]"></td>
      </tr>
      <tr>
        <td class="tr">联系手机：</td>
        <td class="tl"><input type="text" name="order_mobphone" size="15" value="$rsdb[order_mobphone]"></td>
      </tr>
      <tr>
        <td class="tr">联系邮箱：</td>
        <td class="tl"><input type="text" name="order_email" size="30" value="$rsdb[order_email]"></td>
      </tr>
      <tr>
        <td class="tr">联系QQ：</td>
        <td class="tl"><input type="text" name="order_qq" size="15" value="$rsdb[order_qq]"></td>
      </tr>
      <tr>
        <td class="tr">联系邮编：</td>
        <td class="tl"><input type="text" name="order_postcode" size="15" value="$rsdb[order_postcode]"></td>
      </tr>
      <tr>
        <td class="tr">收货地址：</td>
        <td class="tl"><input type="text" name="order_address" size="50" value="$rsdb[order_address]"></td>
      </tr>
      <tr>
        <td class="tr"><br/></td>
        <td class="tl"><input type="submit" value="提交" /></td>
      </tr>
     </form>
    </table>
<!--
EOT;
}else{
print <<<EOT
-->
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="listtable">
      <tr> 
        <th width="5%">编号</th>
        <th width="8%">收货姓名</th>
        <th width="8%">联系电话</th>
        <th width="8%">联系手机</th>
        <th width="15%">联系邮箱</th>
        <th width="8%">联系QQ</th>
        <th width="8%">联系邮编</th>
        <th width="30%">收货地址</th>
        <th width="10%">修改/删除</th>
      </tr>
<!--
EOT;
foreach($listdb AS $key=>$rs){print <<<EOT
-->
      <tr> 
        <td>$rs[rid]</td>
        <td>$rs[order_username]</td>
        <td>$rs[order_phone]</td>
        <td>$rs[order_mobphone]</td>
        <td class="tl">$rs[order_email]</td>
        <td>$rs[order_qq]</td>
        <td>$rs[order_postcode]</td>
        <td class="tl">$rs[order_address]</td>
        <td><a href='?job=edit&rid=$rs[rid]'>修改</a>/<a href="?action=del&rid=$rs[rid]">删除</a></td>
      </tr>
<!--
EOT;
}print <<<EOT
-->
    </table>
    <div class="showpage">$showpage</div>
<!--
EOT;
}print <<<EOT
--> 
</td>
</tr>
</table>
<!--
EOT;
?>
-->
