<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<div class="header">
			<div class="header-back pos-relative"></div>
			<div class="header-search-box">
				 
				<input id="search-word" value="<?php echo $this->_var['keyword']; ?>" class="header-search pdl-5" placeholder="搜你想要的" type="text">
				<div id="search-btn" class="header-search-btn bg-primary cl-white iconfont icon-search"></div>
			</div>
			 
		</div>
		<div class="header-row"></div>
		<div class="main-body">
			<?php if (empty ( $this->_var['list'] )): ?>
			<div class="emptyData">暂无信息</div>
			<?php else: ?>
			<div class="list">
			  <?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']):
?>
			 <a href="/module.php?m=fenlei&a=show&id=<?php echo $this->_var['c']['id']; ?>" class="flexlist-item">
				<?php if ($this->_var['c']['imgurl']): ?>
				<img class="flexlist-img" src="<?php echo $this->_var['c']['imgurl']; ?>.100x100.jpg" />
				<?php endif; ?>
					 <div class="flex-1">
						<div class="flexlist-title"><?php echo $this->_var['c']['title']; ?></div>
							<div class="flexlist-row">
								<div class="cl-money">￥<?php echo $this->_var['c']['money']; ?></div>
							</div>
						  <div class="flexlist-desc">
							  <?php echo $this->_var['c']['description']; ?>
						  </div>
					</div>
			</a>
			  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			 </div>
		  <?php endif; ?>
		<div><?php echo $this->_var['pagelist']; ?></div>
	</div>	
		<?php echo $this->fetch('footer.html'); ?>
		<script>
			$(document).on("click","#search-btn",function(){
				var word=$("#search-word").val();
				window.location="/module.php?m=fenlei&a=search&keyword="+encodeURI(word)
			})
		</script>
	</body>
</html>
