<%@ page contentType="text/html; charset=GBK"%>
<%@ taglib uri="/cms4j" prefix="cms4j" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--权限校验:判断访问者是否有访问此文章的权限，如果没有，则页面跳转至 err_forward_url 所指的页面-->
<cms4j:security type="can_view_article" article_id = "${param.id}" err_action_type="forward" err_forward_url = "purview_err.jsp"/>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title><cms4j:site_config node_id="root"><%=siteconfig_info.getSITE_TITLE()%></cms4j:site_config></title>
<!--
{cms4j_cache_target_path = /news/$year/$month-$day}
{cms4j_cache_target_file = $seq.html}
-->
<style type="text/css">
<!--
.style1 {
	color: #666666;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.style2 {
	color: #003399;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
.style4 {
	color: #EFEFEF;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
-->
</style>
<link href="css/css.css" rel="stylesheet" type="text/css">

</head>
<script language="javascript">
function isRight(){
	if($("ADD_UNAME").value==""){
		alert("请提供姓名")
		return false;
	}
	if($("CONTENT").value==""){
		alert("请提供评论内容");
		return false;
	}
	if($("randCode").value==""){
		alert("请提供验证码");
		return false;
	}
		alert("您的评论已经提交，有可能需要审核后才会显示！");
}
</script>
<body>
<jsp:include page="top.jsp"/>
<table width="960" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#C5D1E5">
  <tr>
    <td width="1233" valign="top" bgcolor="#FFFFFF" class="list_top_b"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="10"></td>
      </tr>
      <tr>
        <td height=50 align="center" class="article_title" style="WORD-BREAK: break-all"><cms4j:article article_id="${param.id}" pn="1">
              <cms4j:article_list share="true">
              <%=article_info.getTITLE()%>
              </cms4j:article_list>
              </cms4j:article>
          文章评论</td>
      </tr>
      <tr>
        <td height="1" bgcolor="#C5D1E5"></td>
      </tr>
      <tr>
        <td height="20"></td>
      </tr>
    </table>
        <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
  <cms4j:common_comment parent_id="${param.id}" type="article"  node_id="root" page_size="10">
  <tr>
    <td width="45%" height="25" class="more"><%=common_comment_info.getADD_UNAME()%></td>
    <td width="29%" height="18" align="right" class="time">发表时间:<%=common_comment_info.getADD_DATETIME2("yyyy-MM-dd HH:mm:ss")%> </td>
  </tr>
  <tr>
    <td height="25" colspan="4" class="list"><%=common_comment_info.getCONTENT()%> </td>
  </tr>
  <tr>
    <td height="10" colspan="4" background="images/xian.gif" class="list"></td>
  </tr>
  <tr>
    <td height="10" colspan="4" class="list"></td>
  </tr>
  </cms4j:common_comment>
</table>
      <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="30" align="center"><div align="right">
                <jsp:include page="../../symbol/page/page_1.jsp">
                <jsp:param name="CSS" value="list"></jsp:param>
                <jsp:param name="NODE_ID" value="root"></jsp:param>
                </jsp:include>
            </div></td>
          </tr>
        </table>
      <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
		  <form action="../../do?action=addCommonComment&targetID=${param.id}&type=article" method="post" onSubmit="return isRight()">
			<tr>
			  <td height="28" colspan="5" class="title">发表评论</td>
			</tr>
	
			<tr>
			  <td colspan="4" align="left" class="text_copyright"><textarea name="CONTENT" rows="3" class="form" id="CONTENT" style="width:98%"></textarea></td>
			</tr>
			<tr>
			  <td height="10" colspan="4"></td>
			</tr>
			<tr>
			  <td width="26%" align="left"><span class="style2">姓名：</span>
			  <input name="ADD_UNAME" type="text" class="form" id="ADD_UNAME"></td>
			  <td width="9%" align="right"><span class="style2">验证码：</span></td>
			  <td width="20%" align="left"><span class="list_cell_bg"><img src="../../cms4jadmin/common/randomNumber.jsp" alt="" name="CheckNumber" width="60" height="20" border=0 align="absmiddle"></span>
				  <input name="randCode" type="text" class="form" id="randCode" size="4" maxlength="4"></td>
			  <td width="45%" align="left"><input type="image" name="imageField" src="images/fbpl.gif">
			  <input name="OK_RETURN_URL" type="hidden" id="OK_RETURN_URL" value="RELOAD"></td>
			</tr>
		  </form>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table></td>
  </tr>
</table>
<jsp:include page="bottom.jsp"/>
</body>
</html>
