Statistics
| Branch: | Revision:

m2u-upass-admin / WebContent / jsp / ss223_application / ibssAppUserEnquiry.jsp @ 104:e82bae1007b4

History | View | Annotate | Download (3.48 KB)

1 40:e570ae77ee76 weikuan
<%@ taglib uri="/WEB-INF/tld/struts-html-el" prefix="htmlEL" %>
2
<%@ taglib uri="/WEB-INF/tld/struts-bean" prefix="bean" %>
3
<%@ taglib uri="/WEB-INF/tld/struts-bean-el" prefix="beanEL" %>
4
<%@ taglib uri="/WEB-INF/tld/struts-logic" prefix="logic" %>
5
<%@ taglib uri="/WEB-INF/tld/struts-logic-el" prefix="logicEL" %>
6
<%@ taglib uri="/WEB-INF/tld/c" prefix="c" %>
7
8
<%@page import="java.util.HashMap"%>
9
10
<bean:define id="viewBean" name="appUserForm" property="appUserViewBean" />
11
<bean:define id="pagination" name="viewBean" property="pagination" />
12
13
14
<htmlEL:form action="/ss223/createAppUserDetails.do">
15
<h3 class="title"><strong><c:out value="${sessionScope.displayDesc}"/></strong></h3>
16
<div id="resultBox"></div>
17
18
<table id="errorTable">
19
<tr>
20
	<td>
21
		<span id="serverSideError" class="error"><jsp:include flush="true" page="/jsp/errorHandler.jsp"></jsp:include></span>
22
	</td>
23
</tr>
24
</table>
25
<c:if test="${pagination.totalPageNumber gt 1}">
26 41:48535d43fbf7 weikuan
	<jsp:include flush="true" page="/jsp/ss223_application/ibssAppUserEnquiryPagination.jsp"></jsp:include>
27 40:e570ae77ee76 weikuan
</c:if>
28
29
<beanEL:size collection="${viewBean.map.userList}" id="userListSize"/>
30
31
<c:choose>
32
	<c:when test="${userListSize > 0}">
33
	<table class="tabularData" cellspacing="0">
34
  <thead>
35
    <tr>
36 61:7674de95da21 weikuan
      <th height="34"><bean:message key="appuser.id"/></th>
37
      <th><bean:message key="appuser.user.id"/></th>
38 40:e570ae77ee76 weikuan
      <th><bean:message key="appuser.application.name"/></th>
39
      <th><bean:message key="appuser.created.date"/></th>
40
      <th>&nbsp;</th>
41
     </tr>
42
    </thead>
43
    	<tbody>
44
    <c:set var="styleClass" value="alt" />
45
		<logicEL:iterate id="userBean" name="viewBean" property="userList" indexId="i">
46
		<c:choose>
47
			<c:when test="${(i mod 2) eq 0}">
48
				<c:set var="styleClass" value="alt"></c:set>
49
			</c:when>
50
			<c:otherwise>
51
				<c:set var="styleClass" value="even"></c:set>
52
			</c:otherwise>
53
		</c:choose>
54
		<bean:define id="indexNo" name="userBean" property="indexNo" />
55
		<tr class="<c:out value='${styleClass}'/>">
56
57
		<bean:define id="userID" name="userBean" property="userId" />
58
<%
59
			HashMap paramsName = new HashMap();
60 41:48535d43fbf7 weikuan
			paramsName.put("userId", userID);
61 40:e570ae77ee76 weikuan
			paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN"));
62
			pageContext.setAttribute("paramsName", paramsName);
63
%>
64
			<td>
65
			<htmlEL:link action="/ss223/appUserDetails.do" name="paramsName" onclick="overlay();" >
66
				<c:out value="${userBean.map.userId}"/>
67
			</htmlEL:link>
68
			</td>
69
			<td>
70
				<c:out value="${userBean.map.userAlias}"/>
71
			</td>
72
			<td>
73
				<c:out value="${userBean.map.appName}"/>
74
			</td>
75
			<td>
76
				<c:choose>
77
					<c:when test="${not empty userBean.map.userCreationDate}">
78
						<c:out value="${userBean.map.userCreationDate}"/>
79
					</c:when>
80
					<c:otherwise>-</c:otherwise>
81
				</c:choose>
82
			</td>
83
			<td>
84
				&nbsp;
85
			</td>
86
		</tr>
87
		</logicEL:iterate>
88
		</tbody>
89
	</table>
90
	</c:when>
91
92
	<c:otherwise>
93
	<table class="tabularForm"width="517" border="1"">
94
		<tr>
95
		<td>
96
			<bean:message key="user.not.found"/>
97
		</td>
98
		<td>
99
			&nbsp;
100
		</td>
101
		</tr>
102
	</table>
103
	</c:otherwise>
104
</c:choose>
105
106
<c:if test="${pagination.totalPageNumber gt 1}">
107 41:48535d43fbf7 weikuan
	<jsp:include flush="true" page="/jsp/ss223_application/ibssAppUserEnquiryPagination.jsp"></jsp:include>
108 40:e570ae77ee76 weikuan
</c:if>
109
110 41:48535d43fbf7 weikuan
<c:if test="${appUserForm.map.hasAppCreateAccess eq true}">
111 40:e570ae77ee76 weikuan
<div class="floatRight">
112
	<htmlEL:submit property="action"><bean:message key="general.button.create"/></htmlEL:submit>
113
</div>
114
</c:if>
115
</htmlEL:form>