📄 send.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="cn.com.aheadsoft.util.StringFormat" %>
<%@ page import="cn.com.aheadsoft.util.ObjectID" %>
<%@ page import="cn.com.aheadsoft.recordset.MailTypeRecordSet" %>
<%
//曾红立
String MI_Title=(String)session.getAttribute("MI_Title");
String MI_Advice=(String)session.getAttribute("MI_Advice");
String MI_Content=(String)session.getAttribute("MI_Content");
if(null==MI_Title)
MI_Title="";
if(null==MI_Advice)
MI_Advice="";
if(null==MI_Content)
MI_Content="";
%>
<%
/*String fileNames="";
List fileLists=(List)request.getAttribute("FileLists");
if(null!=fileLists){
int size=fileLists.size();
for(int i=0;i<size;i++){
//fileNmes=filesNames+fileLists.get(i)
String temp=(String)fileLists.get(i);
fileNames=fileNames+temp+"|";
}
}
System.out.println("------------------------"+fileNames);
*/
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link rel="stylesheet" type="text/css" href="/krm/jsp/css/css.css">
<title>写留言</title>
<script>
<!--
function ckeckOK()
{
if(document.mailinfo.MI_AcceptName.value.length<1 )
{
alert("请选择邮件接收人!");
return false;
}
if(document.mailinfo.MI_Title.value.length<1 )
{
alert("请输入标题!");
return false;
}
}
function openWindow(theURL,winName,features) {
window.open(theURL,winName,features);
}
function openWin(url) {
window.open(url,'','toolbar=no,location=no,menubar=no,resizable=1,scrollbars=yes,left=100,top=100,width=600,height=400');
}
function changeItem() {
if(document.mailinfo.MI_Advice.selectedIndex==0)
document.mailinfo.MI_Content.value = "";
else if(document.mailinfo.MI_Advice.selectedIndex==1)
document.mailinfo.MI_Content.value = "同意";
else if(document.mailinfo.MI_Advice.selectedIndex==2)
document.mailinfo.MI_Content.value = "不同意";
else if(document.mailinfo.MI_Advice.selectedIndex==3)
document.mailinfo.MI_Content.value = "开会";
else if(document.mailinfo.MI_Advice.selectedIndex==4)
document.mailinfo.MI_Content.value = "面谈";
else if(document.mailinfo.MI_Advice.selectedIndex==5)
document.mailinfo.MI_Content.value = "分管领导处理";
else if(document.mailinfo.MI_Advice.selectedIndex==6)
document.mailinfo.MI_Content.value = "回电话";
else if(document.mailinfo.MI_Advice.selectedIndex==7)
document.mailinfo.MI_Content.value = "见附件";
}
-->
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr class="trA">
<td > 您的位置:通讯管理 >> 留言薄 >> <font class="fontcolor">写留言</font></td>
</tr>
<tr height="8">
<td >
</td>
</tr>
<tr>
<td align="center">
<%
//写留言跳转标记 zenghongli 2004.4.11 写留言后跳转到留言列表
String jumpToflag="send";
%>
<form action="/krm/servlet/MailInfoServlet" method="post" name="mailinfo" onsubmit="return ckeckOK()">
<input type="hidden" name="jumpToflag" value="<%=jumpToflag%>">
<table border="0" width="98%" align="center" height="30%" class="collapse">
<tr>
<td class="tdA" colspan="9" align="center"><div align="left"> 写留言</div></td>
</tr>
<%
String docid = ObjectID.getID();
%>
<tr height="25">
<td class="common bgcolor" > 接收人</td>
<td class="common"> <input type="text" class="long" readonly="true" name="MI_AcceptName" alt"接收人">
<a href="javascript:openWindow('/krm/servlet/UserSelectServlet?src1=mailinfo.MI_Accept&src2=mailinfo.MI_AcceptName','selectuser','width=500,height=300')"><image src="/krm/jsp/image/selectperson.gif" border="0"></a></td>
<input type="hidden" name="MI_Accept" alt="接收人" value="">
</tr>
<tr height="25">
<td width="13%" class="common bgcolor"> 标题</td>
<td width="87%" class="common">
<!--<input type="text" class="long" name="MI_Title" alt="标题">-->
<input type="text" class="long" name="MI_Title" alt="标题" value="<%=MI_Title%>">
</td>
<input type="Hidden" name="MI_ID" value="<%= docid %>">
</tr>
<tr height="25">
<td class="common bgcolor"> 内容</td>
<td valign="top" class="common" > 预设内容:
<!--<select name="MI_Advice" alt="预设内容" onChange="javascript:changeItem();">-->
<select name="MI_Advice" alt="预设内容" >
<option value="no" selected></option>
<option value="同意">同意</option>
<option value="不同意">不同意</option>
<option value="开会">开会</option>
<option value="面谈">面谈</option>
<option value="再议">再议</option>
<option value="分管领导处理">分管领导处理</option>
<option value="回电话">回电话</option>
<option value="见附件">见附件</option>
<%
MailTypeRecordSet recordset = (MailTypeRecordSet)request.getAttribute("mtset");
//session.removeAttribute("mtset");
if(recordset != null && recordset.size() > 0) {
while(recordset.next()) {
%>
<option value="<%=recordset.getMT_Title()%>"><%=recordset.getMT_Title()%></option>
<%}}%>
</select>
<br>
<textarea rows="10" name="MI_Content" alt="内容" style="overflow:auto"><%=MI_Content%></textarea>
</td>
</tr>
<tr height="25">
<td class="common bgcolor"> 附件</td>
<td class="common">
<table width="100%" cellspacing="0" cellpadding="0" height="20">
<tr class="common">
<!--<input name="FileAccName" type="text" class="long" readonly="true">-->
<td width="15%" valign="middle" class="common1" align="left"> <a href="javascript:openWin('/krm/servlet/FileUploadServlet?status=q&docid=<%= docid %>');">添加</a>
</td>
<td class="common1" width="85%" height="0" align="left" valign="middle">
<iframe src="/krm/jsp/commanage/util/attach.jsp" name="attach" height="20" marginheight="100%" frameborder="0" scrolling="no"> </iframe>
</td>
</tr>
</table>
</td>
</tr>
<tr >
<td align="center" class="tdC" colspan="2"><input name="submit" type="submit" onmouseover="this.className='button2'" onmouseout="this.className='button1'" class="button1" value="发 送"></td>
</tr>
<input type="Hidden" name="status" value="i">
</table>
</form>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -