personal.jsp.svn-base
上传用户:liangcc
上传日期:2019-05-24
资源大小:4412k
文件大小:12k
源码类别:

WEB邮件程序

开发平台:

Java

  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <HTML>
  3. <HEAD>
  4. <META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8">
  5. <TITLE>WebEasyMail</TITLE>
  6. <link href="css/css.css" rel="stylesheet" type="text/css">
  7. </HEAD>
  8. <SCRIPT LANGUAGE=javascript>
  9. <!--
  10. function window_onload() {
  11. fm1.charSet.value = "gb2312";
  12. }
  13. function gosub() {
  14. if (fm1.ReMail.value != "" && remailisok() == false)
  15. {
  16. alert("回复地址填写错误");
  17. fm1.ReMail.focus();
  18. return ;
  19. }
  20. if (fm1.HintInfo.value != "" || fm1.AnswerInfo.value != "")
  21. {
  22. if (fm1.QuestionInfo.value == "")
  23. {
  24. alert("请填写 [帐号保护问题]");
  25. fm1.QuestionInfo.focus();
  26. return ;
  27. }
  28. }
  29. if (fm1.QuestionInfo.value != "" && fm1.AnswerInfo.value == "")
  30. {
  31. alert("请填写 [帐号保护答案]");
  32. fm1.AnswerInfo.focus();
  33. return ;
  34. }
  35. fm1.submit();
  36. }
  37. function remailisok() {
  38. var mailisok = true;
  39. var sp = fm1.ReMail.value.indexOf("@");
  40. if (sp == -1)
  41. mailisok = false;
  42. else
  43. {
  44. sp = fm1.ReMail.value.indexOf("@", sp + 1);
  45. if (sp != -1)
  46. mailisok = false;
  47. else
  48. {
  49. if (fm1.ReMail.value.charAt(0) == '@' || fm1.ReMail.value.charAt(fm1.ReMail.value.length - 1) == '@')
  50. {
  51. mailisok = false;
  52. }
  53. }
  54. }
  55. return mailisok;
  56. }
  57. //-->
  58. </SCRIPT>
  59. <BODY leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" >
  60. <div style="overflow: auto;height:100%;width:100%;">
  61. <table width="100%" height="5%"  border="0" cellpadding="0" cellspacing="0">
  62.   <tr>
  63.     <td width="11" height="11" >&nbsp;</td>
  64.     <td >&nbsp;</td>
  65.   </tr>
  66. </table>
  67. <table width="100%" height="95%"  border="0" cellpadding="0" cellspacing="0" bgcolor="ECF4F5">
  68.  <tr>
  69.     <td valign="middle">
  70. <form method="post" action="style.asp" name="fm1">
  71.   <table width="90%" border="0" align="center">
  72.     <tr> 
  73.       <td> 
  74.         <div align="center"> 
  75.           <table width="485" border="0" align="center" cellspacing="0" bgcolor="#EFF7FF" style="border-top:1px #8CA5B5 solid;">
  76. <tr>
  77.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  78.     height=30> 
  79.                 <div align="right">Email的发信人&nbsp;:&nbsp;</div>
  80.               </td>
  81.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  82.                 <input type="text" name="MailName" class='textbox' value="" maxlength="256">
  83. </td>
  84.             </tr>
  85.             <tr>
  86.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  87.     height=30> 
  88.                 <div align="right">使用HTML格式写邮件&nbsp;:&nbsp;</div>
  89.               </td>
  90.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  91.                 <input type="checkbox" name="enableRichEditer" value="checkbox" >
  92.                 使用</td>
  93.             </tr>
  94.             <tr>
  95.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  96.     height=30> 
  97.                 <div align="right">设定左帧图标风格&nbsp;:&nbsp;</div>
  98.               </td>
  99.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  100.         <select name="ShowIcon" class="drpdwn">
  101. <option value='0' selected>标准风格图标</option><option value='1'>3D风格图标</option>
  102.         </select>
  103. </td>
  104.             </tr>
  105. <tr>
  106.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  107.     height=30> 
  108.                 <div align="right">回复地址&nbsp;:&nbsp;</div>
  109.               </td>
  110.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  111.                 <input type="text" name="ReMail" class='textbox' value="" maxlength="256">
  112. </td>
  113.             </tr>
  114.             <tr>
  115.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  116.     height=30> 
  117.                 <div align="right">发信后是否进行备份&nbsp;:&nbsp;</div>
  118.               </td>
  119.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  120.                 <input type="checkbox" name="enableBackupMail" value="checkbox" >
  121.                 备份</td>
  122.             </tr>
  123.             <tr>
  124.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  125.     height=30> 
  126.                 <div align="right">请选择缺省的签名&nbsp;:&nbsp;</div>
  127.               </td>
  128.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  129.         <select name="defaultSign" class="drpdwn">
  130.           <option value="-1" selected>不使用</option>
  131.         </select>
  132. </td>
  133.             </tr>
  134.             <tr>
  135.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  136.     height=30> 
  137.                 <div align="right">是否允许自动清理垃圾箱&nbsp;:&nbsp;</div>
  138.               </td>
  139.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  140.                 <input type="checkbox" name="enableAutoClear" value="checkbox" >
  141.                 自动清理</td>
  142.             </tr>
  143.             <tr> 
  144.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  145.     height=30> 
  146.                 <div align="right">垃圾箱中超过多少天的邮件将被删除&nbsp;:&nbsp;</div>
  147.               </td>
  148.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  149.                 <input type="text" name="autoClearDays" class='textbox' value="15" size="4" maxlength="4">
  150.                 天 </td>
  151.             </tr>
  152.             <tr>
  153.               <td valign=center align=right width="50%" bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  154.     height=30> 
  155.                 <div align="right">每页最多显示邮件数&nbsp;:&nbsp;</div>
  156.               </td>
  157.               <td align=left width="50%" style='border-bottom:1px #8CA5B5 solid;'>
  158.                 <input type=radio  value=10 
  159.       name=maxlist>
  160.                 10封 <br>
  161.                 <input type=radio  value=20 name=maxlist>
  162.                 20封 <br>
  163.                 <input type=radio checked value=50 name=maxlist>
  164.                 50封 <br>
  165.                 <input type=radio  value=9999 name=maxlist>
  166.                 无限</td>
  167.             </tr>
  168.             <tr> 
  169.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  170.     height=30> 
  171.                 <div align="right">回复时是否加入原信&nbsp;:&nbsp;</div>
  172.               </td>
  173.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  174.                 <input type=radio checked value=1 name=addo>
  175.                 加入<br>
  176.                 <input type=radio  value=0 name=addo>
  177.                 不加入</td>
  178.             </tr>
  179.             <tr> 
  180.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  181.     height=30> 
  182.                 <div align="right">回复信头显示&nbsp;:&nbsp; </div>
  183.               </td>
  184.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  185.                 <input type=radio  value=0 name=replyf>
  186.                 &gt;<br>
  187.                 <input type=radio checked value=1 name=replyf>
  188.                 Re:<br>
  189.                 <input type=radio  value=2 name=replyf>
  190.                 回复:</td>
  191.             </tr>
  192.             <tr> 
  193.               <td valign=center align=right width="50%" bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  194.     height=30> 
  195.                 <div align="right">删除邮件后的操作&nbsp;:&nbsp;</div>
  196.               </td>
  197.               <td align=left width="50%" style='border-bottom:1px #8CA5B5 solid;'> 
  198.                 <input type=radio checked value="0" name="delproc">
  199.                 跳转到文件夹<br>
  200.                 <input type=radio  value="1" name="delproc">
  201.                 跳转到下一封邮件<br>
  202.             </tr>
  203.             <tr>
  204.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  205.     height=30> 
  206.                 <div align="right">发信语言设置&nbsp;:&nbsp;</div>
  207.               </td>
  208. <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  209. <select name="charSet" class="drpdwn">
  210. <option value="gb2312">汉语(GB2312)</option>
  211. <option value="big5">汉语(BIG5)</option>
  212. <option value="iso-8859-1">英语(ISO-8859-1)</option>
  213. <option value="euc-jp">日语(EUC-JP)</option>
  214. <option value="shift-jis">日语(SHIFT-JIS)</option>
  215. <option value="iso-2022-jp">日语(ISO-2022-JP)</option>
  216. <option value="euc-kr">韩语(EUC-KR)</option>
  217. <option value="iso-2022-kr">韩语(ISO-2022-KR)</option>
  218. <option value="chn-utf-8">Unicode(UTF-8)</option>
  219. <option value="gb2312_iso-2022-cn">汉语(ISO-2022-CN)</option>
  220. </select>
  221. </td>
  222.             </tr>
  223.             <tr>
  224.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  225.     height=30> 
  226.                 <div align="right">缺省时展开文件夹&nbsp;:&nbsp;</div>
  227.               </td>
  228. <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  229.                 <input type="checkbox" name="expandFolder" value="checkbox" checked> 展开
  230. </td>
  231.             </tr>
  232.             <tr>
  233.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  234.     height=30> 
  235.                 <div align="right">缺省时展开共享文件夹&nbsp;:&nbsp;</div>
  236.               </td>
  237. <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  238.                 <input type="checkbox" name="expandShareFolder" value="checkbox" > 展开
  239. </td>
  240.             </tr>
  241.             <tr>
  242.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  243.     height=30> 
  244.                 <div align="right">缺省时展开公共文件夹&nbsp;:&nbsp;</div>
  245.               </td>
  246. <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  247.                 <input type="checkbox" name="expandPublicFolder" value="checkbox" > 展开
  248. </td>
  249.             </tr>
  250. <tr>
  251.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  252.     height=30> 
  253.                 <div align="right">帐号保护问题(如:小时候最崇拜的英雄)&nbsp;:&nbsp;</div>
  254.               </td>
  255.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  256.                 <input type="text" name="QuestionInfo" class='textbox' value="" maxlength="256">
  257. </td>
  258.             </tr>
  259. <tr>
  260.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  261.     height=30> 
  262.                 <div align="right">帐号保护答案(如:我的父亲)&nbsp;:&nbsp;</div>
  263.               </td>
  264.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  265.                 <input type="text" name="AnswerInfo" class='textbox' value="" maxlength="256">
  266. </td>
  267.             </tr>
  268. <tr>
  269.               <td valign=center align=right bgcolor="#dbeaf5" style='border-bottom:1px #8CA5B5 solid;'
  270.     height=30> 
  271.                 <div align="right">帐号保护提示信息(如:是家庭成员)&nbsp;:&nbsp;</div>
  272.               </td>
  273.               <td align=left style='border-bottom:1px #8CA5B5 solid;'>
  274.                 <input type="text" name="HintInfo" class='textbox' value="" maxlength="256">
  275. </td>
  276.             </tr>
  277.             <tr>
  278.               <td valign=center align=right bgcolor=#ffffff
  279.     height=40 colspan="2"><br>
  280.                 <div align="right"> 
  281. <input type="button" value=" 保存 " onClick="javascript:gosub()" class="Bsbttn">&nbsp;&nbsp;
  282. <input type="button" value=" 取消 " onClick="javascript:location.href='viewmailbox.asp?GRSN=7883264';" class="Bsbttn">
  283.                 </div>
  284.               </td>
  285.             </tr>
  286.           </table>
  287.         </div>
  288.       </td>
  289.     </tr>
  290.   </table>
  291. </Form>
  292. </td>
  293.   </tr>
  294. </table>
  295. </div>
  296. </BODY>
  297. </HTML>