<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
<?php echo $this->fetch('car_shop/nav.html'); ?>
<div class="main-body">
	<form class="search-form" action="/moduleadmin.php" autocomplete="off">
		<input type="hidden" name="m" value="car_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></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=car_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=car_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>
	 
	<a href="/moduleadmin.php?m=car_shop&a=add&shopid=<?php echo $this->_var['c']['shopid']; ?>">编辑</a>
	<a href="/moduleadmin.php?m=car_shop&a=recharge&shopid=<?php echo $this->_var['c']['shopid']; ?>">充值</a>
	<a href="javascript:;" class="js-delete" url="/moduleadmin.php?m=car_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'); ?>
</body>
</html>