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

<body>
<div class="header">
	<div class="header-back"></div>
	<div class="header-title">热门资料</div>
</div>
<div class="header-row"></div>
<div class="main-body">
	<div class="pd-5">
		<div class="header-search-box">
		
			<input id="search-word" 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>
	
    <?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']):
?>
	<div gourl="/module.php?m=olprint_book&a=show&bookid=<?php echo $this->_var['c']['bookid']; ?>" class="row-box mgb-5">
		<div class="mgb-5"><?php echo $this->_var['c']['title']; ?></div>
		<div class="flex flex-ai-center mgb-5">
			<div class="cl-money mgr-10">￥<?php echo $this->_var['c']['money']; ?></div>
			
			<div class="flex-1"></div>
			<div class="cl2 f12 mgr-10">共<?php echo $this->_var['c']['page_num']; ?>页</div>
			<div class="cl2 f12 mgr-10">/</div>
			<div class="cl2 f12">打印<?php echo $this->_var['c']['print_num']; ?>次</div>
			
		</div>
		<div class="cl3 f12"><?php echo $this->_var['c']['description']; ?></div>
	</div> 
	<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
	<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=olprint_book&a=search&keyword="+encodeURI(word)
	})
</script>
</body>
</html>