<!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">
	 
	<?php if (empty ( $this->_var['list'] )): ?>
	<div class="emptyData">暂无共享资料</div>
	<?php endif; ?>
	
    <?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 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 mgb-10"><?php echo $this->_var['c']['description']; ?></div>
		<div class="flex">
			<div class="flex-1"></div>
			<div class="btn btn-small btn-outline-info mgr-10" gourl="/module.php?m=olprint_book&a=add&bookid=<?php echo $this->_var['c']['bookid']; ?>">修改</div>
			<div class="js-delete btn btn-small btn-outline-danger" url="/module.php?m=olprint_book&a=delete&bookid=<?php echo $this->_var['c']['bookid']; ?>&ajax=1">删除</div>
		</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>