Statistics
| Branch: | Revision:

m2u-upass-admin / WebContent / jsp / ss112_user / ibssRetailUserEnquiry.jsp @ 155:4c6a38c6bf10

History | View | Annotate | Download (5.21 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="ibssUserForm" property="ibssUserViewBean" />
11
<bean:define id="pagination" name="viewBean" property="pagination" />
12

    
13
<h3 class="title"><strong><c:out value="${sessionScope.displayDesc}"/></strong></h3>
14

    
15
<table id="errorTable">
16
<tr>
17
	<td>
18
		<span id="serverSideError" class="error"><jsp:include flush="true" page="/jsp/errorHandler.jsp"></jsp:include></span>
19
	</td>
20
</tr>
21
</table>
22

    
23
<div id="resultBox"></div>
24
<br/>
25
<c:if test="${pagination.totalPageNumber gt 1}">
26
	<jsp:include flush="true" page="/jsp/ss112_user/ibssRetailUserEnquiryPagination.jsp"></jsp:include>
27
</c:if>
28

    
29
<beanEL:size collection="${viewBean.map.allUserMap}" 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="general.id"/></th>
37
      <th><bean:message key="user.id"/></th>
38
     <%--  <th><bean:message key="user.customer.name"/></th> --%>
39
      <th><bean:message key="user.status"/></th>
40
      <th><bean:message key="user.application"/></th>
41
      <%-- <th><bean:message key="user.authentication.mode"/></th> --%>
42
      <th><bean:message key="user.creation.date"/></th>
43
     </tr>
44
    </thead>
45
    	<tbody>
46
    <c:set var="styleClass" value="alt" />
47
		<logicEL:iterate id="userMap" name="viewBean" property="allUserMap" indexId="i">
48
		<c:set var="userBean" value="${userMap.value}"></c:set>
49
		<c:choose>
50
			<c:when test="${(i mod 2) eq 0}">
51
				<c:set var="styleClass" value="alt"></c:set>
52
			</c:when>
53
			<c:otherwise>
54
				<c:set var="styleClass" value="even"></c:set>
55
			</c:otherwise>
56
		</c:choose>
57
		<c:set var="indexNo" value="${userMap.key}"></c:set>
58
		<tr class="<c:out value='${styleClass}'/>">
59

    
60
		<bean:define id="indexNo" name="userMap" property="key" />
61
		
62
<%
63
			HashMap paramsName = new HashMap();
64
			paramsName.put("indexNo", indexNo);
65
			paramsName.put("SECONDARY_TOKEN", request.getSession().getAttribute("PRIMARY_TOKEN"));
66
			
67
			pageContext.setAttribute("paramsName", paramsName);
68
%>
69
			<td>
70
			<htmlEL:link action="/ss112/userDetail.do" name="paramsName" onclick="overlay();" >
71
				<c:out value="${userBean.map.userID}"/>
72
			</htmlEL:link>
73
			</td>
74
			<td>
75
				<c:out value="${userBean.map.userAlias}"/>
76
			</td>
77
			<%-- <td>
78
				<c:choose>
79
		    		<c:when test="${not empty userBean.map.userName}">
80
		    			<c:out value="${userBean.map.userName}"></c:out>
81
		    		</c:when>
82
		    		<c:otherwise>-</c:otherwise>
83
		    	</c:choose>
84
			</td> --%>
85
			<td>
86
				<c:choose>
87
		    		<c:when test="${not empty userBean.map.userStatus}">
88
		    			<c:out value="${userBean.map.userStatus}"></c:out>
89
		    		</c:when>
90
		    		<c:otherwise>-</c:otherwise>
91
		    	</c:choose>
92
			</td>
93
			<td>
94
				<c:choose>
95
		    		<c:when test="${not empty userBean.map.userApplication}">
96
		    			<c:out value="${userBean.map.userApplication}"></c:out>
97
		    		</c:when>
98
		    		<c:otherwise>-</c:otherwise>
99
		    	</c:choose>
100
			</td>
101
			<%-- <td>
102
				<c:choose>
103
		    		<c:when test="${not empty userBean.map.userAuthMode}">
104
		    			<c:out value="${userBean.map.userAuthMode}"></c:out>
105
		    		</c:when>
106
		    		<c:otherwise>-</c:otherwise>
107
		    	</c:choose>
108
			</td> --%>
109
			<td>
110
				<c:choose>
111
		    		<c:when test="${not empty userBean.map.userCreationDate}">
112
		    			<c:out value="${userBean.map.userCreationDate}"></c:out>
113
		    		</c:when>
114
		    		<c:otherwise>-</c:otherwise>
115
		    	</c:choose>
116
			</td>
117
		</tr>
118
		</logicEL:iterate>
119
		</tbody>
120
	</table>
121
	<c:if test="${pagination.totalPageNumber gt 1}">
122
		<jsp:include flush="true" page="/jsp/ss112_user/ibssRetailUserEnquiryPagination.jsp"></jsp:include>
123
		<br />
124
	</c:if>
125
	<div class="floatRight">
126
	<htmlEL:form action="/ss112/searchUser.do">
127
		<htmlEL:submit property="action" onclick="overlay();">
128
			<bean:message key="general.button.back" />
129
		</htmlEL:submit>
130
		<htmlEL:submit property="action" onclick="overlay();">
131
			<bean:message key="general.button.create" />
132
		</htmlEL:submit>
133
	</htmlEL:form>
134
	</div>
135
	<%-- <div class="floatRight">
136
	<htmlEL:form action="/ss112/retailCreateUser.do">
137
		<htmlEL:submit property="action" onclick="overlay();">
138
			<bean:message key="general.button.create" />
139
		</htmlEL:submit>
140
	</htmlEL:form>
141
	</div> --%>
142
	</c:when>
143

    
144
	<c:otherwise>
145
	<br/>
146
	<table class="tabularForm"width="517" border="1"">
147
		<tr>
148
		<td>
149
			<bean:message key="user.no.users.desc"/>.
150
		</td>
151
		</tr>
152
	</table>
153
	<br/>
154
	<div class="floatRight">
155
	<htmlEL:form action="/ss112/searchUser.do">
156
		<htmlEL:submit property="action" onclick="overlay();">
157
			<bean:message key="general.button.back" />
158
		</htmlEL:submit>
159
		<htmlEL:submit property="action" onclick="overlay();">
160
			<bean:message key="general.button.create" />
161
		</htmlEL:submit>
162
	</htmlEL:form>
163
	</div>
164
	</c:otherwise>
165
</c:choose>