📄 write.jsp
字号:
<%@page contentType="text/html;charset=GBK" import="com.x3408.mail.Mail1Info,com.x3408.office.Constants"%>
<html>
<head>
<%
Mail1Info mailInfo=(Mail1Info)request.getAttribute("mailInfo");
String caption="";
String content="";
if(mailInfo!=null){
caption=mailInfo.getCaption();
content=mailInfo.getContent();
}
%>
<title>X3408辅助办公系统</title>
<link rel="stylesheet" type="text/css"
href="all.css">
<script language="JavaScript" src="all.js"></script>
<script language="JavaScript" src="WriteMail/editor.js"></script>
<script>
var FocusObj="address";
SwitchFolder("folder_newmail");
function SetFocus(obj)
{
FocusObj=obj;
}
function AddAddr(addr)
{
var o=Gel(FocusObj);
if (o.value.indexOf(addr) > -1)
{
return;
}
if(!o.value.substr(o.value.length-1,1)==";")
{
o.value+=";";
}
o.value+=addr+";";
}
//add by liu 2006-10-9
function InitData(addrlist)
{
//为了少一次获取数据;
//从quickaddr.html获取返回数据;
//该页面初始化成功后回调该函数;
window.top.AddrList = addrlist;
//初始化自动完成;
}
function ErrorCallBack() {
DisableAll(false);
if (Gel("autosave_txt").innerText.indexOf("保存") != -1) {
var dateObj = new Date();
ShowProcess(false, ParseStr(dateObj.getHours(), 2) + ":" + ParseStr(dateObj.getMinutes(), 2) + " " + msgSaveErr);
}
else {
ShowProcess(false, "");
}
}
IniEditorVar("editorbtn", "htmlcontent", "content", "container", "source", "contenttype");
</script>
<style type="text/css">
.input_wd {width:99%;height:22px;padding-top:3px;}
textarea {width:99%;}
.addr {border:1px solid #718da6;}
.pd {padding:4px 10px 5px 0;}
.pd1 {padding:4px 0 0 20px;}
</style>
</head>
<body class="tbody">
<form method="post" id="frm" name="frm" target="actionFrame" encType="multipart/form-data"
action="Mail" >
<jsp:include page="../BtnList/ManageDraft.jsp" />
<table class="readmailinfo"
style="border-bottom: 1px solid rgb(255, 255, 255);" border="0"
cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr>
<td></td>
<td style="padding: 15px 0pt 4px 1px; height: 38px;"
valign="middle">
<div id="load_img" class="autosave1" style="display: none;">
<img src="WriteMail/ico_loading.gif"
style="margin: 2px 0pt 0pt 4px;">
</div>
</td>
</tr>
<tr>
<td class="pd1" nowrap="nowrap" width="1%">
收件人
</td>
<td class="pd">
<input id="address" name="address" cols="99" class="txt input_wd"
onfocus="SetFocus(this.id)" tabindex="1"
<%if(mailInfo!=null){ %>
value=""<%=mailInfo.getSenderName()%>"<<%=mailInfo.getSenderAddr()%>>;"
<%} %>>
</td>
<td rowspan="8" style="padding-top: 4px;" nowrap="nowrap"
valign="top" width="190">
<div id="addr_cmd" class="cptab cpslt"
onclick='ChangeTab("AddrTab");'>
<a href="javascript:void(0)" onfocus="this.blur();">通讯录</a>
</div>
<table cellpadding="0" cellspacing="0" width="180">
<tbody>
<tr>
<td class="cptitle">
</td>
</tr>
<tr>
<td class="cpright" height="318">
<div id="AddrTab" class="addrtab">
<div class="addrtips">
←点击添加联系人
</div>
<iframe id="quickaddr" src="Mail?actionType=allEmployeeAddr" style="margin: 0pt 0pt 2px 3px;" frameborder="0"
height="278" width="172"></iframe>
<div class="addrsort" >
←点击添加联系人
</div>
</div>
<div style="display: none;" id="stationery_div">
<iframe id="stationery" style="width: 178px; height: 335px;"
framespacing="0" frameborder="0" scrolling="no"></iframe>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td class="pd1" nowrap="nowrap">
主 题
</td>
<td class="pd">
<input id="caption" name="caption" size="100"
class="txt input_wd" maxlength="64" tabindex="2" value="<%=caption %>"
type="text">
</td>
</tr>
<tr>
<td nowrap="nowrap">
</td>
<td class="pd" nowrap="nowrap">
<img src="WriteMail/icon_att.gif" valign="absmiddle"
style="margin: 1px 3px auto auto;">
<a href="javascript:AddFileCell()"><b>添加附件</b>
</a>
<span style="color: rgb(106, 114, 122);">(重复点击可添加多个附件)</span>
</td>
</tr>
<tr>
<td nowrap="nowrap">
</td>
<td class="pd">
<div style="margin-bottom: 4px;">
<div id="filecell"></div>
</div>
<div id="container">
<textarea id="content" name="content" style="height: 280px;"
tabindex="3" onkeypress="SetIsEdited();"><%=content%></textarea>
</div>
<iframe id="htmlcontent" src="" marginheight="0" marginwidth="0"
name="htmlcontent"
style="width: 99%; height: 282px; display: none;" tabindex="5"
onfocus="try{return onEditorFocos();}catch(e){} return 1;"
frameborder="0" scrolling="no"></iframe>
</td>
</tr>
</tbody>
</table>
<iframe src="" id="frmVerify" class="verify" framespacing="0"
style="display: none;" frameborder="0" scrolling="no"></iframe>
<jsp:include page="../BtnList/ManageDraft.jsp" />
<input id="actionType" name="actionType" value="send" type="hidden">
<input id="mailSort" name="mailSort" value="2" type="hidden">
<input name="fmailid" id="fmailid" value="" type="hidden">
</form>
<div id="source" style="display: none;">
</div>
<script>
//add by angusdu 2006-10-11
var sc = document.getElementById("source");
document.getElementById("content").value = (sc.innerText != null ? sc.innerText : sc.textContent);
</script>
<iframe id="AutoCompleteFrmId" name="AutoCompleteFrm"
style="border: 1px solid rgb(94, 129, 167); margin: -2px 0pt 0pt 1px; position: absolute; display: none; z-index: 1000;"
src="WriteMail/autocomplete_box.htm" frameborder="0"
scrolling="auto"></iframe>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -