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 {**************************************************************************}
23 <script type="text/javascript">//<![CDATA[
26 function removeJob(id, pref)
28 document.getElementById(id + '_cont').style.display = 'none';
29 if (document.forms.prof_annu[pref + '[new]'].value == '0') {
30 document.getElementById(id + '_grayed').style.display = '';
31 document.getElementById(id + '_grayed_name').innerHTML =
32 document.forms.prof_annu[pref + "[name]"].value.replace('<', '<');
34 document.forms.prof_annu[pref + "[removed]"].value = "1";
37 function restoreJob(id, pref)
39 document.getElementById(id + '_cont').style.display = '';
40 document.getElementById(id + '_grayed').style.display = 'none';
41 document.forms.prof_annu[pref + "[removed]"].value = "0";
44 function updateSecteur(nb, id, pref, sel)
46 var secteur = document.forms.prof_annu[pref + '[secteur]'].value;
50 Ajax.update_html(id + '_ss_secteur', 'profile/ajax/secteur/' +nb + '/' + secteur + '/' + sel);
53 function makeAddJob(id)
57 $('#add_job').before(data);
58 updateSecteur('job_' + id, 'jobs[' + id + ']', '');
65 while (document.getElementById('job_' + i) != null) {
68 $.get(platal_baseurl + 'profile/ajax/job/' + i, makeAddJob(i));
71 function validGeoloc(id, pref)
73 document.getElementById(id + '_geoloc').style.display = 'none';
74 document.getElementById(id + '_geoloc_error').style.display = 'none';
75 document.getElementById(id + '_geoloc_valid').style.display = 'none';
76 document.forms.prof_annu[pref + "[parsevalid]"].value = "1";
77 document.forms.prof_annu[pref + "[text]"].value = document.forms.prof_annu[pref + "[geoloc]"].value;
78 document.forms.prof_annu[pref + "[cityid]"].value = document.forms.prof_annu[pref + "[geoloc_cityid]"].value;
79 attachEvent(document.forms.prof_annu[pref + "[text]"], "click",
80 function() { document.forms.prof_annu[pref + "[text]"].blur(); });
81 document.forms.prof_annu[pref + "[text]"].className = '';
84 function validAddress(id, pref)
86 document.getElementById(id + '_geoloc').style.display = 'none';
87 document.getElementById(id + '_geoloc_error').style.display = 'none';
88 document.getElementById(id + '_geoloc_valid').style.display = 'none';
89 document.forms.prof_annu[pref + "[parsevalid]"].value = "1";
90 attachEvent(document.forms.prof_annu[pref + "[text]"], "click",
91 function() { document.forms.prof_annu[pref + "[text]"].blur(); });
92 document.forms.prof_annu[pref + "[text]"].className = '';
98 {foreach from=$jobs item=job key=i}
99 {include file="profile/jobs.job.tpl" i=$i job=$job new=false}
100 <script type="text/javascript">updateSecteur({$i}, '{"job_`$i`"}', '{"jobs[`$i`]"}', '{$job.ss_secteur}');</script>
102 {if $jobs|@count eq 0}
103 {include file="profile/jobs.job.tpl" i=0 job=0 new=true}
104 <script type="text/javascript">updateSecteur(0, 'job_0', 'jobs[0]', '-1');</script></script>
107 <div id="add_job" class="center">
108 <a href="javascript:addJob()">
109 {icon name=add title="Ajouter un emploi"} Ajouter un emploi
113 <table class="bicol" summary="CV" style="margin-top: 1.5em">
121 <div style="float: left; width: 25%">
123 <span class="rouge"><input type="checkbox" name="accesCV" checked="checked" disabled="disabled" /></span>
124 <span class="texte">privé</span>
126 <div class="smaller" style="margin-top: 30px">
127 <a href="Xorg/FAQ?display=light#cv" class="popup_800x480">
128 {icon name="lightbulb" title="Astuce"}Comment remplir mon CV ?
130 <a href="wiki_help" class="popup3">
131 {icon name=information title="Syntaxe wiki"} Voir la syntaxe wiki
134 <input type="submit" name="preview" value="Aperçu du CV"
135 onclick="previewWiki('cv', 'cv_preview', true, 'cv_preview'); return false;" />
139 <div style="float: right">
140 <div id="cv_preview" style="display: none"></div>
141 <textarea name="cv" {if $errors.cv}class="error"{/if} id="cv" rows="15" cols="55">{$cv}</textarea>
147 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}