[3905] | 1 | {include file='include/autosize.inc.tpl'} |
---|
[4141] | 2 | {include file='include/datepicker.inc.tpl'} |
---|
[3905] | 3 | |
---|
[4141] | 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 | |
---|
[3905] | 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 | |
---|
[4141] | 21 | <tr><td colspan="4"><br></td></tr> |
---|
[3905] | 22 | |
---|
| 23 | <tr> |
---|
| 24 | <td><b>{'concours_id'|@translate} </b></td> |
---|
[4141] | 25 | <td colspan="3">{$CONCOURS.ID}</td> |
---|
[3905] | 26 | </tr> |
---|
| 27 | {if (isset($action) && ($action == 'modify_crit' || $action == 'edit'))} |
---|
| 28 | <tr> |
---|
| 29 | <td><b>{'concours_name'|@translate} </b></td> |
---|
[4141] | 30 | <td colspan="3">{$CONCOURS.NAME}</td> |
---|
[3905] | 31 | </tr> |
---|
| 32 | |
---|
| 33 | <tr> |
---|
| 34 | <td><b>{'concours_descr'|@translate} </b></td> |
---|
[4141] | 35 | <td colspan="3">{$CONCOURS.DESCR}</td> |
---|
[3905] | 36 | </tr> |
---|
| 37 | |
---|
| 38 | <tr> |
---|
[4141] | 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> |
---|
[3905] | 45 | </tr> |
---|
| 46 | <tr> |
---|
[4141] | 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> |
---|
[4368] | 54 | <tr> |
---|
| 55 | <td><b>{'concours_method'|@translate} </b></td> |
---|
| 56 | <td colspan = "3"> |
---|
| 57 | <select name="concours_method" {if !isset($result_not_generated)}disabled="disabled"{/if}> |
---|
| 58 | {foreach from=$concours_method item=concours_method} |
---|
| 59 | <option value="{$concours_method.ID}" {$concours_method.SELECTED}>{$concours_method.NAME}</option> |
---|
| 60 | {/foreach} |
---|
| 61 | </select> |
---|
| 62 | </td> |
---|
| 63 | |
---|
| 64 | </tr> |
---|
[4141] | 65 | |
---|
| 66 | <tr> |
---|
| 67 | <td colspan="4"> |
---|
[3905] | 68 | <b>{'concours_category_select'|@translate}</b> |
---|
| 69 | <select name="cat_selection" disabled="disabled"> |
---|
| 70 | {foreach from=$category_selection item=category_selection} |
---|
| 71 | <option value="{$category_selection.ID}" {$category_selection.SELECTED}>{$category_selection.NAME}</option> |
---|
| 72 | {/foreach} |
---|
| 73 | </select> |
---|
| 74 | </td> |
---|
[4368] | 75 | </tr> |
---|
[3905] | 76 | {else} |
---|
| 77 | <tr> |
---|
| 78 | <td><b>{'concours_name'|@translate} </b></td> |
---|
[4141] | 79 | <td colspan="3"><input type="text" size="50" maxlength="50" value="{$CONCOURS.NAME}" name="concours_name"/></td> |
---|
[3905] | 80 | </tr> |
---|
| 81 | |
---|
[4141] | 82 | <tr><td colspan="4"><br></td></tr> |
---|
[3905] | 83 | |
---|
| 84 | <tr> |
---|
| 85 | <td><b>{'concours_descr'|@translate} </b></td> |
---|
[4141] | 86 | <td colspan="3"><input type="text" size="65" maxlength="255" value="{$CONCOURS.DESCR}" name="concours_descr"/></td> |
---|
[3905] | 87 | </tr> |
---|
| 88 | |
---|
[4141] | 89 | <tr><td colspan="4"><br></td></tr> |
---|
[3905] | 90 | |
---|
| 91 | {if isset($group_perm)} |
---|
[4141] | 92 | <tr><td colspan="4"><br></td></tr> |
---|
[3905] | 93 | <tr> |
---|
| 94 | <td><b>{'concours_authorized_group'|@translate} </b></td> |
---|
[4141] | 95 | <td colspan="3">{$group_perm.GROUPSELECTION}</td> |
---|
[3905] | 96 | </tr> |
---|
| 97 | {/if} |
---|
[4141] | 98 | <tr><td colspan="4"><br></td></tr> |
---|
[3905] | 99 | <tr> |
---|
[4141] | 100 | <td colspan="4"><b><i><u>{'concours_activation_date'|@translate}</u></i></b></td> |
---|
[3905] | 101 | </tr> |
---|
[4141] | 102 | |
---|
[3905] | 103 | <tr> |
---|
[4141] | 104 | <td> |
---|
| 105 | <b>{'concours_date_from'|@translate}</b> |
---|
| 106 | </td> |
---|
| 107 | <td> |
---|
| 108 | <select id="start_day" name="start_day"> |
---|
| 109 | <option value="0">--</option> |
---|
| 110 | {section name=day start=1 loop=32} |
---|
| 111 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$START_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 112 | {/section} |
---|
| 113 | </select> |
---|
| 114 | <select id="start_month" name="start_month"> |
---|
| 115 | {html_options options=$month_list selected=$START_MONTH_SELECTED} |
---|
| 116 | </select> |
---|
| 117 | <input id="start_year" name="start_year" value="{$START_YEAR}" type="text" size="4" maxlength="4" > |
---|
| 118 | <input id="start_linked_date" name="start_linked_date" type="hidden" size="10" disabled="disabled"/> |
---|
| 119 | </td> |
---|
| 120 | <td align="right"> |
---|
| 121 | <b>{'concours_hour_from'|@translate}</b> |
---|
| 122 | </td> |
---|
| 123 | <td> |
---|
| 124 | <input id="start_hour" name="start_hour" value="{$START_HOUR}" type="text" size="2" maxlength="2" >: |
---|
| 125 | <input id="start_min" name="start_min" value="{$START_MIN}" type="text" size="2" maxlength="2" > |
---|
| 126 | </td> |
---|
[3905] | 127 | </tr> |
---|
[4141] | 128 | <tr> |
---|
| 129 | <td> |
---|
| 130 | <b>{'concours_date_end'|@translate}</b></li> |
---|
| 131 | </td> |
---|
| 132 | <td> |
---|
| 133 | <select id="end_day" name="end_day"> |
---|
| 134 | <option value="0">--</option> |
---|
| 135 | {section name=day start=1 loop=32} |
---|
| 136 | <option value="{$smarty.section.day.index}" {if $smarty.section.day.index==$END_DAY_SELECTED}selected="selected"{/if}>{$smarty.section.day.index}</option> |
---|
| 137 | {/section} |
---|
| 138 | </select> |
---|
| 139 | <select id="end_month" name="end_month"> |
---|
| 140 | {html_options options=$month_list selected=$END_MONTH_SELECTED} |
---|
| 141 | </select> |
---|
| 142 | <input id="end_year" name="end_year" value="{$END_YEAR}" type="text" size="4" maxlength="4" > |
---|
| 143 | <input id="end_linked_date" name="end_linked_date" type="hidden" size="10" disabled="disabled"/> |
---|
| 144 | </td> |
---|
| 145 | <td align="right"> |
---|
| 146 | <b>{'concours_hour_to'|@translate}</b> |
---|
| 147 | </td> |
---|
| 148 | <td> |
---|
| 149 | <input id="end_hour" name="end_hour" value="{$END_HOUR}" type="text" size="2" maxlength="2" >: |
---|
| 150 | <input id="end_min" name="end_min" value="{$END_MIN}" type="text" size="2" maxlength="2" > |
---|
| 151 | </td> |
---|
| 152 | |
---|
| 153 | </tr> |
---|
| 154 | |
---|
[4368] | 155 | <tr> |
---|
| 156 | <td><b>{'concours_method'|@translate} </b></td> |
---|
| 157 | <td colspan = "3"> |
---|
| 158 | <select name="concours_method"> |
---|
| 159 | {foreach from=$concours_method item=concours_method} |
---|
| 160 | <option value="{$concours_method.ID}" {$concours_method.SELECTED}>{$concours_method.NAME}</option> |
---|
| 161 | {/foreach} |
---|
| 162 | </select> |
---|
| 163 | </td> |
---|
| 164 | |
---|
| 165 | </tr> |
---|
[4141] | 166 | <tr><td colspan="4"><br></td></tr> |
---|
| 167 | |
---|
[3905] | 168 | <tr> |
---|
[4141] | 169 | <td colspan="4"> |
---|
[3905] | 170 | <b>{'concours_category_select'|@translate}</b> |
---|
| 171 | <select name="cat_selection"> |
---|
| 172 | {foreach from=$category_selection item=category_selection} |
---|
| 173 | <option value="{$category_selection.ID}" {$category_selection.SELECTED}>{$category_selection.NAME}</option> |
---|
| 174 | {/foreach} |
---|
| 175 | </select> |
---|
| 176 | </td> |
---|
[4368] | 177 | </tr> |
---|
[3905] | 178 | {/if} |
---|
| 179 | </table> |
---|
| 180 | </fieldset> |
---|
| 181 | {if (isset($action) && ($action == 'modify_crit' || $action == 'edit'))} |
---|
| 182 | <fieldset> |
---|
| 183 | <legend>{'concours_criterias'|@translate}</legend> |
---|
[4428] | 184 | <table class="table2 littlefont" id="criteria_list" border="1"> |
---|
| 185 | <tr class="throw"> |
---|
| 186 | <th><b>{'concours_id2'|@translate}</b></td> |
---|
| 187 | <th><b>{'concours_name'|@translate}</b></td> |
---|
| 188 | <th><b>{'concours_descr'|@translate}</b></td> |
---|
| 189 | <th><b>{'concours_min_value'|@translate}</b></td> |
---|
| 190 | <th><b>{'concours_max_value'|@translate}</b></td> |
---|
| 191 | <th><b>{'concours_coef'|@translate}</b></td> |
---|
[3905] | 192 | {if $action != 'edit'} |
---|
[4428] | 193 | <th colspan="3"><b>{'concours_actions'|@translate}</b></td> |
---|
[3905] | 194 | {/if} |
---|
| 195 | </tr> |
---|
| 196 | {foreach from=$concours_criteria item=concours_criteria} |
---|
[4428] | 197 | <tr class="TableRow" style="cursor:pointer;"> |
---|
[3905] | 198 | <td>{$concours_criteria.id}</td> |
---|
| 199 | <td> |
---|
| 200 | {if $concours_criteria.level == 1} |
---|
| 201 | <b>{$concours_criteria.name}</b> |
---|
| 202 | {else} |
---|
| 203 | <i>{$concours_criteria.name}</i> |
---|
| 204 | {/if} |
---|
| 205 | </td> |
---|
| 206 | <td>{$concours_criteria.lib}</td> |
---|
| 207 | {if !$concours_criteria.nosub} |
---|
| 208 | <td colspan="3"> </td> |
---|
| 209 | {else} |
---|
| 210 | <td>{$concours_criteria.min}</td> |
---|
| 211 | <td>{$concours_criteria.max}</td> |
---|
| 212 | <td>{$concours_criteria.pond}</td> |
---|
| 213 | {/if} |
---|
| 214 | {if $action != 'edit'} |
---|
| 215 | <td> |
---|
[4428] | 216 | {if $concours_criteria.level == 1} |
---|
| 217 | <a href="{$concours_criteria.U_ADD}" title="{'subcriteria_add'|@translate}" ><img src="{$IMG_URL}add.png" class="button" alt="{'subcriteria_add'|@translate}" /></a> |
---|
| 218 | {/if} |
---|
| 219 | </td> |
---|
| 220 | <td> |
---|
[3905] | 221 | {if isset($concours_criteria.U_EDIT)} |
---|
| 222 | <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> |
---|
| 223 | |
---|
| 224 | {/if} |
---|
[4428] | 225 | </td> |
---|
| 226 | <td> |
---|
[3905] | 227 | {if isset($concours_criteria.U_DELETE)} |
---|
| 228 | <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> |
---|
| 229 | {/if} |
---|
| 230 | </td> |
---|
| 231 | {/if} |
---|
| 232 | </tr> |
---|
| 233 | {/foreach} |
---|
| 234 | </table> |
---|
| 235 | {if $action != 'edit'} |
---|
| 236 | <p><input type="submit" name="add" value="{'concours_add_criteria'|@translate}" /> |
---|
| 237 | {/if} |
---|
| 238 | |
---|
| 239 | |
---|
| 240 | </fieldset> |
---|
| 241 | {/if} |
---|
| 242 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" /></p> |
---|
| 243 | </form> |
---|