1 {**************************************************************************}
3 {* Copyright (C) 2003-2007 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
25 <script type="text/javascript">//<![CDATA[
26 /** defgroup user_profile Gestion du profil utilisateur */
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
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()
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
48 function binet_del( id )
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 )
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
62 function groupex_add()
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()
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
75 function groupex_del( id )
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 )
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">
94 Informations polytechniciennes
98 <td colspan="3" class="pflags">
99 <table class="flags" summary="Flags" cellpadding="0" cellspacing="0">
102 <input type="checkbox" name="accesX" checked="checked" disabled="disabled" />
113 <span class="titre">(ex-)Section</span>
116 <select name="section">
117 {select_db_table table="sections" valeur=$section}
127 <span class="titre">(ex-)Binet(s)</span>
129 {foreach from=$binets item=b}
131 <span class="valeur">{$b.text}</span>
135 <a href="javascript:binet_del({$b.id});">retirer</a>
145 <select name="binet_sel">
146 {select_db_table table="binets_def" valeur=0 champ="text" pad='1'}
151 <a href="javascript:binet_add();">ajouter</a>
158 <span class="titre">Groupe(s) X</span>
160 {foreach from=$groupesx item=g}
162 <span class="valeur">{$g.text}</span>
166 <a href="javascript:groupex_del({$g.id});">retirer</a>
176 <select name="groupex_sel">
177 {select_db_table table="groupesx_def" valeur=0 champ="text" pad='1'}
182 <a href="javascript:groupex_add();">ajouter</a>
189 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}