<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
<?php echo $this->fetch('olprint_shop/nav.html'); ?>
<div class="main-body">
	<form class="search-form" action="/moduleadmin.php" autocomplete="off">
		<input type="hidden" name="m" value="olprint_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="shopname" value="<?php echo html($_GET['shopname']); ?>" />
		<button class="btn-small" type="submit">搜一下</button>
		</div>
	</form>
 <table class="tbs">
<thead>  <tr>
    
   <td>商家</td>
	<td> Logo</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']; ?>·<?php echo $this->_var['c']['shopname']; ?></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><div class="<?php if ($this->_var['c']['status'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=olprint_shop&a=status&shopid=<?php echo $this->_var['c']['shopid']; ?>&ajax=1" ></div></td>
	<td><div class="<?php if ($this->_var['c']['isrecommend'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=olprint_shop&a=recommend&shopid=<?php echo $this->_var['c']['shopid']; ?>&ajax=1" ></div></td>
   <td><?php echo $this->_var['c']['fav_num']; ?></td>
  
   <td><?php echo $this->_var['c']['telephone']; ?></td>
   <td><?php echo $this->_var['c']['isrecommend']; ?></td>
  
   <td><?php echo $this->_var['c']['fav_num']; ?></td>
 
   <td><?php echo $this->_var['c']['month_buy_num']; ?></td>
 
   <td>￥<?php echo $this->_var['c']['earnest']; ?></td>
  <td><?php if ($this->_var['c']['yystatus'] == 0): ?>待开业<?php elseif ($this->_var['c']['yystatus'] == 1): ?>营业中<?php else: ?>暂停营业<?php endif; ?></td>
<td>
	 
	<a href="/moduleadmin.php?m=olprint_admin&a=shop&shopid=<?php echo $this->_var['c']['shopid']; ?>">管理员</a>
	<br />
	<a href="/moduleadmin.php?m=olprint_shop&a=add&shopid=<?php echo $this->_var['c']['shopid']; ?>">编辑</a>
	
	<a href="javascript:;" class="js-delete" url="/moduleadmin.php?m=olprint_shop&a=delete&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'); ?>
<script>
	$(document).on("click",".js-tongbu",function(){
		$.get($(this).attr("url"),function(res){
			skyToast(res)
		})
	})
</script>
</body>
</html>