⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addaffiche.jsp

📁 一个oa系统
💻 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"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
	<html:base />

	<title>添加公告</title>
	<style type="text/css">
<!--
body,td,th {
	font-size: 12px;
}
body {
	margin-left: 10px;
	margin-top: 10px;
	margin-right: 0px;
	margin-bottom: 0px;
}
a:link {
	color: #000000;
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
	color: #333333;
}
a:active {
	text-decoration: none;
	color: #333333;
}
-->
</style>
	<link href="../../oa/css/css.css" rel="stylesheet" type="text/css" />
	<style type="text/css">
<!--
.STYLE1 {
	font-size: 14px;
	font-weight: bold;
}
.STYLE6 {font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
}
-->
</style>
<script type="text/javascript">
	   function frcheck(){
	      var afficheTitle=document.forms[0].afficheTitle.value;
	      var afficheContent=document.forms[0].afficheContent.value;
	      if(afficheTitle==""){
	         alert("请填写公告标题!");
	         return false;
	      }	 
	      if(afficheContent==""){
	         alert("请填写公告内容!");
	         return false;
	      }	     
	      return true;
	   }
  </script>
</head>

<body>
	<html:form action="/addAffiche" method="post"  onsubmit="return frcheck()">
		<table width="700" border="0" cellpadding="0" cellspacing="1"
			bgcolor="#3868f8">
			<tr>
				<td width="698" height="25" bgcolor="#FFFFFF">
					<table width="700" height="25" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td width="697" height="25" bgcolor="#A4B5E3">
								<span class="STYLE6">&nbsp;&nbsp;&nbsp; 添加公告</span>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="20" bgcolor="#FFFFFF" valign="top"
					style="padding-top:4px; padding-bottom:3px; padding-left:4px; padding-right:4px;">
					<table width="100%" border="1" cellpadding="0" cellspacing="0"
						bordercolor="#ECE9D8" bgcolor="#3868f8">

						<tr>
							<td width="72" height="22" bgcolor="#FFFFFF">
								&nbsp;&nbsp;公告标题
							</td>
							<td width="284" height="22" bgcolor="#FFFFFF"
								style="padding-left:4px;" >
								<html:text property="afficheTitle" value=""></html:text>

							</td>
							<td width="70" bgcolor="#FFFFFF">
								<div align="center">
									公告时间
								</div>
							</td>
							<td width="254" bgcolor="#FFFFFF">
								&nbsp;<script>
									tmpDate = new Date();
									date = tmpDate.getDate();
									month = tmpDate.getMonth() + 1;
									year = tmpDate.getYear();
									document.write(year);
									document.write("年");
									document.write(month);
									document.write("月");
									document.write(date);
									document.write("日  ");
									myArray = new Array(7);
									myArray[0] = "星期日"
									myArray[1] = "星期一"
									myArray[2] = "星期二"
									myArray[3] = "星期三"
									myArray[4] = "星期四"
									myArray[5] = "星期五"
									myArray[6] = "星期六"
									weekday = tmpDate.getDay();
									if(weekday==0 | weekday==6)
									{
										document.write(myArray[weekday])
									}else
									{
										document.write(myArray[weekday])
									};																		
									</script>

							</td>
						</tr>
						<tr>
							<td valign="top" bgcolor="#FFFFFF" style="padding-top:8px;">
								<div align="center">
									<p>
										&nbsp;
									</p>
									<p>
										&nbsp;
									</p>
									<p>
										公告内容
									</p>
									<p>
										&nbsp;
									</p>
								</div>
							</td>
							<td height="22" colspan="3" bgcolor="#FFFFFF"
								style="padding-top:4px; padding-bottom:3px; padding-left:4px; padding-right:4px;">
								<html:textarea property="afficheContent" cols="73" rows="8" value=""></html:textarea>
							</td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF">
								<div align="center">
									&nbsp;发布人
								</div>
							</td>
							<td height="22" bgcolor="#FFFFFF">
								&nbsp;${realname}
							</td>
							<td height="22" bgcolor="#FFFFFF">
								&nbsp;公开范围
							</td>
							<td height="22" bgcolor="#FFFFFF" style="padding-left:4px;">
								<html:select property="deptId">
									<html:options collection="deptList" property="id" labelProperty="department" />
								</html:select>
							</td>
						</tr>
						<tr>
							<td height="30" colspan="4" bgcolor="#FFFFFF" align="center">
								&nbsp;
								<html:submit value="提 交"></html:submit>
								<html:reset value="清 空"></html:reset>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</html:form>
</body>
</html:html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -