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

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>邮件列表</title>
  6. <SCRIPT LANGUAGE=javascript>
  7. <!--
  8. function clearbox(box)
  9. {
  10. if(!confirm('警告:邮件删除不可恢复,是否真的要清空?'))
  11. return false;
  12. else
  13. {
  14. form1.dirName.value=box;
  15. form1.subCommand.value="clearDir";
  16. form1.submit();
  17. }
  18. }
  19. function delbox(box)
  20. {
  21. if(!confirm('警告:邮箱删除不可恢复,是否真的要删除邮箱?'))
  22. return false;
  23. else
  24. {
  25. form1.dirName.value=box;
  26. form1.subCommand.value="delDir";
  27. form1.submit();
  28. }
  29. }
  30. function doNewDir()
  31. {
  32. //长度限制
  33. if(form1.dirName.value=='')
  34. {
  35. alert('文件夹名不能为空');
  36. return;
  37. }
  38. form1.subCommand.value="createDir";
  39. form1.submit();
  40. }
  41. function renameFdr(parentfid )
  42. {
  43. var nn = window.prompt("文件夹名","");
  44. if(nn==null || nn=="null" || nn=="")
  45. {
  46. alert('文件夹名不能为空');
  47. return;
  48. }
  49. var str=nn;
  50. var i=1;
  51. for(var x=0;x<str.length;x++)
  52. {
  53. i++;
  54. if(escape(str.charAt(x)).length>4)
  55. {
  56. i++;
  57. }
  58. }
  59. var L=16;
  60. if(L<i-1)
  61. {
  62. alert('此输入框最多只能输入 '+L+' 个字符;您输入的数据现在多出了 '+(i-1-L)+' 个字符;一个汉字相当于两个字符。');
  63. }
  64. else{
  65. form1.dirName.value=parentfid;
  66. form1.subCommand.value="renameDir";
  67. form1.action = 'mail-box.do?newDirName='+nn;
  68. form1.submit();
  69. }
  70. }
  71. -->
  72. </script> 
  73. <link href="css/css.css" rel="stylesheet" type="text/css">
  74. </head>
  75. <body bgcolor="#F2F1F2" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" scroll="no" background="images/login_bg.gif">
  76. <div style="overflow: auto;height:100%;width:100%;">
  77. <table width="100%" height="5%"  border="0" cellpadding="0" cellspacing="0">
  78.   <tr>
  79.     <td width="11" height="11" >&nbsp;</td>
  80.     <td >&nbsp;</td>
  81.   </tr>
  82. </table>
  83. <table width="100%" height="95%"  border="0" cellpadding="0" cellspacing="0">
  84.   <tr>
  85.     <td width="11" valign="top"><img src="images/spacer.gif" width="11" height="20"></td>
  86.     <td align="center" valign="top" bgcolor="ECF4F5"><br>
  87.       <table width="99%" height="34"  border="1" cellpadding="0" cellspacing="0" bordercolor="9AC0E1" background="images/table_headbg.gif" style="border-collapse: collapse">
  88.         <tr align="center">
  89.           <td width="22%" nowrap>邮件箱名称</td>
  90.           <td width="16%" nowrap>邮件总数</td>
  91.           <td width="21%" nowrap>未读邮件数</td>
  92.           <td width="18%" nowrap>占用空间</td>
  93.           <td width="23%" nowrap>操作</td>
  94.         </tr>
  95.       </table>
  96.         <TABLE WIDTH='99%' height='150' BORDER='1' align='center' CELLPADDING='0' CELLSPACING='0' bordercolor="C7D0D2" class="table2" style="border-collapse: collapse">
  97.           <FORM id='form1' name="form1" METHOD='POST' ACTION='/mail-box.do'>
  98.   <input type="hidden" name="easyJFAction" value="update">
  99.   <input type="hidden" name="subCommand" value="creatDir">  
  100.             <thead>
  101.             </thead>
  102.              <tr align='center' bgcolor="EEF6F9"> 
  103.               <TD width='22%' height="30" nowrap  ><a href="/email.ejf?easyJWebCommand=list&&box=newbox">新邮件</a></TD>
  104.               <TD width='16%' nowrap  >9</TD>
  105.               <TD width='21%' nowrap  >9</TD>
  106.               <TD width='18%' nowrap  >204.49KB</TD>
  107.               <TD width='23%' nowrap><a href="">删除</a> <a href="javascript:doClear('newbox')">清空</a></TD>
  108.             </TR>
  109.             <tr align='center' bgcolor="EEF6F9"> 
  110.               <TD width='22%' height="30" nowrap  ><a href="/email.ejf?easyJWebCommand=list&&box=inbox">收件箱</a></TD>
  111.               <TD width='16%' nowrap  >16</TD>
  112.               <TD width='21%' nowrap  >9</TD>
  113.               <TD width='18%' nowrap  >376.65KB</TD>
  114.               <TD width='23%' nowrap><a href="">删除</a> <a href="javascript:doClear('inbox')">清空</a></TD>
  115.             </TR>
  116.             <tr align='center' bgcolor="EEF6F9"> 
  117.               <TD width='22%' height="30" nowrap  ><a href="/email.ejf?easyJWebCommand=list&&box=draftbox">草稿箱</a></TD>
  118.               <TD width='16%' nowrap  >0</TD>
  119.               <TD width='21%' nowrap  >0</TD>
  120.               <TD width='18%' nowrap  >.00KB</TD>
  121.               <TD width='23%' nowrap><a href="">删除</a> <a href="javascript:doClear('draftbox')">清空</a></TD>
  122.             </TR>
  123.             <tr align='center' bgcolor="EEF6F9"> 
  124.               <TD width='22%' height="30" nowrap  ><a href="/email.ejf?easyJWebCommand=list&&box=sendbox">发件箱</a></TD>
  125.               <TD width='16%' nowrap  >0</TD>
  126.               <TD width='21%' nowrap  >0</TD>
  127.               <TD width='18%' nowrap  >.00KB</TD>
  128.               <TD width='23%' nowrap><a href="">删除</a> <a href="javascript:doClear('sendbox')">清空</a></TD>
  129.             </TR>
  130.             <tr align='center' bgcolor="EEF6F9"> 
  131.               <TD width='22%' height="30" nowrap  ><a href="/email.ejf?easyJWebCommand=list&&box=delbox">垃圾箱</a></TD>
  132.               <TD width='16%' nowrap  >0</TD>
  133.               <TD width='21%' nowrap  >0</TD>
  134.               <TD width='18%' nowrap  >.00KB</TD>
  135.               <TD width='23%' nowrap><a href="">删除</a> <a href="javascript:doClear('delbox')">清空</a></TD>
  136.             </TR>
  137.             <tr align='center' bgcolor="EEF6F9"> 
  138.               <td colspan="5">建新邮件夹&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="dirName" maxlength='16' id="dirName" value=""> 
  139.                 &nbsp; <input type="button" name="build" value="新建" onClick="doNewDir();"></td>
  140.             </TR>
  141.           
  142.         </TABLE></td>
  143.     <td width="11" bgcolor="ECF4F5">&nbsp;</td>
  144.   </tr>
  145. </table>
  146. </div>
  147. </body>
  148. </html>