<?php /* Smarty version Smarty-3.0.8, created on 2014-05-16 17:37:06
         compiled from "D:\www\cangku/tpl\bookshow.html" */ ?>
<?php /*%%SmartyHeaderCode:113515375dc424636e9-14387153%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7c3075944e34a1a6a0d906b73609c88af4c84e71' => 
    array (
      0 => 'D:\\www\\cangku/tpl\\bookshow.html',
      1 => 1400233024,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '113515375dc424636e9-14387153',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
    <link rel="stylesheet" href="dist/css/bootstrap.css"/>
    <link href="dist/css/bootstrap-responsive.css" rel="stylesheet"/>
     <script src="dist/js/jquery.min.js"></script>
     <script src="dist/js/bootstrap.min.js"></script>
     		<link rel="stylesheet" href="dist/js/default.css" />
		<script src="dist/js/kindeditor.js"></script>
        <title>仓库管理系统后台-留言列表列表</title>
</head>
<body>
<div style="width: 98%;margin: auto;margin-top: 5px;">
<table class="table table-bordered">
        <?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('b')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['value']->key => $_smarty_tpl->tpl_vars['value']->value){
?>
                <tr>
                <td style="width: 250px;">留言人：<?php echo $_smarty_tpl->tpl_vars['value']->value['who'];?>
</td>
                <td><span style="color: red;"><b>留言内容：</b></span>&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['value']->value['contents'];?>
</td>
                <td style="width: 250px;">留言时间：<?php echo $_smarty_tpl->tpl_vars['value']->value['time'];?>
</td>
                <td style="width: 100px;"><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'bookdel','id'=>$_smarty_tpl->tpl_vars['value']->value['id']),$_smarty_tpl);?>
">刪除</a></td>
                </tr>
                <?php }} ?>
</table>
    <div style="width: 100%;text-align: center;">
  <?php if ($_smarty_tpl->getVariable('pager')->value){?>
共有内容<?php echo $_smarty_tpl->getVariable('pager')->value['total_count'];?>
条，共有<?php echo $_smarty_tpl->getVariable('pager')->value['total_page'];?>
页（每页<?php echo $_smarty_tpl->getVariable('pager')->value['page_size'];?>
条内容）：
<!--在当前页不是第一页的时候，显示前页和上一页-->
<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['first_page']){?>
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'askb','page'=>$_smarty_tpl->getVariable('pager')->value['first_page'],'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
">前页</a> | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'askb','page'=>$_smarty_tpl->getVariable('pager')->value['prev_page'],'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
">上一页</a> | 
<?php }?>
<!--开始循环页码，同时如果循环到当前页则不显示链接-->
<?php  $_smarty_tpl->tpl_vars['thepage'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('pager')->value['all_pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['thepage']->key => $_smarty_tpl->tpl_vars['thepage']->value){
?>
	<?php if ($_smarty_tpl->tpl_vars['thepage']->value!=$_smarty_tpl->getVariable('pager')->value['current_page']){?>
		<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'askb','page'=>$_smarty_tpl->tpl_vars['thepage']->value,'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
"><?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
</a>
	<?php }else{ ?>
		<b><?php echo $_smarty_tpl->tpl_vars['thepage']->value;?>
</b>
	<?php }?>
<?php }} ?>
<!--在当前页不是最后一页的时候，显示下一页和后页-->
<?php if ($_smarty_tpl->getVariable('pager')->value['current_page']!=$_smarty_tpl->getVariable('pager')->value['last_page']){?>
 | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'askb','page'=>$_smarty_tpl->getVariable('pager')->value['next_page'],'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
">下一页</a> | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'askb','page'=>$_smarty_tpl->getVariable('pager')->value['last_page'],'name'=>$_smarty_tpl->getVariable('fenye')->value),$_smarty_tpl);?>
">后页</a>
<?php }?>
<?php }?>
</div>
</div>
</body>
</html>