📄 draftbox.jsp
字号:
<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title></title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
.STYLE1 {
font-size: 14px;
font-weight: bold;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(../Images/dw.gif);
}
.STYLE1 {color: #990000}
-->
</style>
<script language=JavaScript>
function rdl_doAdd(){
var oBody=document.createElement("<tbody id=myBody>");
document.all("myTable").insertBefore(oBody,document.all("myFoot"));
var rowcount = document.getElementById("myTable").rows.length-1;
for (m=0;m<1;m++) {
var myTR =oBody.insertRow();
myTR.id="row"+rowcount;
for (i=0;i<1;i++) {
var myTD=myTR.insertCell();
myTD.innerHTML="<input type=file name=file/> <a href='javascript:delRow("+rowcount+")'>删除附件</a>";
}
}
}
function delRow(i){
var myRow = document.getElementById("row"+i);
var v = myRow.removeNode();
}
function openEmpList(){
<c:url value="/EmailServlet?method=empList" var="url"/>
window.showModalDialog('${url}',window);
}
function submitForm(v){
document.getElementById("method").value=v;
document.getElementById("form1").submit();
}
</script>
</head>
<body>
<br>
<p class="STYLE1">草稿箱</p>
<hr>
<c:url value="/EmailUploadServlet" var="url"/>
<form id="form1" name="form1" method="post" action="${url}" ENCTYPE="multipart/form-data">
<input type="hidden" name="method" id="method"/>
<input type="hidden" name="acceptPersonId" id="acceptPersonId" value="${draftBoxs.acceptPersonId}"/>
<table width="100%" border="0">
<tr>
<td width="150" height="30" align="right">邮件主题:</td>
<td><input name="title" type="text" size="20" id="title" value="${draftBoxs.title}"/></td>
</tr>
<tr>
<td height="30" align="right">发件人:</td>
<td><input name="sendPersonName" type="text" size="20" id="sendPersonName" readonly="readonly" value="${draftBoxs.sendPersonName}"/></td>
</tr>
<tr>
<td width="150" height="30" align="right">收件人:</td>
<td><input name="acceptPersonName" type="text" size="20" id="acceptPersonName" readonly="readonly" value="${draftBoxs.acceptPersonName}"/>
<a href="javascript:openEmpList()">[选择发件人]</a>
</td>
</tr>
<tr>
<td width="150" height="30" align="right" valign="top">邮件内容:</td>
<td><textarea name="content" cols="60" rows="15" id="content">${draftBoxs.content}</textarea></td>
</tr>
<tr>
<td width="150" height="30" align="right"> </td>
<td> </td>
</tr>
<tr>
<td width="150" height="30" align="right"> </td>
<td><input type="button" name="button" id="button" value="发送邮件" onclick="submitForm('sendEmail')"/>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -