4adb644ba2c77c62e3706726f9afb74ac1dc85d1.file.pages.lbi.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?php /* Smarty version Smarty-3.1.7, created on 2016-12-20 18:01:21
  2. compiled from "D:/phpStudy/WWW_krpano100/vradmin/template\lib\pages.lbi" */ ?>
  3. <?php /*%%SmartyHeaderCode:10732585901711a6950-21869189%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '4adb644ba2c77c62e3706726f9afb74ac1dc85d1' =>
  8. array (
  9. 0 => 'D:/phpStudy/WWW_krpano100/vradmin/template\\lib\\pages.lbi',
  10. 1 => 1475814470,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '10732585901711a6950-21869189',
  15. 'function' =>
  16. array (
  17. ),
  18. 'variables' =>
  19. array (
  20. 'allPages' => 0,
  21. 'allNum' => 0,
  22. 'pages' => 0,
  23. 'p' => 0,
  24. 'page' => 0,
  25. 'k' => 0,
  26. ),
  27. 'has_nocache_code' => false,
  28. 'version' => 'Smarty-3.1.7',
  29. 'unifunc' => 'content_585901712df1a',
  30. ),false); /*/%%SmartyHeaderCode%%*/?>
  31. <?php if ($_valid && !is_callable('content_585901712df1a')) {function content_585901712df1a($_smarty_tpl) {?><style type="text/css">
  32. .pagebox{
  33. text-align:center;
  34. margin-top:10px;
  35. }
  36. .pagebox span{
  37. margin-left:-10px;
  38. }
  39. a.apage{
  40. height:25px;line-height:25px;padding:3px 6px;margin-right:10px;border:1px solid #ccc;border-radius:3px;
  41. }
  42. a.apage.on, a.apage:hover{
  43. background: #60BBFF;border:1px solid #75a2c3;color:#fff;
  44. }
  45. </style>
  46. <?php if ($_smarty_tpl->tpl_vars['allPages']->value>1){?>
  47. <div class="pagebox">
  48. <span class="s12">共<?php echo $_smarty_tpl->tpl_vars['allNum']->value;?>
  49. 条/<?php echo $_smarty_tpl->tpl_vars['allPages']->value;?>
  50. 页 </span>
  51. <?php $_smarty_tpl->tpl_vars['p'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['p']->_loop = false;
  52. $_smarty_tpl->tpl_vars['k'] = new Smarty_Variable;
  53. $_from = $_smarty_tpl->tpl_vars['pages']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  54. foreach ($_from as $_smarty_tpl->tpl_vars['p']->key => $_smarty_tpl->tpl_vars['p']->value){
  55. $_smarty_tpl->tpl_vars['p']->_loop = true;
  56. $_smarty_tpl->tpl_vars['k']->value = $_smarty_tpl->tpl_vars['p']->key;
  57. ?>
  58. <a href="<?php echo $_smarty_tpl->tpl_vars['p']->value['url'];?>
  59. " 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'];?>
  60. </a>
  61. <?php if ($_smarty_tpl->tpl_vars['allPages']->value>7){?>
  62. <?php if ($_smarty_tpl->tpl_vars['page']->value==1&&$_smarty_tpl->tpl_vars['k']->value==6){?>
  63. <span class="c66">...</span>
  64. <?php }?>
  65. <?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){?>
  66. <span class="c66">...</span>
  67. <?php }?>
  68. <?php }?>
  69. <?php } ?>
  70. </div>
  71. <?php }?><?php }} ?>