1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php /* Smarty version Smarty-3.1.7, created on 2016-12-20 18:01:21
- compiled from "D:/phpStudy/WWW_krpano100/vradmin/template\lib\pages.lbi" */ ?>
- <?php /*%%SmartyHeaderCode:10732585901711a6950-21869189%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
- $_valid = $_smarty_tpl->decodeProperties(array (
- 'file_dependency' =>
- array (
- '4adb644ba2c77c62e3706726f9afb74ac1dc85d1' =>
- array (
- 0 => 'D:/phpStudy/WWW_krpano100/vradmin/template\\lib\\pages.lbi',
- 1 => 1475814470,
- 2 => 'file',
- ),
- ),
- 'nocache_hash' => '10732585901711a6950-21869189',
- 'function' =>
- array (
- ),
- 'variables' =>
- array (
- 'allPages' => 0,
- 'allNum' => 0,
- 'pages' => 0,
- 'p' => 0,
- 'page' => 0,
- 'k' => 0,
- ),
- 'has_nocache_code' => false,
- 'version' => 'Smarty-3.1.7',
- 'unifunc' => 'content_585901712df1a',
- ),false); /*/%%SmartyHeaderCode%%*/?>
- <?php if ($_valid && !is_callable('content_585901712df1a')) {function content_585901712df1a($_smarty_tpl) {?><style type="text/css">
- .pagebox{
- text-align:center;
- margin-top:10px;
- }
- .pagebox span{
- margin-left:-10px;
- }
- a.apage{
- height:25px;line-height:25px;padding:3px 6px;margin-right:10px;border:1px solid #ccc;border-radius:3px;
- }
- a.apage.on, a.apage:hover{
- background: #60BBFF;border:1px solid #75a2c3;color:#fff;
- }
- </style>
- <?php if ($_smarty_tpl->tpl_vars['allPages']->value>1){?>
- <div class="pagebox">
- <span class="s12">共<?php echo $_smarty_tpl->tpl_vars['allNum']->value;?>
- 条/<?php echo $_smarty_tpl->tpl_vars['allPages']->value;?>
- 页 </span>
- <?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['p']->_loop = false;
- $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
- $_from = $_smarty_tpl->tpl_vars['pages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
- foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
- $_smarty_tpl->tpl_vars['p']->_loop = true;
- $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['p']->key;
- ?>
- <a href="<?php echo $_smarty_tpl->tpl_vars['p']->value['url'];?>
- " class="s12 apage <?php if ($_smarty_tpl->tpl_vars['p']->value['num']==$_smarty_tpl->tpl_vars['page']->value){?>on<?php }?>" ><?php echo $_smarty_tpl->tpl_vars['p']->value['name'];?>
- </a>
- <?php if ($_smarty_tpl->tpl_vars['allPages']->value>7){?>
- <?php if ($_smarty_tpl->tpl_vars['page']->value==1&&$_smarty_tpl->tpl_vars['k']->value==6){?>
- <span class="c66">...</span>
- <?php }?>
- <?php if ($_smarty_tpl->tpl_vars['page']->value>1&&($_smarty_tpl->tpl_vars['allPages']->value-$_smarty_tpl->tpl_vars['page']->value)>3&&$_smarty_tpl->tpl_vars['k']->value==8){?>
- <span class="c66">...</span>
- <?php }?>
- <?php }?>
- <?php } ?>
- </div>
- <?php }?><?php }} ?>
|