| 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> |
| | 112 | </li> |
| | 113 | <li style = "padding-left: 30px;"> |
| | 114 | <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40" |
| | 115 | id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);" |
| | 116 | /> |
| | 117 | — |
| | 118 | <label for = "ec_in_up_comment_id" style = "margin:0;" title = "{'Optional'|@translate}"> |
| | 119 | <span style = "font-weight:bold; font-style:italic;">{'Comment'|@translate}</span> |
| | 120 | <input type = "text" name = "ec_in_up_comment" maxlength = "100" size = "50" id = "ec_in_up_comment_id" |
| | 121 | onchange = "ec_new_comment_text = this.value;" |
| | 122 | /> |
| | 123 | </label> |
| 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> |
| | 192 | {* <!-- New user (to create) --> *} |
| | 193 | <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} > |
| | 194 | <input type = "radio" name = "ec_sel_user" value = "new" id = "ec_sel_user_new" {$ec_hidden_when_no_user} /> |
| | 195 | {'New generic user'|@translate} |
| | 196 | </label> |
| | 197 | <span {$ec_hidden_when_no_user} > </span> |
| | 198 | <label for = "ec_in_up_usr_txt_id" style = "margin:0;"> |
| | 199 | <input class = "submit" type = "button" name = "ec_submit_gen_user" value = "{'Generate username'|@translate}" |
| | 200 | id = "ec_submit_gen_user_id" onclick = "ec_gen_user();" |
| | 201 | /> |
| | 202 | </label> |
| | 203 | </li> |
| 214 | | </label> |
| 215 | | </li><br /> |
| | 228 | </label><br /> |
| | 229 | </li> |
| | 230 | |
| | 231 | <li> |
| | 232 | {* <!-- Known user --> *} |
| | 233 | <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} > |
| | 234 | <input type = "radio" name = "ec_sel_user" {$ec_hidden_when_no_user} value = "old" id = "ec_sel_user_old" /> |
| | 235 | {'Existing user'|@translate} |
| | 236 | </label> |
| | 237 | <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} > |
| | 238 | {foreach from = $ec_lists.user_ids key = ec_key item = ec_val} |
| | 239 | <option label = "{$ec_val}" value = "{$ec_key}" >{$ec_val}</option> |
| | 240 | {/foreach} |
| | 241 | </select><br /> |
| | 242 | </li> |
| | 243 | </ul> |
| | 244 | |
| | 245 | </fieldset> |
| | 246 | |
| | 247 | {* <!-- Page to display --> *} |
| | 248 | <fieldset style = "float:left;"> |
| | 249 | <legend style = "font-weight:bold;">{'Displayed page'|@translate}</legend> |
| | 250 | |
| | 251 | <ul> |
| | 252 | <li> |
| | 253 | <label class = "ec_block" for = "ec_in_up_forced_id" style = "margin-top:5px;" onclick = "ec_mark_forced();"> |
| | 254 | <input type = "checkbox" name = "ec_in_up_forced" id = "ec_in_up_forced_id"> |
| | 255 | <span id = "ec_style_forced_id"> </span> |
| | 256 | </label> |
| 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} |
| | 260 | {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} |
| | 261 | <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "return ec_mark_action('ec_input_action_add_p');" |
| | 262 | {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} |
| | 263 | > |
| | 264 | <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" /> |
| | 265 | {'Additional Page'|@translate}<br /> |
| | 266 | <select class = "categoryList" name = "ec_in_up_aps" size = "30" id = "ec_in_up_aps_id" onchange = "ec_selected_AP = this.value;" > |
| | 267 | {html_options options = $ec_lists.add_pages} |
| | 268 | </select> |
| 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 /> |
| | 270 | |
| | 271 | {* <!-- Category, provided at least one category is available --> *} |
| | 272 | <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');" |
| | 273 | {if count($ec_lists.categories) == 0} style = "display:none;" {/if} |
| | 274 | > |
| | 275 | <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" |
| | 276 | onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;" |
| | 277 | /> |
| | 278 | <span onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;">{'Category'|@translate}</span><br /> |
| | 279 | <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" onchange = "ec_selected_cat = this.value;"> |
| | 280 | {html_options options = $ec_lists.categories} |
| | 281 | </select> |
| | 282 | </label> |
| | 283 | |
| | 284 | {* <!-- Image, provided at least one category is available and at least one image is associated to one category --> *} |
| | 285 | <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');" |
| | 286 | {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if} |
| | 287 | > |
| | 288 | <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" /> |
| | 289 | {'Image id'|@translate}<br /> |
| | 290 | <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6" |
| | 291 | size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');" |
| | 292 | /><br /> |
| | 293 | <span id = "ec_in_up_imgs_warn"> </span><br /> |
| | 294 | </label> |
| | 295 | |
| | 296 | {* <!-- Index page --> *} |
| | 297 | <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');"> |
| | 298 | <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home" /> |
| | 299 | {'Home'|@translate} |
| | 300 | </label> |
| | 301 | |
| | 302 | {* <!-- Access denied page (only when modifying an entry) --> *} |
| | 303 | {if !$ec_is_creation} |
| | 304 | <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');"> |
| | 305 | <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused" /> |
| | 306 | {'Access denied'|@translate} |
| | 307 | </label> |
| | 308 | {/if} |
| 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> |
| | 310 | </ul> |
| 359 | | </script> |
| | 379 | </script><br /> |
| | 380 | <table> |
| | 381 | <tr> |
| | 382 | <td style = "text-align:right; vertical-align:top; font-weight:bold;"> |
| | 383 | Page à utiliser : |
| | 384 | </td> |
| | 385 | <td> |
| | 386 | <label for = "ec_date_unknown_0_id"> |
| | 387 | <input type = "radio" name = "ec_date_unknown" value = "0" id = "ec_date_unknown_0_id" /> |
| | 388 | {'Home'|@translate} |
| | 389 | </label><br /> |
| | 390 | <label for = "ec_date_unknown_1_id"> |
| | 391 | <input type = "radio" name = "ec_date_unknown" value = "1" id = "ec_date_unknown_1_id" /> |
| | 392 | {'Access denied'|@translate} |
| | 393 | </label><br /> |
| | 394 | {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} |
| | 395 | <label class = "ec_date_block" for = "ec_date_in_up_aps_id" {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} > |
| | 396 | <input type = "radio" name = "ec_date_unknown" value = "2" id = "ec_date_unknown_2_id" /> |
| | 397 | {'Additional Page'|@translate}<br /> |
| | 398 | <select class = "categoryList" name = "ec_date_in_up_aps" size = "30" id = "ec_date_in_up_aps_id" > |
| | 399 | {html_options options = $ec_lists.add_pages} |
| | 400 | </select> |
| | 401 | </label> |
| | 402 | </td> |
| | 403 | </tr> |
| | 404 | </table> |
| | 405 | |