<!--
<?php
print <<<EOT
--> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="MainTable">
  <tr> 
    <td height="100" valign="top" class="Main"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" class="dragTable" >
        <tr> 
          <td class="head">管理客户下的订单</td>
        </tr>
        <tr> 
          <td class="middle"> 
            <table width="100%" border="0" cellspacing="1" cellpadding="3" class="linetable">
              <tr align="center" class="head3"> 
                <td  width="5%">订单号</td>
                <td width="34%" >订购商品</td>
                <td  width="11%">总额</td>
                <td  width="12%">订购时间</td>
                <td  width="10%">客户ID</td>
                <td  width="8%">付款</td>
                <td  width="7%">发货</td>
                <td  width="6%">详情</td>
                <td width="7%">改/删</td>
              </tr>
              <!--
EOT;
foreach($listdb AS $key=>$rs){print <<<EOT
-->
              <tr> 
                <td class="middle" align="center" width="5%">$rs[id]</td>
                <td class="middle" width="34%" > 
                  <!--
EOT;
foreach($rs['plist'] AS $rs2){print <<<EOT
-->
                  <a href="../bencandy.php?fid=$rs2[fid]&id=$rs2[id]" target="_blank">$rs2[title]</a> 
                  <br>
                  <!--
EOT;
}print <<<EOT
-->
                </td>
                <td class="middle"  align="center" width="11%">$rs[totalmoney]</td>
                <td class="middle" align="center" width="12%">$rs[posttime]</td>
                <td class="middle" align="center" width="10%">$rs[username]</td>
                <td class="middle"  align="center" width="8%">$rs[pay]</td>
                <td class="middle"  align="center" width="7%">$rs[send]</td>
                <td class="middle"  align="center" width="6%"><a href="joinshow.php?fid=$rs[fid]&id=$rs[id]">查看</a></td>
                <td class="middle" align="center" width="7%"><a href='?job=edit&id=$rs[id]' style="display:$rs[noedit];">改</a>　<a style="display:$rs[nodel];" href="?action=del&id=$rs[id]&cid=$rs[cid]">删</a></td>
              </tr>
              <!--
EOT;
}print <<<EOT
-->
            </table>
      
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="center">
            <p>&nbsp;</p>
            <p>$showpage</p>
          </td>
        </tr>
      </table></td>
        </tr>
        <tr>
          <td class="foot"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!--
EOT;
?>
-->
