<%@include file="/auth.jsp"%> <%@page language="java" pageEncoding="utf-8" %> <% HashFmlBuf bufInfo=(HashFmlBuf)request.getAttribute("fileBuf"); String filesecret=""; %> <jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/> <html> <head> <title>文件管理</title> <link rel="stylesheet" type="text/css" href="../../css/font.css"> <script src="/js/check.js"></script> <script type="text/javascript"> function checkNumber() { if(form1.filevalidity.value!="" && !parseInt(form1.filevalidity.value)) { alert("有效期只能输入数字"); form1.filevalidity.value=""; form1.filevalidity.focus(); return ; } } function check(operate,fileid,department,author) { form1.operate.value=operate; if(operate=='updateFile') { if(form1.filevalidity.value=="") { alert("文件有效期不能为空"); form1.filevalidity.focus(); return false; } form1.action="/servlet/FileWriteManage?&operate=updateFile&fileId="+fileid+"&department="+department+"&author="+author+""; } form1.submit(); } //文本域字符限制 function checklength(el,size){ if(el.value.length > size){ alert("字数超过限制"); } el.value = el.value.substring(0,size); } </script> <style type="text/css"> .td1{ width: 30%; } select { width:155px; } </style> </head> <body onload="setValue()"> <br> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="1" class="box"> <tr> <td valign="top"> <table width="100%" height="23" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="25%" background="/images/tab_search_01.jpg"> <table width="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td> <td width="97%" class="font12b">文件管理</td> </tr> </table> </td> <td width="82%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td> </tr> </table> <form name="form1" method="post" action="/servlet/FileWriteManage"> <input type="hidden" name="operate"/> <br> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="3%"><img src="/images/little.gif" width="12" height="12"></td> <td width="97%" class="font12">详细信息填写</td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02" > <tr bgcolor="#FFFFFF" class="tr2"> <td class="cell1">写作部门</td> <td class="td1"> <select name="departmentid" id="departmentid" > <option value="<%=bufInfo.fget("write_department",0)%>"> <%=bufInfo.fget("write_department",0)%>(<%=bufInfo.fget("departname",0) %>) </select><font color="#ff0000">*</font></td> <td class="cell1">写作职员</td> <td class="td1"> <select name="empid" id="empid" > <option value="<%=bufInfo.fget("empid",0) %>"> <%=bufInfo.fget("empid",0) %>(<%=bufInfo.fget("empname",0) %>)</option> </select><font color="#ff0000">*</font> </td> </tr> <tr bgcolor="#FFFFFF"> <td class="cell1">文件编号</td> <td class="cell2"> <input type="text" name="fileid" value="<%=bufInfo.fget("file_id",0) %>" maxlength="12" readonly="readonly"> <font color="#ff0000">*</font> </td> <td class="cell1">文件名称</td> <td class="td1"> <input type="text" name="filename" value="<%=bufInfo.fget("file_name",0) %>" readonly="readonly" maxlength="12"> </td> </tr> <tr bgcolor="#FFFFFF"> <td class="cell1">密级</td> <td class="cell2"> <select class='aselect' name="filesecret"> <% filesecret=bufInfo.fget("file_secret_id",0); if(filesecret.equals("1")) { filesecret="秘密"; } else if(filesecret.equals("2")) { filesecret="机密"; } else { filesecret="绝密"; } %> <option value="<%=bufInfo.fget("file_secret_id",0)%>"><%=filesecret%></option> </select><font color="#ff0000">*</font> </td> <td class="cell1">有效期</td> <td class="td1"> <input type="text" name="filevalidity" onblur="checkNumber()" value="<%=bufInfo.fget("file_validity",0) %>" maxlength="12"> <font color="#ff0000">*</font> </td> </tr> <tr bgcolor="#FFFFFF" class="tr2"> <td class="cell1">文件标题:</td> <td class="td1" colspan="3"> <textarea rows="5" cols="68" name="fileTitle" id="fileTitle" onblur="checklength(this,200)"><%=bufInfo.fget("file_title",0) %></textarea><font color="red">(注:限200字符内)</font> </td> </tr> <tr bgcolor="#FFFFFF" class="tr2"> <td class="cell1">文件描述:</td> <td class="cell2" colspan="3"> <textarea rows="5" cols="68" name="file_describe" id="file_describe" onblur="checklength(this,200)"><%=bufInfo.fget("file_describe",0) %></textarea><font color="red">(注:限200字符内)</font> </td> </tr> <tr bgcolor="#FFFFFF" class="tr2"> <td class="cell1">文件用途:</td> <td class="cell2" colspan="3"> <textarea rows="5" cols="68" name="file_purpose" id="file_purpose" onblur="checklength(this,200)"><%=bufInfo.fget("file_purpose",0) %></textarea><font color="red">(注:限200字符内)</font> </td> </tr> <tr bgcolor="#FFFFFF" class="tr2"> <td class="cell1">备注:</td> <td class="cell2" colspan="3"> <textarea rows="5" cols="68" name="remark" id="remark" onblur="checklength(this,200)"><%=bufInfo.fget("remark",0) %></textarea><font color="red">(注:限200字符内)</font> </td> </tr> </table> <br> <table width="90%" align="center"> <tr align="center" bgcolor="#FFFFFF"> <td colspan="4"><input type="button" name="button1" value=" 提交 " class="box_button" onclick="check('updateFile','<%=bufInfo.fget("file_id",0)%>','<%=bufInfo.fget("write_department",0)%>','<%=bufInfo.fget("file_author",0)%>')"/> </td> </tr> </table> </form></td></tr></table> <%@include file="/foot.jsp"%> </body> </html>