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

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import="com.redmoon.oa.fileark.*" %>
  3. <%@ page import="cn.js.fan.module.cms.*" %>
  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. </script>
  14. </head>
  15. <body>
  16. <%
  17. String sql;
  18. String myname = privilege.getUser(request);
  19. sql = "select id from email_pop3 where userName="+fchar.sqlstr(myname);
  20. int i = 0;
  21. String email = "",email_user="",email_pwd="",mailserver="";
  22. int id,port;
  23. EmailPop3Db epd = new EmailPop3Db();
  24. Iterator ir = epd.list(sql).iterator();
  25. while (ir.hasNext()) {
  26. epd = (EmailPop3Db)ir.next();
  27. i++;
  28. email = epd.getEmail();
  29. email_user = epd.getEmailUser();
  30. email_pwd = epd.getEmailPwd();
  31. id = epd.getId();
  32. mailserver = epd.getServer();
  33. port = epd.getPort();
  34. %>
  35. <table width="98%" border="0" align="center" cellpadding="2" cellspacing="0" class="stable">
  36.   <form id=formadd<%=i%> action="pop3_getmail_do.jsp" method=post>
  37.     <tr align="center" bgcolor="#EEEEEE" class="stable">
  38.       <td width="21%" class="stable"><%=email%>
  39.           <input name=email type=hidden value="<%=email%>">
  40.           <a href="pop3_getmail_do.jsp">收邮件</a><br>
  41.  发邮件<br>
  42.  草稿箱          
  43.  <div align="center"></div></td>
  44.       <td width="22%" class="stable"><input name="Submit3" onClick="javascript:window.location.href='pop3_getmail_do.jsp?email=<%=email%>&mailserver=<%=mailserver%>&port=<%=port%>&email_user='+formadd<%=i%>.email_user.value+'&email_pwd='+formadd<%=i%>.email_pwd.value" type="button" class="singleboarder" value="收邮件">
  45.         &nbsp; </td>
  46.     </tr>
  47.   </form>
  48. </table>
  49. <%
  50. }
  51. %>
  52. </body>
  53. </html>