<?php /* Smarty version 2.6.19, created on 2008-09-23 16:12:51
         compiled from index/index.phtml */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncateex', 'index/index.phtml', 10, false),array('modifier', 'date_format', 'index/index.phtml', 15, false),array('modifier', 'strip_tags', 'index/index.phtml', 22, false),)), $this); ?>
<div id="maincontent">


<div id="content">

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

            for ($this->_sections['ArticleList']['index'] = $this->_sections['ArticleList']['start'], $this->_sections['ArticleList']['iteration'] = 1;
                 $this->_sections['ArticleList']['iteration'] <= $this->_sections['ArticleList']['total'];
                 $this->_sections['ArticleList']['index'] += $this->_sections['ArticleList']['step'], $this->_sections['ArticleList']['iteration']++):
$this->_sections['ArticleList']['rownum'] = $this->_sections['ArticleList']['iteration'];
$this->_sections['ArticleList']['index_prev'] = $this->_sections['ArticleList']['index'] - $this->_sections['ArticleList']['step'];
$this->_sections['ArticleList']['index_next'] = $this->_sections['ArticleList']['index'] + $this->_sections['ArticleList']['step'];
$this->_sections['ArticleList']['first']      = ($this->_sections['ArticleList']['iteration'] == 1);
$this->_sections['ArticleList']['last']       = ($this->_sections['ArticleList']['iteration'] == $this->_sections['ArticleList']['total']);
?>
<div class="sidebox">
<div class="sideboxInner">
	<h1><a href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/article/article/id/<?php echo $this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['id']; ?>
/"><?php echo ((is_array($_tmp=$this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['title'])) ? $this->_run_mod_handler('truncateex', true, $_tmp, 100, '..', true) : smarty_modifier_truncateex($_tmp, 100, '..', true)); ?>
</a></h1>
	
	<div class="date">
		浏览量:<?php echo $this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['viewnum']; ?>
&nbsp;&nbsp;&nbsp;<img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/author.png" alt="author">
		作者: <?php echo $this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['author']; ?>

		<img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/date.png" alt="date">发表时间:<?php echo ((is_array($_tmp=$this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['addtime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
 | 
		<img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/filed.png" alt="filed">分类: 
		<a href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/" title="View all posts in Uncategorized" rel="category"><?php echo $this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['classname']; ?>
</a>&nbsp;&nbsp;
		
		</div>
		<div class="cover">
			<div class="entry">
			<p><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['content'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp) : smarty_modifier_strip_tags($_tmp)))) ? $this->_run_mod_handler('truncateex', true, $_tmp, 200, '..', true) : smarty_modifier_truncateex($_tmp, 200, '..', true)); ?>
</p>
			<div class="clear"></div>
			</div>
			
			<div class="more">
		<a href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/article/article/id/<?php echo $this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['id']; ?>
/">查看完整日志....</a>
		</div>
		<div class="clear"></div>
		</div>
		
			<div class="postmetadata">
			<div class="post_comments"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/comment.png" alt="日志评论">评论:<a href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/article/article/id/<?php echo $this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['id']; ?>
/" title="评论此日志">
			<?php echo $this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['numbers']; ?>
条</a></div>
			<div class="tagging"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/tags.png" alt="tags">标签:
			<?php $this->assign('nums', '0'); ?>
			<?php unset($this->_sections['TagList']);
$this->_sections['TagList']['name'] = 'TagList';
$this->_sections['TagList']['loop'] = is_array($_loop=$this->_tpl_vars['arrTags']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['TagList']['show'] = true;
$this->_sections['TagList']['max'] = $this->_sections['TagList']['loop'];
$this->_sections['TagList']['step'] = 1;
$this->_sections['TagList']['start'] = $this->_sections['TagList']['step'] > 0 ? 0 : $this->_sections['TagList']['loop']-1;
if ($this->_sections['TagList']['show']) {
    $this->_sections['TagList']['total'] = $this->_sections['TagList']['loop'];
    if ($this->_sections['TagList']['total'] == 0)
        $this->_sections['TagList']['show'] = false;
} else
    $this->_sections['TagList']['total'] = 0;
if ($this->_sections['TagList']['show']):

            for ($this->_sections['TagList']['index'] = $this->_sections['TagList']['start'], $this->_sections['TagList']['iteration'] = 1;
                 $this->_sections['TagList']['iteration'] <= $this->_sections['TagList']['total'];
                 $this->_sections['TagList']['index'] += $this->_sections['TagList']['step'], $this->_sections['TagList']['iteration']++):
$this->_sections['TagList']['rownum'] = $this->_sections['TagList']['iteration'];
$this->_sections['TagList']['index_prev'] = $this->_sections['TagList']['index'] - $this->_sections['TagList']['step'];
$this->_sections['TagList']['index_next'] = $this->_sections['TagList']['index'] + $this->_sections['TagList']['step'];
$this->_sections['TagList']['first']      = ($this->_sections['TagList']['iteration'] == 1);
$this->_sections['TagList']['last']       = ($this->_sections['TagList']['iteration'] == $this->_sections['TagList']['total']);
?>
			<?php if ($this->_tpl_vars['arrTags'][$this->_sections['TagList']['index']]['itemid'] == $this->_tpl_vars['arrArticles'][$this->_sections['ArticleList']['index']]['id']): ?>
			 <a href="#" rel="tag" ><?php echo $this->_tpl_vars['arrTags'][$this->_sections['TagList']['index']]['name']; ?>
</a>
			 <?php $this->assign('nums', '1'); ?>
			 <?php endif; ?>
			 <?php endfor; else: ?>
			  暂无标签
			 <?php endif; ?>
			 <?php if ($this->_tpl_vars['nums'] == 0): ?> 暂无标签<?php endif; ?>
			 </div>		</div>
			
			
		<div class="clear"></div>
		
		</div>
		<div class="clear"></div>
		
</div>

<?php endfor; else: ?>
对不起.没有查找到数据!
<?php endif; ?>
<div id="pages"><?php echo $this->_tpl_vars['pageInfo']; ?>
<a href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/index/rss"><img  src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/rss.png" alt="RSS" title="RSS"/></a></div>

</div>

<div id="contentleft">


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "../views/left.phtml", 'smarty_include_vars' => array('title' => 'left')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

</div>


