<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo SYS_CHARSET ?>" />
<title><?php echo $article_array['title'] ?>_查看评论_<?php echo $sys_title ?></title>
<meta name="keywords" content="<?php echo $article_array['title'] ?>" />
<meta name="description" content="<?php echo $article_array['title'] ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo SYS_FRONT_STYLE_PATH?>style/style.css" />
<script type="text/javascript" src="<?php echo SYS_FRONT_STYLE_PATH?>js/common.js"></script>
<script type="text/javascript" src="<?php echo SYS_FRONT_STYLE_PATH?>js/jquery.js"></script>
<script language="javascript" type="text/javascript">
<!--
function submitComment()
{
	if(document.getElementById('comment_action').value=='save')
	{
		var rtn = true;
		if(document.getElementById('comment_content').value=='')			    			
		{
			rtn = false;
			alert("请输入内容!");
		}
		if(rtn)
		{
			document.postcomm.submit();
		}
		
	}
	
}

function setRate(tmpValue)
{
	document.getElementById('ratevalue').value=tmpValue;
	var rateArr=['1','2','3'];
	for(var i=0; i<rateArr.length; i++)
	{
		if(tmpValue==rateArr[i])
		{
			document.getElementById('article-rate'+rateArr[i]).style.background='#BBB';
		}
		else
		{
			document.getElementById('article-rate'+rateArr[i]).style.background='#DDD';
		}
	}
}
//-->
</script>

<base target="_self" />
</head>

<body>
<?php include("inc_topbar.tpl.html"); ?>
<div id="wrap">
<!--Content, Left, Right, Middle, Outer, Advertisement--> 
<!--Header-->
<div id="header">
<?php 
include("inc_pagetitle.tpl.html"); 
include("inc_mainmenu.tpl.html"); 
include("inc_submenu.tpl.html"); 
$navigation = '&gt;&gt; 查看评论';
include("inc_navigation.tpl.html"); 
?>
</div>
<!--/Header-->

<div id="commentlist">
<h3 style="text-align: center;"><strong><a href="article.php?id=<?php echo $article_array['id'] ?>"><?php echo $article_array['title'] ?></a></strong></h3>
<h5 style="margin: 1em 0; font-size: 1em;">
评论数: <?php echo $rate_array['rate_count'] ?> / 
好评: <?php echo $rate_array['rate3'] ?> / 
中评: <?php echo $rate_array['rate2'] ?> /
差评: <?php echo $rate_array['rate1'] ?></h5>
<ul class="messagelist" >
<?php
foreach($comment_list_array['list'] as $row){
$userlink = '';
if($row['eifr_uid']!=0) $userlink = "href='user.php?id=".$row['eifr_uid']."' target='_blank'";
$addtime = getDateTimeMk($row['addtime']);
?>
<li>
<h4 style="padding:5px;">
<?php echo $row['eifr_handle'] . $row['title'] ?>
 <span class="smalltxt">(第<?php echo $row['eifr_num'] ?>楼,&nbsp;<a <?php echo $userlink ?>><?php echo $row['nickname'] ?></a>&nbsp; <?php echo $addtime ?>, 评 <strong><?php echo $row['eifr_ratevalue'] ?></strong>)</span></h4>
<p><?php echo $row['content'] ?></p>
</li>
<?php
}?>
</ul>
</div>

<div class="pagediv">
  <?php echo  $comment_list_array['page'] ?></div>

<!--comment-->
<div id="comment" class="cleanblock" style="padding:10px;">
<h3>我来说两句<input type="checkbox" id="comment_chk" value="1" onclick="showDisplayHidden('comment_chk','postcomm')" checked></h3>
<form name="postcomm" id="postcomm" action="comment.php" method="post" target="_self" style="display:">
<p id="article-rates" class="article-rates0">
<label>评分</label>
<a id="article-rate1" href="javascript:;" onclick="setRate('1');" target="_self">差</a>
<a id="article-rate2" href="javascript:;" onclick="setRate('2');" target="_self">中</a>
<a id="article-rate3" href="javascript:;" onclick="setRate('3');" target="_self">好</a>
</p>
<input type="text" size="30" name="title" id="comment_title" value="<?php echo $lang['pls_write_title'] ?>" onfocus="this.value=''">&nbsp;
<input type="checkbox" name="is_nickname" id="is_nickname" value="1">匿名发表&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" size="4" name="vcode" id="vcode" value="验证码" onfocus="this.value=''" />&nbsp;<img src="api/imgvcode.php" align="absmiddle" />
<p><label for="message"></label><textarea id="comment_content" name="comment_content" style="vertical-align: text-top; width: 80%; height: 6em;"></textarea></p>
<p><button type="button" id="submitcomm" name="submitcomm" value="submit" style="margin-left: 2.8em;" onclick="submitComment()">发表评论</button></p>
<input type="hidden" name="article_id" id="article_id" name="article_id" value="<?php echo $article_id ?>">
<input type="hidden" name="ratevalue" id="ratevalue" value="0">
<input type="hidden" name="act" id="comment_action" value="save">
<p class="txtpadding">
	<b>发表前请仔细阅读下列条款:</b><br>
* 您必须遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他有关法律法规。<br>
* 承担一切因您的行为而直接或间接导致的民事或刑事法律责任。<br>
* 您发表的文章仅代表个人观点，与本网站无关。<br>
* 本网站评论管理人员有权保留或删除其管辖评论中的任意内容。<br>
* 您在本网站评论系统发表的作品，本网站有权在网站内转载或引用。<br>
* 参与本评论即表明您已经阅读并接受上述条款。 <br>
</p>
</form>

</div>
<!--/comment-->

<?php include("inc_footer.tpl.html"); ?>
</div>
</body>
</html>