<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
<div class="tabs-border">
	<a class="item <?php if (get ( 'status' ) == 0): ?>active<?php endif; ?>" href="<?php echo $this->_var['appadmin']; ?>?m=fenlei_company">待审核</a>
	<a class="item <?php if (get ( 'status' ) == 1): ?>active<?php endif; ?>" href="<?php echo $this->_var['appadmin']; ?>?m=fenlei_company&status=1">已通过</a>
	<a class="item <?php if (get ( 'status' ) == 2): ?>active<?php endif; ?>" href="<?php echo $this->_var['appadmin']; ?>?m=fenlei_company&status=2">已禁止</a>
	 
</div>
<div class="main-body">
 <table class="tbs">
<thead>  <tr>
   <td>comid</td>
   <td>名称</td>
   
   <td>logo</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']['comid']; ?></td>
   <td><?php echo $this->_var['c']['title']; ?></td>
   
   <td><img src="<?php echo images_site($this->_var['c']['imgurl']); ?>.100x100.jpg" width="60" /> </td>
   <td><?php echo $this->_var['c']['userid']; ?></td>
   <td><?php echo $this->_var['c']['nickname']; ?></td>
   <td><?php echo $this->_var['c']['telephone']; ?></td>
   <td><?php echo $this->_var['c']['address']; ?></td>
   <td>
	   <div class="<?php if ($this->_var['c']['status'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=fenlei_company&a=status&comid=<?php echo $this->_var['c']['comid']; ?>&ajax=1" ></div>
   </td>
    
<td><a href="/moduleadmin.php?m=fenlei_company&a=add&comid=<?php echo $this->_var['c']['comid']; ?>">编辑</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>