<?php 
defined('IN_HS') or exit('Access Denied');
include admintpl('header');
?>

<body>
<?=$menu?>
<table width="455" cellpadding="2" cellspacing="2" class="tableborder">
<form method="get" name="search" action="?">
  <tr>
    <td height="30" class="tablerow"> 按订单号搜索:
	<input name='action' type='hidden' value='<?=$action?>'>
	<input name='mod' type='hidden' value='<?=$mod?>'>
	<input name='file' type='hidden' value='<?=$file?>'>
&nbsp;<input name='keywords' type='text' size='40' value='<?if(isset($keywords)){echo $keywords;}?>' onClick="this.value='';" title="关键词...">&nbsp;
	<input type='submit' class='btn' value=' 搜索 '></td>
  </tr>
</form>
</table>
<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan=10>订单列表</th>
  </tr>
<form method="post" name="myform">
<tr align="center">
<td width="10%" class="tablerowhighlight">选中</td>
<td width="10%" class="tablerowhighlight">ID</td>
<td width="25%" class="tablerowhighlight">订单号</td>
<td width="15%" class="tablerowhighlight">下单时间</td>
<td width="20%" class="tablerowhighlight">领取状态</td>
<td width="10%" class="tablerowhighlight">管理操作</td>
</tr>
<?php
foreach($odrs as $odr)
{
?>
<tr align="center">
<td><input name='odr_ids[]' type='checkbox' class='checkbox_style' value='<?=$odr['odr_id']?>'></td>
<td><?=$odr['odr_id']?></td>
<td><a href="?mod=<?=$mod?>&file=<?=$file?>&odr_id=<?=$odr['odr_id']?>&action=view"><?=$odr['odr_No']?></a></td>
<td><?=$odr['addtime']?></td>
<td><?php
if($odr['isship']==1)
{
echo "成功";
}else{
echo "<font color=red>失败</font>";
}
?></td>
<td>
<a href="?mod=<?=$mod?>&file=<?=$file?>&odr_id=<?=$odr['odr_id']?>&action=view">查看</a> 
<a href="javascript:if(confirm('确认删除该条数据吗？')) location='?mod=<?=$mod?>&file=<?=$file?>&odr_id=<?=$odr['odr_id']?>&action=delete'">删除</a></td>
</tr>
<?php
}
?>
</table>
<table width="100%" height="10" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><input class="checkbox_style" name='chkall' type='checkbox' id='chkall' onclick='checkall(this.form)' value='check'>全选/反选</td>
    <td align="left">
		<input name='submit0' type='submit' class='btn' value='批量删除' onClick="if(confirm('确认批量删除这些订单吗？')) document.myform.action='?mod=<?=$mod?>&file=<?=$file?>&action=delete&dosubmit=1'">&nbsp;</td>
  </tr>
</table>
<table width="100%" height="30" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align=center><?=$pages?></td>
  </tr>
</table>
</form>
</body>
</html>