| 1 | {* <!-- Event Cats (event categories) LucMorizur June 2009 - ... --> *} |
|---|
| 2 | |
|---|
| 3 | {* <!-- Keeps file coded in UTF-8 without BOM : é --> *} |
|---|
| 4 | |
|---|
| 5 | {include file=$HeaderIncTPL} |
|---|
| 6 | {include file='include/datepicker.inc.tpl'} |
|---|
| 7 | |
|---|
| 8 | {* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *} |
|---|
| 9 | <div style = "text-align:right; font-style:italic;"> |
|---|
| 10 | <span id = "ec_help_banner2"> |
|---|
| 11 | {'Help banner'|@translate} |
|---|
| 12 | <label for = "ec_help_banner2_1" onclick = "ec_mark_help('ec_help_banner_1');"> |
|---|
| 13 | <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1"/> |
|---|
| 14 | {'Show'|@translate} |
|---|
| 15 | </label> |
|---|
| 16 | |
|---|
| 17 | <label for = "ec_help_banner2_0" onclick = "ec_mark_help('ec_help_banner_0');"> |
|---|
| 18 | <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0"/> |
|---|
| 19 | {'Hide'|@translate} |
|---|
| 20 | </label> |
|---|
| 21 | — |
|---|
| 22 | </span> |
|---|
| 23 | {if $ec_ap_ok} |
|---|
| 24 | {'Additional Pages active'|@translate} |
|---|
| 25 | <script type = "text/javascript"> |
|---|
| 26 | var ec_ap_ok = {if count($ec_lists.add_pages) == 0}false{else}true{/if}; |
|---|
| 27 | </script> |
|---|
| 28 | {else} |
|---|
| 29 | {'Additional Pages inactive'|@translate} |
|---|
| 30 | <script type = "text/javascript"> |
|---|
| 31 | var ec_ap_ok = false; |
|---|
| 32 | </script> |
|---|
| 33 | {/if} |
|---|
| 34 | </div><span id = "ec_help_ban"></span> |
|---|
| 35 | <script type = "text/javascript"><!-- |
|---|
| 36 | document.getElementById('ec_help_banner2').style.display = "none"; |
|---|
| 37 | //--></script> |
|---|
| 38 | |
|---|
| 39 | {* <!-- Parameters list --> *} |
|---|
| 40 | <form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();"> |
|---|
| 41 | <input type = "hidden" id = "ec_act1_id" name = "ec_act1" /> |
|---|
| 42 | <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel" /> |
|---|
| 43 | |
|---|
| 44 | {* <!-- Page title. Can be "New entry" or "Entry modification" --> *} |
|---|
| 45 | <div style = "text-align:center;"> |
|---|
| 46 | <a style = "font-weight:bold; font-size:120%;" href = "#ec_top" name = "ec_top" title = "{'Place title on top ttip'|@translate}"> |
|---|
| 47 | <!--[if !IE]> <--> <label> <!--> <![endif]--> |
|---|
| 48 | {if $ec_is_creation} |
|---|
| 49 | {'New entry title'|@translate} |
|---|
| 50 | {else} |
|---|
| 51 | {'Modify entry title'|@translate} |
|---|
| 52 | {/if} |
|---|
| 53 | <!--[if !IE]> <--> </label> <!--> <![endif]--> |
|---|
| 54 | <!-- What we're able to do for our "prefered" browser |-( ...! --> |
|---|
| 55 | </a> |
|---|
| 56 | {if $ec_is_creation} |
|---|
| 57 | <br /><br /> |
|---|
| 58 | <input class = "submit" type = "button" name = "ec_submit_gen_full_auto" value = "{'Full auto'|@translate}" |
|---|
| 59 | id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/> |
|---|
| 60 | {/if} |
|---|
| 61 | </div> |
|---|
| 62 | |
|---|
| 63 | {* <!-- [ [New / existing code] / [Existing entry] ] selection --> *} |
|---|
| 64 | <fieldset> |
|---|
| 65 | <legend style = "font-weight:bold;"> |
|---|
| 66 | {if $ec_is_creation} |
|---|
| 67 | {'Code'|@translate} |
|---|
| 68 | {else} |
|---|
| 69 | {'Selected entry'|@translate} |
|---|
| 70 | {/if} |
|---|
| 71 | </legend> |
|---|
| 72 | |
|---|
| 73 | {if $ec_is_creation} |
|---|
| 74 | <li> |
|---|
| 75 | {* <!-- New code (to create) --> *} |
|---|
| 76 | <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code} > |
|---|
| 77 | <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_id" value = "new" id = "ec_sel_code_new"/> |
|---|
| 78 | {'New code'|@translate} |
|---|
| 79 | </label> |
|---|
| 80 | <span {$ec_hidden_when_no_code} > </span> |
|---|
| 81 | <label for = "ec_in_up_code_id" style = "margin:0;"> |
|---|
| 82 | <input class = "submit" type = "button" name = "ec_submit_gen_code" value = "{'Auto code button'|@translate}" |
|---|
| 83 | id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;" |
|---|
| 84 | /> |
|---|
| 85 | </label> |
|---|
| 86 | {'Auto code mid'|@translate} |
|---|
| 87 | <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;"> |
|---|
| 88 | {foreach from=$ec_auto_code_dg_nb item=ec_item name=listloop} |
|---|
| 89 | <option value = "{$ec_item}"> |
|---|
| 90 | {$ec_item} |
|---|
| 91 | {if $smarty.foreach.listloop.index == 0} |
|---|
| 92 | {'Auto code min'|@translate} |
|---|
| 93 | {/if} |
|---|
| 94 | {if $smarty.foreach.listloop.index == count($ec_auto_code_dg_nb) - 1} |
|---|
| 95 | {'Auto code max'|@translate} |
|---|
| 96 | {/if} |
|---|
| 97 | </option> |
|---|
| 98 | {/foreach} |
|---|
| 99 | </select> |
|---|
| 100 | {'Auto code end'|@translate}<br /> |
|---|
| 101 | <li style = "padding-left: 30px;"> |
|---|
| 102 | <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40" |
|---|
| 103 | id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);" |
|---|
| 104 | /> |
|---|
| 105 | — |
|---|
| 106 | <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> |
|---|
| 107 | <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> |
|---|
| 108 | <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" |
|---|
| 109 | onchange = "ec_new_comment_text = this.value;" |
|---|
| 110 | /> |
|---|
| 111 | </label> |
|---|
| 112 | </li> |
|---|
| 113 | </li> |
|---|
| 114 | |
|---|
| 115 | <li> |
|---|
| 116 | {* <!-- Known code --> *} |
|---|
| 117 | <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');" {$ec_hidden_when_no_code}> |
|---|
| 118 | <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_list_id" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old" /> |
|---|
| 119 | {'Existing code'|@translate} |
|---|
| 120 | </label> |
|---|
| 121 | <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" onchange = "ec_change_code_list(this.value);" {$ec_hidden_when_no_code} > |
|---|
| 122 | {foreach from=$ec_lists.duplicable_codes.codes key=ec_key item=ec_val} |
|---|
| 123 | <option value = "{$ec_val.id}"> |
|---|
| 124 | {$ec_key} |
|---|
| 125 | {if $ec_val.comment != ''} |
|---|
| 126 | — {$ec_val.comment} |
|---|
| 127 | {/if} |
|---|
| 128 | </option> |
|---|
| 129 | {/foreach} |
|---|
| 130 | </select> |
|---|
| 131 | </li> |
|---|
| 132 | |
|---|
| 133 | {else} |
|---|
| 134 | |
|---|
| 135 | {* <!-- Existing entry selection --> *} |
|---|
| 136 | <li> |
|---|
| 137 | {* <!-- Entry choice --> *} |
|---|
| 138 | <select name = "ec_in_up_entry_list" id = "ec_in_up_entry_list_id" onchange = "ec_mark_entry(this.value);"> |
|---|
| 139 | {foreach from=$ec_lists.ec_table item=ec_val} |
|---|
| 140 | <option value = "{$ec_val.id}"> |
|---|
| 141 | {$ec_val.id} : {$ec_val.code} |
|---|
| 142 | {if $ec_val.comment != ''} |
|---|
| 143 | — {$ec_val.comment} |
|---|
| 144 | {/if} |
|---|
| 145 | </option> |
|---|
| 146 | {/foreach} |
|---|
| 147 | </select> |
|---|
| 148 | — |
|---|
| 149 | <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> |
|---|
| 150 | <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> |
|---|
| 151 | <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" |
|---|
| 152 | onchange = "ec_new_comment_text = this.value;" |
|---|
| 153 | /> |
|---|
| 154 | </label> |
|---|
| 155 | </li> |
|---|
| 156 | |
|---|
| 157 | {/if} |
|---|
| 158 | |
|---|
| 159 | </fieldset> |
|---|
| 160 | |
|---|
| 161 | {* <!-- User to identify --> *} |
|---|
| 162 | <fieldset> |
|---|
| 163 | <legend style = "font-weight:bold;"> |
|---|
| 164 | {'Identified user'|@translate} |
|---|
| 165 | <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn"> </span><br /> |
|---|
| 166 | </legend> |
|---|
| 167 | |
|---|
| 168 | {if !$ec_is_creation} |
|---|
| 169 | <li> |
|---|
| 170 | {* <!-- None --> *} |
|---|
| 171 | <label onclick = "return ec_mark_user('ec_sel_user_none');"> |
|---|
| 172 | <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none" /> |
|---|
| 173 | {'No user'|@translate} |
|---|
| 174 | </label><br /> |
|---|
| 175 | </li> |
|---|
| 176 | {/if} |
|---|
| 177 | |
|---|
| 178 | <li> |
|---|
| 179 | {* <!-- New user (to create) --> *} |
|---|
| 180 | <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} > |
|---|
| 181 | <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user} /> |
|---|
| 182 | {'New generic user'|@translate} |
|---|
| 183 | </label> |
|---|
| 184 | <span {$ec_hidden_when_no_user} > </span> |
|---|
| 185 | <label for = "ec_in_up_usr_txt_id" style = "margin:0;"> |
|---|
| 186 | <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'Generate username'|@translate}" |
|---|
| 187 | id = "ec_submit_gen_user_id" onclick = "ec_gen_user();" |
|---|
| 188 | /> |
|---|
| 189 | </label> |
|---|
| 190 | <li style = "padding-left: 30px;"> |
|---|
| 191 | <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br /> |
|---|
| 192 | <input type = "text" name = "login" id = "ec_in_up_usr_txt_id" maxlength = "50" |
|---|
| 193 | size = "20" onblur = "ec_new_user_text = this.value; ec_check_user_text();" |
|---|
| 194 | /> |
|---|
| 195 | </label> |
|---|
| 196 | <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New password'|@translate}<br /> |
|---|
| 197 | <input type = "text" name = "password" id = "ec_in_up_psd_txt_id" maxlength = "32" |
|---|
| 198 | size = "20" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();" |
|---|
| 199 | /> |
|---|
| 200 | </label> |
|---|
| 201 | <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'Confirm password'|@translate}<br /> |
|---|
| 202 | <input type = "password" id = "ec_confirm_psd_txt_id" maxlength = "32" size = "20"/> |
|---|
| 203 | </label> |
|---|
| 204 | <label class = "ec_block" onclick = "ec_check_grp_text(); return ec_mark_user('ec_sel_user_new');" for = "ec_in_up_grp_txt_id"> |
|---|
| 205 | <input type = "checkbox" name = "ec_in_up_newgroup" id = "ec_in_up_newgroup_id" |
|---|
| 206 | onchange = "ec_selected_old_group = (this.checked != '');" |
|---|
| 207 | /> |
|---|
| 208 | <span onMouseover = "ec_chk_over_grp = true;" onMouseout = "ec_chk_over_grp = false;"> |
|---|
| 209 | {'New group'|@translate} |
|---|
| 210 | </span><br /> |
|---|
| 211 | <input type = "text" name = "groupname" id = "ec_in_up_grp_txt_id" maxlength = "32" |
|---|
| 212 | size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;" |
|---|
| 213 | /> |
|---|
| 214 | </label> |
|---|
| 215 | </li><br /> |
|---|
| 216 | </li> |
|---|
| 217 | |
|---|
| 218 | <li> |
|---|
| 219 | {* <!-- Known user --> *} |
|---|
| 220 | <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} > |
|---|
| 221 | <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old" /> |
|---|
| 222 | {'Existing user'|@translate} |
|---|
| 223 | </label> |
|---|
| 224 | <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" onchange = "ec_change_user_list(this.value);" {$ec_hidden_when_no_user} > |
|---|
| 225 | {foreach from=$ec_lists.user_ids key=ec_key item=ec_val} |
|---|
| 226 | <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option> |
|---|
| 227 | {/foreach} |
|---|
| 228 | </select><br /> |
|---|
| 229 | </li> |
|---|
| 230 | |
|---|
| 231 | </fieldset> |
|---|
| 232 | |
|---|
| 233 | {* <!-- Page to display --> *} |
|---|
| 234 | <fieldset style = "float:left;"> |
|---|
| 235 | <legend style = "font-weight:bold;">{'Displayed page'|@translate}</legend> |
|---|
| 236 | |
|---|
| 237 | <li> |
|---|
| 238 | <label class = "ec_block" for = "ec_in_up_forced_id" style = "margin-top:5px;" onclick = "ec_mark_forced();"> |
|---|
| 239 | <input type = "checkbox" name = "ec_in_up_forced" id = "ec_in_up_forced_id"> |
|---|
| 240 | <span id = "ec_style_forced_id"> </span> |
|---|
| 241 | </label> |
|---|
| 242 | </li> |
|---|
| 243 | |
|---|
| 244 | <li> |
|---|
| 245 | {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} |
|---|
| 246 | <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "return ec_mark_action('ec_input_action_add_p');" |
|---|
| 247 | {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} |
|---|
| 248 | > |
|---|
| 249 | <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id" /> |
|---|
| 250 | {'Additional Page'|@translate}<br /> |
|---|
| 251 | <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" > |
|---|
| 252 | {html_options options=$ec_lists.add_pages} |
|---|
| 253 | </select> |
|---|
| 254 | </label> |
|---|
| 255 | |
|---|
| 256 | {* <!-- Category, provided at least one category is available --> *} |
|---|
| 257 | <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');" |
|---|
| 258 | {if count($ec_lists.categories) == 0} style = "display:none;" {/if} |
|---|
| 259 | > |
|---|
| 260 | <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" for = "ec_in_up_cats_id" |
|---|
| 261 | onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;" |
|---|
| 262 | /> |
|---|
| 263 | <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br /> |
|---|
| 264 | <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;"> |
|---|
| 265 | {html_options options=$ec_lists.categories} |
|---|
| 266 | </select> |
|---|
| 267 | </label> |
|---|
| 268 | |
|---|
| 269 | {* <!-- Image, provided at least one category is available and at least one image is associated to one category --> *} |
|---|
| 270 | <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');" |
|---|
| 271 | {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if} |
|---|
| 272 | > |
|---|
| 273 | <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id" /> |
|---|
| 274 | {'Image id'|@translate}<br /> |
|---|
| 275 | <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6" |
|---|
| 276 | size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');" |
|---|
| 277 | /><br /> |
|---|
| 278 | <span id = "ec_in_up_imgs_warn"> </span><br /> |
|---|
| 279 | </label> |
|---|
| 280 | |
|---|
| 281 | {* <!-- Index page --> *} |
|---|
| 282 | <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');"> |
|---|
| 283 | <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home" /> |
|---|
| 284 | {'Home'|@translate} |
|---|
| 285 | </label> |
|---|
| 286 | |
|---|
| 287 | {* <!-- Access denied page (only when modifying an entry) --> *} |
|---|
| 288 | {if !$ec_is_creation} |
|---|
| 289 | <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');"> |
|---|
| 290 | <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused" /> |
|---|
| 291 | {'Access denied'|@translate} |
|---|
| 292 | </label> |
|---|
| 293 | {/if} |
|---|
| 294 | </li> |
|---|
| 295 | |
|---|
| 296 | </fieldset> |
|---|
| 297 | |
|---|
| 298 | <fieldset style = "float:right;"> |
|---|
| 299 | <legend style = "font-weight:bold;">Validité</legend> |
|---|
| 300 | <span style = "font-weight:bold;">Date de validité : </span> |
|---|
| 301 | <select id = "date_creation_day" name = "date_creation_day"> |
|---|
| 302 | <option value = "0">--</option> |
|---|
| 303 | <option value = "1" >1</option> |
|---|
| 304 | <option value = "2" >2</option> |
|---|
| 305 | <option value = "3" >3</option> |
|---|
| 306 | <option value = "4" >4</option> |
|---|
| 307 | <option value = "5" >5</option> |
|---|
| 308 | <option value = "6" >6</option> |
|---|
| 309 | <option value = "7" >7</option> |
|---|
| 310 | <option value = "8" >8</option> |
|---|
| 311 | <option value = "9" >9</option> |
|---|
| 312 | <option value = "10" >10</option> |
|---|
| 313 | <option value = "11" >11</option> |
|---|
| 314 | <option value = "12" selected = "selected">12</option> |
|---|
| 315 | <option value = "13" >13</option> |
|---|
| 316 | <option value = "14" >14</option> |
|---|
| 317 | <option value = "15" >15</option> |
|---|
| 318 | <option value = "16" >16</option> |
|---|
| 319 | <option value = "17" >17</option> |
|---|
| 320 | <option value = "18" >18</option> |
|---|
| 321 | <option value = "19" >19</option> |
|---|
| 322 | <option value = "20" >20</option> |
|---|
| 323 | <option value = "21" >21</option> |
|---|
| 324 | <option value = "22" >22</option> |
|---|
| 325 | <option value = "23" >23</option> |
|---|
| 326 | <option value = "24" >24</option> |
|---|
| 327 | <option value = "25" >25</option> |
|---|
| 328 | <option value = "26" >26</option> |
|---|
| 329 | <option value = "27" >27</option> |
|---|
| 330 | <option value = "28" >28</option> |
|---|
| 331 | <option value = "29" >29</option> |
|---|
| 332 | <option value = "30" >30</option> |
|---|
| 333 | <option value = "31" >31</option> |
|---|
| 334 | </select> |
|---|
| 335 | |
|---|
| 336 | <select id = "date_creation_month" name = "date_creation_month"> |
|---|
| 337 | <option label = "------------" value = "0">------------</option> |
|---|
| 338 | <option label = "Janvier" value = "1">Janvier</option> |
|---|
| 339 | <option label = "Février" value = "2">Février</option> |
|---|
| 340 | <option label = "Mars" value = "3">Mars</option> |
|---|
| 341 | <option label = "Avril" value = "4">Avril</option> |
|---|
| 342 | <option label = "Mai" value = "5">Mai</option> |
|---|
| 343 | <option label = "Juin" value = "6">Juin</option> |
|---|
| 344 | <option label = "Juillet" value = "7">Juillet</option> |
|---|
| 345 | <option label = "Août" value = "8">Août</option> |
|---|
| 346 | <option label = "Septembre" value = "9">Septembre</option> |
|---|
| 347 | <option label = "Octobre" value = "10" selected = "selected">Octobre</option> |
|---|
| 348 | <option label = "Novembre" value = "11">Novembre</option> |
|---|
| 349 | <option label = "Décembre" value = "12">Décembre</option> |
|---|
| 350 | </select> |
|---|
| 351 | |
|---|
| 352 | <input id = "date_creation_year" name = "date_creation_year" type = "text" size = "4" maxlength = "4" value = "2010"> |
|---|
| 353 | {* <!-- date_creation_linked_date représente la date indiquée par les listes déroulantes, et permet de limiter |
|---|
| 354 | le choix dans la date, en l'occurrence à des dates uniquement postérieures (grâce au 6° paramètre de pwg_initialization_datepicker) --> *} |
|---|
| 355 | <input id = "date_creation_linked_date" name = "date_creation_linked_date" type = "hidden" size = "10" disabled = "disabled"> |
|---|
| 356 | <script type = "text/javascript"> |
|---|
| 357 | pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", |
|---|
| 358 | "#date_creation_year", "#date_creation_linked_date", null, "#date_creation_linked_date"); |
|---|
| 359 | </script> |
|---|
| 360 | </fieldset> |
|---|
| 361 | |
|---|
| 362 | <p style = "clear:both;"> |
|---|
| 363 | <input class = "submit" type = "submit" value = "{'Submit'|@translate}"/> |
|---|
| 364 | <input class = "submit" type = "submit" value = "{'Reset'|@translate}" onclick = "return ec_init();"/> |
|---|
| 365 | </p> |
|---|
| 366 | </form> |
|---|
| 367 | |
|---|
| 368 | {* <!-- JavaScript functions --> *} |
|---|
| 369 | <script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script> |
|---|
| 370 | <script type = "text/javascript"><!-- |
|---|
| 371 | ec_is_creation = {if $ec_is_creation}true{else}false{/if}; |
|---|
| 372 | ec_up_code_lbl_forced_txt = "{'Forced'|@translate}"; |
|---|
| 373 | ec_JS_message['ec_gen_user_act_miss'] = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}"; |
|---|
| 374 | ec_JS_message['ec_act_cat_miss'] = "{'ec_act_cat_miss'|@translate|@escape:javascript}"; |
|---|
| 375 | ec_JS_message['ec_act_img_miss'] = "{'ec_act_img_miss'|@translate|@escape:javascript}"; |
|---|
| 376 | ec_JS_message['ec_new_pwd_gen'] = "{'ec_new_pwd_gen'|@translate|@escape:javascript}"; |
|---|
| 377 | ec_JS_message['ec_clk_entry_miss'] = "{'ec_clk_entry_miss'|@translate|@escape:javascript}"; |
|---|
| 378 | ec_JS_message['ec_confirm_force'] = "{'ec_confirm_force'|@translate|@escape:javascript}"; |
|---|
| 379 | ec_JS_message['ec_confirm_del_other'] = "{'ec_confirm_del_other'|@translate|@escape:javascript}"; |
|---|
| 380 | ec_JS_message['ec_user_already_exists'] = "{'ec_user_already_exists'|@translate|@escape:javascript}"; |
|---|
| 381 | ec_JS_message['ec_code_already_exists'] = "{'ec_code_already_exists'|@translate|@escape:javascript}"; |
|---|
| 382 | ec_JS_message['ec_conf_pwd_dont_match'] = "{'ec_conf_pwd_dont_match'|@translate|@escape:javascript}"; |
|---|
| 383 | ec_JS_message['ec_confirm_change_user'] = "{'ec_confirm_change_user'|@translate|@escape:javascript}"; |
|---|
| 384 | ec_JS_message['Home'] = "{'Home'|@translate}"; |
|---|
| 385 | ec_JS_message['ec_submit_code_miss'] = "{'ec_submit_code_miss'|@translate}"; |
|---|
| 386 | ec_JS_message['ec_submit_user_miss'] = "{'ec_submit_user_miss'|@translate}"; |
|---|
| 387 | ec_JS_message['ec_submit_action_miss'] = "{'ec_submit_action_miss'|@translate}"; |
|---|
| 388 | ec_JS_message['ec_submit_code_bad'] = "{'ec_submit_code_bad'|@translate}"; |
|---|
| 389 | ec_default_action = "{$ec_default_action}"; |
|---|
| 390 | ec_default_entry = "{$ec_default_entry}"; |
|---|
| 391 | ec_auto_code_digits_nb = "{$ec_def_auto_code_dg_nb}"; |
|---|
| 392 | {if $ec_is_creation} |
|---|
| 393 | {foreach from=$ec_lists.duplicable_codes.ids key=ec_key item=ec_val} |
|---|
| 394 | ec_duplic_codes[{$ec_key}] = {$ec_val}; |
|---|
| 395 | {/foreach} |
|---|
| 396 | {/if} |
|---|
| 397 | {foreach from=$ec_lists.ec_table item=ec_val name=listloop} |
|---|
| 398 | ec_lists_temp[{$smarty.foreach.listloop.index}] = |
|---|
| 399 | "{$ec_val.id};{$ec_val.code};{$ec_val.user_id};{$ec_val.action};{$ec_val.arg1};{$ec_val.arg2};{$ec_val.forced};{$ec_val.comment}"; |
|---|
| 400 | {/foreach} |
|---|
| 401 | ec_build_ec_lists(); |
|---|
| 402 | ec_init(); |
|---|
| 403 | //--></script> |
|---|
| 404 | |
|---|
| 405 | {include file=$FooterIncTPL} |
|---|