<!DOCTYPE html>
<html>
	<?php echo $this->fetch('head.html'); ?>
	<body>
		<?php echo $this->fetch('olprint_book/nav.html'); ?>
		<div class="main-body">
			<table class="tbs">
				<thead>
					<tr>
						<td>bookid</td>
						<td>标题</td>
						 
						 
						<td>金额</td>
						<td>状态</td>
						 
						<td>首页</td> 
						<td>推荐</td>
						<td>访问人数</td>
						 
						<td>page_num</td>
						<td>print_num</td>
						<td>fav_num</td>
						 
						<td>操作</td>
					</tr>
					</tr>
				</thead> <?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']):
?>
				<tr>
					<td><?php echo $this->_var['c']['bookid']; ?></td>
					<td><?php echo $this->_var['c']['title']; ?></td>
					 
					 
					<td><?php echo $this->_var['c']['money']; ?></td>
					<td><div class="<?php if ($this->_var['c']['status'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=olprint_book&a=status&bookid=<?php echo $this->_var['c']['bookid']; ?>&ajax=1" ></div></td>
					 <td><div class="<?php if ($this->_var['c']['isindex'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=olprint_book&a=index&bookid=<?php echo $this->_var['c']['bookid']; ?>&ajax=1" ></div></td>
					 <td><div class="<?php if ($this->_var['c']['isrecommend'] == 1): ?>yes<?php else: ?>no<?php endif; ?> js-toggle-status" url="/moduleadmin.php?m=olprint_book&a=recommend&bookid=<?php echo $this->_var['c']['bookid']; ?>&ajax=1" ></div></td>
					 
					<td><?php echo $this->_var['c']['view_num']; ?></td>
					 
					<td><?php echo $this->_var['c']['page_num']; ?></td>
					<td><?php echo $this->_var['c']['print_num']; ?></td>
					<td><?php echo $this->_var['c']['fav_num']; ?></td>
					 
					<td><a href="moduleadmin.php?m=olprint_book&a=add&bookid=<?php echo $this->_var['c']['bookid']; ?>">编辑</a> 
					<a target="_blank" href="/module.php?m=olprint_book&a=show&bookid=<?php echo $this->_var['c']['bookid']; ?>">查看</a>
						<a href="javascript:;" class="js-delete" url="moduleadmin.php?m=olprint_book&a=delete&ajax=1&bookid=<?php echo $this->_var['c']['bookid']; ?>">删除</a></td>
				</tr>
				<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
			</table>
			<div><?php echo $this->_var['pagelist']; ?></div>
		</div>
		<?php echo $this->fetch('footer.html'); ?>
	</body>
</html>
