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

📄 readcaogao.jsp

📁 一个oa系统
💻 JSP
字号:
<%@ page language="java" import="java.util.*,com.oa.db.*" 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();   
	        }   
	        
	        function shanchu(a,b){
	          frm.action="<%=request.getContextPath() %>/emailcaogaodel2.do?flag=1&sendmailid="+a+"&currentpage="+b+"";
	          frm.submit();
	        
	        } 
	        
	        function yongjiushanchu(a,b){
	           frm.action="<%=request.getContextPath() %>/emailcaogaodel2.do?flag=2&sendmailid="+a+"&currentpage="+b+"";
	           frm.submit();
	         
	        }
       </script>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
	<%String realname = (String) session.getAttribute("realname");
	  String currentpage = (String)request.getAttribute("currentpage");%>
<form action="" method="post"  name="frm"  style="display:none,inline"></form>
	<body><form action="" method="post"  name="form3" enctype="multipart/form-data" style="display:inline">
	<%List list = (List)request.getAttribute("list");
					 java.text.SimpleDateFormat format=new java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
					  if(list!=null&&list.size()!=0){
					     MailResultVo vo = (MailResultVo)list.get(0); %>
		<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  height="30">
							    <input type="button" name="button" value="返 回" onClick="javascript:window.history.go(-1)"/>
							    &nbsp;
								<input type="button" name="Submit" value="发  送" onClick="ue_submit('fasong')"/>
								&nbsp;
								<input type="button" name="Submit2" value="保存草稿" onClick="ue_submit('baocuncaogao')"/>
								&nbsp;
								<input type="button" name="Submit2" value="删  除" onClick="shanchu('<%=vo.getSendmailid()%>','<%=currentpage %>')"/>
								&nbsp;
								<input type="button" name="Submit2" value="永久删除" onClick="yongjiushanchu('<%=vo.getSendmailid()%>','<%=currentpage %>')"/>
							</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" value="<%=vo.getFirstaccepter()%>"/>
								<input name="firstaccepter2" id="firstaccepter2" type="hidden" size="45" value="<%=vo.getFirstaccepter2() %>"/>
          						<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" value="<%=vo.getSecondaccepter() %>"/>
								<input name="secondaccepter2" id="secondaccepter2" type="hidden" size="45" value="<%=vo.getSecondaccepter2() %>"/>
       							<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" value="<%=vo.getThirdaccepter() %>"/>
								<input name="thirdaccepter2" id="thirdaccepter2" type="hidden" size="45" value="<%=vo.getThirdaccepter2() %>"/>
          						<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" value="<%=vo.getSendtheme() %>"/>
							</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;<%if(vo.getRealfilename()!=null&&!vo.getRealfilename().equals("null")&&!vo.getRealfilename().equals("")&&vo.getRealfilename()!=null&&!vo.getRealfilename().equals("null")&&!vo.getRealfilename().equals("")){
						                          String[] realaddr=vo.getRealfilename().replaceAll("///",",").split("\\,");
						                          String[] addr=vo.getFilename().replaceAll("///",",").split("\\,");
                          						  for (int k=0;k<addr.length;k++ ){%> 
                           						  <a href="<%=request.getContextPath() %>/email/downemailfile.jsp?fname=<%=realaddr[k] %>&fd=<%=addr[k] %>" target="_blank"><%=realaddr[k] %></a></br>&nbsp;                          						  	
						                          <%} %>
						                          <input type="hidden" name="realaddr"  value="<%=vo.getRealfilename()%>" />
						                          <input type="hidden" name="addr"  value="<%=vo.getFilename() %>"/>
						                   <%}else{%>
						                   <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">
								&nbsp;<%= format.format(vo.getSenddate())%>
							</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="20">								
<%=vo.getSendcontent() %>								
								</textarea>
							</td>
						</tr>
					</table><%} %>
				</td>
			</tr>
		</table>
	 </form>
	</body>
</html>

⌨️ 快捷键说明

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