【JSP开源代码栏目提醒】:本文主要为网学会员提供filesearch.jsp,希望对需要filesearch.jsp网友有所帮助,学习一下!
<%@ page contentType="text/html;charset=GB2312"%>
<%@ page language="java"%>
<%@ taglib uri="/web-inf/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/web-inf/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/web-inf/struts-html.tld" prefix="html"%>
<%@ include file="/share/func.jsp"%>
<%@ include file="/share/share.jsp"%>
<SCRIPT TYPE="text/javascript" SRC="<%=app_path%>js/date.js" > </SCRIPT>
<html:html locale="true">
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>档案查询</title>
</head>
<body>
<p align="center"><font size="5">档案查询</font></p>
<html:form method="POST" action="filesearchAction">
<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.txt"
S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
<% String temp="";
String temp1=(String)session.getAttribute("archivetype1");
if(temp1!=null)
{
temp=temp1;
}
%>
<div align="center">
<center>
<table border="1" cellpadding="0" cellspacing="0" align="center" width="777" bgcolor="#3A5C9F">
<tr>请输入查询条件:</tr>
<tr>
<td align="right" width="125" valign="middle">档案种类:</td>
<td align="left" width="231">
<html:select property="archivetype" onchange="javascript:location.href='/eGovernment/hreffileinfoAction.do?convert1=' +document.fileinfoForm.archivetype.value">
<%= getBcOptionsTemp(temp,"farchivetype")%>
</html:select></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">工程代号:</td>
<td align="left" width="231"><html:text size="20" property="code"/></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">类目号:</td>
<td width="30%" align="left" >
<select name="category">
<%= getBcOptionsTemp("","category","fFileCategory")%>
</select>
<!--
<td align="left" width="231"><html:text size="20" property="category"/></td>
-->
</tr>
<tr>
<td align="right" width="125" valign="middle">标题:</td>
<td align="left" width="231"><html:text size="20" property="volumntitle"/></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">案卷号:</td>
<td align="left" width="231"><html:text size="20" property="volumnno"/></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">保管期限:</td>
<td align="left" width="231"><html:select property="retentionperiod">
<html:option value=""></html:option>
<html:option value="长久" >永久</html:option>
<html:option value="长期" >长期</html:option>
<html:option value="短期" >短期</html:option>
<% if(temp.equals("会档"))
{%>
<html:option value="50年" >50年</html:option>
<html:option value="20年" >20年</html:option>
<html:option value="15年" >15年</html:option>
<html:option value="10年" >10年</html:option>
<html:option value="5年" >5年</html:option>
<html:option value="3年" >3年</html:option>
<%}%>
</html:select>
</td>
</tr>
<tr>
<td align="right" width="125" valign="middle">起止年月:</td>
<td align="left" width="231"><html:text size="13" property="startdate"/>
<img align=absMiddle
alt="日期选择" border=0 height=13 id=daysOfMonth1Pos name=daysOfMonth1Pos
onMouseUp="toggleMonthPicker('daysOfMonth1','archiveForm.ret',document.fileinfoForm.startdate)"
src="<%=app_path%>js/calendaricon.gif" width=13>
<div id=daysOfMonth1 style="POSITION: absolute"></div>
至<html:text size="20" property="enddate"/>
<img align=absMiddle
alt="日期选择" border=0 height=13 id=daysOfMonth2Pos name=daysOfMonth2Pos
onMouseUp="toggleMonthPicker('daysOfMonth2','archiveForm.ret',document.fileinfoForm.enddate)"
src="<%=app_path%>js/calendaricon.gif" width=13>
<div id=daysOfMonth2 style="POSITION: absolute"></div></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">总页数:</td>
<td align="left" width="231"><html:text size="20" property="totalpage"/></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">总件数:</td>
<td align="left" width="231"><html:text size="20" property="totalnum"/></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">立卷单位:</td>
<td align="left" width="231"><html:text size="20" property="archiveunit"/></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">责任者:</td>
<td align="left" width="231"><html:text size="20" property="duty"/></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">密级:</td>
<td align="left" width="231">
<html:select property="security">
<html:option value=""></html:option>
<html:option value="普通">普通</html:option>
<% if(userInfo.hasPopedom(4) || userInfo.hasPopedom(5))
{%>
<html:option value="秘密">秘密</html:option>
<%}%>
<%if(userInfo.hasPopedom(5))
{%>
<html:option value="机密">机密</html:option>
<%}%>
</html:select>
</td>
</tr>
<tr>
<td align="right" width="125" valign="middle">状态:</td>
<td align="left" width="231"><html:text size="20" property="status"/></td>
</tr>
<tr>
<td align="right" width="125" valign="middle">备注:</td>
<td align="left" width="231"><html:textarea cols="30" rows="4" property="remark"/></td>
</tr>
<tr>
<td align="right" width="125"></td>
<td align="left" width="231"></td>
</tr>
</table>
</center>
</div>
<p align="center">
<html:submit onclick="return checkout()">查询</html:submit>    
<html:reset>重置</html:reset>    
<input type="button" value="返回" name="B4" onClick="javascript:location.href='<%=app_path%>newwelcome.jsp'">
</p>
</html:form>
<p></p>
<p></p>
</body>
<script language="javascript">
function checkout()
{
if(!isNumber(document.fileinfoForm.totalpage.value))
{
alert("总页数应该是数字");
return false;
}
if(!isNumber(document.fileinfoForm.totalnum.value))
{
alert("总件数应该是数字");
return false;
}
}
function isNumber(tvlaue){
var tvlaue="1"+tvlaue;
if (isNaN(tvlaue)||(parseInt(tvlaue)<0)||(tvlaue.length<1)) {
return false;
}
return true;
}
</script>
</html:html>
上一篇:
fileReaderExample1.jsp
下一篇:
计算机毕业论文答辩2014年