1 | {include file='include/autosize.inc.tpl'} |
---|
2 | {include file='include/datepicker.inc.tpl'} |
---|
3 | |
---|
4 | {literal} |
---|
5 | <script type="text/javascript"> |
---|
6 | pwg_initialization_datepicker("#start_day", "#start_month", "#start_year", "#start_linked_date", null, null, null); |
---|
7 | pwg_initialization_datepicker("#end_day", "#end_month", "#end_year", "#end_linked_date", null, null, null); |
---|
8 | </script> |
---|
9 | {/literal} |
---|
10 | |
---|
11 | <div class="titrePage"> |
---|
12 | <h2>Concours</h2> |
---|
13 | </div> |
---|
14 | |
---|
15 | <form method="post" action="" class="properties" ENCTYPE="multipart/form-data"> |
---|
16 | |
---|
17 | <fieldset> |
---|
18 | <legend>{'concours_add'|@translate}</legend> |
---|
19 | <table> |
---|
20 | |
---|
21 | <tr><td colspan="4"><br></td></tr> |
---|
22 | |
---|
23 | <tr> |
---|
24 | <td><b>{'concours_id'|@translate} </b></td> |
---|
25 | <td colspan="3">{$CONCOURS.ID}</td> |
---|
26 | </tr> |
---|
27 | {if (isset($action) && ($action == 'modify_crit' || $action == 'edit'))} |
---|
28 | <tr> |
---|
29 | <td><b>{'concours_name'|@translate} </b></td> |
---|
30 | <td colspan="3">{$CONCOURS.NAME}</td> |
---|
31 | </tr> |
---|
32 | |
---|
33 | <tr> |
---|
34 | <td><b>{'concours_descr'|@translate} </b></td> |
---|
35 | <td colspan="3">{$CONCOURS.DESCR}</td> |
---|
36 | </tr> |
---|
37 | |
---|
38 | <tr> |
---|
39 | <td> |
---|
40 | <b>{'concours_date_from'|@translate}</b> |
---|
41 | </td> |
---|
42 | <td colspan="3"> |
---|
43 | <b>{$START_DAY_SELECTED} / {$START_MONTH_SELECTED} / {$START_YEAR} - {$START_HOUR} : {$START_MIN}</b> |
---|
44 | </td> |
---|
45 | </tr> |
---|
46 | <tr> |
---|
47 | <td> |
---|
48 | <b>{'concours_date_end'|@translate}</b> |
---|
49 | </td> |
---|
50 | <td colspan="3"> |
---|
51 | <b>{$END_DAY_SELECTED} / {$END_MONTH_SELECTED} / {$END_YEAR} - {$END_HOUR} : {$END_MIN}</b> |
---|
52 | </td> |
---|
53 | </tr> |
---|
54 | |
---|
55 | <tr> |
---|
56 | <td colspan="4"> |
---|
57 | <b>{'concours_category_select'|@translate}</b> |
---|
58 | <select name="cat_selection" disabled="disabled"> |
---|
59 | {foreach from=$category_selection item=category_selection} |
---|
60 | <option value="{$category_selection.ID}" {$category_selection.SELECTED}>{$category_selection.NAME}</option> |
---|
61 | {/foreach} |
---|
62 | </select> |
---|
63 | </td> |
---|
64 | </tr> |
---|
65 | {else} |
---|
66 | <tr> |
---|
67 | <td><b>{'concours_name'|@translate} </b></td> |
---|
68 | <td colspan="3"><input type="text" size="50" maxlength="50" value="{$CONCOURS.NAME}" name="concours_name"/></td> |
---|
69 | </tr> |
---|
70 | |
---|
71 | <tr><td colspan="4"><br></td></tr> |
---|
72 | |
---|
73 | <tr> |
---|
74 | <td><b>{'concours_descr'|@translate} </b></td> |
---|
75 | <td colspan="3"><input type="text" size="65" maxlength="255" value="{$CONCOURS.DESCR}" name="concours_descr"/></td> |
---|
76 | </tr> |
---|
77 | |
---|
78 | <tr><td colspan="4"><br></td></tr> |
---|
79 | |
---|
80 | {if isset($group_perm)} |
---|
81 | <tr><td colspan="4"><br></td></tr> |
---|
82 | <tr> |
---|
83 | <td><b>{'concours_authorized_group'|@translate} </b></td> |
---|
84 | <td colspan="3">{$group_perm.GROUPSELECTION}</td> |
---|
85 | </tr> |
---|
86 | {/if} |
---|
87 | <tr><td colspan="4"><br></td></tr> |
---|
88 | <tr> |
---|
89 | <td colspan="4"><b><i><u>{'concours_activation_date'|@translate}</u></i></b></td> |
---|
90 | </tr> |
---|
91 | |
---|
92 | <tr> |
---|
93 | <td> |
---|
94 | <b>{'concours_date_from'|@translate}</b> |
---|
95 | </td> |
---|
96 | <td> |
---|
97 | <select id="start_day" name="start_day"> |
---|
98 | <option value="0">--</option> |
---|
99 | {section name=day start=1 loop=32} |
---|
100 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
101 | {/section} |
---|
102 | </select> |
---|
103 | <select id="start_month" name="start_month"> |
---|
104 | {html_options options=$month_list selected=$START_MONTH_SELECTED} |
---|
105 | </select> |
---|
106 | <input id="start_year" name="start_year" value="{$START_YEAR}" type="text" size="4" maxlength="4" > |
---|
107 | <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"/> |
---|
108 | </td> |
---|
109 | <td align="right"> |
---|
110 | <b>{'concours_hour_from'|@translate}</b> |
---|
111 | </td> |
---|
112 | <td> |
---|
113 | <input id="start_hour" name="start_hour" value="{$START_HOUR}" type="text" size="2" maxlength="2" >: |
---|
114 | <input id="start_min" name="start_min" value="{$START_MIN}" type="text" size="2" maxlength="2" > |
---|
115 | </td> |
---|
116 | </tr> |
---|
117 | <tr> |
---|
118 | <td> |
---|
119 | <b>{'concours_date_end'|@translate}</b></li> |
---|
120 | </td> |
---|
121 | <td> |
---|
122 | <select id="end_day" name="end_day"> |
---|
123 | <option value="0">--</option> |
---|
124 | {section name=day start=1 loop=32} |
---|
125 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
126 | {/section} |
---|
127 | </select> |
---|
128 | <select id="end_month" name="end_month"> |
---|
129 | {html_options options=$month_list selected=$END_MONTH_SELECTED} |
---|
130 | </select> |
---|
131 | <input id="end_year" name="end_year" value="{$END_YEAR}" type="text" size="4" maxlength="4" > |
---|
132 | <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"/> |
---|
133 | </td> |
---|
134 | <td align="right"> |
---|
135 | <b>{'concours_hour_to'|@translate}</b> |
---|
136 | </td> |
---|
137 | <td> |
---|
138 | <input id="end_hour" name="end_hour" value="{$END_HOUR}" type="text" size="2" maxlength="2" >: |
---|
139 | <input id="end_min" name="end_min" value="{$END_MIN}" type="text" size="2" maxlength="2" > |
---|
140 | </td> |
---|
141 | |
---|
142 | </tr> |
---|
143 | |
---|
144 | <tr><td colspan="4"><br></td></tr> |
---|
145 | |
---|
146 | <tr> |
---|
147 | <td colspan="4"> |
---|
148 | <b>{'concours_category_select'|@translate}</b> |
---|
149 | <select name="cat_selection"> |
---|
150 | {foreach from=$category_selection item=category_selection} |
---|
151 | <option value="{$category_selection.ID}" {$category_selection.SELECTED}>{$category_selection.NAME}</option> |
---|
152 | {/foreach} |
---|
153 | </select> |
---|
154 | </td> |
---|
155 | </tr> |
---|
156 | {/if} |
---|
157 | </table> |
---|
158 | </fieldset> |
---|
159 | {if (isset($action) && ($action == 'modify_crit' || $action == 'edit'))} |
---|
160 | <fieldset> |
---|
161 | <legend>{'concours_criterias'|@translate}</legend> |
---|
162 | <table border="1"> |
---|
163 | <tr> |
---|
164 | <td><b>{'concours_id'|@translate}</b></td> |
---|
165 | <td><b>{'concours_name'|@translate}</b></td> |
---|
166 | <td width="50%"><b>{'concours_descr'|@translate}</b></td> |
---|
167 | <td><b>{'concours_min_value'|@translate}</b></td> |
---|
168 | <td><b>{'concours_max_value'|@translate}</b></td> |
---|
169 | <td><b>{'concours_coef'|@translate}</b></td> |
---|
170 | {if $action != 'edit'} |
---|
171 | <td width="10%"><b>{'concours_actions'|@translate}</b></td> |
---|
172 | {/if} |
---|
173 | </tr> |
---|
174 | {foreach from=$concours_criteria item=concours_criteria} |
---|
175 | <tr> |
---|
176 | <td>{$concours_criteria.id}</td> |
---|
177 | <td> |
---|
178 | {if $concours_criteria.level == 1} |
---|
179 | <b>{$concours_criteria.name}</b> |
---|
180 | {else} |
---|
181 | <i>{$concours_criteria.name}</i> |
---|
182 | {/if} |
---|
183 | </td> |
---|
184 | <td>{$concours_criteria.lib}</td> |
---|
185 | {if !$concours_criteria.nosub} |
---|
186 | <td colspan="3"> </td> |
---|
187 | {else} |
---|
188 | <td>{$concours_criteria.min}</td> |
---|
189 | <td>{$concours_criteria.max}</td> |
---|
190 | <td>{$concours_criteria.pond}</td> |
---|
191 | {/if} |
---|
192 | {if $action != 'edit'} |
---|
193 | <td> |
---|
194 | {if isset($concours_criteria.U_EDIT)} |
---|
195 | <a href="{$concours_criteria.U_EDIT}" title="{'criteria_edit'|@translate}"><img src="{$themeconf.admin_icon_dir}/category_edit.png" class="button" alt="{'criteria_edit'|@translate}"/></a> |
---|
196 | |
---|
197 | {/if} |
---|
198 | {if isset($concours_criteria.U_DELETE)} |
---|
199 | <a href="{$concours_criteria.U_DELETE}" title="{'criteria_delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');"><img src="{$themeconf.admin_icon_dir}/delete.png" class="button" alt="{'criteria_delete'|@translate}" /></a> |
---|
200 | {/if} |
---|
201 | {if $concours_criteria.level == 1} |
---|
202 | <a href="{$concours_criteria.U_ADD}" title="{'subcriteria_add'|@translate}" ><img src="{$IMG_URL}add.png" class="button" alt="{'subcriteria_add'|@translate}" /></a> |
---|
203 | {/if} |
---|
204 | </td> |
---|
205 | {/if} |
---|
206 | </tr> |
---|
207 | {/foreach} |
---|
208 | </table> |
---|
209 | {if $action != 'edit'} |
---|
210 | <p><input type="submit" name="add" value="{'concours_add_criteria'|@translate}" /> |
---|
211 | {/if} |
---|
212 | |
---|
213 | |
---|
214 | </fieldset> |
---|
215 | {/if} |
---|
216 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" /></p> |
---|
217 | </form> |
---|