Statistics
| Branch: | Revision:

m2u-upass-admin / WebContent / jsp / ss223_application / ibssAppUserEnquiry.jsp @ 67:c63afda1a842

History | View | Annotate | Download (3.6 KB)

1
<%@ 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
	<jsp:include flush="true" page="/jsp/ss223_application/ibssAppUserEnquiryPagination.jsp"></jsp:include>
27
</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
      <th height="34"><bean:message key="appuser.id"/></th>
37
      <th><bean:message key="appuser.user.id"/></th>
38
      <th><bean:message key="appuser.user.name"/></th>
39
      <th><bean:message key="appuser.application.name"/></th>
40
      <th><bean:message key="appuser.created.date"/></th>
41
      <th>&nbsp;</th>
42
     </tr>
43
    </thead>
44
    	<tbody>
45
    <c:set var="styleClass" value="alt" />
46
		<logicEL:iterate id="userBean" name="viewBean" property="userList" indexId="i">
47
		<c:choose>
48
			<c:when test="${(i mod 2) eq 0}">
49
				<c:set var="styleClass" value="alt"></c:set>
50
			</c:when>
51
			<c:otherwise>
52
				<c:set var="styleClass" value="even"></c:set>
53
			</c:otherwise>
54
		</c:choose>
55
		<bean:define id="indexNo" name="userBean" property="indexNo" />
56
		<tr class="<c:out value='${styleClass}'/>">
57

    
58
		<bean:define id="userID" name="userBean" property="userId" />
59
<%
60
			HashMap paramsName = new HashMap();
61
			paramsName.put("userId", userID);
62
			paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN"));
63
			pageContext.setAttribute("paramsName", paramsName);
64
%>
65
			<td>
66
			<htmlEL:link action="/ss223/appUserDetails.do" name="paramsName" onclick="overlay();" >
67
				<c:out value="${userBean.map.userId}"/>
68
			</htmlEL:link>
69
			</td>
70
			<td>
71
				<c:out value="${userBean.map.userAlias}"/>
72
			</td>
73
			<td>
74
				<c:out value="${userBean.map.userName}"/>
75
			</td>
76
			<td>
77
				<c:out value="${userBean.map.appName}"/>
78
			</td>
79
			<td>
80
				<c:choose>
81
					<c:when test="${not empty userBean.map.userCreationDate}">
82
						<c:out value="${userBean.map.userCreationDate}"/>
83
					</c:when>
84
					<c:otherwise>-</c:otherwise>
85
				</c:choose>
86
			</td>
87
			<td>
88
				&nbsp;
89
			</td>
90
		</tr>
91
		</logicEL:iterate>
92
		</tbody>
93
	</table>	
94
	</c:when>
95

    
96
	<c:otherwise>
97
	<table class="tabularForm"width="517" border="1"">
98
		<tr>
99
		<td>
100
			<bean:message key="user.not.found"/>
101
		</td>
102
		<td>
103
			&nbsp;
104
		</td>
105
		</tr>
106
	</table>
107
	</c:otherwise>
108
</c:choose>
109

    
110
<c:if test="${pagination.totalPageNumber gt 1}">
111
	<jsp:include flush="true" page="/jsp/ss223_application/ibssAppUserEnquiryPagination.jsp"></jsp:include>
112
</c:if>
113

    
114
<c:if test="${appUserForm.map.hasAppCreateAccess eq true}">
115
<div class="floatRight">
116
	<htmlEL:submit property="action"><bean:message key="general.button.create"/></htmlEL:submit>
117
</div>
118
</c:if>
119
</htmlEL:form>