<div id="maincontent">


<div id="content">

<div id="contentright">
<{section name=ArticleList  loop=$Articleone}>
<div class="sidebox">
<div class="sideboxInner">
	<h1><a href="<{$baseUrl}>/article/article/id/<{$Articleone[ArticleList].id}>/"><{$Articleone[ArticleList].title}></a></h1>
	
	<div class="date">
		<span>浏览量:<{$Articleone[ArticleList].viewnum}>&nbsp;&nbsp;&nbsp;
		<img src="<{$baseUrl}>/public/images/author.png" alt="author">
		作者:<{$Articleone[ArticleList].title}>
		<img src="<{$baseUrl}>/public/images/date.png" alt="date">发表时间:<{$Articleone[ArticleList].addtime|date_format:"%Y-%m-%d"}> | 
		<img src="<{$baseUrl}>/public/images/filed.png" alt="filed">分类: 
		<a href="<{$baseUrl}>/" title="View all posts in Uncategorized" rel="category"><{$Articleone[ArticleList].classname}></a></span>
		</div>
		<div class="cover">
			<div class="entry">
			<{$Articleone[ArticleList].content}>
	</div>
	<div class="postmetadata">
			<div class="post_comments"><img src="<{$baseUrl}>/public/images/comment.png" alt="comment">评论:<a href="#" title="查看评论">[<{$comentsum}>]条</a></div>
			<div class="tagging"><img src="<{$baseUrl}>/public/images/tags.png" alt="tags">标签: <a href="#" rel="tag"><{$Articleone[ArticleList].tags}></a></div>		</div>
	<div class="clear"></div>
	<div>
	<{section name=ForwordList  loop=$ArticleForword}>
			<div  style="width:50%px;float:left;"> <a href="<{$baseUrl}>/article/article/id/<{$ArticleForword[ForwordList].id}>/" title="<{$ArticleForword[ForwordList].title}>"><{$ArticleForword[ForwordList].title}></a> << 前一篇 </div>
	
	<{sectionelse}>
	<div  style="width:50%px;float:left;">暂无日志!</div>
	 <{/section}>
	
	<{section name=BackList  loop=$ArticleBack}>
			<div  style="width:50%px;float:right;">后一篇 >> <a href="<{$baseUrl}>/article/article/id/<{$ArticleBack[BackList].id}>/" title="<{$ArticleBack[BackList].title}>"><{$ArticleBack[BackList].title}></a>  </div>

	<{sectionelse}>
	<div  style="width:50%px;float:right;">暂无日志!</div>
	 <{/section}>
	 </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="<{$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="<{$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="<{$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="<{$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="<{$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="<{$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="<{$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="<{$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="<{$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="<{$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="<{$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="<{$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/<{$id}>/">http://www.oophp.cn/article/id/<{$id}>/</a>


			
		</div>
		
		
		</div>
	<{sectionelse}>
<h3>对不起.没有查找到日志!</h3>
 
<{/section}>	
</div>

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

<ul>
<{section name=randArticle loop=$randArticle}>
<li style="margin:10px;"><{$smarty.section.randArticle.index+1}>.&nbsp;&nbsp;<a href="<{$baseUrl}>/article/article/id/<{$randArticle[randArticle].id}>/"><{$randArticle[randArticle].title}></a></li>
<{/section}>
</ul>
</div>
</div>

<div class="sidebox">
<div class="commentInner">
	<h2>相关评论</h2>
	<div class="date" >
		&nbsp;
		</div>
	
		<div class="cover" >
		<div id="commentflag">
			<{section name=CommentList  loop=$arrComments}>
			 <div class="comcontent">
				 <div class="comleft"><a href="#">
				 <img style="text-align:center;margin-bottom:10px;" src="<{$baseUrl}>/public/images/headimg/<{if $arrComments[CommentList].headimg==''}>default.gif<{else if}><{$arrComments[CommentList].headimg}>.png<{/if}>"  alt="游客的头像"></a>
				 <p style="text-align:center;margin-top:20px"><a href="#"><{$arrComments[CommentList].username|truncateex: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;"><{$smarty.section.CommentList.index+1+$offsetnums}>#&nbsp;<div class="comment" style="text-align:left;"><p><{$arrComments[CommentList].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="<{$baseUrl}>/public/images/author.png" alt="author">
				评论者:<{$arrComments[CommentList].username|truncateex:10:'..':true}>
				<img src="<{$baseUrl}>/public/images/date.png" alt="date">评论时间:<{$arrComments[CommentList].addtime}>| 
				<img src="<{$baseUrl}>/public/images/filed.png" alt="filed">来自地区: 
				<a href="<{$baseUrl}>/" title="View all posts in Uncategorized" rel="category"><{$arrComments[CommentList].address}></a></span>
			</div>
				<div class="clear"></div>
    		</div>
    	<{sectionelse}>
		  <div><h3>对不起.暂时没有相关评论!</h3></div>
		<{/section}>
 			<div class="postmetadata">
			<div id="pages"><{$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 = "<{$baseUrl}>/admin/auth/imgcode/t=" + dt;	
	}
	function ChangePhoto()
	{
		var headimg=$("#headimg").val();
		//alert(headimg);
		var checkcode = $("#headimgs").get(0);
		
		checkcode.src = "<{$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("<{$baseUrl}>/article/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 = "<{$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="<{$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="<{$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="<{$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">

<{include file="../views/left.phtml" title="left"}>

</div>


