<?php /* Smarty version 2.6.19, created on 2008-09-23 17:41:27
         compiled from feed/feedshow.phtml */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncateex', 'feed/feedshow.phtml', 10, false),array('modifier', 'date_format', 'feed/feedshow.phtml', 16, 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['Articleone']) ? 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['Articleone'][$this->_sections['ArticleList']['index']]['id']; ?>
/"><?php echo ((is_array($_tmp=$this->_tpl_vars['Articleone'][$this->_sections['ArticleList']['index']]['title'])) ? $this->_run_mod_handler('truncateex', true, $_tmp, 50, '..', true) : smarty_modifier_truncateex($_tmp, 50, '..', true)); ?>
</a></h1>
	
	<div class="date">
		<span>
		<img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/author.png" alt="author">
		来源网址(作者):<a href="<?php echo $this->_tpl_vars['Articleone'][$this->_sections['ArticleList']['index']]['link']; ?>
" target="_blank"><?php echo ((is_array($_tmp=$this->_tpl_vars['Articleone'][$this->_sections['ArticleList']['index']]['link'])) ? $this->_run_mod_handler('truncateex', true, $_tmp, 50, '..', true) : smarty_modifier_truncateex($_tmp, 50, '..', true)); ?>
</a>
		<img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/date.png" alt="date">加入时间:<?php echo ((is_array($_tmp=$this->_tpl_vars['Articleone'][$this->_sections['ArticleList']['index']]['addtime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
 | 
		</span>
		</div>
		<div class="cover">
			<div class="entry">
			<div class="feedcontent">
			<?php echo $this->_tpl_vars['Articleone'][$this->_sections['ArticleList']['index']]['description']; ?>

			</div>
		</div>
	<div class="postmetadata">
			<div class="post_comments"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/comment.png" alt="comment">评论:<a href="#" title="查看评论">[<?php echo $this->_tpl_vars['comentsum']; ?>
]条</a></div>
			<div class="tagging"></div>		</div>
	<div class="clear"></div>
	<div>
	<?php unset($this->_sections['ForwordList']);
