mail_left.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:3k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import="com.redmoon.oa.emailpop3.*"%>
  3. <%@ page import="java.util.*"%>
  4. <%@ page import="cn.js.fan.util.*"%>
  5. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  6. <html>
  7. <head>
  8. <LINK href="../common.css" type=text/css rel=stylesheet>
  9. <LINK href="default.css" type=text/css rel=stylesheet>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  11. <title>选择邮箱</title>
  12. <script>
  13. function display(emailTable, img)  {
  14. if (emailTable.style.display=="") {
  15. emailTable.style.display = "none";
  16. img.src = "images/open.gif";
  17. }
  18. else {
  19. emailTable.style.display = "";
  20. img.src = "images/close.gif";
  21. }
  22. }
  23. </script>
  24. </head>
  25. <body>
  26. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  27. <%
  28. String sql;
  29. String myname = privilege.getUser(request);
  30. sql = "select id from email_pop3 where userName=" + StrUtil.sqlstr(myname);
  31. int i = 0;
  32. String email = "",email_user="",email_pwd="",mailserver="";
  33. int id,port;
  34. EmailPop3Db epd = new EmailPop3Db();
  35. Iterator ir = epd.list(sql).iterator();
  36. while (ir.hasNext()) {
  37. epd = (EmailPop3Db)ir.next();
  38. i++;
  39. email = epd.getEmail();
  40. email_user = epd.getEmailUser();
  41. email_pwd = epd.getEmailPwd();
  42. id = epd.getId();
  43. mailserver = epd.getServer();
  44. port = epd.getPort();
  45. %>
  46. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  47.     <tr align="center">
  48.       <td width="199" align="left" class="right-title">&nbsp;<img src="images/close.gif" width="11" height="11" align="absmiddle" onClick="display(emailTable<%=i%>, this)" style="cursor:hand">&nbsp;<%=email%>      </td>
  49.     </tr>
  50. <tr><td bgcolor="#FFFFFF">
  51.   <table id="emailTable<%=i%>" name="email<%=i%>" width="100%" border="0" cellpadding="0" cellspacing="0" style="display:">
  52.     <tr align="center">
  53.       <td height="24" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/icoInbox.gif" width="16" height="16" align="absmiddle"> <a target="mainMailFrame" href="pop3_getmail_do.jsp?id=<%=epd.getId()%>">收件箱</a></td>
  54.     </tr>
  55.     <tr align="center">
  56.       <td height="24" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/icoSendmail.gif" width="16" height="16" align="absmiddle">&nbsp;<a target="mainMailFrame" href="pop3_sendmail_html.jsp?email=<%=epd.getEmail()%>">发邮件</a></td>
  57.     </tr>
  58.     <tr align="center">
  59.       <td height="24" align="left">&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/icoDraft.gif" width="16" height="16" align="absmiddle">&nbsp;<a target="mainMailFrame" href="mail_list.jsp?type=<%=MailMsgDb.TYPE_DRAFT%>&sender=<%=epd.getEmail()%>">草稿箱</a> </td>
  60.     </tr>
  61. </table>
  62. </td></tr>
  63. </table>
  64. <%
  65. }
  66. %>
  67. </body>
  68. </html>