Bonjour,
je travaille actuellement sur une application dans laquelle je manipule pas mal de tableaux.
http://www.hostingpics.net/viewer.ph...titre_user.png
Voici la partie qui est bien dimensionnée , l'onglet utilisateur donc.
et voici l'un des onglets qui posent problème :
http://www.hostingpics.net/viewer.ph..._titre_ann.png
Comme on peut le voir, le tableau interne contenant les checkbox est en plein milieu , et ce que je voudrais c'est qu'il soit en haut.
Voici le code complet :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375 <table width='100%' height='100%' border='1' bgcolor='#edeff1' > <tr> <td> <br><br><br><br> <!-- Menu latéral gauche --> <table width='100%' height='70%' border='0' cellspacing='7px'> <tr height='10%' > <td ><h2 align=center><b> MENU </b></h2> <hr/> </td> </tr> <tr height='5%' bgcolor='#b6c8c2'> <td><a href="/intranet/integration/annuaire/FormulaireUtilisateur">Utilisateur</a> </td> </tr> <tr height='5%'> <td> Application </td> </tr> <tr height='5%'> <td> Annuaire </td> </tr> <tr height='5%'> <td> Référent </td> </tr> <tr height='5%'> <td> Profil </td> </tr> <tr height='50%'> <td><br><br></td> </tr> </table> </td> <td> <!-- Barre de boutons --> <table border=0> <tr> <form action="" method="get" name="addMemberForm"> <td valign='bottom' width='20%'> <input class='formButton mainButton' type='submit' value='Créer un compte...' /> </td> </form> <form onSubmit="return popup();" target="popup" id="formRecherche" action="integration/annuaire/Recherche" method="POST"> <td valign='bottom' width='40%'> <span class="formLabel">Nom :</span> <input type="text" name="nom" /> <input class='formButton' type="submit" value="Rechercher un compte" /> </td> </form> <td valign='bottom' width="20%"> <input onClick="retourJCMS()" type="button" class='formButton' value="Retour à JCMS"/> </td> <!-- <td valign='bottom' width="20%"> <input onClick="exportXML()" type="button" class='formButton mainButton' value="Exporter vers l'Intranet..."/> </td> --> </tr> </table> <!-- Onglet formulaire --> <div class="tab-pane" id="mainTab"> <div class="tab-page"> <h2 class="tab"><img src='images/jalios/icons/edit.gif' class='icon' alt='P' title='Contenu' /> Utilisateur</h2> <form id="formSaisie" method="POST"> <input type="hidden" name="action" value="<% if (request.getAttribute("action")==null) out.print(Action.CREER); else out.print(request.getAttribute("action")); %>"/> <table cellspacing='3' cellpadding='3' border='0' class='FicheIndividuelle'> <tr> <td> <% List messages = (List)request.getAttribute("messages"); if (messages!=null) { Iterator it = messages.iterator(); while (it.hasNext()) { String message = (String)it.next(); %> <font color="red"><%=message %><br /></font> <% } // end while } // end if %> <% Exception e = (Exception)request.getAttribute("exception"); if (e!=null) { %> <font color="red"><%= e.getMessage() %><br /></font> <% } %> <!-- <% /* %> <div class="UI_EDITOR_TEXTFIELD"> <span class="formLabel">Matricule</span><br /> <input type="text" value="<% if (utilisateur.getMatricule()!=null) out.print(utilisateur.getMatricule()); %>" name="matricule" maxlength="10" size="80" class="formTextfield" /> </div> <% */ %> --> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <span class="formMandatory">* </span> <span class="formLabel">Nom</span><br /> <input type="text" value="<% if (utilisateur.getNom()!=null) out.print(utilisateur.getNom()); %>" name="nom" maxlength="50" size="80" class="formTextfield" /> </div> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <span class="formMandatory">* </span> <span class="formLabel">Prénom</span><br /> <input type="text" value="<% if (utilisateur.getPrenom()!=null) out.print(utilisateur.getPrenom()); %>" name="prenom" maxlength="50" size="80" class="formTextfield" /> </div> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <span class="formLabel">Code Agent</span><br /> <input type="text"value="<% if (utilisateur.getCodAgt()!=null) out.print(utilisateur.getCodAgt()); else out.print('0');%>" name="codeAgent" maxlength="50" size="80" class="formTextfield" /> </div> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <span class="formLabel">Login</span><br /> <%--Si Administateur de la base, le login peut être modifié--%> <% if ((request.getAttribute("isAdmin") != null) && (request.getAttribute("isAdmin").equals("true"))) { %> <input type="text" value="<% if (utilisateur.getLogin()!=null) out.print(utilisateur.getLogin()); %>" name="login" maxlength="10" size="80" class="formTextfield" /> <% }else{ %> <input type="text" value="<% if (utilisateur.getLogin()!=null) out.print(utilisateur.getLogin()); %>" name="login" maxlength="10" size="80" class="formTextfield" readonly style="background:#EEEEEE" /> <% } %> </div> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <span class="formLabel">Grade</span><br /> <input type="text" value="<% if (utilisateur.getCodeGrade()!=null) out.print(utilisateur.getCodeGrade()); %>" name="grade" maxlength="10" size="80" class="formTextfield" /> </div> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <span class="formMandatory">* </span> <span class="formLabel">Mail</span><br /> <input type="text" value="<% if (utilisateur.getMail()!=null) out.print(utilisateur.getMail()); %>" name="mail" maxlength="100" size="80" class="formTextfield" /> <img src='images/jalios/icons/wizard.gif' class='icon' onClick="genererMail()" /> </div> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <span class="formLabel">Mot de passe</span><br /> <input type="password" value="" name="password1" maxlength="50" size="80" class="formTextfield" /> </div> <div class="UI_EDITOR_TEXTFIELD"> <span class="formLabel">Confirmez</span><br /> <input type="password" value="" name="password2" maxlength="50" size="80" class="formTextfield" /> </div> <!-- <% /* %> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <table border> <tr> <td></td> <td class="formLabel">AD</td> <td class="formLabel">NDS</td> <td class="formLabel">JCMS</td> <td class="formLabel">PABX</td> </tr> <tr> <td class="formLabel">Annuaires</td> <% Object[] applis = (Object[])session.getAttribute("applis"); %> <% String checked = null; %> <td align="center"> <% checked = ""; if ((applis!=null)&&(applis[1]!=null)&&(!"N".equals((String)applis[1]))) checked = "checked"; %> <input type="checkbox" name="appli" value="AD" <%=checked %> /> </td> <td align="center"> <% checked = ""; if ((applis!=null)&&(applis[2]!=null)&&(!"N".equals((String)applis[2]))) checked = "checked"; %> <input type="checkbox" name="appli" value="NDS" <%=checked %> /> </td> <td align="center"> <% checked = ""; if ((applis!=null)&&(applis[3]!=null)&&(!"N".equals((String)applis[3]))) checked = "checked"; %> <input type="checkbox" name="appli" value="JCMS" <%=checked %> /> </td> <td align="center"> <% checked = ""; if ((applis!=null)&&(applis[4]!=null)&&(!"N".equals((String)applis[4]))) checked = "checked"; %> <input type="checkbox" name="appli" value="PABX" <%=checked %> /> </td> </tr> </table> </div> <% */ %> --> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <input type="submit" class='formButton mainButton' value="Enregistrer"/> <% if ((request.getAttribute("isAdmin") != null) && (request.getAttribute("isAdmin").equals("true"))) { %> <input type="button" class='formButton' value="Supprimer..." onClick="supprimer()"/> <% } %> </div> </td> </tr> </table> </form> </div> <% String action = (String)request.getAttribute("action"); if ((action!=null)&&(!Action.CREER.equals(action))) { %> <!-- onglet Annuaires --> <div class="tab-page"> <h2 class="tab"><img src='images/jalios/icons/portlet.gif' class='icon' alt='C' title='Catégories' /> Annuaires</h2> <form id="formSaisieBase" method="POST"> <table border width='500px' height='505px' > <tr> <td> <div class="UI_EDITOR_TEXTFIELD" > <hr size="1" noshade="noshade" /> <table border > <% List applis = (List)session.getAttribute("applis"); %> <% String checked = ""; %> <% if (applications != null) for (Iterator itAppli = applications.iterator(); itAppli.hasNext(); ) { Base base = (Base)itAppli.next(); %> <tr> <td class="formLabel"> <%= base.getLibBase() %> </td> <td align="center"> <% checked = ""; if ((applis!=null)&&(applis.contains(base.getId()))) checked = "checked"; %> <input type="checkbox" name="appli" value="<%= base.getId() %>" <%= checked %> /> </td> </tr> <% } %> </table> </div> <input type="hidden" value="true" id="modifBase" name="modifBase"/> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <input type="submit" class='formButton mainButton' value="Enregistrer"/> </div> </td> </tr> </table> </form> </div> <!-- onglet Applications --> <div class="tab-page"> <h2 class="tab"><img src='images/jalios/icons/portlet.gif' class='icon' alt='C' title='Catégories' /> Applications</h2> <form id="formSaisieAppli" method="POST"> <table width='500px' height='505px' > <tr> <td> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <table border> <% /* %> <% List applis = (List)session.getAttribute("applis"); %> <% String checked = ""; %> <% if (applications != null) for (Iterator itAppli = applications.iterator(); itAppli.hasNext(); ) { Base base = (Base)itAppli.next(); %> <tr> <td class="formLabel"> <%= base.getLibBase() %> </td> <td align="center"> <% checked = ""; if ((applis!=null)&&(applis.contains(base.getId()))) checked = "checked"; %> <input type="checkbox" name="appli" value="<%= base.getId() %>" <%= checked %> /> </td> </tr> <% } %> <% */ %> </table> </div> <input type="hidden" value="true" id="modifAppli" name="modifAppli"/> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <input type="submit" class='formButton mainButton' value="Enregistrer"/> </div> </td> </tr> </table> </form> </div> <!-- onglet affectations --> <div class="tab-page"> <h2 class="tab"><img src='images/jalios/icons/categories.gif' class='icon' alt='C' title='Catégories' /> Affectations</h2> <table width='90%' height='510px' > <tr> <td> <div class="UI_EDITOR_TEXTFIELD"> <hr/> <display:table name="affectations" class="listBorder" id="affectCourante" htmlId="pubTable"> <% String comment = ""; if (com.jalios.util.Util.notEmpty(affectCourante)) { comment = ((Affectation)affectCourante).getComment(); } if (com.jalios.util.Util.notEmpty(comment) && comment.length() > 27) { comment = comment.substring(0,27) + "[...]"; } %> <display:column title="Id" property="id" sortable="false" headerClass="listHeader" /> <display:column title="Fonction" property="fonction.libelle" sortable="false" headerClass="listHeader" /> <display:column title="Structure" property="structure.nom" sortable="false" headerClass="listHeader" /> <display:column title="Date Effet" property="dateEffet" sortable="false" headerClass="listHeader" /> <display:column title="Date Fin" property="dateFin" sortable="false" headerClass="listHeader" /> <display:column title="Chef ?" property="chefStructure" sortable="false" headerClass="listHeader" /> <display:column title="Téléphone 1" property="telephone1" sortable="false" headerClass="listHeader" /> <display:column title="Téléphone 2" property="telephone2" sortable="false" headerClass="listHeader" /> <display:column title="Fax" property="fax" sortable="false" headerClass="listHeader" /> <display:column headerClass="listHeader" title="Commentaire"><%= comment %></display:column> <display:column title="GSM" property="telGsm" sortable="false" headerClass="listHeader" /> <display:column title="Modif" headerClass="listHeader"><div align="center" style="cursor: pointer; cursor: hand;" ><img src="images/jalios/icons/edit.gif" onClick="popupModifAffectation(<%=((Affectation)affectCourante).getId().toString() %>)"/></div></display:column> <display:column title="Suppr" headerClass="listHeader"><div align="center" style="cursor: pointer; cursor: hand;"><img src="images/jalios/icons/trashEmpty.gif" onClick="popupSupprimerAffectation(<%=((Affectation)affectCourante).getId().toString() %>)"/></div></display:column> </display:table> <div class="UI_EDITOR_TEXTFIELD"> <hr size="1" noshade="noshade" /> <input onClick="popupCreerAffectation()" type="button" class='formButton mainButton' value="Nouvelle Affectation..."/> </div> </div> </div> <% } %> </td> </tr> </table> </div> </td> </tr> </table>
En fait je ne vois pas pourquoi il y a un tel espace qui se crée, j'ai essayé toute sorte de chose pour le déplacer, le redimensionner , rien à faire
les tableaux : <table width='90%' height='510px' >
je les ai crée car sinon lorsqu'on switchais d'onglet , il y avait un écart de hauteur assez énorme et ça déformais tout.
Partager