source: ether_statistics/web/backoffice/user.jsp @ 569

Last change on this file since 569 was 569, checked in by vmipsl, 12 years ago

Nouveau projet

File size: 9.4 KB
Line 
1<%@ page import="com.ether.WebException" %>
2<%@ page import="com.ether.user.UserRole" %>
3<%@ page import="com.ether.user.UserState" %>
4<%@ page language="java" contentType="text/html; charset=UTF-8" %>
5<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
6<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
7<%@ taglib prefix="ether" tagdir="/WEB-INF/tags" %>
8
9<tiles:insert page="/resources/templates/templateBackoffice.jsp" flush="true">
10
11<tiles:put name="insertCss" type="string">
12    <ether:htmlCss cssFile="select"/>
13</tiles:put>
14
15<tiles:put name="insertJsOrJsp" type="string">
16    <ether:htmlJs jsFile="classesForJQuery/etherClasses"/>
17    <ether:htmlJsp jspFile="user-script"/>
18    <ether:htmlJs jsFile="classesForJQuery/Loading"/>
19    <ether:htmlJs jsFile="classesForJQuery/Select"/>
20    <ether:htmlJs jsFile="calendar/anytime"/>
21</tiles:put>
22
23
24<tiles:put name="title" type="string"><bean:message key="app.title"/> - <bean:message key="bo.user"/></tiles:put>
25
26
27<%-- ****************** CONTENT ****************** --%>
28<tiles:put name="bodytitle" type="string"><bean:message key="bo.user"/></tiles:put>
29
30<tiles:put name="body" type="string">
31    <div class="title2"><bean:message key="bo.user.waitinglist"/> :</div>
32    <BR/>
33
34    <%-- ****************** WAITING USERS ****************** --%>
35    <div id="generalContainerWaitingUsers">
36        <table class="roundTable" border="1">
37            <tr>
38                <th><bean:message key="bo.id"/></th>
39                <th><bean:message key="bo.user.lastName"/></th>
40                <th><bean:message key="bo.user.firstName"/></th>
41                <th><bean:message key="bo.user.email"/></th>
42                <th><bean:message key="bo.user.role"/></th>
43                <th><bean:message key="bo.user.creationDate"/></th>
44                <th colspan="2"><bean:message key="bo.actions"/></th>
45            </tr>
46            <tbody id="containerWaitingUsers"></tbody>
47        </table>
48        <bean:message key="bo.user.waitinglist.help"/>
49        <BR/>
50    </div>
51
52
53    <HR width="50%">
54    <div class="title2"><bean:message key="bo.user.list"/> :</div>
55    <BR/>
56
57
58    <%-- ****************** SORTS ****************** --%>
59    <div class="containerSortsAndSearch">
60        <div class="containerSorts">
61            <div style="float:left"><bean:message key="bo.sort.asc"/> :&nbsp;</div>
62            <div id="containerSorts" style="float:left"></div>
63        </div>
64
65        <div class="containerSorts">
66            <div style="float:left"><bean:message key="bo.user.role"/> :&nbsp;</div>
67            <div id="containerSorts_roles" style="float:left"></div>
68        </div>
69
70        <div class="containerSorts">
71            <div style="float:left"><bean:message key="bo.user.state"/> :&nbsp;</div>
72            <div id="containerSorts_states" style="float:left"></div>
73        </div>
74
75        <div class="containerSorts">
76            <div style="float:left"><bean:message key="bo.user.boAccess.help"/> :&nbsp;</div>
77            <div style="float:left">
78                <input id="sort_accessBO_true" type="checkbox" checked="checked"><bean:message key="app.yes"/>
79                <input id="sort_accessBO_false" type="checkbox" checked="checked"><bean:message key="app.no"/>
80            </div>
81        </div>
82
83        <div class="containerSortsButton">
84            <button id="sortButton" class="small positive"><bean:message key="bo.go"/></button>
85        </div>
86
87        <div class="containerSorts">
88            <div style="float:left"><bean:message key="bo.searchBy"/> :&nbsp;</div>
89            <div id="containerSearch" style="float:left"><input type="text" id="search_text" size="29"></div>
90        </div>
91
92        <div class="containerSorts">
93            <div style="float:left"><bean:message key="bo.viewBy"/> :&nbsp;</div>
94            <div id="containerSorts_display" style="float:left"></div>
95        </div>
96
97    </div>
98    <BR/><BR/>
99
100
101    <%-- ****************** USERS ****************** --%>
102    <div id="generalContainerUsers">
103        <table class="roundTable" border="1">
104            <tr>
105                <th><bean:message key="bo.id"/></th>
106                <th><bean:message key="bo.user.lastName"/></th>
107                <th><bean:message key="bo.user.firstName"/></th>
108                <th><bean:message key="bo.user.email"/></th>
109                <th><bean:message key="bo.user.role"/></th>
110                <th><bean:message key="bo.user.creationDate"/></th>
111                <th title="<bean:message key="bo.user.state.help"/>"><bean:message key="bo.user.state"/></th>
112                <th title="<bean:message key="bo.user.boAccess.help"/>"><bean:message key="bo.user.boAccess"/></th>
113                <th colspan="2"><bean:message key="bo.actions"/></th>
114            </tr>
115            <tbody id="containerUsers"></tbody>
116        </table>
117        <BR/>
118    </div>
119
120    <div style="float:left"><bean:message key="bo.total.number"/> :&nbsp;
121        <div id="nbResults" style="float:right"></div>
122    </div>
123
124    <%-- ****************** PAGINATION ****************** --%>
125    <div style="float:right">
126        <button id="next" class="small"><bean:message key="bo.next"/></button>
127    </div>
128    <div style="float:right"><span id="page">1</span>/<span id="maxPages">0</span>&nbsp;&nbsp;&nbsp;</div>
129    <div style="float:right">
130        <button id="previous" class="small"><bean:message key="bo.previous"/></button>
131    </div>
132
133
134    <BR/>
135    <HR width="50%">
136
137    <%-- ****************** ADD OR MODIFY AN USER ****************** --%>
138    <div id="addOrModifyTitle" class="title2"></div>
139
140    <table class="roundTable" border="1" id="addOrModifyForm">
141        <tr>
142            <td><bean:message key="bo.user.lastName"/></td>
143            <td width="1px"><input id="lastName" size="40"></td>
144
145            <td><bean:message key="bo.user.role"/></td>
146            <td>
147                <div id="containerRoles"></div>
148            </td>
149        </tr>
150
151        <tr>
152            <td><bean:message key="bo.user.firstName"/></td>
153            <td><input id="firstName" size="40"></td>
154
155            <td><bean:message key="bo.user.state"/></td>
156            <td>
157                <div id="containerStates"></div>
158            </td>
159        </tr>
160
161        <tr>
162            <td><bean:message key="bo.user.email"/></td>
163            <td><input id="email" size="40"></td>
164
165            <td><bean:message key="bo.user.boAccess.help"/></td>
166            <td><input id="boAccess" type="checkbox"></td>
167        </tr>
168
169        <tr>
170            <td><bean:message key="bo.user.password"/></td>
171            <td><input id="password" size="40"></td>
172
173            <td></td>
174            <td></td>
175        </tr>
176        <tr>
177            <td><bean:message key="bo.user.password.same"/></td>
178            <td><input id="keepSamePassword" type="checkbox"><bean:message key="bo.user.password.same.help"/></td>
179
180            <td><bean:message key="bo.actions"/></td>
181            <td>
182                <button id="add_or_modify_user" class="small positive"></button>
183                <button id="init" class="small positive"><bean:message key="visualization.button.init"/></button>
184            </td>
185        </tr>
186
187    </table>
188
189    <BR/>
190
191    <div id="errors"></div>
192
193    <script type="text/javascript">
194        var interfaceTexts = $A( "" );
195        interfaceTexts["bo.noUser"] = '<bean:message key="bo.noUser"/>';
196        interfaceTexts["bo.add"] = '<bean:message key="bo.add"/>';
197        interfaceTexts["bo.modify"] = '<bean:message key="bo.modify"/>';
198        interfaceTexts["bo.remove"] = '<bean:message key="bo.remove"/>';
199        interfaceTexts["bo.accept"] = '<bean:message key="bo.accept"/>';
200        interfaceTexts["bo.refuse"] = '<bean:message key="bo.refuse"/>';
201        interfaceTexts["bo.user.remove.confirm"] = '<bean:message key="bo.user.remove.confirm"/>';
202        interfaceTexts["bo.id"] = '<bean:message key="bo.id"/>';
203        interfaceTexts["bo.user.add"] = '<bean:message key="bo.user.add"/>';
204        interfaceTexts["bo.user.modify"] = '<bean:message key="bo.user.modify"/>';
205        interfaceTexts["bo.user.lastName"] = '<bean:message key="bo.user.lastName"/>';
206        interfaceTexts["bo.user.email"] = '<bean:message key="bo.user.email"/>';
207        interfaceTexts["bo.user.creationDate"] = '<bean:message key="bo.user.creationDate"/>';
208        interfaceTexts["bo.all"] = '<bean:message key="bo.all"/>';
209
210        interfaceTexts["bo.field.lastName"] = '<bean:message key="bo.field.lastName"/>';
211        interfaceTexts["bo.field.email"] = '<bean:message key="bo.field.email"/>';
212        interfaceTexts["bo.field.password"] = '<bean:message key="bo.field.password"/>';
213
214        interfaceTexts["<%=com.ether.user.UserState.ACCEPTED%>"] = "<bean:message key="bo.user.accepted"/>";
215        interfaceTexts["<%=UserState.REFUSED%>"] = "<bean:message key="bo.user.refused"/>";
216        interfaceTexts["<%=UserState.WAITING%>"] = "<bean:message key="bo.user.waiting"/>";
217
218        interfaceTexts["<%=UserRole.ADMINISTRATOR%>"] = "<bean:message key="bo.user.administrator"/>";
219        interfaceTexts["<%=UserRole.COORDINATOR%>"] = "<bean:message key="bo.user.coordinator"/>";
220        interfaceTexts["<%=UserRole.TECHNICIEN%>"] = "<bean:message key="bo.user.technician"/>";
221
222        interfaceTexts["<%=WebException.WebCode.USER_ALREADY_EXISTS%>"] = "<bean:message key="login.dataProtocol.alreadyExist"/>";
223        interfaceTexts["<%=WebException.WebCode.ERROR_EMAIL_CANNOT_BE_SEND%>"] = "<bean:message key="bo.user.emailNotSend"/>";
224
225        var interfaceBOUser = new interfaceBOUser( ${usersNumber}, ${jSonWaitingUsers}, ${jSonUsers}, ${jSonUserStates}, ${jSonUserRoles} );
226    </script>
227
228</tiles:put>
229
230</tiles:insert>
Note: See TracBrowser for help on using the repository browser.