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

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

<%
/***********************************
* 显示特性参数初始化
***********************************/
//搜索结果显示页
String SEARCH_RESULT_PAGE = StrUtil.getNotNullStringValue(request.getParameter("SEARCH_RESULT_PAGE"),"SearchResult.jsp");

//打开方式　与html中<a>的target属性相同
String TARGET = StrUtil.getNotNullStringValue(request.getParameter("TARGET"),"");

//网站群节点ID
String NODE_ID = StrUtil.getNotNullStringValue(request.getParameter("NODE_ID"),"root");

//网站群节点参数
String CLUSTER_URL_PARAM = "";
if(null != request.getParameter("cluster_node_id")){
	CLUSTER_URL_PARAM = "cluster_node_id=" + request.getParameter("cluster_node_id");
}

/***********************************
* CSS样式 参数初始化
***********************************/
//CSS样式
String CSS = StrUtil.getNotNullStringValue(request.getParameter("CSS"),"");

//查询提示标题
String TEXT_TITLE = StrUtil.getNotNullStringValue(request.getParameter("TEXT_TITLE"),"站内查询");
%>

<table width="542" border="0" cellspacing="0" cellpadding="0">
	<tr class="<%=CSS%>">
			<form action="" method="post" name="CMS4JSearchForm" id="CMS4JSearchForm"  onSubmit="return false;" target="<%=TARGET%>">
		  		<td width="65" align="right"><%=TEXT_TITLE%></td>
		  		<td width="413" align="center">
		  		<input name="KEY_WORD" type="text" id="KEY_WORD" onKeyPress="if(event.keyCode == 13){location.href='<%=SEARCH_RESULT_PAGE%>?key_word=' + document.CMS4JSearchForm.KEY_WORD.value + '&db_id=' + document.CMS4JSearchForm.DB_ID.value; + '&<%=CLUSTER_URL_PARAM%>'}" value="${param.key_word}" style="width:90%" />
		  		<input name="DB_ID" type="hidden" id="DB_ID" value="sys_article" />
	  		  </td>
		  		<td width="64" align="center"><input type="button" name="Submit3" value="搜 索"  onClick="location.href='<%=SEARCH_RESULT_PAGE%>?key_word=' + document.CMS4JSearchForm.KEY_WORD.value + '&db_id=' + document.CMS4JSearchForm.DB_ID.value; + '&<%=CLUSTER_URL_PARAM%>'"></td>
		  </form>
	</tr>
</table>