Commit | Line | Data |
---|---|---|
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 | ||
2dcac0f5 FB |
23 | {if $ajaxjob} |
24 | <?xml version="1.0" encoding="utf-8"?> | |
25 | {/if} | |
77842972 FB |
26 | {assign var=jobid value="job_`$i`"} |
27 | {assign var=jobpref value="job[`$i`]"} | |
2dcac0f5 FB |
28 | <div id="{$jobid}"> |
29 | <input type="hidden" name="{$jobpref}[removed]" value="0" /> | |
30 | <input type="hidden" name="{$jobpref}[new]" value="{if $new}1{else}0{/if}" /> | |
31 | <table id="{$jobid}_grayed" class="bicol" style="display: none; margin-bottom: 1em"> | |
32 | <tr> | |
33 | <th class="grayed"> | |
34 | <div style="float: right"> | |
35 | <a href="javascript:restoreJob('{$jobid}', '{$jobpref}')">{icon name=arrow_refresh title="Restaure l'emploi"}</a> | |
77842972 | 36 | </div> |
2dcac0f5 FB |
37 | Restaurer l'entreprise n°{$i+1} :<span id="{$jobid}_grayed_name"></span> |
38 | </th> | |
39 | </tr> | |
40 | </table> | |
41 | <table id="{$jobid}_cont" class="bicol" summary="Entreprise n°{$i+1}" style="margin-bottom: 1em"> | |
42 | <tr> | |
43 | <th colspan="2" style="text-align: right"> | |
44 | <div class="flags" style="float: left; text-align: left"> | |
45 | {include file="include/flags.radio.tpl" notable=true display="div" name="`$jobpref`[pub]" value=$job.pub} | |
77842972 | 46 | </div> |
2dcac0f5 FB |
47 | Entreprise n°{$i+1} : |
48 | <input type="text" size="35" maxlength="100" name="{$jobpref}[name]" value="{$job.name}" /> | |
49 | <a href="javascript:removeJob('{$jobid}', '{$jobpref}')"> | |
50 | {icon name=cross title="Supprimer cet emploi"} | |
51 | </a> | |
52 | </th> | |
53 | </tr> | |
54 | <tr> | |
55 | <td class="titre">Page Web</td> | |
56 | <td><input type="text" size="35" maxlength="255" name="{$jobpref}[web]" value="{$job.web}" /></td> | |
57 | </tr> | |
58 | <tr> | |
59 | <td class="titre">Secteur d'activité</td> | |
60 | <td> | |
61 | <select name="{$jobpref}[secteur]" onchange="updateSecteur({$i}, '{$jobid}', '{$jobpref}', ''); return true;"> | |
62 | <option value=""> </option> | |
63 | {iterate from=$secteurs item=secteur} | |
64 | <option value="{$secteur.id}" {if $secteur.id eq $job.secteur}selected="selected"{/if}> | |
65 | {$secteur.label} | |
66 | </option> | |
67 | {/iterate} | |
68 | </select> | |
69 | </td> | |
70 | </tr> | |
71 | <tr> | |
72 | <td class="titre">Sous-Secteur d'activité</td> | |
73 | <td id="{$jobid}_ss_secteur"> | |
74 | </td> | |
75 | </tr> | |
76 | <tr> | |
77 | <td class="titre">Poste occupé</td> | |
78 | <td> | |
79 | <input type="text" size="35" maxlength="120" name="{$jobpref}[poste]" value="{$job.poste}" /> | |
80 | </td> | |
81 | </tr> | |
82 | <tr> | |
83 | <td class="titre">Fonction occupée</td> | |
84 | <td id=> | |
85 | <select name="{$jobpref}[fonction]"> | |
86 | <option value=""> </option> | |
87 | {assign var=ingroup value=false} | |
88 | {iterate from=$fonctions item=fonct} | |
89 | {if $fonct.title} | |
90 | {if $ingroup}</optgroup>{/if} | |
91 | <optgroup label="{$fonct.fonction_fr}"> | |
92 | {assign var=ingroup value=true} | |
93 | {/if} | |
94 | <option value="{$fonct.id}" {if $fonct.id eq $job.fonction}selected="selected"{/if}> | |
95 | {$fonct.fonction_fr} | |
96 | </option> | |
97 | {/iterate} | |
98 | {if $ingroup}</optgroup>{/if} | |
99 | </select> | |
100 | </td> | |
101 | </tr> | |
102 | <tr class="pair"> | |
103 | <td colspan="2"> | |
104 | <span class="titre">E-mail professionnel :</span> | |
105 | <input type="text" size="30" maxlength="60" name="{$jobpref}[email]" value="{$job.email}" /> | |
106 | <span class="flags"> | |
107 | {include file="include/flags.radio.tpl" name="`$jobpref`[email_pub]" val=$job.mail_pub display="div"} | |
108 | </span> | |
109 | </td> | |
110 | </tr> | |
111 | <tr class="pair"> | |
112 | <td colspan="2"> | |
113 | <div style="float: left"> | |
114 | <div class="titre">Adresse</div> | |
115 | <div class="flags"> | |
116 | {include file="include/flags.radio.tpl" name="`$jobpref`[adr][pub]" val=$job.adr.pub display="div"} | |
117 | </div> | |
118 | <div style="margin-top: 20px; clear: both"> | |
119 | {include file="geoloc/form.address.tpl" name="`$jobpref`[adr]" id="`$jobpref`_adr" adr=$job.adr} | |
120 | </div> | |
77842972 | 121 | </div> |
2dcac0f5 FB |
122 | <div style="float: right; width: 50%"> |
123 | <div class="titre">Téléphone</div> | |
124 | <div class="flags"> | |
125 | {include file="include/flags.radio.tpl" name="`$jobpref`[tel_pub]" val=$job.tel_pub display="div"} | |
126 | </div> | |
127 | <table style="clear: both"> | |
128 | <tr> | |
129 | <td>Bureau :</td> | |
130 | <td><input type="text" size="18" maxlength="18" name="{$jobpref}[tel_office]" value="{$job.tel_office}" /></td> | |
131 | </tr> | |
132 | <tr> | |
133 | <td>Fax :</td> | |
134 | <td><input type="text" size="18" maxlength="18" name="{$jobpref}[tel_fax]" value="{$job.tel_fax}" /></td> | |
135 | </tr> | |
136 | <tr> | |
137 | <td>Mobile :</td> | |
138 | <td><input type="text" size="18" maxlength="18" name="{$jobpref}[tel_mobile]" value="{$job.tel_mobile}" /></td> | |
139 | </tr> | |
140 | </table> | |
141 | </div> | |
142 | </td> | |
143 | </tr> | |
144 | </table> | |
145 | </div> | |
0337d704 | 146 | |
a7de4ef7 | 147 | {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *} |