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