📄 acceptdraft.jsp
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<html:html>
<head>
<title>发文</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css">
<script language="javascript" src="../../js/clientSideApp.js"></script>
<script language="javascript" src="../../js/calendar2.js"></script>
<SCRIPT language=JavaScript type=text/JavaScript>
</SCRIPT>
<script type="text/javascript">
function check(){
var draft_title=document.getElementById("draft_title").value;
var come_dep=document.getElementById("come_dep").value;
var accept_date=document.getElementById("accept_date").value;
var sel_secret=document.getElementById("sel_secret").value;
var main_content=document.getElementById("main_content").value;
var draft_msg=document.getElementById("draft_msg").value;
var txt_mark=document.getElementById("txt_mark").value;
<%-- var addfile=document.getElementById("addfile").value;--%>
if(draft_title==""){
alert("标题不能为空!");
return false;
}
if(come_dep==""){
alert("来文机关不能为空!");
return false;
}
if(accept_date==""){
alert("来文日期不能为空!");
return false;
}
if(sel_secret==""){
alert("密级程度不能为空!");
return false;
}
if(main_content==""){
alert("事由不能为空!");
return false;
}
if(draft_msg==""){
alert("拟稿意见不能为空!");
return false;
}
if(txt_mark==""){
alert("备注不能为空!");
return false;
}
<%-- if(addfile==null){--%>
<%-- alert("附件不能为空!");--%>
<%-- return false;--%>
<%-- }--%>
document.forms[0].submit();
return true;
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<html:form action="/acceptManager.do?method=draft"
enctype="multipart/form-data">
<jsp:include flush="true" page="accepthead.jsp" />
<table width="100%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td height="28" class="td_form01">
<p align="center">
收文拟稿
</p>
</td>
</tr>
</table>
<table align="center" width="100%" border="0" cellspacing="0"
cellpadding="0">
<tr>
<td width="80" height="24" class="td_form01" colspan="1">
<div align="right">
标题:
</div>
</td>
<td width="299" class="td_form02">
<html:text property="draft_title" />
</td>
<td width="172" class="td_form01">
<div align="right">
收文日期:
</div>
</td>
<td width="174" class="td_form02">
<html:text property="accept_date" onclick="new Calendar().show(this)" readonly="true" />
</td>
</tr>
<tr>
<td width="80" height="24" class="td_form01">
<div align="right">
来文机关:
</div>
</td>
<td width="638" class="td_form02" colspan="3">
<html:text property="come_dep" />
</td>
</tr>
<tr>
<td class="td_form01" height="32" width="80">
<div align="right">
密级程度:
</div>
</td>
<td class="td_form02" colspan="3">
<html:select property="sel_secret" >
<html:option value="0"> 一般</html:option>
<html:option value="1"> 机密</html:option>
<html:option value="2"> 绝密</html:option>
</html:select>
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td width="80" class="td_form01">
<div align="right">
事由:
</div>
<td width="638" class="td_form02">
<html:textarea cols="80" rows="5" property="main_content"></html:textarea>
</td>
<td width="7"></td>
</tr>
<tr>
<td class="td_form01" width="80" >
<div align="right">
拟稿意见:
</div>
</td>
<td class="td_form02">
<html:textarea cols="80" rows="5" property="draft_msg"></html:textarea>
</td>
</tr>
<tr>
<td class="td_form01" width="80">
<div align="right">
备注:
</div>
</td>
<td class="td_form02">
<html:textarea cols="80" rows="5" property="txt_mark"></html:textarea>
</td>
</tr>
<tr>
<td class="td_form01" width="80">
<div align="right">
添加附件:
</div>
</td>
<td class="td_form02" width="80">
<br>
<html:file property="add_file" ></html:file>
</td>
</tr>
<tr>
<td height="28" class="">
</td>
<td>
</td>
</tr>
<tr>
<td>
<div align="right">
<br>
</td>
<td align="center">
<%-- <html:submit styleClass="buttonface" value=" 提 交 "--%>
<%-- property="Submit" />--%>
<button Class="buttonface" onclick="check()" style="width: 5em;height: 1.8em;"> 提 交 </button>
<html:reset styleClass="buttonface" value=" 清 空 "
property="reset" />
</td>
</tr>
</table>
<p>
<br>
</p>
</html:form>
<br>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -