Removes useless links on post-edit admin of surveys. Uses alt and titles in icon...
[platal.git] / templates / profile / referent.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
9f5bd98e 3{* Copyright (C) 2003-2010 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
ff3eb9b7 24{if $plset_count}
a9cd2bab 25{include core=plset.tpl}
ff3eb9b7 26{else}
7a3f546b 27{include wiki=Docs.Emploi}
ff3eb9b7 28{/if}
0337d704 29
e2c528e1 30<a id="mentors"></a>
1d414e12 31
0337d704 32<p>
a7de4ef7 33Actuellement, {$mentors_number} mentors et référents se sont déclarés sur {#globals.core.sitename#}.
0337d704 34</p>
35
ff3eb9b7 36{javascript name=ajax}
37<script type="text/javascript">//<![CDATA[
ff3eb9b7 38
f4e39c19 39var baseurl = platal_baseurl + "referent/";
66f2b6b3 40{literal}
ff3eb9b7 41var Ajax2 = new AjaxEngine();
42
541e8d03 43function setSector(sector)
ff3eb9b7 44{
541e8d03 45 if (sector == '') {
ff3eb9b7 46 document.getElementById('scat').style.display = 'none';
47 document.getElementById('country').style.display = 'none';
48 document.getElementById('keywords').style.display = 'none';
49 } else {
541e8d03
SJ
50 Ajax.update_html('ssect_chg', baseurl + 'ssect/' + sector);
51 Ajax2.update_html('country_chg', baseurl + 'country/' + sector);
ff3eb9b7 52 document.getElementById('scat').style.display = '';
53 document.getElementById('country').style.display = '';
54 document.getElementById('keywords').style.display = '';
55 }
56}
57
541e8d03 58function setSubSectors()
ff3eb9b7 59{
60 var sect = document.getElementById('sect_field').value;
61 var ssect = document.getElementById('ssect_field').value;
66f2b6b3 62 Ajax2.update_html('country_chg', baseurl + 'country/' + sect + '/' + ssect);
ff3eb9b7 63}
64
65{/literal}
66//]]></script>
67
68<form action="{$smarty.server.REQUEST_URI}" method="get">
0337d704 69 <table cellpadding="0" cellspacing="0" summary="Formulaire de recherche de referents" class="bicol">
70 <tr class="impair">
71 <td class="titre">
bbb4d2e9 72 Secteur de compétence<br />du référent
0337d704 73 </td>
ff3eb9b7 74 <td>
541e8d03 75 <select name="sector" id="sect_field" onchange="setSector(this.value)">
75691c60 76 <option name=""></option>
541e8d03 77 {html_options options=$sectors selected=$sectorSelection}
0337d704 78 </select>
79 </td>
80 </tr>
ff3eb9b7 81 <tr class="impair" style="display: none" id="scat">
0337d704 82 <td class="titre">
661e78f7 83 Sous-secteur
0337d704 84 </td>
ff3eb9b7 85 <td id="ssect_chg">
0337d704 86 </td>
87 </tr>
ff3eb9b7 88 <tr class="pair" style="display: none" id="country">
0337d704 89 <td class="titre">
a7de4ef7 90 Pays bien connu du référent
0337d704 91 </td>
ff3eb9b7 92 <td id="country_chg">
0337d704 93 </td>
94 </tr>
ff3eb9b7 95 <tr class="impair" style="display: none" id="keywords">
0337d704 96 <td class="titre">
a7de4ef7 97 Expertise (rentre un ou plusieurs mots clés)
0337d704 98 </td>
99 <td >
100 <input type="text" name="expertise" size="30" value="{$expertise_champ}" />
101 </td>
102 </tr>
103 </table>
104 <div class="center" style="margin-top: 1em;">
105 <input type="submit" value="Chercher" name="Chercher" />
106 </div>
107</form>
108
a7de4ef7 109{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}