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

		<div class="tabs-border">
		 <a class="item active" href="/moduleadmin.php?m=b2b_cbd">商圈列表</a>
		 <a class="item" href="/moduleadmin.php?m=b2b_cbd&a=add">添加商圈</a> 
		</div>
		<div class="main-body">
			<table class="tbs">
				<thead>
				<tr>
					<td>id</td>
					<td>名称</td>

					<td>图片</td>
					<td>排序</td>
					<td>状态</td>
					<td>操作</td>
				</tr>
				</thead>
				<?php $_from = $this->_var['data']; 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']['cbdid']; ?></td>
					<td><?php echo $this->_var['c']['title']; ?></td>

					<td><img src="<?php echo images_site($this->_var['c']['imgurl']); ?>.100x100.jpg" width="30" /></td>
					<td><?php echo $this->_var['c']['orderindex']; ?></td>
					<td><div class="<?php if ($this->_var['c']['status'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=b2b_cbd&a=status&cbdid=<?php echo $this->_var['c']['cbdid']; ?>&ajax=1" ></div></td>
					<td>
						<a href="/moduleadmin.php?m=b2b_cbd_shop&cbdid=<?php echo $this->_var['c']['cbdid']; ?>">店铺管理</a>
						<a href="/moduleadmin.php?m=b2b_cbd&a=add&cbdid=<?php echo $this->_var['c']['cbdid']; ?>">编辑</a> 
		 
						<a href="javascript:;" class="js-delete" url="/moduleadmin.php?m=b2b_cbd&a=delete&cbdid=<?php echo $this->_var['c']['cbdid']; ?>">删除</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>
