MailServerLink.jsp
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:4k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
  3. <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
  4. <%
  5. Request m_request = new Request(request);
  6. int intMailServerID = m_request.GetInt("ID");
  7. if(intMailServerID<1)
  8. {
  9. %>
  10. <script language="JavaScript" type="text/JavaScript">
  11. alert("请选择正确的邮件服务器,查看资料失败!");
  12. history.back();
  13. </script>
  14. <%
  15. }
  16. else
  17. {
  18. int intUserID = m_session.GetInt("UserID");
  19. Vector vt = MailServerManager.getRecordByID(intMailServerID,intUserID);
  20. if(vt.size()==1)
  21. {
  22. %>
  23. <html>
  24. <head>
  25. <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
  26. <title>电子邮件服务器管理-- GForce OA 2.0</title>
  27. <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
  28. </head>
  29. <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
  30. <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  31.   <tr>
  32.     <td align="center" valign="top">
  33.       <table width="95%"  border="0" cellpadding="0" cellspacing="5">
  34.         <tr>
  35.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">服务器名称:</font></td>
  36.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(1).toString()%>
  37.           </td>
  38.         </tr>
  39.         <tr>
  40.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">POP3服务器地址:</font></td>
  41.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(2).toString()%></td>
  42.         </tr>
  43.         <tr>
  44.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">POP3用户名:</font></td>
  45.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(3).toString()%></td>
  46.           </td>
  47.         </tr>
  48.         <tr>
  49.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">POP3密码:</font></td>
  50.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(4).toString()%></td>
  51.           </td>
  52.         </tr>
  53.         <tr>
  54.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">POP3端口:</font></td>
  55.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(5).toString()%></td>
  56.           </td>
  57.         </tr>
  58.         <tr>
  59.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">SMTP服务器:</font></td>
  60.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(6).toString()%></td>
  61.           </td>
  62.         </tr>
  63.         <tr>
  64.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">SMTP用户名:</font></td>
  65.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(7).toString()%></td>
  66.           </td>
  67.         </tr>
  68.         <tr>
  69.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">SMTP密码:</font></td>
  70.           <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(8).toString()%></td>
  71.           </td>
  72.         </tr>
  73.         <tr>
  74.           <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">最后使用时间:</font></td>
  75.           <td align="left" valign="middle"> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(9).toString(),"yyyy-MM-dd HH=mm-ss")%></td>
  76.         </tr>
  77.         <tr>
  78.           <td width="100" align="right" valign="middle" nowrap>&nbsp;</td>
  79.           <td align="left" valign="middle"> </td>
  80.         </tr>
  81.         <tr>
  82.           <td width="100" align="right" valign="middle" nowrap>&nbsp;</td>
  83.           <td align="right" valign="middle">
  84.             <input type="button" value="关闭" onclick="window.close()">
  85.           </td>
  86.         </tr>
  87.       </table>
  88.             </form>
  89.         </td>
  90.     </tr>
  91. </table>
  92. </body>
  93. </html>
  94. <%
  95. }
  96. else
  97. {
  98. %>
  99. <script language="JavaScript" type="text/JavaScript">
  100. alert("该记录已经被删除或者您没有权限查看此记录,查看资料失败!");
  101. history.back();
  102. </script>
  103. <%
  104. }
  105. }
  106. %>