<!DOCTYPE html>
<html>
<?php echo $this->fetch('head.html'); ?>
<style>
	.wx-share-guide{
		position: fixed;
		right: 0;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 999;
		background-color: #333;
		opacity: .8;
		text-align: right;
		display: none;
	}
	.wx-share-guide-img{
		position: absolute;
		right: 0;
		top: 10px;
		width: 200px;
	}
</style>
<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="row-box mgb-5">
		<div class="d-title"><?php echo $this->_var['data']['title']; ?></div>
		<div class="flex flex-ai-center mgb-5">
			<div class="cl-money mgr-10">￥<?php echo $this->_var['data']['money']; ?></div>
			
			<div class="flex-1"></div>
			<div class="cl2 f12 mgr-10">共<?php echo $this->_var['data']['page_num']; ?>页</div>
			<div class="cl2 f12 mgr-10">/</div>
			<div class="cl2 f12">打印<?php echo $this->_var['data']['print_num']; ?>次</div>
			
		</div>
		<div class="cl3 mgb-20 f12"><?php echo $this->_var['data']['description']; ?></div>
		<div class="flex flex-center">
			
			<div class="btn-fav  flex-col bd-0 mgr-10 icon-share js-share-btn">分享</div>
			<div class="btn-fav flex-col js-fav-toggle mgr-5 bd-0 <?php if ($this->_var['isfav']): ?>btn-fav-active<?php endif; ?> mgr-10" tablename="mod_olprint_book" objectid="<?php echo $this->_var['data']['bookid']; ?>">收藏</div>
			
			<div class="flex-1"></div>
			<div gourl="/module.php?m=olprint_book&a=jubao&bookid=<?php echo $this->_var['data']['bookid']; ?>" class="btn btn-outline-secondary">举报有奖</div>
		</div>
	</div>
	
	<div class="row-box mgb-5">
		<div class="d-content"><?php echo $this->_var['data']['content']; ?></div>
	</div>
	<div class="row-box bdb">
		<div class="fw-600">推荐资料</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>	  

    
</div>
<div class="footer-row"></div>
<div class="footer pd-5">
	<div class="cl-money">￥<?php echo $this->_var['data']['money']; ?></div>
	<div class="flex-1"></div>
	<div gourl="/module.php?m=olprint_order&a=add&bookid=<?php echo $this->_var['data']['bookid']; ?>" class="btn btn-outline-info mgr-10">我要打印</div>
	
</div>
 <div class="wx-share-guide">
	 <img src="/static/images/wx_guide.png" class="wx-share-guide-img" />
 </div>
<?php echo $this->fetch('footer.html'); ?>
<script>
	$(document).on("click",".js-share-btn",function(){
		$(".wx-share-guide").show();
	})
	$(document).on("click",".wx-share-guide",function(){
		$(".wx-share-guide").hide();
	})
</script>
</body>
</html>