<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
<div class="tabs-border">
	<a class="item <?php if (get ( 'type' ) == ''): ?>active<?php endif; ?>" href="<?php echo $this->_var['appadmin']; ?>?m=paotui_order">全部订单</a>
	<a class="item <?php if (get ( 'type' ) == 'new'): ?>active<?php endif; ?>" href="<?php echo $this->_var['appadmin']; ?>?m=paotui_order&type=new">新订单</a>
 
	<a class="item <?php if (get ( 'type' ) == 'doing'): ?>active<?php endif; ?>" href="<?php echo $this->_var['appadmin']; ?>?m=paotui_order&type=doing">处理中</a>
	<a class="item <?php if (get ( 'type' ) == 'check'): ?>active<?php endif; ?>" href="<?php echo $this->_var['appadmin']; ?>?m=paotui_order&type=check">带验证</a>
	<a class="item <?php if (get ( 'type' ) == 'finish'): ?>active<?php endif; ?>" href="<?php echo $this->_var['appadmin']; ?>?m=paotui_order&type=finish">已完成</a>
	
</div>
<div class="main-body">
 <table class="tbs">
<thead>  <tr>
   <td>id</td>
   <td>用户</td>
   <td>跑腿</td>
   <td>状态</td>
   <td>配送员</td>
   <td>评价</td>
   <td>金额</td>
   <td>创建时间</td>
<td>操作</td></tr>
  </tr>
</thead> <?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
<tr>
   <td><?php echo $this->_var['c']['id']; ?></td>
   <td><?php echo $this->_var['c']['nickname']; ?></td>
   <td><?php echo $this->_var['c']['paotui']['type_name']; ?></td>
   <td><?php echo $this->_var['c']['status_name']; ?></td>
   <td><?php echo $this->_var['c']['sender']['truename']; ?></td>
   <td><?php echo $this->_var['c']['israty']; ?></td>
   <td>￥<?php echo $this->_var['c']['money']; ?></td>
   <td><?php echo $this->_var['c']['createtime']; ?></td>
<td><a href="javascript:;" class="js-delete" url="/moduleadmin.php?m=paotui_order&a=delete&id=<?php echo $this->_var['c']['id']; ?>">删除</a></td>
  </tr>
   <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
 </table>
<div><?php echo $this->_var['pagelist']; ?></div>
</div> 
<?php echo $this->fetch('footer.html'); ?>
</body>
</html>