<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<div class="header">
			<div class="header-back"></div>
			<div class="header-title">产品分类</div>
			<div gourl="/moduleshop.php?m=b2b_shop_product_category&a=add" class="header-right-btn">添加</div>
		</div>
		<div class="header-row"></div>
		<div class="main-body">
			<div class="list">
				<?php $_from = $this->_var['catlist']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'c');if (count($_from)):
    foreach ($_from AS $this->_var['c']):
?>
				<div class="row-box">
					<div class="flex flex-ai-center">
						<div class="cl1 f16 mgb-5"><?php echo $this->_var['c']['title']; ?></div>
						
						<div class="flex-1"></div>
						<div class="cl2 mgr-10"><div class="<?php if ($this->_var['c']['status'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleshop.php?m=b2b_shop_product_category&a=status&catid=<?php echo $this->_var['c']['catid']; ?>&ajax=1" ></div></div>
						<div gourl="/moduleshop.php?m=b2b_shop_product_category&a=add&catid=<?php echo $this->_var['c']['catid']; ?>" class="btn-small mgr-5">编辑</div>
						<div url="/moduleshop.php?m=b2b_shop_product_category&a=delete&ajax=1&catid=<?php echo $this->_var['c']['catid']; ?>" class="btn-small btn-warning js-delete">删除</div>
					</div>
					 
				</div>
				<?php $_from = $this->_var['c']['child']; if (!is_array($_from) && !is_object($_from)) { $_from=array();}; $this->push_vars('', 'cc');if (count($_from)):
    foreach ($_from AS $this->_var['cc']):
?>
					<div class="row-box">
						<div class="flex flex-ai-center">
							<div class="cl1 f16 mgb-5 pdl-10">|-<?php echo $this->_var['cc']['title']; ?></div>
							
							<div class="flex-1"></div>
							<div class="cl2 mgr-10"><div class="<?php if ($this->_var['cc']['status'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleshop.php?m=b2b_shop_product_category&a=status&catid=<?php echo $this->_var['cc']['catid']; ?>&ajax=1" ></div></div>
							<div gourl="/moduleshop.php?m=b2b_shop_product_category&a=add&catid=<?php echo $this->_var['cc']['catid']; ?>" class="btn-small mgr-5">编辑</div>
							<div url="/moduleshop.php?m=b2b_shop_product_category&a=delete&ajax=1&catid=<?php echo $this->_var['cc']['catid']; ?>"  class="btn-small btn-warning">删除</div>
						</div>
						 
					</div>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</div>
		</div>
		<?php echo $this->fetch('ftnav.html'); ?>
		<?php echo $this->fetch('footer.html'); ?>
	</body>
</html>
