<!--
<?php
print <<<EOT
-->

<table width="100%" border="0" cellspacing="1" cellpadding="3" class="tablewidth">
  <form name="form_work" method="post" action="$admin_path&">
    <tr align="center" class="head"> 
      <td width="9%" >订单号</td>
      <td width="31%" >产品名称</td>
      <td width="9%" >总额</td>
      <td width="8%" >客户</td>
      <td width="10%" > 订购时间</td>
      <td width="7%" >付款与否</td>
      <td width="7%" >发货与否</td>
      <td width="5%" >详情</td>
      <td width="5%" >删除</td>
    </tr>
    <!--
EOT;
foreach($listdb AS $key=>$rs){print <<<EOT
-->
    <tr> 
      <td class="middle" valign="top" width="9%" align="center"><a href="$Murl/bencandy.php?city_id={$rs[shop][city_id]}&fid=$rs[fid]&id=$rs[cid]" target="_blank">
        <input type="checkbox" name="iddb[]" value="$rs[id]">
        </a>$rs[id]</td>
      <td class="middle" valign="top" width="31%"><!--
EOT;
foreach($rs['plist'] AS $rs2){print <<<EOT
-->
                  <a href="$Murl/bencandy.php?fid=$rs2[fid]&id=$rs2[id]" target="_blank">$rs2[title]</a> 
                  <br>
<!--
EOT;
}print <<<EOT
--></td>
      <td class="middle" valign="top" width="9%" align="center">$rs[totalmoney]</td>
      <td class="middle" valign="top" width="8%" align="center">$rs[username]</td>
      <td class="middle" valign="top" width="10%" align="center">$rs[posttime]</td>
      <td class="middle" valign="top" width="7%" align="center">$rs[pay]</td>
      <td class="middle" valign="top" width="7%" align="center">$rs[send]</td>
      <td class="middle" valign="top" width="5%" align="center"><a href="$Murl/member/joinshow.php?fid=$rs[fid]&id=$rs[id]" target="_blank">查看</a></td>
      <td class="middle" valign="top" width="5%" align="center"><a href="$admin_path&act=del&iddb[]=$rs[id]">删</a></td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
    <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="10"> {$showpage}</td>
    </tr>
    <tr bgcolor="#FFFFFF" align="center"> 
      <td colspan="10"> <a href="#" onClick="CheckAll('all')">全选</a>/<a href="#" onClick='CheckAll()'>反选</a> 
        <input type="button" name="Submit" value="删除" onclick="postdo()">
        <input type="hidden" name="act" value="del">
      </td>
    </tr>
  </form>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
function postdo(){
	document.form_work.submit();
}
function CheckAll(va){
	form=document.form_work
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
//-->
</SCRIPT>
<!--
EOT;
?>
-->
