2006 => 2007 Happy New Year\!
[platal.git] / templates / profile / poly.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 Polytechnique.org *}
0337d704 4{* http://opensource.polytechnique.org/ *}
5{* *}
6{* This program is free software; you can redistribute it and/or modify *}
7{* it under the terms of the GNU General Public License as published by *}
8{* the Free Software Foundation; either version 2 of the License, or *}
9{* (at your option) any later version. *}
10{* *}
11{* This program is distributed in the hope that it will be useful, *}
12{* but WITHOUT ANY WARRANTY; without even the implied warranty of *}
13{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *}
14{* GNU General Public License for more details. *}
15{* *}
16{* You should have received a copy of the GNU General Public License *}
17{* along with this program; if not, write to the Free Software *}
18{* Foundation, Inc., *}
19{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *}
20{* *}
21{**************************************************************************}
22
23
24{literal}
25<script type="text/javascript">//<![CDATA[
26 /** defgroup user_profile Gestion du profil utilisateur */
27
28 /** ajout d'un binet au profil de l'utilisateur en base de données
29 * le binet est déterminé par binet_id qui est sélectionné dans un SELECT
30 * @ingroup user_profile
31 * @return VOID
32 */
33 function binet_add()
34 {
35 var selid = document.forms.prof_annu.binet_sel.selectedIndex;
36 document.forms.prof_annu.binet_id.value = document.forms.prof_annu.binet_sel.options[selid].value;
37 document.forms.prof_annu.binet_op.value = "ajouter";
38 document.forms.prof_annu.submit();
39 } // function binet_add()
40
41
42
43 /** suppression d'un binet du profil de l'utilisateur en base de données
44 * @ingroup user_profile
45 * @param id INT id du binet
46 * @return VOID
47 */
48 function binet_del( id )
49 {
50 document.forms.prof_annu.binet_id.value = id;
51 document.forms.prof_annu.binet_op.value = "retirer";
52 document.forms.prof_annu.submit();
53 } // END function binet_del( id )
54
55
56
57 /** ajout d'un groupeX au profil de l'utilisateur en base de données
58 * le groupeX est déterminé par groupex_id qui est sélectionné dans un SELECT
59 * @ingroup user_profile
60 * @return VOID
61 */
62 function groupex_add()
63 {
64 var selid = document.forms.prof_annu.groupex_sel.selectedIndex;
65 document.forms.prof_annu.groupex_id.value = document.forms.prof_annu.groupex_sel.options[selid].value;
66 document.forms.prof_annu.groupex_op.value = "ajouter";
67 document.forms.prof_annu.submit();
68 } // END function groupex_add()
69
70 /** suppression d'un groupeX du profil de l'utilisateur en base de données
71 * @ingroup user_profile
72 * @param id INT id du groupeX
73 * @return VOID
74 */
75 function groupex_del( id )
76 {
77 document.forms.prof_annu.groupex_id.value = id;
78 document.forms.prof_annu.groupex_op.value = 'retirer';
79 document.forms.prof_annu.submit();
80 } // END function groupex_del( id )
81
82 //]]>
83</script>
84{/literal}
85<div class="blocunite_tab">
86 <input type="hidden" value="" name="binet_op" />
87 <input type="hidden" value="" name="binet_id" />
88 <input type="hidden" value="" name="groupex_op" />
89 <input type="hidden" value="" name="groupex_id" />
90 <table class="bicol" cellspacing="0" cellpadding="0"
91 summary="Profil: Informations Polytechniciennes">
92 <tr>
93 <th colspan="3">
94 Informations polytechniciennes
95 </th>
96 </tr>
97 <tr>
98 <td colspan="3" class="pflags">
99 <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
100 <tr>
101 <td class="rouge">
102 <input type="checkbox" name="accesX" checked="checked" disabled="disabled" />
103 </td>
104 <td class="texte">
0d01fb84 105 privé
0337d704 106 </td>
107 </tr>
108 </table>
109 </td>
110 </tr>
111 <tr class="top">
112 <td class="colg">
113 <span class="titre">(ex-)Section</span>
114 </td>
115 <td class="colm">
116 <select name="section">
117 {select_db_table table="sections" valeur=$section}
118 </select>
119 </td>
120 <td class="cold">
121 &nbsp;
122 </td>
123 </tr>
124 <!-- Binets -->
125 <tr class="top">
126 <td class="colg">
127 <span class="titre">(ex-)Binet(s)</span>
128 </td>
129 {foreach from=$binets item=b}
130 <td class="colm">
131 <span class="valeur">{$b.text}</span>
132 </td>
133 <td class="cold">
134 <span class="lien">
135 <a href="javascript:binet_del({$b.id});">retirer</a>
136 </span>
137 </td>
138 </tr>
139 <tr>
140 <td class="colg">
141 &nbsp;
142 </td>
143 {/foreach}
144 <td class="colm">
145 <select name="binet_sel">
146 {select_db_table table="binets_def" valeur=0 champ="text" pad='1'}
147 </select>
148 </td>
149 <td class="cold">
150 <span class="lien">
151 <a href="javascript:binet_add();">ajouter</a>
152 </span>
153 </td>
154 </tr>
155 <!-- Groupes X -->
156 <tr class="top">
157 <td class="colg">
158 <span class="titre">Groupe(s) X</span>
159 </td>
160 {foreach from=$groupesx item=g}
161 <td class="colm">
162 <span class="valeur">{$g.text}</span>
163 </td>
164 <td class="cold">
165 <span class="lien">
166 <a href="javascript:groupex_del({$g.id});">retirer</a>
167 </span>
168 </td>
169 </tr>
170 <tr>
171 <td class="colg">
172 &nbsp;
173 </td>
174 {/foreach}
175 <td class="colm">
176 <select name="groupex_sel">
177 {select_db_table table="groupesx_def" valeur=0 champ="text" pad='1'}
178 </select>
179 </td>
180 <td class="dcold">
181 <span class="lien">
182 <a href="javascript:groupex_add();">ajouter</a>
183 </span>
184 </td>
185 </tr>
186 </table>
187</div>
188
189{* vim:set et sw=2 sts=2 sws=2: *}