| 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 | {* <!-- Remove a strange unwanted line at the bottom of the screen --> *} |
|---|
| 9 | {html_head} {literal} |
|---|
| 10 | <link rel = "stylesheet" type = "text/css" href = "{$RACINE_URL}themes/default/js/ui/theme/ui.datepicker.css"> |
|---|
| 11 | <style type = "text/css"> #ui-datepicker-div { display:none; } </style> |
|---|
| 12 | {/literal} {/html_head} |
|---|
| 13 | |
|---|
| 14 | {* <!-- Whether plugin Additionnal Pages is active or not, and help banner management --> *} |
|---|
| 15 | <div style = "text-align:right; font-style:italic;"> |
|---|
| 16 | <span id = "ec_help_banner2"> |
|---|
| 17 | {'Help banner'|@translate} |
|---|
| 18 | <label for = "ec_help_banner2_1" onclick = "ec_mark_help('ec_help_banner_1');"> |
|---|
| 19 | <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_1"/> |
|---|
| 20 | {'Show'|@translate} |
|---|
| 21 | </label> |
|---|
| 22 | |
|---|
| 23 | <label for = "ec_help_banner2_0" onclick = "ec_mark_help('ec_help_banner_0');"> |
|---|
| 24 | <input type = "radio" name = "ec_help_banner2_onoff" id = "ec_help_banner2_0"/> |
|---|
| 25 | {'Hide'|@translate} |
|---|
| 26 | </label> |
|---|
| 27 | — |
|---|
| 28 | </span> |
|---|
| 29 | {if $ec_ap_ok} |
|---|
| 30 | {'Additional Pages active'|@translate} |
|---|
| 31 | <script type = "text/javascript"> |
|---|
| 32 | var ec_ap_ok = {if count($ec_lists.add_pages) == 0}false{else}true{/if}; |
|---|
| 33 | </script> |
|---|
| 34 | {else} |
|---|
| 35 | {'Additional Pages inactive'|@translate} |
|---|
| 36 | <script type = "text/javascript"> |
|---|
| 37 | var ec_ap_ok = false; |
|---|
| 38 | </script> |
|---|
| 39 | {/if} |
|---|
| 40 | </div><span id = "ec_help_ban"></span> |
|---|
| 41 | <script type = "text/javascript"><!-- |
|---|
| 42 | document.getElementById('ec_help_banner2').style.display = "none"; |
|---|
| 43 | //--></script> |
|---|
| 44 | |
|---|
| 45 | {* <!-- Parameters list --> *} |
|---|
| 46 | <form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();"> |
|---|
| 47 | <p> |
|---|
| 48 | <input type = "hidden" id = "ec_act1_id" name = "ec_act1"> |
|---|
| 49 | <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel"> |
|---|
| 50 | </p> |
|---|
| 51 | |
|---|
| 52 | {* <!-- Page title. Can be "New entry" or "Entry modification" --> *} |
|---|
| 53 | <div style = "text-align:center;"> |
|---|
| 54 | <a style = "font-weight:bold; font-size:120%;" href = "#ec_top" name = "ec_top" title = "{'Place title on top ttip'|@translate}"> |
|---|
| 55 | <!--[if !IE]> <--> <label> <!--> <![endif]--> |
|---|
| 56 | {if $ec_is_creation} |
|---|
| 57 | {'New entry title'|@translate} |
|---|
| 58 | {else} |
|---|
| 59 | {'Modify entry title'|@translate} |
|---|
| 60 | {/if} |
|---|
| 61 | <!--[if !IE]> <--> </label> <!--> <![endif]--> |
|---|
| 62 | <!-- What we're able to do for our "prefered" browser |-( ...! --> |
|---|
| 63 | </a> |
|---|
| 64 | {if $ec_is_creation} |
|---|
| 65 | <br><br> |
|---|
| 66 | <input class = "submit" type = "button" value = "{'Full auto'|@translate}" |
|---|
| 67 | id = "ec_submit_gen_full_auto_id" onclick = "ec_gen_full_auto();" style = "margin-top:0;"/> |
|---|
| 68 | {/if} |
|---|
| 69 | </div> |
|---|
| 70 | |
|---|
| 71 | {* <!-- [ [ [New] / [existing] code] / [Existing entry] ] selection --> *} |
|---|
| 72 | <fieldset> |
|---|
| 73 | <legend style = "font-weight:bold;"> |
|---|
| 74 | {if $ec_is_creation} |
|---|
| 75 | {'Code'|@translate} |
|---|
| 76 | {else} |
|---|
| 77 | {'Selected entry'|@translate} |
|---|
| 78 | {/if} |
|---|
| 79 | </legend> |
|---|
| 80 | <ul> |
|---|
| 81 | |
|---|
| 82 | {if $ec_is_creation} |
|---|
| 83 | <li> |
|---|
| 84 | {* <!-- New code (to create) --> *} |
|---|
| 85 | <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code} > |
|---|
| 86 | <input type = "radio" name = "ec_sel_code" value = "new" id = "ec_sel_code_new"/> |
|---|
| 87 | {'New code'|@translate} |
|---|
| 88 | </label> |
|---|
| 89 | <span {$ec_hidden_when_no_code} > </span> |
|---|
| 90 | <label for = "ec_in_up_code_id" style = "margin:0;"> |
|---|
| 91 | <input class = "submit" type = "button" value = "{'Auto code button'|@translate}" |
|---|
| 92 | id = "ec_submit_gen_code_id" onclick = "ec_gen_code();" style = "margin:0;" |
|---|
| 93 | > |
|---|
| 94 | </label> |
|---|
| 95 | {'Auto code mid'|@translate} |
|---|
| 96 | <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;"> |
|---|
| 97 | {foreach from = $ec_auto_code_dg_nb item = ec_item name = listloop} |
|---|
| 98 | <option value = "{$ec_item}"> |
|---|
| 99 | {$ec_item} |
|---|
| 100 | {if $smarty.foreach.listloop.index == 0} |
|---|
| 101 | {'Auto code min'|@translate} |
|---|
| 102 | {/if} |
|---|
| 103 | {if $smarty.foreach.listloop.index == count($ec_auto_code_dg_nb) - 1} |
|---|
| 104 | {'Auto code max'|@translate} |
|---|
| 105 | {/if} |
|---|
| 106 | </option> |
|---|
| 107 | {/foreach} |
|---|
| 108 | </select> |
|---|
| 109 | {'Auto code end'|@translate}<br> |
|---|
| 110 | </li> |
|---|
| 111 | |
|---|
| 112 | <li style = "padding-left: 30px;"> |
|---|
| 113 | <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40" |
|---|
| 114 | id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);" |
|---|
| 115 | > |
|---|
| 116 | — |
|---|
| 117 | <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> |
|---|
| 118 | <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> |
|---|
| 119 | <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" |
|---|
| 120 | onchange = "ec_new_comment_text = this.value;" |
|---|
| 121 | > |
|---|
| 122 | </label> |
|---|
| 123 | </li> |
|---|
| 124 | |
|---|
| 125 | <li> |
|---|
| 126 | {* <!-- Known code --> *} |
|---|
| 127 | <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');" {$ec_hidden_when_no_code}> |
|---|
| 128 | <input type = "radio" name = "ec_sel_code" {$ec_hidden_when_no_code} value = "old" id = "ec_sel_code_old"> |
|---|
| 129 | {'Existing code'|@translate} |
|---|
| 130 | </label> |
|---|
| 131 | <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} > |
|---|
| 132 | {foreach from = $ec_lists.duplicable_codes.codes key = ec_key item = ec_val} |
|---|
| 133 | <option value = "{$ec_val.id}"> |
|---|
| 134 | {$ec_key} |
|---|
| 135 | {if $ec_val.comment != ''} |
|---|
| 136 | — {$ec_val.comment} |
|---|
| 137 | {/if} |
|---|
| 138 | </option> |
|---|
| 139 | {/foreach} |
|---|
| 140 | </select> |
|---|
| 141 | </li> |
|---|
| 142 | |
|---|
| 143 | {else} |
|---|
| 144 | |
|---|
| 145 | {* <!-- Existing entry selection --> *} |
|---|
| 146 | <li> |
|---|
| 147 | {* <!-- Entry choice --> *} |
|---|
| 148 | <select name = "ec_in_up_entry_list" id = "ec_in_up_entry_list_id" onchange = "ec_mark_entry(this.value);"> |
|---|
| 149 | {foreach from = $ec_lists.ec_table item = ec_val} |
|---|
| 150 | <option value = "{$ec_val.id}"> |
|---|
| 151 | {$ec_val.id} : {$ec_val.code} |
|---|
| 152 | {if $ec_val.comment != ''} |
|---|
| 153 | — {$ec_val.comment} |
|---|
| 154 | {/if} |
|---|
| 155 | </option> |
|---|
| 156 | {/foreach} |
|---|
| 157 | </select> |
|---|
| 158 | — |
|---|
| 159 | <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> |
|---|
| 160 | <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> |
|---|
| 161 | <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" |
|---|
| 162 | onchange = "ec_new_comment_text = this.value;"> |
|---|
| 163 | </label> |
|---|
| 164 | </li> |
|---|
| 165 | |
|---|
| 166 | {/if} |
|---|
| 167 | |
|---|
| 168 | </ul> |
|---|
| 169 | </fieldset> |
|---|
| 170 | |
|---|
| 171 | {* <!-- User to identify --> *} |
|---|
| 172 | <fieldset> |
|---|
| 173 | <legend style = "font-weight:bold;"> |
|---|
| 174 | {'Identified user'|@translate} |
|---|
| 175 | <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn"> </span><br> |
|---|
| 176 | </legend> |
|---|
| 177 | <ul> |
|---|
| 178 | |
|---|
| 179 | {if !$ec_is_creation} |
|---|
| 180 | <li> |
|---|
| 181 | {* <!-- None --> *} |
|---|
| 182 | <label onclick = "return ec_mark_user('ec_sel_user_none');"> |
|---|
| 183 | <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none"> |
|---|
| 184 | {'No user'|@translate} |
|---|
| 185 | </label><br> |
|---|
| 186 | </li> |
|---|
| 187 | {/if} |
|---|
| 188 | |
|---|
| 189 | <li> |
|---|
| 190 | {* <!-- New user (to create) --> *} |
|---|
| 191 | <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} > |
|---|
| 192 | <input type = "radio" name = "ec_sel_user" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user}> |
|---|
| 193 | {'New generic user'|@translate} |
|---|
| 194 | </label> |
|---|
| 195 | <span {$ec_hidden_when_no_user} > </span> |
|---|
| 196 | <label for = "ec_in_up_usr_txt_id" style = "margin:0;"> |
|---|
| 197 | <input class = "submit" type = "button" value = "{'Generate username'|@translate}" |
|---|
| 198 | id = "ec_submit_gen_user_id" onclick = "ec_gen_user();" |
|---|
| 199 | > |
|---|
| 200 | </label> |
|---|
| 201 | </li> |
|---|
| 202 | <li style = "padding-left: 30px;"> |
|---|
| 203 | <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New username'|@translate}<br> |
|---|
| 204 | <input type = "text" name = "login" id = "ec_in_up_usr_txt_id" maxlength = "50" |
|---|
| 205 | size = "20" onblur = "ec_new_user_text = this.value; ec_check_user_text();" |
|---|
| 206 | > |
|---|
| 207 | </label> |
|---|
| 208 | <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'New password'|@translate}<br> |
|---|
| 209 | <input type = "text" name = "password" id = "ec_in_up_psd_txt_id" maxlength = "32" |
|---|
| 210 | size = "20" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();" |
|---|
| 211 | > |
|---|
| 212 | </label> |
|---|
| 213 | <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'Confirm password'|@translate}<br> |
|---|
| 214 | <input type = "password" id = "ec_confirm_psd_txt_id" maxlength = "32" size = "20"/> |
|---|
| 215 | </label> |
|---|
| 216 | <label class = "ec_block" onclick = "ec_check_grp_text(); return ec_mark_user('ec_sel_user_new');" for = "ec_in_up_grp_txt_id"> |
|---|
| 217 | <input type = "checkbox" name = "ec_in_up_newgroup" id = "ec_in_up_newgroup_id" |
|---|
| 218 | onchange = "ec_selected_old_group = (this.checked != '');" |
|---|
| 219 | > |
|---|
| 220 | <span onMouseover = "ec_chk_over_grp = true;" onMouseout = "ec_chk_over_grp = false;"> |
|---|
| 221 | {'New group'|@translate} |
|---|
| 222 | </span><br> |
|---|
| 223 | <input type = "text" name = "groupname" id = "ec_in_up_grp_txt_id" maxlength = "32" |
|---|
| 224 | size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;" |
|---|
| 225 | > |
|---|
| 226 | </label><br> |
|---|
| 227 | </li> |
|---|
| 228 | |
|---|
| 229 | <li> |
|---|
| 230 | {* <!-- Known user --> *} |
|---|
| 231 | <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} > |
|---|
| 232 | <input type = "radio" name = "ec_sel_user" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old"> |
|---|
| 233 | {'Existing user'|@translate} |
|---|
| 234 | </label> |
|---|
| 235 | <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} > |
|---|
| 236 | {foreach from = $ec_lists.user_ids key = ec_key item = ec_val} |
|---|
| 237 | <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option> |
|---|
| 238 | {/foreach} |
|---|
| 239 | </select><br> |
|---|
| 240 | </li> |
|---|
| 241 | |
|---|
| 242 | </ul> |
|---|
| 243 | </fieldset> |
|---|
| 244 | |
|---|
| 245 | {* <!-- Page to display --> *} |
|---|
| 246 | <fieldset> |
|---|
| 247 | <legend style = "font-weight:bold;">{'Displayed page'|@translate}</legend> |
|---|
| 248 | <ul> |
|---|
| 249 | |
|---|
| 250 | <li> |
|---|
| 251 | <label class = "ec_block" for = "ec_in_up_forced_id" style = "margin-top:5px;" onclick = "ec_mark_forced();"> |
|---|
| 252 | <input type = "checkbox" name = "ec_in_up_forced" id = "ec_in_up_forced_id"> |
|---|
| 253 | <span id = "ec_style_forced_id"> </span> |
|---|
| 254 | </label> |
|---|
| 255 | </li> |
|---|
| 256 | |
|---|
| 257 | <li> |
|---|
| 258 | {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} |
|---|
| 259 | <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "return ec_mark_action('ec_input_action_add_p');" |
|---|
| 260 | {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} |
|---|
| 261 | > |
|---|
| 262 | <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p"> |
|---|
| 263 | {'Additional Page'|@translate}<br> |
|---|
| 264 | <select class = "categoryList" name = "ec_in_up_aps" size = "30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" > |
|---|
| 265 | {html_options options = $ec_lists.add_pages} |
|---|
| 266 | </select> |
|---|
| 267 | </label> |
|---|
| 268 | |
|---|
| 269 | {* <!-- Category, provided at least one category is available --> *} |
|---|
| 270 | <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');" |
|---|
| 271 | {if count($ec_lists.categories) == 0} style = "display:none;" {/if} |
|---|
| 272 | > |
|---|
| 273 | <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" |
|---|
| 274 | onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;" |
|---|
| 275 | > |
|---|
| 276 | <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br> |
|---|
| 277 | <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;"> |
|---|
| 278 | {html_options options = $ec_lists.categories} |
|---|
| 279 | </select> |
|---|
| 280 | </label> |
|---|
| 281 | |
|---|
| 282 | {* <!-- Image, provided at least one category is available and at least one image is associated to one category --> *} |
|---|
| 283 | <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');" |
|---|
| 284 | {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if} |
|---|
| 285 | > |
|---|
| 286 | <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img"> |
|---|
| 287 | {'Image id'|@translate}<br> |
|---|
| 288 | <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6" |
|---|
| 289 | size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');" |
|---|
| 290 | ><br> |
|---|
| 291 | <span id = "ec_in_up_imgs_warn"> </span><br> |
|---|
| 292 | </label> |
|---|
| 293 | |
|---|
| 294 | {* <!-- Index page --> *} |
|---|
| 295 | <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');"> |
|---|
| 296 | <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home"> |
|---|
| 297 | {'Home'|@translate} |
|---|
| 298 | </label> |
|---|
| 299 | |
|---|
| 300 | {* <!-- Access denied page (only when modifying an entry) --> *} |
|---|
| 301 | {if !$ec_is_creation} |
|---|
| 302 | <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');"> |
|---|
| 303 | <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused"> |
|---|
| 304 | {'Access denied'|@translate} |
|---|
| 305 | </label> |
|---|
| 306 | {/if} |
|---|
| 307 | </li> |
|---|
| 308 | |
|---|
| 309 | </ul> |
|---|
| 310 | </fieldset> |
|---|
| 311 | |
|---|
| 312 | {* <!-- Validity date --> *} |
|---|
| 313 | |
|---|
| 314 | {* |
|---|
| 315 | <!-- |
|---|
| 316 | Next steps: |
|---|
| 317 | _ check if initialize validity date with JS is doable; DONE |
|---|
| 318 | _ check if ' onchange = "ec_update_ts();" ' can be used; DONE |
|---|
| 319 | _ implement JS: |
|---|
| 320 | _ tick checkboxes when necessary; |
|---|
| 321 | _ throw proper information when submitting form. |
|---|
| 322 | _ implement PHP ; |
|---|
| 323 | _ commit, and drink a pint! |
|---|
| 324 | {''|@translate} |
|---|
| 325 | --> |
|---|
| 326 | *} |
|---|
| 327 | |
|---|
| 328 | <fieldset> |
|---|
| 329 | <legend style = "font-weight:bold;">{'Validity date'|@translate}</legend> |
|---|
| 330 | <table style = "margin-left: 0px; text-align:left;"> |
|---|
| 331 | <tr> |
|---|
| 332 | |
|---|
| 333 | <td style="vertical-align:top; margin-top:0;"> |
|---|
| 334 | <p style = "text-align:left; padding-bottom: 1em; padding-top: 0; margin-top: 0pt; font-weight: bold;"> |
|---|
| 335 | <label for = "ec_valid_date_on_id"> |
|---|
| 336 | <input type = "checkbox" name = "ec_valid_date_on" id = "ec_valid_date_on_id"> |
|---|
| 337 | {'Activate'|@translate} |
|---|
| 338 | </label> |
|---|
| 339 | </p> |
|---|
| 340 | <p style = "text-align:left;"> |
|---|
| 341 | <input type = "text" id = "ec_validity_sel_day" style = "text-align:right; border:none; cursor:default;" disabled = "disabled"> |
|---|
| 342 | <select id = "ec_validity_day_id" name = "ec_validity_day" class = "ec_valid_ctl ec_datepicker"> |
|---|
| 343 | <option value = "0">--</option> |
|---|
| 344 | {section name=day start=1 loop=32} |
|---|
| 345 | <option value = "{$smarty.section.day.index}"> |
|---|
| 346 | {$smarty.section.day.index} |
|---|
| 347 | </option> |
|---|
| 348 | {/section} |
|---|
| 349 | </select> |
|---|
| 350 | <select id = "ec_validity_month_id" name = "ec_validity_month" class = "ec_valid_ctl ec_datepicker"> |
|---|
| 351 | {html_options options=$month_list} |
|---|
| 352 | </select> |
|---|
| 353 | <input id = "ec_validity_year_id" name = "ec_validity_year" type = "text" size = "4" |
|---|
| 354 | maxlength = "4" style = "text-align:right; " class = "ec_valid_ctl ec_datepicker"> |
|---|
| 355 | <input id = "ec_validity_time_id" name = "ec_validity_time" type = "text" class = "ec_valid_ctl ec_datepicker" |
|---|
| 356 | size = "5" maxlength = "5" title = "{'Hours field tooltip'|@translate}" style = "text-align:right; "> |
|---|
| 357 | <input id = "ec_linked_date_id" name = "ec_linked_date_id" type = "hidden" size = "10" disabled = "disabled"> |
|---|
| 358 | <img id = "ec_tmp_img" class = "ui-datepicker-trigger" alt = "" title = "" |
|---|
| 359 | src = "{$EVNTCATS_URLS.ROOT}icon/tmp.png" style = "display:none; cursor:default;"> |
|---|
| 360 | </p> |
|---|
| 361 | <p style = "text-align:left;"> |
|---|
| 362 | <input id = "ec_date_today_btn_id" type = "button" value = "{'Now + 2 mn'|@translate}" |
|---|
| 363 | class = "ec_valid_ctl submit" title = "{'Now button tooltip'|@translate}" onclick = "ec_mark_now();"> — |
|---|
| 364 | <input id = "ec_set_time_to_btn_id" type = "button" value = "{'Set time to'|@translate}" |
|---|
| 365 | class = "ec_valid_ctl submit" onclick = "ec_valid_set_time_to(document.getElementById('ec_set_time_to_id').selectedIndex);"> |
|---|
| 366 | <select id = "ec_set_time_to_id" name = "ec_set_time_to" onchange = "ec_valid_set_time_to(this.selectedIndex);" class = "ec_valid_ctl"> |
|---|
| 367 | {section name=time start=0 loop=24} |
|---|
| 368 | <option label = "{if strlen($smarty.section.time.index) lt 2}0{/if}{$smarty.section.time.index}:00" value = "{$smarty.section.time.index}"> |
|---|
| 369 | {if strlen($smarty.section.time.index) lt 2}0{/if}{$smarty.section.time.index}:00 |
|---|
| 370 | </option> |
|---|
| 371 | {/section} |
|---|
| 372 | </select> |
|---|
| 373 | </p> |
|---|
| 374 | <p style = "text-align:left;"> |
|---|
| 375 | <input id = "ec_date_add_btn_id" type = "button" value = "{'Add'|@translate}" title = "{'Add button tooltip'|@translate}" class = "ec_valid_ctl submit" |
|---|
| 376 | onclick = "ec_add_time(document.getElementById('ec_date_add_val_id').value, document.getElementById('ec_date_add_kind_id').selectedIndex);"> |
|---|
| 377 | <input id = "ec_date_add_val_id" type = "text" size = "5" maxlength = "5" value = "" style = "text-align:right;" class = "ec_valid_ctl"> |
|---|
| 378 | <select id = "ec_date_add_kind_id" name = "ec_date_add_kind" class = "ec_valid_ctl"> |
|---|
| 379 | <option label = "{'Minutes'|@translate}" value = "minutes">{'Minutes'|@translate}</option> |
|---|
| 380 | <option label = "{'Hours'|@translate}" value = "hours" >{'Hours'|@translate}</option> |
|---|
| 381 | <option label = "{'Days'|@translate}" value = "days" >{'Days'|@translate}</option> |
|---|
| 382 | <option label = "{'Months'|@translate}" value = "months" >{'Months'|@translate}</option> |
|---|
| 383 | <option label = "{'Years'|@translate}" value = "years" >{'Years'|@translate}</option> |
|---|
| 384 | </select> |
|---|
| 385 | </p> |
|---|
| 386 | <br> |
|---|
| 387 | <table> |
|---|
| 388 | <tr> |
|---|
| 389 | <td style = "text-align:right; vertical-align:top; font-weight:bold;"> |
|---|
| 390 | <label for = "ec_notify_id" title = "{'Notify label tooltip'|@translate}"> |
|---|
| 391 | <input type = "checkbox" name = "ec_notify" id = "ec_notify_id" disabled = "disabled"> |
|---|
| 392 | {'Do notify'|@translate} |
|---|
| 393 | </label> |
|---|
| 394 | </td> |
|---|
| 395 | <td style = "text-align:left;"> |
|---|
| 396 | <ul style = "list-style-type:none; list-style-position:inside; padding-left:0.5em;"> |
|---|
| 397 | <li style = "margin-bottom:0;"> |
|---|
| 398 | <label for = "ec_notify_user_id"> |
|---|
| 399 | <input type = "checkbox" name = "ec_notify_user" id = "ec_notify_user_id" class = "ec_valid_ctl"> |
|---|
| 400 | {'The user'|@translate} |
|---|
| 401 | </label> |
|---|
| 402 | </li> |
|---|
| 403 | <li style = "margin-bottom:0;"> |
|---|
| 404 | <label for = "ec_notify_webm_id"> |
|---|
| 405 | <input type = "checkbox" name = "ec_notify_webm" id = "ec_notify_webm_id" class = "ec_valid_ctl"> |
|---|
| 406 | {'The webmaster'|@translate} |
|---|
| 407 | </label> |
|---|
| 408 | </li> |
|---|
| 409 | <li style = "margin-bottom:0;"> |
|---|
| 410 | <label for = "ec_notify_admins_id"> |
|---|
| 411 | <input type = "checkbox" name = "ec_notify_admins" id = "ec_notify_admins_id" class = "ec_valid_ctl"> |
|---|
| 412 | {'All administrators'|@translate} |
|---|
| 413 | </label> |
|---|
| 414 | </li> |
|---|
| 415 | </ul> |
|---|
| 416 | </td> |
|---|
| 417 | </tr> |
|---|
| 418 | </table> |
|---|
| 419 | <p style = "display:none;"> |
|---|
| 420 | <!-- jQuery datepicker: see (french) http://fr.piwigo.org/forum/viewtopic.php?id=19042 --> |
|---|
| 421 | <select id = "ec_min_day_id" name = "ec_min_day"> |
|---|
| 422 | <option value = "0">--</option> |
|---|
| 423 | {section name=day start=1 loop=32} |
|---|
| 424 | <option value = "{$smarty.section.day.index}"> |
|---|
| 425 | {$smarty.section.day.index} |
|---|
| 426 | </option> |
|---|
| 427 | {/section} |
|---|
| 428 | </select> |
|---|
| 429 | <select id = "ec_min_month_id" name = "ec_min_month"> |
|---|
| 430 | {html_options options=$month_list} |
|---|
| 431 | </select> |
|---|
| 432 | <input id = "ec_min_year_id" name = "ec_min_year" type = "text" size = "4" maxlength = "4"> |
|---|
| 433 | <input id = "ec_min_date_id" name = "ec_min_date_id" type = "hidden" disabled = "disabled"> |
|---|
| 434 | <input id = "ec_valid_offset_id" name = "ec_valid_offset" type = "text"> |
|---|
| 435 | </p> |
|---|
| 436 | {* <!-- For tests purpose; must be removed --> *} |
|---|
| 437 | <p style = "text-align:left;"> |
|---|
| 438 | <span id = "ec_span_tst_id"></span> |
|---|
| 439 | </p> |
|---|
| 440 | {* <!-- /For tests purpose; must be removed --> *} |
|---|
| 441 | </td> |
|---|
| 442 | |
|---|
| 443 | <td> </td><td> </td><td> </td> {* <!-- sorry :-\ --> *} |
|---|
| 444 | |
|---|
| 445 | <td style="vertical-align:top; margin-top:0;"> |
|---|
| 446 | <table> |
|---|
| 447 | <tr> |
|---|
| 448 | <td style = "text-align:right; vertical-align:top; font-weight:bold;"> |
|---|
| 449 | {'Page once code outdated'|@translate} |
|---|
| 450 | </td> |
|---|
| 451 | <td style = "text-align:left;"> |
|---|
| 452 | <ul style = "list-style-type:none; list-style-position:inside; padding-left: 0.5em;"> |
|---|
| 453 | <li style = "margin-bottom:0;"> |
|---|
| 454 | <label for = "ec_date_unknown_0_id"> |
|---|
| 455 | <input type = "radio" name = "ec_date_unknown" value = "0" id = "ec_date_unknown_0_id" class = "ec_valid_ctl"> |
|---|
| 456 | {'Home'|@translate} |
|---|
| 457 | </label> |
|---|
| 458 | </li> |
|---|
| 459 | <li style = "margin-bottom:0;"> |
|---|
| 460 | <label for = "ec_date_unknown_1_id"> |
|---|
| 461 | <input type = "radio" name = "ec_date_unknown" value = "1" id = "ec_date_unknown_1_id" class = "ec_valid_ctl"> |
|---|
| 462 | {'Access denied'|@translate} |
|---|
| 463 | </label> |
|---|
| 464 | </li> |
|---|
| 465 | {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} |
|---|
| 466 | <li {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {else} style = "margin-bottom:0;" {/if} > |
|---|
| 467 | <label for = "ec_date_in_up_aps_id"> |
|---|
| 468 | <input type = "radio" name = "ec_date_unknown" value = "2" id = "ec_date_unknown_2_id" class = "ec_valid_ctl"> |
|---|
| 469 | {'Additional Page'|@translate}<br> |
|---|
| 470 | <select class = "ec_valid_ctl categoryList" name = "ec_date_in_up_aps" size = "30" id = "ec_date_in_up_aps_id" > |
|---|
| 471 | {html_options options = $ec_lists.add_pages} |
|---|
| 472 | </select> |
|---|
| 473 | </label> |
|---|
| 474 | </li> |
|---|
| 475 | </ul> |
|---|
| 476 | </td> |
|---|
| 477 | </tr> |
|---|
| 478 | </table> |
|---|
| 479 | </td> |
|---|
| 480 | |
|---|
| 481 | </tr> |
|---|
| 482 | </table> |
|---|
| 483 | |
|---|
| 484 | </fieldset> |
|---|
| 485 | |
|---|
| 486 | |
|---|
| 487 | <p style = "margin-top:0;"> |
|---|
| 488 | <input class = "submit" type = "submit" value = "{'Submit'|@translate}" style = "margin-top:1em;"> |
|---|
| 489 | <input class = "submit" type = "submit" value = "{'Reset'|@translate}" onclick = "return ec_init();" style = "margin-top:1em;"> |
|---|
| 490 | </p> |
|---|
| 491 | </form> |
|---|
| 492 | |
|---|
| 493 | {* <!-- JavaScript functions --> *} |
|---|
| 494 | <script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script> |
|---|
| 495 | <script type = "text/javascript"><!-- |
|---|
| 496 | ec_is_creation = {if $ec_is_creation}true{else}false{/if}; |
|---|
| 497 | ec_validity_on = {if $ec_validity_on}true{else}false{/if}; |
|---|
| 498 | ec_up_code_lbl_forced_txt = "{'Forced'|@translate}"; |
|---|
| 499 | ec_JS_message['ec_gen_user_act_miss'] = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}"; |
|---|
| 500 | ec_JS_message['ec_act_cat_miss'] = "{'ec_act_cat_miss'|@translate|@escape:javascript}"; |
|---|
| 501 | ec_JS_message['ec_act_img_miss'] = "{'ec_act_img_miss'|@translate|@escape:javascript}"; |
|---|
| 502 | ec_JS_message['ec_new_pwd_gen'] = "{'ec_new_pwd_gen'|@translate|@escape:javascript}"; |
|---|
| 503 | ec_JS_message['ec_clk_entry_miss'] = "{'ec_clk_entry_miss'|@translate|@escape:javascript}"; |
|---|
| 504 | ec_JS_message['ec_confirm_force'] = "{'ec_confirm_force'|@translate|@escape:javascript}"; |
|---|
| 505 | ec_JS_message['ec_confirm_del_other'] = "{'ec_confirm_del_other'|@translate|@escape:javascript}"; |
|---|
| 506 | ec_JS_message['ec_user_already_exists'] = "{'ec_user_already_exists'|@translate|@escape:javascript}"; |
|---|
| 507 | ec_JS_message['ec_code_already_exists'] = "{'ec_code_already_exists'|@translate|@escape:javascript}"; |
|---|
| 508 | ec_JS_message['ec_conf_pwd_dont_match'] = "{'ec_conf_pwd_dont_match'|@translate|@escape:javascript}"; |
|---|
| 509 | ec_JS_message['ec_confirm_change_user'] = "{'ec_confirm_change_user'|@translate|@escape:javascript}"; |
|---|
| 510 | ec_JS_message['Home'] = "{'Home'|@translate}"; |
|---|
| 511 | ec_JS_message['ec_submit_code_miss'] = "{'ec_submit_code_miss'|@translate}"; |
|---|
| 512 | ec_JS_message['ec_submit_user_miss'] = "{'ec_submit_user_miss'|@translate}"; |
|---|
| 513 | ec_JS_message['ec_submit_action_miss'] = "{'ec_submit_action_miss'|@translate}"; |
|---|
| 514 | ec_JS_message['ec_submit_code_bad'] = "{'ec_submit_code_bad'|@translate}"; |
|---|
| 515 | ec_default_action = "{$ec_default_action}"; |
|---|
| 516 | ec_default_entry = "{$ec_default_entry}"; |
|---|
| 517 | ec_auto_code_digits_nb = "{$ec_def_auto_code_dg_nb}"; |
|---|
| 518 | {if $ec_is_creation} |
|---|
| 519 | {foreach from = $ec_lists.duplicable_codes.ids key = ec_key item = ec_val} |
|---|
| 520 | ec_duplic_codes[{$ec_key}] = {$ec_val}; |
|---|
| 521 | {/foreach} |
|---|
| 522 | {/if} |
|---|
| 523 | {foreach from = $ec_lists.ec_table item = ec_val name = listloop} |
|---|
| 524 | ec_lists_temp[{$smarty.foreach.listloop.index}] = |
|---|
| 525 | "{$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}"; |
|---|
| 526 | {/foreach} |
|---|
| 527 | {foreach from = $ec_days item = ec_day name = listloop} |
|---|
| 528 | ec_validity_days[{$smarty.foreach.listloop.index}] = "{$ec_day}"; |
|---|
| 529 | {/foreach} |
|---|
| 530 | ec_build_ec_lists(); |
|---|
| 531 | ec_init(); |
|---|
| 532 | //--> |
|---|
| 533 | </script> |
|---|
| 534 | |
|---|
| 535 | {include file = $FooterIncTPL} |
|---|