[5058] | 1 | {* <!-- Event Cats (event categories) LucMorizur June 2009 - ... --> *} |
---|
[3999] | 2 | |
---|
[4421] | 3 | {* <!-- Keeps file coded in UTF-8 without BOM : é --> *} |
---|
| 4 | |
---|
[6269] | 5 | {include file=$HeaderIncTPL} |
---|
[7165] | 6 | {include file='include/datepicker.inc.tpl'} |
---|
[3999] | 7 | |
---|
[4437] | 8 | {* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *} |
---|
[3999] | 9 | <div style = "text-align:right; font-style:italic;"> |
---|
[4437] | 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"/> |
---|
[4443] | 14 | {'Show'|@translate} |
---|
[4437] | 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"/> |
---|
[4443] | 19 | {'Hide'|@translate} |
---|
[4437] | 20 | </label> |
---|
| 21 | — |
---|
| 22 | </span> |
---|
[3999] | 23 | {if $ec_ap_ok} |
---|
[4329] | 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}; |
---|
[3999] | 27 | </script> |
---|
| 28 | {else} |
---|
[4329] | 29 | {'Additional Pages inactive'|@translate} |
---|
| 30 | <script type = "text/javascript"> |
---|
| 31 | var ec_ap_ok = false; |
---|
[3999] | 32 | </script> |
---|
| 33 | {/if} |
---|
[4437] | 34 | </div><span id = "ec_help_ban"></span> |
---|
| 35 | <script type = "text/javascript"><!-- |
---|
| 36 | document.getElementById('ec_help_banner2').style.display = "none"; |
---|
| 37 | //--></script> |
---|
[3999] | 38 | |
---|
| 39 | {* <!-- Parameters list --> *} |
---|
[4019] | 40 | <form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();"> |
---|
[4002] | 41 | <input type = "hidden" id = "ec_act1_id" name = "ec_act1" /> |
---|
[4058] | 42 | <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel" /> |
---|
[3999] | 43 | |
---|
[4157] | 44 | {* <!-- Page title. Can be "New entry" or "Entry modification" --> *} |
---|
[4002] | 45 | <div style = "text-align:center;"> |
---|
[4329] | 46 | <a style = "font-weight:bold; font-size:120%;" href = "#ec_top" name = "ec_top" title = "{'Place title on top ttip'|@translate}"> |
---|
[4181] | 47 | <!--[if !IE]> <--> <label> <!--> <![endif]--> |
---|
[4157] | 48 | {if $ec_is_creation} |
---|
[4329] | 49 | {'New entry title'|@translate} |
---|
[4157] | 50 | {else} |
---|
[4329] | 51 | {'Modify entry title'|@translate} |
---|
[4092] | 52 | {/if} |
---|
[4181] | 53 | <!--[if !IE]> <--> </label> <!--> <![endif]--> |
---|
| 54 | <!-- What we're able to do for our "prefered" browser |-( ...! --> |
---|
[4157] | 55 | </a> |
---|
[4058] | 56 | {if $ec_is_creation} |
---|
[4329] | 57 | <br /><br /> |
---|
| 58 | <input class = "submit" type = "button" name = "ec_submit_gen_full_auto" value = "{'Full auto'|@translate}" |
---|
[4058] | 59 | id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/> |
---|
| 60 | {/if} |
---|
[4371] | 61 | </div> |
---|
[4002] | 62 | |
---|
[4371] | 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> |
---|
[3999] | 72 | |
---|
[4371] | 73 | {if $ec_is_creation} |
---|
[4027] | 74 | <li> |
---|
[4371] | 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} |
---|
[3999] | 79 | </label> |
---|
[4371] | 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;" |
---|
[4112] | 84 | /> |
---|
[4371] | 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 | /> |
---|
[4418] | 105 | — |
---|
[4440] | 106 | <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> |
---|
[4486] | 107 | <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> |
---|
[4438] | 108 | <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" |
---|
[4440] | 109 | onchange = "ec_new_comment_text = this.value;" |
---|
[4438] | 110 | /> |
---|
| 111 | </label> |
---|
[4371] | 112 | </li> |
---|
[4027] | 113 | </li> |
---|
| 114 | |
---|
| 115 | <li> |
---|
[4371] | 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} |
---|
[3999] | 120 | </label> |
---|
[4371] | 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} |
---|
[4418] | 123 | <option value = "{$ec_val.id}"> |
---|
| 124 | {$ec_key} |
---|
| 125 | {if $ec_val.comment != ''} |
---|
| 126 | — {$ec_val.comment} |
---|
| 127 | {/if} |
---|
| 128 | </option> |
---|
[4027] | 129 | {/foreach} |
---|
[4418] | 130 | </select> |
---|
[4027] | 131 | </li> |
---|
[4228] | 132 | |
---|
[4371] | 133 | {else} |
---|
| 134 | |
---|
| 135 | {* <!-- Existing entry selection --> *} |
---|
[4228] | 136 | <li> |
---|
[4371] | 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} |
---|
[4418] | 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> |
---|
[4371] | 146 | {/foreach} |
---|
| 147 | </select> |
---|
[4418] | 148 | — |
---|
[4440] | 149 | <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> |
---|
[4438] | 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" |
---|
[4440] | 152 | onchange = "ec_new_comment_text = this.value;" |
---|
[4438] | 153 | /> |
---|
| 154 | </label> |
---|
[4228] | 155 | </li> |
---|
[3999] | 156 | |
---|
[4371] | 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} |
---|
[4228] | 169 | <li> |
---|
[4371] | 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 | /> |
---|
[4418] | 189 | </label> |
---|
[4371] | 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 | /> |
---|
[4058] | 195 | </label> |
---|
[4371] | 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();" |
---|
[4228] | 199 | /> |
---|
| 200 | </label> |
---|
[4371] | 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 --> *} |
---|
[7165] | 234 | <fieldset style = "float:left;"> |
---|
[4371] | 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 /> |
---|
[4418] | 278 | <span id = "ec_in_up_imgs_warn"> </span><br /> |
---|
[4371] | 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 | |
---|
[7165] | 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-13" name = "date_creation_day-13"> |
---|
| 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" >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-13" name = "date_creation_month-13"> |
---|
| 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">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-13" name = "date_creation_year-13" type = "text" size = "4" maxlength = "4" value = "2010"> |
---|
| 353 | <input id = "date_creation_linked_date-13" name = "date_creation_linked_date-13" type = "hidden" size = "10" disabled = "disabled"> |
---|
| 354 | <script type = "text/javascript"> |
---|
| 355 | pwg_initialization_datepicker("#date_creation_day-13", "#date_creation_month-13", |
---|
| 356 | "#date_creation_year-13", "#date_creation_linked_date-13", "#date_creation_action_set-13"); |
---|
| 357 | </script> |
---|
| 358 | </fieldset> |
---|
| 359 | |
---|
| 360 | <p style = "clear:both;"> |
---|
[4019] | 361 | <input class = "submit" type = "submit" value = "{'Submit'|@translate}"/> |
---|
[4112] | 362 | <input class = "submit" type = "submit" value = "{'Reset'|@translate}" onclick = "return ec_init();"/> |
---|
[3999] | 363 | </p> |
---|
| 364 | </form> |
---|
| 365 | |
---|
| 366 | {* <!-- JavaScript functions --> *} |
---|
[4002] | 367 | <script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script> |
---|
| 368 | <script type = "text/javascript"><!-- |
---|
[4112] | 369 | ec_is_creation = {if $ec_is_creation}true{else}false{/if}; |
---|
[4329] | 370 | ec_up_code_lbl_forced_txt = "{'Forced'|@translate}"; |
---|
[4112] | 371 | ec_JS_message['ec_gen_user_act_miss'] = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}"; |
---|
| 372 | ec_JS_message['ec_act_cat_miss'] = "{'ec_act_cat_miss'|@translate|@escape:javascript}"; |
---|
| 373 | ec_JS_message['ec_act_img_miss'] = "{'ec_act_img_miss'|@translate|@escape:javascript}"; |
---|
[4263] | 374 | ec_JS_message['ec_new_pwd_gen'] = "{'ec_new_pwd_gen'|@translate|@escape:javascript}"; |
---|
[4472] | 375 | ec_JS_message['ec_clk_entry_miss'] = "{'ec_clk_entry_miss'|@translate|@escape:javascript}"; |
---|
[4181] | 376 | ec_JS_message['ec_confirm_force'] = "{'ec_confirm_force'|@translate|@escape:javascript}"; |
---|
[4112] | 377 | ec_JS_message['ec_confirm_del_other'] = "{'ec_confirm_del_other'|@translate|@escape:javascript}"; |
---|
[4157] | 378 | ec_JS_message['ec_user_already_exists'] = "{'ec_user_already_exists'|@translate|@escape:javascript}"; |
---|
| 379 | ec_JS_message['ec_code_already_exists'] = "{'ec_code_already_exists'|@translate|@escape:javascript}"; |
---|
[4158] | 380 | ec_JS_message['ec_conf_pwd_dont_match'] = "{'ec_conf_pwd_dont_match'|@translate|@escape:javascript}"; |
---|
[4181] | 381 | ec_JS_message['ec_confirm_change_user'] = "{'ec_confirm_change_user'|@translate|@escape:javascript}"; |
---|
[4329] | 382 | ec_JS_message['Home'] = "{'Home'|@translate}"; |
---|
[4112] | 383 | ec_JS_message['ec_submit_code_miss'] = "{'ec_submit_code_miss'|@translate}"; |
---|
| 384 | ec_JS_message['ec_submit_user_miss'] = "{'ec_submit_user_miss'|@translate}"; |
---|
| 385 | ec_JS_message['ec_submit_action_miss'] = "{'ec_submit_action_miss'|@translate}"; |
---|
| 386 | ec_JS_message['ec_submit_code_bad'] = "{'ec_submit_code_bad'|@translate}"; |
---|
| 387 | ec_default_action = "{$ec_default_action}"; |
---|
| 388 | ec_default_entry = "{$ec_default_entry}"; |
---|
| 389 | ec_auto_code_digits_nb = "{$ec_def_auto_code_dg_nb}"; |
---|
| 390 | {if $ec_is_creation} |
---|
| 391 | {foreach from=$ec_lists.duplicable_codes.ids key=ec_key item=ec_val} |
---|
| 392 | ec_duplic_codes[{$ec_key}] = {$ec_val}; |
---|
| 393 | {/foreach} |
---|
| 394 | {/if} |
---|
[4157] | 395 | {foreach from=$ec_lists.ec_table item=ec_val name=listloop} |
---|
[4418] | 396 | ec_lists_temp[{$smarty.foreach.listloop.index}] = |
---|
| 397 | "{$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}"; |
---|
[4116] | 398 | {/foreach} |
---|
[4157] | 399 | ec_build_ec_lists(); |
---|
[3999] | 400 | ec_init(); |
---|
[4002] | 401 | //--></script> |
---|
[3999] | 402 | |
---|
[6269] | 403 | {include file=$FooterIncTPL} |
---|