<?php /* Smarty version Smarty-3.0.8, created on 2015-01-11 15:44:42
         compiled from "D:\www\possystem/tpl\listarticle.html" */ ?>
<?php /*%%SmartyHeaderCode:2748954b229ea2aa016-39397391%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '759666daab47f616075aa4009ef129ec1c2327cf' => 
    array (
      0 => 'D:\\www\\possystem/tpl\\listarticle.html',
      1 => 1420961116,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2748954b229ea2aa016-39397391',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
    <meta name="author" content="梦想瞬智网络科技技术支持" />
	<title>文章列表</title>
<link rel="stylesheet" href="./css/bootstrap.min.css"/>
<link rel="stylesheet" href="./css/bootstrap-theme.min.css"/>
<script src="./js/jquery.min.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="./js/xheditor-1.1.14-zh-cn.js"></script> 
</head>
<body>
<div style="margin-top:10px;width: 99%;margin-left: auto;margin-right: auto;">
<table style="font-size: 14px;width: 100%;text-align: left;border-bottom: 1px solid #aaa;" class="table table-hover">
  <tr>
    <th style="text-align: center;">ID号</th>
    <th>栏目名称</th>
    <th>文章标题</th>
    <th>发表时间</th>
    <th>管理操作</th>
  </tr>
<?php  $_smarty_tpl->tpl_vars['value'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('listarticle')->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="text-align: center;"><?php echo $_smarty_tpl->tpl_vars['value']->value['ar_id'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ar_type'];?>
</td>             
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ar_title'];?>
</td>
    <td><?php echo $_smarty_tpl->tpl_vars['value']->value['ar_time'];?>
</td>
    <td>
    <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'articledel','ar_id'=>$_smarty_tpl->tpl_vars['value']->value['ar_id']),$_smarty_tpl);?>
">删除</a> 丨
    <a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'articleedit','ar_id'=>$_smarty_tpl->tpl_vars['value']->value['ar_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'=>'listarticle','page'=>$_smarty_tpl->getVariable('pager')->value['first_page']),$_smarty_tpl);?>
">前页</a> | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'listarticle','page'=>$_smarty_tpl->getVariable('pager')->value['prev_page']),$_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'=>'listarticle','page'=>$_smarty_tpl->tpl_vars['thepage']->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'=>'listarticle','page'=>$_smarty_tpl->getVariable('pager')->value['next_page']),$_smarty_tpl);?>
">下一页</a> | 
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'listarticle','page'=>$_smarty_tpl->getVariable('pager')->value['last_page']),$_smarty_tpl);?>
">后页</a>
<?php }?>
<?php }?>
</div>
</div>
</body>
</html>