m2u-upass-admin / WebContent / template / ibssRibInfo.jsp @ 136:0ec4b0eea084
History | View | Annotate | Download (3.24 KB)
1 | 0:ea666cc7880e | hadi | <%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> |
---|---|---|---|
2 | <%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%> |
||
3 | <%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic"%> |
||
4 | <%@ taglib uri="/WEB-INF/tld/struts-tiles" prefix="tiles"%> |
||
5 | <%@ taglib uri="/WEB-INF/tld/struts-html-el" prefix="htmlEL"%> |
||
6 | <%@ taglib uri="/WEB-INF/tld/c" prefix="c" %> |
||
7 | <%@page import="java.util.HashMap"%> |
||
8 | <%@page import="java.net.*"%> |
||
9 | <%@page import="net.penril.ibss.core.hibernate.AdminUserProfile"%> |
||
10 | |||
11 | |||
12 | |||
13 | |||
14 | <% |
||
15 | String m_sUserName = null; |
||
16 | String m_sLastLoginDate = null; |
||
17 | Long m_sUserID = null; |
||
18 | String m_sUserRole = null; |
||
19 | String m_sLastLoginIPAddress = null; |
||
20 | String m_sLastHostName = null; |
||
21 | |||
22 | AdminUserProfile m_oUser = (AdminUserProfile) request.getSession().getAttribute("IBSS_PROFILE"); |
||
23 | m_sUserName = m_oUser.getUserName(); |
||
24 | m_sUserID = m_oUser.getUserId(); |
||
25 | m_sLastLoginDate = (String) request.getSession().getAttribute("LAST_LOGIN_DATE"); |
||
26 | m_sLastLoginIPAddress = (String) request.getSession().getAttribute("LAST_LOGIN_IP"); |
||
27 | m_sLastHostName = (String) request.getSession().getAttribute("LAST_LOGIN_HOST_NAME"); |
||
28 | |||
29 | HashMap<String, Object> paramsName = new HashMap<String, Object>(); |
||
30 | paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN")); |
||
31 | pageContext.setAttribute("paramsName", paramsName); |
||
32 | pageContext.setAttribute("m_sLastLoginIPAddress", m_sLastLoginIPAddress); |
||
33 | pageContext.setAttribute("m_sLastHostName", m_sLastHostName); |
||
34 | pageContext.setAttribute("m_sLastLoginDate", m_sLastLoginDate); |
||
35 | %> |
||
36 | <div id="bodyDiv"> |
||
37 | <div class="b_greyWhiteStroke"> |
||
38 | <div class="TL"></div> |
||
39 | <div class="BL"></div> |
||
40 | <div class="TR"></div> |
||
41 | <div class="BR"></div> |
||
42 | <div class="b_innerContainer"> |
||
43 | <h2>Last Access Info<htmlEL:img align="right" src="../images/Information.png" /></h2> |
||
44 | <table> |
||
45 | <tr> |
||
46 | <td><br><strong>Last Login Date & Time</strong></td> |
||
47 | <c:choose> |
||
48 | <c:when test="${not empty m_sLastLoginDate}"> |
||
49 | <td><br><%=m_sLastLoginDate%></td> |
||
50 | </c:when> |
||
51 | <c:otherwise> |
||
52 | <td><br>-                                   </td> |
||
53 | </c:otherwise> |
||
54 | </c:choose> |
||
55 | </tr> |
||
56 | <tr> |
||
57 | <td><strong>Last Login IP Address Use</strong></td> |
||
58 | <c:choose> |
||
59 | <c:when test="${not empty m_sLastLoginIPAddress}"> |
||
60 | <td><%=m_sLastLoginIPAddress%></td> |
||
61 | </c:when> |
||
62 | <c:otherwise> |
||
63 | <td>-                                   </td> |
||
64 | </c:otherwise> |
||
65 | </c:choose> |
||
66 | </tr> |
||
67 | <tr> |
||
68 | <td><strong>Last Login Computer Name</strong></td> |
||
69 | <c:choose> |
||
70 | <c:when test="${not empty m_sLastHostName}"> |
||
71 | <td><%=m_sLastHostName%></td> |
||
72 | </c:when> |
||
73 | <c:otherwise> |
||
74 | <td>-                                   </td> |
||
75 | </c:otherwise> |
||
76 | </c:choose> |
||
77 | </tr> |
||
78 | </table> |
||
79 | </div> |
||
80 | </div> |
||
81 | <br> |
||
82 | <div align="left"> |
||
83 | <jsp:include page="../template/ibssUserInfo.jsp"></jsp:include> |
||
84 | </div> |
||
85 | </div> |
||
86 | |||
87 |