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

📄 emailwrite.jsp

📁 一个oa系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
	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>
	<head>
		<title>联信OA-公司文化</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="../css/css.css" rel="stylesheet" type="text/css" />
		<style type="text/css">
			<!--
			.STYLE2 {
				color: #FFFFFF;
				font-weight: bold;
				font-size: 14px;
			}
			.STYLE20 {font-weight: bold}
			.STYLE34 {color: #000000}
			-->
			html,body{

			scrollbar-face-color: #f2f2f2; 
			
			scrollbar-highlight-color: #ffffff; 
			
			scrollbar-shadow-color: #999999; 
			
			scrollbar-3dlight-color: #999999; 
			
			scrollbar-arrow-color: #999999; 
			
			scrollbar-track-color: ##FFFFFF; 
			
			scrollbar-darkshadow-color: #ffffff;
			
			}
	</style>
	<script type="text/javascript">
	       var cellID=0;
		   function addaffix(){
		       cellID=cellID+1;
		       var row = tab.insertRow();
		       row.id="r"+cellID;
		       var cell1 = row.insertCell();
		       var ss1 = "&nbsp;&nbsp;"+"<input type=\"file\" size=\"35\" name=\"file"+cellID+"\">";
		       cell1.innerHTML = ss1;
		       var cell2 = row.insertCell();
		       var ss2 = "<input type=\"button\"  value=\"删除\" onclick=\"delpicture(this)\" />";
		       cell2.innerHTML = ss2;     
		   }
		   function delpicture(obj){
		       tab.deleteRow(obj.parentNode.parentNode.rowIndex);
		   }
		   
		   function   ue_submit(type){ 
	          var sendtheme=form3.sendtheme.value;
	          var sendcontent=form3.sendcontent.value;
	          var firstaccepter=form3.firstaccepter.value;
	          var secondaccepter=form3.secondaccepter.value;
	          var thirdaccepter=form3.thirdaccepter.value;
		      if(sendtheme==""){
		         alert("请填写主题!");
		         return false;
		      }
		      else if(firstaccepter==""&&secondaccepter==""&&thirdaccepter==""){	          
		           alert("请选择收件人!");
		           return false;
		     }
	       	 else if(type == "fasong")                       
	                 document.form3.action   =   "<%=request.getContextPath()%>/emailwritesave.do?flag=1";                                                                                         
	              if   (type=="baocuncaogao")   
	                 document.form3.action   =   "<%=request.getContextPath()%>/emailwritesave.do?flag=2";      
	                 document.form3.submit();   
	        }   
       </script>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
	<%String realname = (String) session.getAttribute("realname");%>
	<body>
	 <form action="" method="post"  name="form3" enctype="multipart/form-data" style="display:inline">
		<table width="762" height="159" border="0" cellpadding="0" cellspacing="1" bgcolor="#3868F8">
			<tr>
				<td width="760" height="25" bgcolor="#A4B5E3">
					&nbsp;<span class="STYLE2"> 写邮件</span>
				</td>
			</tr>
			<tr>
				<td height="29" bgcolor="#FFFFFF" valign="top" style="padding-top:2px; padding-bottom:2px;">
					<table width="98%" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
						<tr>
							<td width="289" height="30">
								<input type="button" name="Submit" value="发 送" onClick="ue_submit('fasong')"/>
								&nbsp;
								<input type="button" name="Submit2" value="保存草稿" onClick="ue_submit('baocuncaogao')"/>
							</td>
							<td width="243">&nbsp;
								
							</td>
							<td width="213">&nbsp;
								
							</td>
						</tr>
					</table>
					<table width="99%" height="315" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#A4B5E3">
						<tr>
							<td width="87" height="26" bgcolor="#FFFFFF">
								&nbsp;发件人:
							</td>
							<td width="662" bgcolor="#FFFFFF">
								&nbsp;&nbsp;
								<%=realname%>
							</td>
						</tr>
						<tr>
							<td height="25" bgcolor="#FFFFFF">
								&nbsp;收件人:
							</td>
							<td bgcolor="#FFFFFF">
								&nbsp;
								<input id="firstaccepter" name="firstaccepter" type="text" size="45" readonly="readonly" />
								<input name="firstaccepter2" id="firstaccepter2" type="hidden" size="45" />
          						<input name="a1" id="a1"  type="hidden" size="45" />
								<input name="Submit22332" type="button" class="ying" value="选择..." hidefocus="true" onClick="window.open ('<%=request.getContextPath()%>/adrpage.do?flag=1','' ,'height=300, width=320, top=365,left=665, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no,status=no')" />
							</td>
						</tr>
						<tr>
							<td height="25" bgcolor="#FFFFFF">
								&nbsp;抄&nbsp; 送:
							</td>
							<td bgcolor="#FFFFFF">
								&nbsp;
								<input id="secondaccepter" name="secondaccepter" type="text" size="45" readonly="readonly" />
								<input name="secondaccepter2" id="secondaccepter2" type="hidden" size="45" />
       							<input name="a2" id="a2"  type="hidden" size="45" />
								<input name="Submit223322" type="button" class="ying" value="选择..." hidefocus="true" onClick="window.open ('<%=request.getContextPath()%>/adrpage.do?flag=2','' ,'height=300, width=320, top=385,left=665, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no,status=no')" />
							</td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF">
								&nbsp;密&nbsp; 送:
							</td>
							<td bgcolor="#FFFFFF">
								&nbsp;
								<input id="thirdaccepter" name="thirdaccepter" type="text" size="45" readonly="readonly" />
								<input name="thirdaccepter2" id="thirdaccepter2" type="hidden" size="45" />
          						<input name="a3" id="a3"  type="hidden" size="45" />
								<input name="Submit223323" type="button" class="ying" value="选择..." hidefocus="true" onClick="window.open ('<%=request.getContextPath()%>/adrpage.do?flag=3','' ,'height=300, width=320, top=410,left=665, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no,status=no')" />
							</td>
						</tr>
						<tr>
							<td height="25" bgcolor="#FFFFFF">
								&nbsp;主&nbsp; 题:
							</td>
							<td bgcolor="#FFFFFF">
								&nbsp;&nbsp;<input name="sendtheme" type="text" size="40" />
							</td>
						</tr>
						<tr>
							<td height="25" bgcolor="#FFFFFF">
								&nbsp;附&nbsp; 件:
							</td>
							<td bgcolor="#FFFFFF">
								<table border="0" cellpadding="0" cellspacing="0" id="tab">
						           <tr>
								      <td width="353">&nbsp;&nbsp;<input type="file" name="file" size="35"/>
					                 </td>
								      <td width="107">					                      
					                       <input type="button" name="button" id="button" value="添加附件" onClick="addaffix()"/>
				                     </td>
				                  </tr>
					            </table>
							</td>
						</tr>
						<tr>
							<td height="25" bgcolor="#FFFFFF">
								&nbsp;时&nbsp; 间:
							</td>
							<td bgcolor="#FFFFFF">
								<div class="STYLE34">									
									&nbsp;&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>
								</div>
							</td>
						</tr>
						<tr>
							<td height="133" valign="top" bgcolor="#FFFFFF"
								style="padding-top:6px;">
								&nbsp;邮件内容:
							</td>
							<td bgcolor="#FFFFFF" valign="top" style="padding-bottom:3px; padding-top:3px;">
								&nbsp;<textarea name="sendcontent" cols="85" rows="15"></textarea>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	 </form>
	</body>
</html>

⌨️ 快捷键说明

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