<?php /* Smarty version 2.6.26, created on 2016-06-05 22:20:37
         compiled from index.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'index.htm', 4, false),array('function', 'getdate', 'index.htm', 28, false),array('function', 'thisfont', 'index.htm', 30, false),array('function', 'font', 'index.htm', 32, false),array('function', 'getpage', 'index.htm', 46, false),array('block', 'thislist', 'index.htm', 35, false),array('block', 'alist', 'index.htm', 41, false),)), $this); ?>
﻿<html>
<head>
<metahttp-equiv="Content-Type" c>
<title><?php echo ((is_array($_tmp=$this->_tpl_vars['name'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 6, "") : smarty_modifier_truncate($_tmp, 6, "")); ?>
 </title>
</head>
<body>
<!--limao轻博客系统ＣＭＳ-->

网站编号：<?php echo $this->_tpl_vars['name']; ?>
<br>
当前页：<?php echo $this->_tpl_vars['page']; ?>
<br>


<?php unset($this->_sections['loop']);
$this->_sections['loop']['name'] = 'loop';
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['news']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['loop']['show'] = true;
$this->_sections['loop']['max'] = $this->_sections['loop']['loop'];
$this->_sections['loop']['step'] = 1;
$this->_sections['loop']['start'] = $this->_sections['loop']['step'] > 0 ? 0 : $this->_sections['loop']['loop']-1;
if ($this->_sections['loop']['show']) {
    $this->_sections['loop']['total'] = $this->_sections['loop']['loop'];
    if ($this->_sections['loop']['total'] == 0)
        $this->_sections['loop']['show'] = false;
} else
    $this->_sections['loop']['total'] = 0;
if ($this->_sections['loop']['show']):

            for ($this->_sections['loop']['index'] = $this->_sections['loop']['start'], $this->_sections['loop']['iteration'] = 1;
                 $this->_sections['loop']['iteration'] <= $this->_sections['loop']['total'];
                 $this->_sections['loop']['index'] += $this->_sections['loop']['step'], $this->_sections['loop']['iteration']++):
$this->_sections['loop']['rownum'] = $this->_sections['loop']['iteration'];
$this->_sections['loop']['index_prev'] = $this->_sections['loop']['index'] - $this->_sections['loop']['step'];
$this->_sections['loop']['index_next'] = $this->_sections['loop']['index'] + $this->_sections['loop']['step'];
$this->_sections['loop']['first']      = ($this->_sections['loop']['iteration'] == 1);
$this->_sections['loop']['last']       = ($this->_sections['loop']['iteration'] == $this->_sections['loop']['total']);
?>
新闻编号：<?php echo $this->_tpl_vars['news'][$this->_sections['loop']['index']]['newsID']; ?>
<br/>
新闻标题：<?php echo $this->_tpl_vars['news'][$this->_sections['loop']['index']]['newsTitle']; ?>
</br>
<?php endfor; else: ?>
对不起，没有任何新闻输入!
<?php endif; ?>

<?php unset($this->_sections['loop']);
$this->_sections['loop']['name'] = 'loop';
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['da']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['loop']['show'] = true;
$this->_sections['loop']['max'] = $this->_sections['loop']['loop'];
$this->_sections['loop']['step'] = 1;
$this->_sections['loop']['start'] = $this->_sections['loop']['step'] > 0 ? 0 : $this->_sections['loop']['loop']-1;
if ($this->_sections['loop']['show']) {
    $this->_sections['loop']['total'] = $this->_sections['loop']['loop'];
    if ($this->_sections['loop']['total'] == 0)
        $this->_sections['loop']['show'] = false;
} else
    $this->_sections['loop']['total'] = 0;
if ($this->_sections['loop']['show']):

            for ($this->_sections['loop']['index'] = $this->_sections['loop']['start'], $this->_sections['loop']['iteration'] = 1;
                 $this->_sections['loop']['iteration'] <= $this->_sections['loop']['total'];
                 $this->_sections['loop']['index'] += $this->_sections['loop']['step'], $this->_sections['loop']['iteration']++):
$this->_sections['loop']['rownum'] = $this->_sections['loop']['iteration'];
$this->_sections['loop']['index_prev'] = $this->_sections['loop']['index'] - $this->_sections['loop']['step'];
$this->_sections['loop']['index_next'] = $this->_sections['loop']['index'] + $this->_sections['loop']['step'];
$this->_sections['loop']['first']      = ($this->_sections['loop']['iteration'] == 1);
$this->_sections['loop']['last']       = ($this->_sections['loop']['iteration'] == $this->_sections['loop']['total']);
?>
产品编号：<?php echo $this->_tpl_vars['da'][$this->_sections['loop']['index']]['pid']; ?>
<br/>
产品标题：<?php echo $this->_tpl_vars['da'][$this->_sections['loop']['index']]['pname']; ?>
</br>
产品图片：<?php echo $this->_tpl_vars['da'][$this->_sections['loop']['index']]['ppic']; ?>
</br>
<?php endfor; else: ?>
对不起，没有任何产品信息!
<?php endif; ?>

<?php echo smarty_function_getdate(array('format' => '%Y/%m/%d'), $this);?>

<br>
<?php echo test(array('color' => 'red','num' => '2','size' => '16','con' => 'HI,WORLD'), $this);?>

<br>
<?php echo smarty_function_font(array('times' => '10','size' => '5','color' => 'green','con' => "hello,world"), $this);?>

<br>
以下为thislist展示<br>
<?php $this->_tag_stack[] = array('thislist', array('table' => 'limao_ping','order' => 'lm_id','num' => '10')); $_block_repeat=true;smarty_block_thislist($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
[$field.lm_id]  [$field.lm_linktitle]  [$field.lm_content] <br>
<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_thislist($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
<br>

以下为alist展示<br>
<?php $this->_tag_stack[] = array('alist', array('inid' => '4','inorder' => 'lm_id','insize' => '1')); $_block_repeat=true;smarty_block_alist($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
[$field.lm_id]  [$field.lm_title] <br>
 [$field.lm_des] <br>
<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_alist($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
<!--alist与getpage配对使用，传递参数需保持一致，否则数据有差错-->
<?php echo smarty_function_getpage(array('inid' => '4','inorder' => 'lm_id','insize' => '1'), $this);?>
 

</body>
</html>