MailServerLink.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:4k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int intMailServerID = m_request.GetInt("ID");
- if(intMailServerID<1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的邮件服务器,查看资料失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- int intUserID = m_session.GetInt("UserID");
- Vector vt = MailServerManager.getRecordByID(intMailServerID,intUserID);
- if(vt.size()==1)
- {
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>电子邮件服务器管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td align="center" valign="top">
- <table width="95%" border="0" cellpadding="0" cellspacing="5">
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">服务器名称:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(1).toString()%>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">POP3服务器地址:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(2).toString()%></td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">POP3用户名:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(3).toString()%></td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">POP3密码:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(4).toString()%></td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">POP3端口:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(5).toString()%></td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">SMTP服务器:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(6).toString()%></td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">SMTP用户名:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(7).toString()%></td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">SMTP密码:</font></td>
- <td align="left" valign="middle"> <%=((Vector)vt.get(0)).get(8).toString()%></td>
- </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap><font color="#0A0A0A">最后使用时间:</font></td>
- <td align="left" valign="middle"> <%=StringNew.GetDateString(((Vector)vt.get(0)).get(9).toString(),"yyyy-MM-dd HH=mm-ss")%></td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap> </td>
- <td align="left" valign="middle"> </td>
- </tr>
- <tr>
- <td width="100" align="right" valign="middle" nowrap> </td>
- <td align="right" valign="middle">
- <input type="button" value="关闭" onclick="window.close()">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限查看此记录,查看资料失败!");
- history.back();
- </script>
- <%
- }
- }
- %>