<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
<?php echo $this->fetch('exue_shop/nav.html'); ?>

<div class="main-body">
	<form class="search-form" action="/moduleadmin.php" autocomplete="off">
		<input type="hidden" name="m" value="exue_shop" />
		<div class="flex flex-ai-center">
		shopid:<input class="w60" type="text" name="shopid" value="<?php echo intval($_GET['shopid']); ?>" />
		名称：<input class="w100" type="text" name="keyword" value="<?php echo html($_GET['keyword']); ?>" />
		首页：<input type="checkbox" <?php if (get ( "site_index" )): ?>checked<?php endif; ?> name="site_index" value="1" />
		推荐：<input type="checkbox" <?php if (get ( "site_recommend" )): ?>checked<?php endif; ?> name="site_recommend" value="1" />
		
		
		<button class="btn-small" type="submit">搜一下</button>
		</div>
	</form>
 <table class="tbs">
<thead>  <tr>
   <td>shopid</td>
   <td>名称</td>
   
   <td>地址</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']['shopid']; ?></td>
   <td><?php echo $this->_var['c']['title']; ?></td>
   
   <td><?php echo $this->_var['c']['address']; ?></td>
   <td><?php echo $this->_var['c']['nickname']; ?></td>
   <td><?php echo $this->_var['c']['telephone']; ?></td>
   <td>
	   <?php if ($this->_var['c']['imgurl']): ?><img  src="<?php echo images_site($this->_var['c']['imgurl']); ?>.100x100.jpg" width="60" /><?php endif; ?>
   </td>
  
   <td><?php echo $this->_var['c']['raty_grade']; ?></td>
    
   <td>
   	<div class="<?php if ($this->_var['c']['status'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=exue_shop&a=status&shopid=<?php echo $this->_var['c']['shopid']; ?>&ajax=1" ></div>
   </td>
   <td>
   	<div class="<?php if ($this->_var['c']['site_index'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=exue_shop&a=site_index&shopid=<?php echo $this->_var['c']['shopid']; ?>&ajax=1" ></div>  	
   </td>
   <td>
   	<div class="<?php if ($this->_var['c']['site_recommend'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=exue_shop&a=site_recommend&shopid=<?php echo $this->_var['c']['shopid']; ?>&ajax=1" ></div>  	
   </td> 
   
<td>
	<a href="/moduleadmin.php?m=exue_admin&a=shop&shopid=<?php echo $this->_var['c']['shopid']; ?>">管理员</a>
	<a href="moduleadmin.php?m=exue_shop&a=add&shopid=<?php echo $this->_var['c']['shopid']; ?>">编辑</a> 
<a href="/module.php?m=exue_shop&a=show&shopid=<?php echo $this->_var['c']['shopid']; ?>" target="_blank">查看</a> 
<a href="javascript:;" class="js-delete" url="moduleadmin.php?m=exue_shop&a=delete&ajax=1&shopid=<?php echo $this->_var['c']['shopid']; ?>">删除</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>