$this->_sections['ForwordList']['name'] = 'ForwordList';
$this->_sections['ForwordList']['loop'] = is_array($_loop=$this->_tpl_vars['ArticleForword']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['ForwordList']['show'] = true;
$this->_sections['ForwordList']['max'] = $this->_sections['ForwordList']['loop'];
$this->_sections['ForwordList']['step'] = 1;
$this->_sections['ForwordList']['start'] = $this->_sections['ForwordList']['step'] > 0 ? 0 : $this->_sections['ForwordList']['loop']-1;
if ($this->_sections['ForwordList']['show']) {
    $this->_sections['ForwordList']['total'] = $this->_sections['ForwordList']['loop'];
    if ($this->_sections['ForwordList']['total'] == 0)
        $this->_sections['ForwordList']['show'] = false;
} else
    $this->_sections['ForwordList']['total'] = 0;
if ($this->_sections['ForwordList']['show']):

            for ($this->_sections['ForwordList']['index'] = $this->_sections['ForwordList']['start'], $this->_sections['ForwordList']['iteration'] = 1;
                 $this->_sections['ForwordList']['iteration'] <= $this->_sections['ForwordList']['total'];
                 $this->_sections['ForwordList']['index'] += $this->_sections['ForwordList']['step'], $this->_sections['ForwordList']['iteration']++):
$this->_sections['ForwordList']['rownum'] = $this->_sections['ForwordList']['iteration'];
$this->_sections['ForwordList']['index_prev'] = $this->_sections['ForwordList']['index'] - $this->_sections['ForwordList']['step'];
$this->_sections['ForwordList']['index_next'] = $this->_sections['ForwordList']['index'] + $this->_sections['ForwordList']['step'];
$this->_sections['ForwordList']['first']      = ($this->_sections['ForwordList']['iteration'] == 1);
$this->_sections['ForwordList']['last']       = ($this->_sections['ForwordList']['iteration'] == $this->_sections['ForwordList']['total']);
?>
			<div  style="width:50%px;float:left;"> <a href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/feed/feedshow/id/<?php echo $this->_tpl_vars['ArticleForword'][$this->_sections['ForwordList']['index']]['id']; ?>
/" title="<?php echo $this->_tpl_vars['ArticleForword'][$this->_sections['ForwordList']['index']]['title']; ?>
"><?php echo $this->_tpl_vars['ArticleForword'][$this->_sections['ForwordList']['index']]['title']; ?>
</a> << 前一篇 </div>
	
	<?php endfor; else: ?>
	<div  style="width:50%px;float:left;">暂无文章!</div>
	 <?php endif; ?>
	
	<?php unset($this->_sections['BackList']);
$this->_sections['BackList']['name'] = 'BackList';
$this->_sections['BackList']['loop'] = is_array($_loop=$this->_tpl_vars['ArticleBack']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['BackList']['show'] = true;
$this->_sections['BackList']['max'] = $this->_sections['BackList']['loop'];
$this->_sections['BackList']['step'] = 1;
$this->_sections['BackList']['start'] = $this->_sections['BackList']['step'] > 0 ? 0 : $this->_sections['BackList']['loop']-1;
if ($this->_sections['BackList']['show']) {
    $this->_sections['BackList']['total'] = $this->_sections['BackList']['loop'];
    if ($this->_sections['BackList']['total'] == 0)
        $this->_sections['BackList']['show'] = false;
} else
    $this->_sections['BackList']['total'] = 0;
if ($this->_sections['BackList']['show']):

            for ($this->_sections['BackList']['index'] = $this->_sections['BackList']['start'], $this->_sections['BackList']['iteration'] = 1;
                 $this->_sections['BackList']['iteration'] <= $this->_sections['BackList']['total'];
                 $this->_sections['BackList']['index'] += $this->_sections['BackList']['step'], $this->_sections['BackList']['iteration']++):
$this->_sections['BackList']['rownum'] = $this->_sections['BackList']['iteration'];
$this->_sections['BackList']['index_prev'] = $this->_sections['BackList']['index'] - $this->_sections['BackList']['step'];
$this->_sections['BackList']['index_next'] = $this->_sections['BackList']['index'] + $this->_sections['BackList']['step'];
$this->_sections['BackList']['first']      = ($this->_sections['BackList']['iteration'] == 1);
$this->_sections['BackList']['last']       = ($this->_sections['BackList']['iteration'] == $this->_sections['BackList']['total']);
?>
			<div  style="width:50%px;float:right;">后一篇 >> <a href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/feed/feedshow/id/<?php echo $this->_tpl_vars['ArticleBack'][$this->_sections['BackList']['index']]['id']; ?>
/" title="<?php echo $this->_tpl_vars['ArticleBack'][$this->_sections['BackList']['index']]['title']; ?>
"><?php echo $this->_tpl_vars['ArticleBack'][$this->_sections['BackList']['index']]['title']; ?>
</a>  </div>

	<?php endfor; else: ?>
	<div  style="width:50%px;float:right;">暂无文章!</div>
	 <?php endif; ?>
	 </div>
	<div class="clear"></div>
<br/>
<!-- 添加网摘 -->
<strong><font color="#0e63e4">收</font><font color="#58c600">藏</font><font color="#996699">到</font><font color="#c00012">网</font><font color="#795f00">摘</font><font color="#327f00">:</font></strong>

<a href="javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&amp;iu=%22+encodeURIComponent(u)+%22&amp;dc=%22+encodeURIComponent(c)+%22&amp;fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0" title="Baidu搜藏"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/baidu.gif" alt="Baidu搜藏" border="0"></a>

<a href="javascript:window.open('http://shuqian.qq.com/post?title='+encodeURIComponent(document.title)+'&amp;uri='+encodeURIComponent(document.location.href)+'&amp;jumpback=2&amp;noui=1','favit','width=960,height=600,left=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/qq.gif" alt="QQ书签" title="QQ书签" border="0"></a>

<a href="javascript:location.href='http://www.google.com/bookmarks/mark?op=add&amp;bkmk='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/google.gif" alt="Google书签" border="0"></a>

<a href="javascript:location.href='http://del.icio.us/post?&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/delicious.gif" alt="Del.icio.us" title="Del.icio.us" border="0"></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();" title="POCO网摘"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/poco.gif" alt="POCO网摘" border="0"></a>

<a href="javascript:location.href='http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(location.href)+'&amp;t='+encodeURIComponent(document.title)" title="Yahoo书签"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/yahoo.gif" alt="Yahoo书签" border="0"></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="新浪ViVi"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/vivi.gif" alt="新浪ViVi" border="0"></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();" title="365Key网摘"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/365key.gif" alt="365Key网摘" border="0"></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();" title="天极网摘"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/yesky.gif" alt="天极网摘" border="0"></a>


<a href="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&amp;url='+escape(u)+'&amp;excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));" title="和讯网摘"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/hexun.gif" alt="和讯网摘" border="0"></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(live=window.open('https://favorites.live.com/quickadd.aspx?marklet=1&amp;mkt=en-us&amp;url='+escape(d.location.href)+'&amp;title='+escape(d.title)+'&amp;top=1','live','scrollbars=no,status=no,resizable=yes'));live.focus();"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/live.gif" alt="Windows Live" border="0"></a>

<a title="鼠标选中部分作为描述，提交到diglog.com" href="javascript://" onclick="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.diglog.com/submit.aspx?title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;description='+escape(t),'keyit','scrollbars=yes,width=500,height=500,left=65,top=20,status=no,resizable=yes'));keyit.focus();"><img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/digit.gif" alt="提交新发现，Dig it" border="0"></a>

<!-- 添加网摘结束 -->
<br/><br/>原创文章如转载,请注明:<br/>转载自<a href="http://www.oophp.cn/">OOPHP开源博客</a> [ <a href="http://www.oophp.cn.info/">http://www.oophp.cn/</a> ]
<br/>本文链接地址：<a href="http://www.oophp.cn/article/id/<?php echo $this->_tpl_vars['id']; ?>
/">http://www.oophp.cn/article/id/<?php echo $this->_tpl_vars['id']; ?>
/</a>


			
		</div>
		
		
		</div>
	<?php endfor; else: ?>
<h3>对不起.没有查找到文章!</h3>
 
<?php endif; ?>	
</div>

<div class="sidebox">
<div class="sideboxInner">
<h2>推荐阅读</h2>

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

            for ($this->_sections['randArticle']['index'] = $this->_sections['randArticle']['start'], $this->_sections['randArticle']['iteration'] = 1;
                 $this->_sections['randArticle']['iteration'] <= $this->_sections['randArticle']['total'];
                 $this->_sections['randArticle']['index'] += $this->_sections['randArticle']['step'], $this->_sections['randArticle']['iteration']++):
$this->_sections['randArticle']['rownum'] = $this->_sections['randArticle']['iteration'];
$this->_sections['randArticle']['index_prev'] = $this->_sections['randArticle']['index'] - $this->_sections['randArticle']['step'];
$this->_sections['randArticle']['index_next'] = $this->_sections['randArticle']['index'] + $this->_sections['randArticle']['step'];
$this->_sections['randArticle']['first']      = ($this->_sections['randArticle']['iteration'] == 1);
$this->_sections['randArticle']['last']       = ($this->_sections['randArticle']['iteration'] == $this->_sections['randArticle']['total']);
?>
<li style="margin:10px;"><?php echo $this->_sections['randArticle']['index']+1; ?>
.&nbsp;&nbsp;<a href="<?php echo $this->_tpl_vars['baseUrl']; ?>
/feed/feedshow/id/<?php echo $this->_tpl_vars['randArticle'][$this->_sections['randArticle']['index']]['id']; ?>
/"><?php echo $this->_tpl_vars['randArticle'][$this->_sections['randArticle']['index']]['title']; ?>
</a></li>
<?php endfor; endif; ?>
</ul>
</div>
</div>

<div class="sidebox">
<div class="commentInner">
	<h2>相关评论</h2>
	<div class="date" >
		&nbsp;
		</div>
	
		<div class="cover" >
		<div id="commentflag">
			<?php unset($this->_sections['CommentList']);
$this->_sections['CommentList']['name'] = 'CommentList';
$this->_sections['CommentList']['loop'] = is_array($_loop=$this->_tpl_vars['arrComments']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['CommentList']['show'] = true;
$this->_sections['CommentList']['max'] = $this->_sections['CommentList']['loop'];
$this->_sections['CommentList']['step'] = 1;
$this->_sections['CommentList']['start'] = $this->_sections['CommentList']['step'] > 0 ? 0 : $this->_sections['CommentList']['loop']-1;
if ($this->_sections['CommentList']['show']) {
    $this->_sections['CommentList']['total'] = $this->_sections['CommentList']['loop'];
    if ($this->_sections['CommentList']['total'] == 0)
        $this->_sections['CommentList']['show'] = false;
} else
    $this->_sections['CommentList']['total'] = 0;
if ($this->_sections['CommentList']['show']):

            for ($this->_sections['CommentList']['index'] = $this->_sections['CommentList']['start'], $this->_sections['CommentList']['iteration'] = 1;
                 $this->_sections['CommentList']['iteration'] <= $this->_sections['CommentList']['total'];
                 $this->_sections['CommentList']['index'] += $this->_sections['CommentList']['step'], $this->_sections['CommentList']['iteration']++):
$this->_sections['CommentList']['rownum'] = $this->_sections['CommentList']['iteration'];
$this->_sections['CommentList']['index_prev'] = $this->_sections['CommentList']['index'] - $this->_sections['CommentList']['step'];
$this->_sections['CommentList']['index_next'] = $this->_sections['CommentList']['index'] + $this->_sections['CommentList']['step'];
$this->_sections['CommentList']['first']      = ($this->_sections['CommentList']['iteration'] == 1);
$this->_sections['CommentList']['last']       = ($this->_sections['CommentList']['iteration'] == $this->_sections['CommentList']['total']);
?>
			 <div class="comcontent">
				 <div class="comleft"><a href="#">
				 <img style="text-align:center;margin-bottom:10px;" src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/headimg/<?php if ($this->_tpl_vars['arrComments'][$this->_sections['CommentList']['index']]['headimg'] == ''): ?>default.gif<?php else: ?><?php echo $this->_tpl_vars['arrComments'][$this->_sections['CommentList']['index']]['headimg']; ?>
.png<?php endif; ?>"  alt="游客的头像"></a>
				 <p style="text-align:center;margin-top:20px"><a href="#"><?php echo ((is_array($_tmp=$this->_tpl_vars['arrComments'][$this->_sections['CommentList']['index']]['username'])) ? $this->_run_mod_handler('truncateex', true, $_tmp, 10, '..', true) : smarty_modifier_truncateex($_tmp, 10, '..', true)); ?>
</a></p>
				 </div>
				 <div class="comright">
	 				<div class="clear"></div>
		     		<div class="comtop" ></div>
		     		<div class="comtext" style="color:green;text-align:right;"><?php echo $this->_sections['CommentList']['index']+1+$this->_tpl_vars['offsetnums']; ?>
#&nbsp;<div class="comment" style="text-align:left;"><p><?php echo $this->_tpl_vars['arrComments'][$this->_sections['CommentList']['index']]['content']; ?>
</p></div></div>
		     		<div class="combot"></div>
					<div class="clear"></div>
				</div>
				<div class="clear"></div>
				<div class="date" style="margin:30px 0px 30px 0px;">
				<span>
				<img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/author.png" alt="author">
				评论者:<?php echo ((is_array($_tmp=$this->_tpl_vars['arrComments'][$this->_sections['CommentList']['index']]['username'])) ? $this->_run_mod_handler('truncateex', true, $_tmp, 10, '..', true) : smarty_modifier_truncateex($_tmp, 10, '..', true)); ?>

				<img src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/date.png" alt="date">评论时间:<?php echo $this->_tpl_vars['arrComments'][$this->_sections['CommentList']['index']]['addtime']; ?>
| 
				<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['arrComments'][$this->_sections['CommentList']['index']]['address']; ?>
</a></span>
			</div>
				<div class="clear"></div>
    		</div>
    	<?php endfor; else: ?>
		  <div><h3>对不起.暂时没有相关评论!</h3></div>
		<?php endif; ?>
 			<div class="postmetadata">
			<div id="pages"><?php echo $this->_tpl_vars['pageInfo']; ?>

			</div>	
		</div>
		<div class="clear"></div>
	 
	
 </div>
	 	
			
			
		</div>
		
		</div>
		
</div>
<div class="sidebox">
<div class="sideboxInner">
	<h2>发表评论区</h2>
<script type="text/javascript" language="Javascript" >
	function	ChangImg()
	{	
		var checkcode = $("#imgcode").get(0);
		var dt = new Date();
		checkcode.src = "<?php echo $this->_tpl_vars['baseUrl']; ?>
/admin/auth/imgcode/t=" + dt;	
	}
	function ChangePhoto()
	{
		var headimg=$("#headimg").val();
		//alert(headimg);
		var checkcode = $("#headimgs").get(0);
		
		checkcode.src = "<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/headimg/"+headimg+".png";
	}
	function	submitcomment()
	{	var headimg=$("#headimg").val();
		var username=$("#username").val();
		var	email=$("#email").val();
		var	content=$("#comcontent").val();
		var	imgcode=$("#code").val();
		var	articleId=$("#articleId").val();
		if(username==''){
			alert("您的大名不能为空!");
		}else if(email==''){
			alert("电子邮箱不能为空!");
		}else if(imgcode==''){
			alert("验证码不能为空!");
		}else if(content==''){
			alert("请发表点您的评论吧!");
		}else{
		$.post("<?php echo $this->_tpl_vars['baseUrl']; ?>
/feed/comment/",{username:username,headimg:headimg,articleId:articleId,content:content,imgcode:imgcode,email:email},
				function(data){
					var   strArray=new   Array();   
					strArray=data.split("||||");
					if(strArray[0]==0){
						$("#email").val('');
						$("#comcontent").val('');
						$("#code").val('');
						$("#nameflag").empty();
						$("#successflag").empty();
						$("#contentflag").empty();
						$("#codeflag").empty();
						$("#emailflag").empty();
						var checkcode = $("#imgcode").get(0);
						var dt = new Date();
						checkcode.src = "<?php echo $this->_tpl_vars['baseUrl']; ?>
/admin/auth/imgcode/t=" + dt;	
						$("#commentflag").empty();
						$("#commentflag").html(strArray[2]);
						$("#successflag").html(strArray[1]); 
					}else if(strArray[0]==1){
						$("#nameflag").empty();
						$("#successflag").empty();
						$("#contentflag").empty();
						$("#codeflag").empty();
						$("#emailflag").empty();
						$("#nameflag").html(strArray[1]); 
					}else if(strArray[0]==2){
						$("#nameflag").empty();
						$("#successflag").empty();
						$("#contentflag").empty();
						$("#codeflag").empty();
						$("#emailflag").empty();
						$("#successflag").html(strArray[1]); 
					}else if(strArray[0]==3){
						$("#nameflag").empty();
						$("#successflag").empty();
						$("#contentflag").empty();
						$("#codeflag").empty();
						$("#emailflag").empty();
						$("#contentflag").html(strArray[1]); 
					}else if(strArray[0]==4){
						$("#nameflag").empty();
						$("#successflag").empty();
						$("#contentflag").empty();
						$("#codeflag").empty();
						$("#emailflag").empty();
						$("#codeflag").html(strArray[1]); 
					}else if(strArray[0]==5){
						$("#nameflag").empty();
						$("#successflag").empty();
						$("#contentflag").empty();
						$("#codeflag").empty();
						$("#emailflag").empty();
						$("#emailflag").html(strArray[1]); 
					}
					
				});
		}
	}
</script>
		<div class="cover">
			<div class="entry" style="position:relative;">
			<p class="posttop"><a name="comment">发表评论:</a></p>
	<form id="frmSumbit" target="_self" method="post" action="#" >

	<input type="hidden" name="articleId" id="articleId" value="<?php echo $this->_tpl_vars['id']; ?>
" />
	<p><label for="headimg">阁下相片</label>&nbsp;&nbsp;&nbsp;<select id="headimg" name="headimg"  onchange="ChangePhoto();" >
		<option  value="1" selected="selected">默认相片</option>
		<option  value="2">相片一</option>
		<option  value="3">相片二</option>
		<option  value="4">相片三</option>
		<option  value="5">相片四</option>
		<option  value="6">相片五</option>
		<option  value="7">相片六</option>
		<option  value="8">相片七</option>
		<option  value="9">相片八</option>
		</select>
	<img id="headimgs" style="text-align:center;z-index:30;position:absolute;border:1px green solid; left:480px; top:0px;" src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/public/images/headimg/1.png"  alt="游客的头像"></p>
	<p><label for="username">阁下大名</label>&nbsp;&nbsp;&nbsp;<input type="text" name="username" id="username" class="text" value="游客" size="28" tabindex="1" /><span id="nameflag" style="color:red;"></span></p>
	<p><label for="email">电子邮件</label>&nbsp;&nbsp;&nbsp;<input type="text" name="email" id="email" class="text"  size="28" tabindex="2" /><span id="emailflag" style="color:red;"></span></p>
	<p><label for="imgcode">验&nbsp;证&nbsp;码</label>&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="imgcode" id="code" class="text"  size="10" tabindex="3"   />&nbsp;&nbsp;<img id="imgcode" style="margin-bottom:-5px;cursor:pointer;" onclick="javascript:ChangImg()"   src="<?php echo $this->_tpl_vars['baseUrl']; ?>
/admin/auth/imgcode/">&nbsp;点击图,换图片&nbsp;&nbsp;<span id="codeflag" style="color:red;"></span></p>
	<p><label for="content">评论内容(评论的最长字数:<font color="red">300</font>字)</label><span id="successflag" style="color:red;"></span></p>
	<p><textarea name="comcontent" id="comcontent"  class="text" cols="50" style="width:420px;" rows="4" tabindex="5" ></textarea><span id="contentflag"></span></p>
	<p><input name="butSumbit" type="button" tabindex="6" value="发表评论" onclick="javascript:submitcomment()" class="button" /></p>
	</form>
	<p class="postbottom">◎欢迎参与讨论，请在这里发表您的看法、交流您的观点。</p>

			</div>
			
		</div>
		
		</div>
		
</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>


