m2u-upass-admin / WebContent / template / ibssProfileUserInfo.jsp @ 124:4a2b001a3331
History | View | Annotate | Download (5.05 KB)
1 | 0:ea666cc7880e | hadi | <%@page import="net.penril.ibss.core.hibernate.AdminGroup"%> |
---|---|---|---|
2 | <%@page import="org.apache.axis.wsdl.Java2WSDL"%> |
||
3 | <%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean"%> |
||
4 | <%@ taglib uri="/WEB-INF/tld/struts-html" prefix="html"%> |
||
5 | <%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic"%> |
||
6 | <%@ taglib uri="/WEB-INF/tld/struts-tiles" prefix="tiles"%> |
||
7 | <%@ taglib uri="/WEB-INF/tld/struts-html-el" prefix="htmlEL"%> |
||
8 | <%@page import="java.util.HashMap"%> |
||
9 | <%@page import="java.net.*"%> |
||
10 | <%@page import="java.util.Date"%> |
||
11 | <%@page import="net.penril.ibss.core.hibernate.AdminUserProfile"%> |
||
12 | <%@page import="net.penril.ibss.core.hibernate.AdminGroup"%> |
||
13 | <%@page contentType="text/html" import="java.util.*"%> |
||
14 | <%@ taglib uri="/WEB-INF/tld/c" prefix="c"%> |
||
15 | |||
16 | <h3 class="title"> |
||
17 | <%-- <strong><c:out value="${sessionScope.displayDesc}"></c:out></strong> --%> |
||
18 | </h3> |
||
19 | |||
20 | |||
21 | |||
22 | <% |
||
23 | String m_sUserName = null; |
||
24 | String m_sSignOnDate = null; |
||
25 | Long m_sUserID = null; |
||
26 | Long userID = null; |
||
27 | String m_sUserRole = null; |
||
28 | String m_sCurrentLoginIPAddress = null; |
||
29 | String m_sCurrentHostName = null; |
||
30 | String m_sOffNo = null; |
||
31 | String m_sMobileNo = null; |
||
32 | String m_sEmail = null; |
||
33 | String m_sUserGroup; |
||
34 | String m_sUserStatus = null; |
||
35 | String m_sCreatedBy = null; |
||
36 | String m_sUpdatedBy = null; |
||
37 | Date m_sCreationDate = null; |
||
38 | Date m_sUpdatedDate = null; |
||
39 | String m_sCreationDateDisplay = null; |
||
40 | String m_sUpdatedDateDisplay = null; |
||
41 | |||
42 | AdminUserProfile m_oUser = (AdminUserProfile) request.getSession() |
||
43 | .getAttribute("IBSS_PROFILE"); |
||
44 | AdminGroup adminGroup = new AdminGroup(); |
||
45 | m_sUserName = m_oUser.getUserName(); |
||
46 | m_sUserID = m_oUser.getUserId(); |
||
47 | userID = m_oUser.getUserId(); |
||
48 | m_sOffNo = m_oUser.getUserOfficeNumber(); |
||
49 | m_sMobileNo = m_oUser.getUserMobileNumber(); |
||
50 | m_sEmail = m_oUser.getUserEmail(); |
||
51 | m_sUserStatus = m_oUser.getUserStatusObj().toString(); |
||
52 | m_sCreatedBy = m_oUser.getCreatorName(); |
||
53 | m_sUpdatedBy = m_oUser.getUpdaterName(); |
||
54 | m_sCreationDate = m_oUser.getMainProfile().getCreationDate(); |
||
55 | m_sUpdatedDate = m_oUser.getUpdatedDate(); |
||
56 | m_sCurrentLoginIPAddress = (String) request.getSession() |
||
57 | .getAttribute("CURRENT_LOGIN_IP"); |
||
58 | m_sCurrentHostName = (String) request.getSession().getAttribute( |
||
59 | "CURRENT_LOGIN_HOST_NAME"); |
||
60 | |||
61 | HashMap<String, Object> paramsName = new HashMap<String, Object>(); |
||
62 | |||
63 | paramsName.put("SECONDARY_TOKEN", request.getSession() |
||
64 | .getAttribute("PRIMARY_TOKEN")); |
||
65 | |||
66 | pageContext.setAttribute("paramsName", paramsName); |
||
67 | pageContext.setAttribute("userID", userID); |
||
68 | |||
69 | java.text.DateFormat df2 = new java.text.SimpleDateFormat( |
||
70 | "dd/MM/yyyy hh:mm:ss aaa"); |
||
71 | m_sCreationDateDisplay = df2.format(m_sCreationDate); |
||
72 | m_sUpdatedDateDisplay = df2.format(m_sUpdatedDate); |
||
73 | %> |
||
74 | |||
75 | |||
76 | |||
77 | <!-- <div style="width:288px; height:233px; background-color:#f7f7f7; border:1px solid #ff9b9b; padding:20px; float:left; margin:5px 10px 10px 10px;"> --> |
||
78 | <div id="bodyDiv"> |
||
79 | <div class="b_greyWhiteStroke"> |
||
80 | <div class="TL"></div> |
||
81 | <div class="BL"></div> |
||
82 | <div class="TR"></div> |
||
83 | <div class="BR"></div> |
||
84 | <div class="b_innerContainer"> |
||
85 | <h2> |
||
86 | Profile User Info |
||
87 | <htmlEL:img align="right" src="../images/Information.png" /> |
||
88 | </h2> |
||
89 | |||
90 | <table> |
||
91 | |||
92 | <tr> |
||
93 | |||
94 | 83:dc500037749f | weikuan | <td><br> <strong>ID</strong></td> |
95 | 0:ea666cc7880e | hadi | <td><br><%=m_sUserID%></td> |
96 | <td><br> |
||
97 | </tr> |
||
98 | |||
99 | <tr> |
||
100 | 83:dc500037749f | weikuan | <td><strong>User ID</strong></td> |
101 | 0:ea666cc7880e | hadi | <td><%=m_sUserName%></td> |
102 | |||
103 | </tr> |
||
104 | <tr> |
||
105 | <td><strong>Office No</strong></td> |
||
106 | <td><%=m_sOffNo%></td> |
||
107 | |||
108 | </tr> |
||
109 | <tr> |
||
110 | <td><strong>Mobile No</strong></td> |
||
111 | <td><%=m_sMobileNo%></td> |
||
112 | |||
113 | </tr> |
||
114 | <tr> |
||
115 | <td><strong>Email</strong></td> |
||
116 | <td><%=m_sEmail%></td> |
||
117 | </tr> |
||
118 | <tr> |
||
119 | <td><strong>User Status</strong></td> |
||
120 | <td><%=m_sUserStatus%></td> |
||
121 | </tr> |
||
122 | <tr> |
||
123 | <td><strong>Created By</strong></td> |
||
124 | <td> |
||
125 | <c:choose> |
||
126 | <c:when test="${not empty m_sCreatedBy}"> |
||
127 | <%=m_sCreatedBy%> |
||
128 | </c:when> |
||
129 | <c:otherwise>-</c:otherwise> |
||
130 | </c:choose> |
||
131 | </td> |
||
132 | </tr> |
||
133 | <tr> |
||
134 | <td><strong>Updated By</strong></td> |
||
135 | <td><%=m_sUpdatedBy%></td> |
||
136 | </tr> |
||
137 | <tr> |
||
138 | <td><strong>Creation Date</strong></td> |
||
139 | <td><%=m_sCreationDateDisplay%></td> |
||
140 | </tr> |
||
141 | <tr> |
||
142 | <td><strong>Updated Date</strong></td> |
||
143 | <td><%=m_sUpdatedDateDisplay%></td> |
||
144 | </tr> |
||
145 | <tr> |
||
146 | <td></td> |
||
147 | <td> |
||
148 | <%-- <htmlEL:link action="/ss102/userDetail.do?userID=${userID}" name="paramsName"><%=userID %></htmlEL:link> --%> |
||
149 | <table> |
||
150 | |||
151 | |||
152 | <tr> |
||
153 | <!-- <td> </td> |
||
154 | <td> </td> --> |
||
155 | <td> |
||
156 | <div class="floatRight"> |
||
157 | <htmlEL:form |
||
158 | action="/ss102/editOwnProfile.do?userID=${userID}"> |
||
159 | |||
160 | <htmlEL:submit property="action" styleClass="button" |
||
161 | onclick="overlay()"> |
||
162 | |||
163 | <bean:message key="general.button.edit" /> |
||
164 | </htmlEL:submit> |
||
165 | </htmlEL:form> |
||
166 | </div> |
||
167 | </td> |
||
168 | |||
169 | <td> </td> |
||
170 | |||
171 | </tr> |
||
172 | |||
173 | </table> |
||
174 | </td> |
||
175 | |||
176 | </tr> |
||
177 | |||
178 | |||
179 | |||
180 | </table> |
||
181 | </div> |
||
182 | </div> |
||
183 | </div> |