Commit | Line | Data |
---|---|---|
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 | 33 | Actuellement, {$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} |
3ac45f10 PC |
37 | {javascript name=jquery.jstree} |
38 | {javascript name=jobtermstree} | |
ff3eb9b7 | 39 | <script type="text/javascript">//<![CDATA[ |
ff3eb9b7 | 40 | |
f4e39c19 | 41 | var baseurl = platal_baseurl + "referent/"; |
66f2b6b3 | 42 | {literal} |
ff3eb9b7 | 43 | var Ajax2 = new AjaxEngine(); |
44 | ||
541e8d03 | 45 | function setSector(sector) |
ff3eb9b7 | 46 | { |
541e8d03 | 47 | if (sector == '') { |
ff3eb9b7 | 48 | document.getElementById('scat').style.display = 'none'; |
49 | document.getElementById('country').style.display = 'none'; | |
50 | document.getElementById('keywords').style.display = 'none'; | |
578aa461 | 51 | document.getElementById('search_referent').disabled = 'disabled'; |
ff3eb9b7 | 52 | } else { |
541e8d03 SJ |
53 | Ajax.update_html('ssect_chg', baseurl + 'ssect/' + sector); |
54 | Ajax2.update_html('country_chg', baseurl + 'country/' + sector); | |
aab2ffdd SJ |
55 | document.getElementById('scat').style.display = ''; |
56 | document.getElementById('country').style.display = ''; | |
57 | document.getElementById('keywords').style.display = ''; | |
578aa461 | 58 | document.getElementById('search_referent').disabled = ''; |
ff3eb9b7 | 59 | } |
60 | } | |
61 | ||
9e422750 | 62 | function setSSectors() |
ff3eb9b7 | 63 | { |
64 | var sect = document.getElementById('sect_field').value; | |
65 | var ssect = document.getElementById('ssect_field').value; | |
66f2b6b3 | 66 | Ajax2.update_html('country_chg', baseurl + 'country/' + sect + '/' + ssect); |
ff3eb9b7 | 67 | } |
68 | ||
3ac45f10 PC |
69 | function toggleJobTermsTree() |
70 | { | |
71 | $('#mentoring_terms').closest('tr').toggle(); | |
72 | return false; | |
73 | } | |
74 | ||
ff3eb9b7 | 75 | {/literal} |
76 | //]]></script> | |
77 | ||
78 | <form action="{$smarty.server.REQUEST_URI}" method="get"> | |
0337d704 | 79 | <table cellpadding="0" cellspacing="0" summary="Formulaire de recherche de referents" class="bicol"> |
80 | <tr class="impair"> | |
81 | <td class="titre"> | |
3ac45f10 | 82 | Mot-clef : |
0337d704 | 83 | </td> |
ff3eb9b7 | 84 | <td> |
3ac45f10 PC |
85 | <input type="text" name="jobterm_text" id="term_search" size="32"/> |
86 | <input type="hidden" name="jobterm" /> | |
87 | <a id="jobTermsTreeToggle" href="#">{icon name=table title="Tous les mots-clefs"}</a> | |
0337d704 | 88 | </td> |
89 | </tr> | |
3ac45f10 PC |
90 | <tr class="impair" style="display:none"> |
91 | <td colspan="2"> | |
92 | <div id="mentoring_terms"></div> | |
0337d704 | 93 | </td> |
94 | </tr> | |
95 | </table> | |
96 | <div class="center" style="margin-top: 1em;"> | |
578aa461 | 97 | <input id="search_referent" type="submit" value="Chercher" name="Chercher" /> |
0337d704 | 98 | </div> |
99 | </form> | |
100 | ||
578aa461 | 101 | <script type="text/javascript"> |
3ac45f10 PC |
102 | {literal} |
103 | $(function() { | |
104 | createJobTermsTree('#mentoring_terms', 'profile/ajax/tree/jobterms/mentors', 'mentor', 'searchForJobTerm'); | |
105 | $("#term_search").autocomplete(baseurl + "autocomplete", | |
106 | { | |
107 | "selectOnly":1, | |
108 | "matchSubset":0, | |
109 | "width":$("#term_search").width() | |
110 | }); | |
111 | $('#jobTermsTreeToggle').click(toggleJobTermsTree); | |
112 | }); | |
113 | {/literal} | |
578aa461 | 114 | </script> |
a7de4ef7 | 115 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |