1 | {include file='include/autosize.inc.tpl'} |
---|
2 | |
---|
3 | <div class="titrePage"> |
---|
4 | <h2>Concours</h2> |
---|
5 | </div> |
---|
6 | |
---|
7 | <form method="post" action="" class="properties" ENCTYPE="multipart/form-data"> |
---|
8 | |
---|
9 | <fieldset> |
---|
10 | <legend>{'concours_add'|@translate}</legend> |
---|
11 | <table> |
---|
12 | |
---|
13 | <tr><td colspan="3"><br></td></tr> |
---|
14 | |
---|
15 | <tr> |
---|
16 | <td><b>{'concours_id'|@translate} </b></td> |
---|
17 | <td colspan="2">{$CONCOURS.ID}</td> |
---|
18 | </tr> |
---|
19 | {if (isset($action) && ($action == 'modify_crit' || $action == 'edit'))} |
---|
20 | <tr> |
---|
21 | <td><b>{'concours_name'|@translate} </b></td> |
---|
22 | <td colspan="2">{$CONCOURS.NAME}</td> |
---|
23 | </tr> |
---|
24 | |
---|
25 | <tr> |
---|
26 | <td><b>{'concours_descr'|@translate} </b></td> |
---|
27 | <td colspan="2">{$CONCOURS.DESCR}</td> |
---|
28 | </tr> |
---|
29 | |
---|
30 | <tr> |
---|
31 | <td><b>{'concours_begin_date'|@translate}</b></td> |
---|
32 | <td colspan="2">{$CONCOURS.BEGIN_DATE} |
---|
33 | {'concours_nb_jours'|@translate} {$CONCOURS.END_DATE} {'jours'|@translate}</td> |
---|
34 | </tr> |
---|
35 | <tr> |
---|
36 | <td colspan="3"> |
---|
37 | <b>{'concours_category_select'|@translate}</b> |
---|
38 | <select name="cat_selection" disabled="disabled"> |
---|
39 | {foreach from=$category_selection item=category_selection} |
---|
40 | <option value="{$category_selection.ID}" {$category_selection.SELECTED}>{$category_selection.NAME}</option> |
---|
41 | {/foreach} |
---|
42 | </select> |
---|
43 | </td> |
---|
44 | </tr> |
---|
45 | {else} |
---|
46 | <tr> |
---|
47 | <td><b>{'concours_name'|@translate} </b></td> |
---|
48 | <td colspan="2"><input type="text" size="50" maxlength="50" value="{$CONCOURS.NAME}" name="concours_name"/></td> |
---|
49 | </tr> |
---|
50 | |
---|
51 | <tr><td colspan="3"><br></td></tr> |
---|
52 | |
---|
53 | <tr> |
---|
54 | <td><b>{'concours_descr'|@translate} </b></td> |
---|
55 | <td colspan="2"><input type="text" size="65" maxlength="255" value="{$CONCOURS.DESCR}" name="concours_descr"/></td> |
---|
56 | </tr> |
---|
57 | |
---|
58 | <tr><td colspan="3"><br></td></tr> |
---|
59 | |
---|
60 | {if isset($group_perm)} |
---|
61 | <tr><td colspan="3"><br></td></tr> |
---|
62 | <tr> |
---|
63 | <td><b>{'concours_authorized_group'|@translate} </b></td> |
---|
64 | <td colspan="2">{$group_perm.GROUPSELECTION}</td> |
---|
65 | </tr> |
---|
66 | {/if} |
---|
67 | <tr> |
---|
68 | <td> </td> |
---|
69 | <td>{'concours_begin_date'|@translate} (AAAA-MM-JJ HH:MM:SS)</td> |
---|
70 | <td>{'concours_nb_jours'|@translate}</td> |
---|
71 | </tr> |
---|
72 | <tr> |
---|
73 | <td><b>{'concours_activation_date'|@translate}</b></td> |
---|
74 | <td><input type="text" size="19" maxlength="19" value="{$CONCOURS.BEGIN_DATE}" name="concours_begin_date"/></td> |
---|
75 | <td><input type="text" size="5" maxlength="5" value="{$CONCOURS.END_DATE}" name="concours_end_date"/> {'jours'|@translate}</td> |
---|
76 | </tr> |
---|
77 | <tr><td colspan="3"><br></td></tr> |
---|
78 | <tr> |
---|
79 | <td colspan="3"> |
---|
80 | <b>{'concours_category_select'|@translate}</b> |
---|
81 | <select name="cat_selection"> |
---|
82 | {foreach from=$category_selection item=category_selection} |
---|
83 | <option value="{$category_selection.ID}" {$category_selection.SELECTED}>{$category_selection.NAME}</option> |
---|
84 | {/foreach} |
---|
85 | </select> |
---|
86 | </td> |
---|
87 | </tr> |
---|
88 | {/if} |
---|
89 | </table> |
---|
90 | </fieldset> |
---|
91 | {if (isset($action) && ($action == 'modify_crit' || $action == 'edit'))} |
---|
92 | <fieldset> |
---|
93 | <legend>{'concours_criterias'|@translate}</legend> |
---|
94 | <table border="1"> |
---|
95 | <tr> |
---|
96 | <td><b>{'concours_id'|@translate}</b></td> |
---|
97 | <td><b>{'concours_name'|@translate}</b></td> |
---|
98 | <td width="50%"><b>{'concours_descr'|@translate}</b></td> |
---|
99 | <td><b>{'concours_min_value'|@translate}</b></td> |
---|
100 | <td><b>{'concours_max_value'|@translate}</b></td> |
---|
101 | <td><b>{'concours_coef'|@translate}</b></td> |
---|
102 | {if $action != 'edit'} |
---|
103 | <td width="10%"><b>{'concours_actions'|@translate}</b></td> |
---|
104 | {/if} |
---|
105 | </tr> |
---|
106 | {foreach from=$concours_criteria item=concours_criteria} |
---|
107 | <tr> |
---|
108 | <td>{$concours_criteria.id}</td> |
---|
109 | <td> |
---|
110 | {if $concours_criteria.level == 1} |
---|
111 | <b>{$concours_criteria.name}</b> |
---|
112 | {else} |
---|
113 | <i>{$concours_criteria.name}</i> |
---|
114 | {/if} |
---|
115 | </td> |
---|
116 | <td>{$concours_criteria.lib}</td> |
---|
117 | {if !$concours_criteria.nosub} |
---|
118 | <td colspan="3"> </td> |
---|
119 | {else} |
---|
120 | <td>{$concours_criteria.min}</td> |
---|
121 | <td>{$concours_criteria.max}</td> |
---|
122 | <td>{$concours_criteria.pond}</td> |
---|
123 | {/if} |
---|
124 | {if $action != 'edit'} |
---|
125 | <td> |
---|
126 | {if isset($concours_criteria.U_EDIT)} |
---|
127 | <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> |
---|
128 | |
---|
129 | {/if} |
---|
130 | {if isset($concours_criteria.U_DELETE)} |
---|
131 | <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> |
---|
132 | {/if} |
---|
133 | {if $concours_criteria.level == 1} |
---|
134 | <a href="{$concours_criteria.U_ADD}" title="{'subcriteria_add'|@translate}" ><img src="{$IMG_URL}add.png" class="button" alt="{'subcriteria_add'|@translate}" /></a> |
---|
135 | {/if} |
---|
136 | </td> |
---|
137 | {/if} |
---|
138 | </tr> |
---|
139 | {/foreach} |
---|
140 | </table> |
---|
141 | {if $action != 'edit'} |
---|
142 | <p><input type="submit" name="add" value="{'concours_add_criteria'|@translate}" /> |
---|
143 | {/if} |
---|
144 | |
---|
145 | |
---|
146 | </fieldset> |
---|
147 | {/if} |
---|
148 | <p><input class="submit" type="submit" value="{'Submit'|@translate}" name="submit" /></p> |
---|
149 | </form> |
---|