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

<%@ page import = "cn.com.dekn.cms.util.*,cn.com.dekn.common.util.*" %>



<%
//网站群节点ID
String NODE_ID = ParamUtil.getStrParam(request,"NODE_ID","root");


/***********************************
* TAG参数初始化
***********************************/
//要显示栏目的ID
String CLASS_ID = 		ParamUtil.getStrParam(request,"CLASS_ID","");


/***********************************
* 显示特性参数初始化
***********************************/
//行数
int PAGE_SIZE = ParamUtil.getIntParam(request,"PAGE_SIZE",10); 

//宽度
int WIDTH = ParamUtil.getIntParam(request,"WIDTH",260);

/***********************************
* 元素隐显参数初始化
***********************************/
//是否添加留言
boolean IS_SHOW_ADD = ParamUtil.getBooleanParam(request,"IS_SHOW_ADD","true");


/***********************************
* CSS样式 参数初始化
***********************************/
//CSS样式
String CSS = ParamUtil.getStrParam(request,"CSS","");

//水平对齐
String ALIGN = ParamUtil.getStrParam(request,"ALIGN","left");


%>



<table width="<%=WIDTH%>" border="0" align="<%=ALIGN%>" cellpadding="0" cellspacing="0" class="<%=CSS%>" >
  <tr>
    <td valign="top">
	
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
    </table>
	
        <cms4j:message filter="audited" filter2="message_status_open" node_id="<%=NODE_ID%>" message_class_id="<%=CLASS_ID%>" page_size="<%=PAGE_SIZE%>">
          <cms4j:message_list>
            <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td ><strong><%= message_info.getUSER_NAME()%></strong>：<%=message_info.getCONTENT()%></td>
              </tr>
              <tr>
                <td><strong>编辑：</strong>
                    <%=message_info.getANSWER_CONTENT()%></td>
              </tr>
            </table>
            <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td height="8"></td>
              </tr>
              <tr>
                <td height="1" bgcolor="#454551"></td>
              </tr>
              <tr>
                <td height="8"></td>
              </tr>
            </table>
          </cms4j:message_list>
        </cms4j:message>
          
		  
	<%
		if(IS_SHOW_ADD){
	%>	  
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="8"></td>
          </tr>
        </table>
      
	  
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>
			
			<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                <form action="../../do?action=addMessage&cluster_node_id=<%=NODE_ID%>" method="post" name="cms4jGuestbookFrom" id="cms4jGuestbookFrom">
                  <!--添加成功页-->
                  <input name="OK_RETURN_URL" type="hidden" id="OK_RETURN_URL" value="RELOAD" />
				  <input name="MESSAGE_CLASS_ID" type="hidden" value="<%=CLASS_ID%>" />
                  <tr>
                    <td colspan="3" align="center"><textarea name="CONTENT" rows="6" id="CONTENT" style="width:98%"></textarea></td>
                  </tr>
                  <tr>
                    <td width="25%" height="30" align="center"><span >昵称</span></td>
                    <td width="35%"><input name="USER_NAME" type="text"  id="USER_NAME" style="width:94%" /></td>
                    <td width="40%" valign="middle"><input type="radio" name="radiobutton" value="radiobutton" onclick="document.cms4jGuestbookFrom.USER_NAME.value='匿名'"/>
                        <span >匿名</span></td>
                  </tr>
                  <tr>
                    <td height="30" colspan="3"><input type="submit" name="Submit" value="提交" onClick="alert('您的评论将提交，管理人员审核后会显示在此！')"/>　                    </td>
                  </tr>
                </form>
            </table>
			
			</td>
          </tr>
      </table>
	  
	  <%
	  	}
	  %>
	  
    </td>
  </tr>
</table>
</body>
</html>
