<%@ page errorPage="errorPage.jsp" language="java" session="true" contentType="text/html;charset=ISO-8859-2" %>
<%@ page pageEncoding="UTF-8"%>
<%@ page import="com.etixpert.evolution.gui.servlets.*"%>
<%@ page import="java.util.*"%>
<%@ page import="com.etixpert.evolution.gui.servlets.*"%>
<%@ include file="header.jsp" %>
<%@ include file="check.jsp" %>
<%!
public String getVal(String name, HttpSession session) {
	Map m = (Map)session.getAttribute("article_list.jsp");
	if (m == null) return "";
	String[] vals = (String[])m.get(name);
	if (vals != null && vals.length>0 && vals[0] != null) return vals[0];
	return "";
}
%>
<%	
	if (request.getParameter("aid_from")!=null) session.setAttribute("aid_from", request.getParameter("aid_from"));
	if (request.getParameter("aid_to")!=null) {
		session.setAttribute("aid_to", request.getParameter("aid_to"));
	}

%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<link href="main.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
<!-- JavaScript code hiding
	function simpleLink(origLink) {
		parent.mainFrame.location = origLink;
	}

	function link(origLink){
		if (top.mainFrame.document.forms.length == 0) {
			simpleLink(origLink);
			return;
		}
		else {
			if (top.mainFrame.document.forms[0].saveState == null) {
				simpleLink(origLink); 
				return;
			}
			top.mainFrame.document.forms[0].saveState.value = top.mainFrame.self.location.pathname;
			top.mainFrame.document.forms[0].link.value = origLink;
			top.mainFrame.document.forms[0].submit();
		}
	}
// -->
</SCRIPT>
</head>
<body>
<form action="process/article_list.jsp" method="post">
<input type="hidden" name="saveState"/>
<input type="hidden" name="link" value="process/article_search.jsp"/>
<input type="hidden" name="distID"/>
<input type="hidden" name="levelID"/>
<input type="hidden" name="pageAction">
<input type="hidden" name="artId">
<jsp:include page="MenuHelper.jsp">
	<jsp:param name="self_id" value="none"/>
	<jsp:param name="parent_id" value="4200"/>	
</jsp:include>
  <table width="800" border="0" cellpadding="0" cellspacing="0" id="userDetailsTable" class="normal">
    <!--DWLayoutTable-->
    <tr> 
      <td height="30" colspan="2" valign="top" id="userTableContentTitles"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td width="40">&nbsp;</td>
      <td colspan="4" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>
    <tr> 
      <td height="30" colspan="2" valign="top" id="userTableContentTitles"><!--DWLayoutEmptyCell--><fmt:message key="ART_ID"/>:</td>
      <td width="40">&nbsp;</td>
      <td colspan="4" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>
    <tr> 
      <td height="30" valign="top" id="userTableContentTitles"><fmt:message key="FROM"/>:</td>
      <td>&nbsp;</td>
      <td colspan="2" valign="top" id="userTableContentFields"><input id="middle" type="text" name="aid_from" value="<%=getVal("aid_from", session)%>"></td>
      <td></td>
      <td valign="top" id="userTableContentTitles"><fmt:message key="TO"/>:</td>
      <td>&nbsp;</td>
      <td valign="top" id="userTableContentFields"><input id="middle" type="text" name="aid_to" value="<%=getVal("aid_to", session)%>"></td>
    </tr>
    <tr> 
      <td height="30" valign="top" id="userTableContentTitles">&nbsp;</td>
      <td>&nbsp;</td>
      <td colspan="2" valign="top" id="userTableContentFields">&nbsp;</td>
      <td></td>
      <td valign="top" id="userTableContentTitles"><a href="javascript:top.mainFrame.document.forms[0].pageAction.value='article_list';link('process/article_list.jsp')"><fmt:message key="SEARCH"/></a></td>
      <td></td>
      <td valign="top" id="userTableContentTitles"></td>
</tr>   
    <tr> 
      <td height="30" colspan="2" valign="top" id="userTableContentTitles"><!--DWLayoutEmptyCell-->&nbsp;</td>
      <td width="40">&nbsp;</td>
      <td colspan="4" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
    </tr>
    <tr> 
      <td height="30" valign="top" id="userTableContentTitles"><fmt:message key="ARTICLE_DESCRIPTION2"/>:</td>
      <td>&nbsp;</td>
      <td colspan="2" valign="top" id="userTableContentFields"><input id="middle" type="text" name="descr" value="<%=getVal("descr", session)%>"></td>
      <td></td>
      <td valign="top" id="userTableContentTitles">&nbsp;</td>
      <td>&nbsp;</td>
      <td valign="top" id="userTableContentFields">&nbsp;</td>
    </tr>
    <tr> 
      <td height="30" valign="top" id="userTableContentTitles">&nbsp;</td>
      <td>&nbsp;</td>
      <td colspan="2" valign="top" id="userTableContentFields">&nbsp;</td>
      <td></td>
      <td valign="top" id="userTableContentTitles"><a href="javascript:top.mainFrame.document.forms[0].pageAction.value='article_list2';link('process/article_list.jsp')"><fmt:message key="SEARCH"/></a></td>
      <td></td>
      <td valign="top" id="userTableContentTitles"></td>
</tr>
</table>
<table width="800" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr> 
    <td width="800" height="30">&nbsp;</td>
  </tr>
  <tr>
    <td height="142" align="center" valign="top">
      <DIV STYLE="overflow: auto; width: 840px; height: 300px;
            border-left: 0px gray solid; border-bottom: 0px gray solid;
            padding:0px; margin: 0px; margin-left: 10px;">
          <table width="820" border="1" id="mainTable" class="sortable">
		<%=FormHelper.generateArticleListHeader(pageContext)%>
       <%= FormHelper.generateArticleSearchRows(session)%>
       </tr></table></div>
      </td>
  </tr>
  <tr>
    <td height="78">&nbsp;</td>
  </tr>
</table>  
</form>
</body>
</html>
