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 {**************************************************************************}
24 <script type="text/javascript">//<![CDATA[
29 var val = document.forms.prof_annu[cat + '_sel'].value;
34 if (document.getElementById(cat + '_' + val) != null) {
37 document.getElementById(cat + '_add').style.display = show ? '' : 'none';
42 var sel = document.forms.prof_annu[cat + '_sel'];
44 var text = sel.options[sel.selectedIndex].text;
45 $.get(platal_baseurl + 'profile/ajax/skill/' + cat + '/' + val,
47 $('#' + cat).append(data);
48 document.getElementById(cat + '_' + val + '_title').innerHTML = text;
53 function remove(cat, id)
55 $('#' + cat + '_' + id).remove();
62 <table class="bicol" style="margin-bottom: 1em">
65 Compétences professionnelles
71 <span class="rouge"><input type="checkbox" name="accesX" checked="checked" disabled="disabled" /></span>
72 <span class="texte">privé</span>
75 <span class="titre">Domaine :</span>
76 <select name="competences_sel" onchange="update('competences')">
77 <option value=""></option>
78 {assign var=ingroup value=false}
79 {iterate from=$comp_list item=comp}
81 {if $ingroup}</optgroup>{/if}
82 <optgroup label="{$comp.text_fr}">
84 <option value="{$comp.id}">{$comp.text_fr}</option>
86 {if $ingroup}</optgroup>{/if}
88 <span id="competences_add" style="display: none">
89 <a href="javascript:add('competences')">{icon name=add title="Ajouter cette compétence"}</a>
96 {foreach from=$competences item=competence key=id}
97 {include file="profile/skill.skill.tpl" cat='competences' skill=$competence id=$id levels=$comp_level}
103 <table class="bicol">
105 <th>Compétences linguistiques</th>
110 <span class="rouge"><input type="checkbox" name="accesX" checked="checked" disabled="disabled" /></span>
111 <span class="texte">privé</span>
114 <span class="titre">Domaine :</span>
115 <select name="langues_sel" onchange="update('langues')">
116 <option value=""></option>
117 {iterate from=$lang_list item=lang}
118 <option value="{$lang.id}">{$lang.langue_fr}</option>
121 <span id="langues_add" style="display: none">
122 <a href="javascript:add('langues')">{icon name=add title="Ajouter cette langue"}</a>
129 {foreach from=$langues item=langue key=id}
130 {include file="profile/skill.skill.tpl" cat='langues' skill=$langue id=$id levels=$lang_level}
136 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}