Changeset 4064 for extensions/event_cats/admin
- Timestamp:
- Oct 19, 2009, 11:27:29 PM (15 years ago)
- Location:
- extensions/event_cats/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/evntcats_admin.php
r4058 r4064 115 115 l10n('ec_tab_autoid_entries'), 116 116 $my_base_url.'&tab=autolog_entries'); 117 $tabsheet->add('autolog_new', 118 l10n('ec_tab_autoid_new'),117 $tabsheet->add('autolog_new', l10n(($ec_exist_entries) ? 118 'ec_tab_autoid_new2' : 'ec_tab_autoid_new1'), 119 119 $my_base_url.'&tab=autolog_new'); 120 120 $tabsheet->add('duplication', -
extensions/event_cats/admin/template/autolog_new.js
r4058 r4064 12 12 var ec_flag2 = false; 13 13 var ec_dont_check = false; 14 var ec_is_creation = false; 14 15 var ec_err = ''; 15 16 var ec_selected_action = ''; … … 26 27 var ec_selected_old_entry = '-1'; 27 28 var ec_selected_old_code = '-1'; 29 var ec_selected_old_code2 = '-1'; 28 30 var ec_selected_old_user = '-1'; 31 var ec_selected_old_user2 = '-1'; 29 32 var ec_selected_AP = '-1'; 30 33 var ec_selected_cat = '-1'; … … 46 49 var t = new Array(); 47 50 var r = /,/g; 48 document.getElementById('ec_act2_id').value = ec_id; 49 t = document.getElementById('ec_in_up_entry_list_id').options[ 50 document.getElementById('ec_in_up_entry_list_id').selectedIndex 51 ].label.split(r); 51 if (ec_id == '-1') ec_init(); else { 52 document.getElementById('ec_act2_id').value = ec_id; 53 t = document.getElementById('ec_in_up_entry_list_id').options[ 54 document.getElementById('ec_in_up_entry_list_id').selectedIndex 55 ].label.split(r); 52 56 // t[0] : user_id ; t[1] : action ; t[2] : arg1 ; t[3] : arg2 ; t[4] : forced 53 if (ec_check_exist_value('ec_in_up_usr_list_id', t[0])) { 54 ec_selected_user = 'ec_sel_user_old'; 55 ec_selected_old_user = t[0]; 56 if (t[2] != '' && t[1].lastIndexOf('ec_ok') != -1) i++; 57 if (t[3] != '') { i++; i++; } 58 switch (i) { 59 case 0: // Home 60 ec_selected_action = 'ec_input_action_home'; 61 break; 62 case 1: // Category 63 ec_selected_action = 'ec_input_action_cat'; 64 ec_selected_cat = t[2]; 65 break; 66 case 2: // Additionnal Page 67 ec_selected_action = 'ec_input_action_add_p'; 57 if (ec_check_exist_value('ec_in_up_usr_list_id', t[0])) { 58 ec_selected_user = 'ec_sel_user_old'; 59 ec_selected_old_user = t[0]; 60 if (t[2] != '' && t[1].lastIndexOf('ec_ok') != -1) i++; 61 if (t[3] != '') { i++; i++; } 62 switch (i) { 63 case 0: // Home 64 ec_selected_action = 'ec_input_action_home'; 65 break; 66 case 1: // Category 67 ec_selected_action = 'ec_input_action_cat'; 68 ec_selected_cat = (ec_check_exist_value('ec_in_up_cats_id', t[2])) ? 69 t[2] : '-1'; 70 break; 71 case 2: // Additionnal Page 72 ec_selected_action = 'ec_input_action_add_p'; 73 ec_selected_cat = (ec_check_exist_value('ec_in_up_aps_id', t[3])) ? 74 t[3] : '-1'; 75 break; 76 case 3: // Image 77 ec_selected_action = 'ec_input_action_img'; 78 ec_selected_cat = (ec_check_exist_value('ec_in_up_cats_id', t[2])) ? 79 t[2] : '-1'; 80 ec_selected_img = t[3]; 81 break; 82 } 83 document.getElementById('ec_in_up_forced_id').checked = 84 (t[4] == 'true') ? 'checked' : ''; 85 ec_mark_action(ec_selected_action); 86 } 87 else { 88 ec_selected_user = 'ec_sel_user_none'; 89 document.getElementById('ec_in_up_forced_id').checked = ''; 90 if (ec_check_exist_value('ec_in_up_aps_id', t[3])) { 68 91 ec_selected_AP = t[3]; 69 break; 70 case 3: // Image 71 ec_selected_action = 'ec_input_action_img'; 72 ec_selected_cat = t[2]; 73 ec_selected_img = t[3]; 74 break; 75 } 76 document.getElementById('ec_in_up_forced_id').checked = 77 (t[4] == 'true') ? 'checked' : ''; 78 ec_mark_action(ec_selected_action); 79 } 80 else { 81 ec_selected_user = 'ec_sel_user_none'; 82 document.getElementById('ec_in_up_forced_id').checked = ''; 83 if (ec_check_exist_value('ec_in_up_aps_id', t[3])) { 84 ec_selected_AP = t[3]; 85 ec_mark_action('ec_input_action_add_p'); 86 } 87 else { 88 ec_mark_action('ec_input_action_refused'); 92 ec_mark_action('ec_input_action_add_p'); 93 } 94 else { 95 ec_mark_action('ec_input_action_refused'); 96 } 89 97 } 90 98 } … … 97 105 ) { 98 106 var t1 = ''; 99 ec_selected_code = ec_id; 107 if (ec_id == 'ec_sel_code_old' && ec_selected_old_code == '-1') { 108 ec_selected_code = 'ec_sel_code_new'; 109 ec_selected_old_code = ec_selected_old_code2; 110 } 111 else ec_selected_code = ec_id; 100 112 document.getElementById(ec_selected_code).checked = 'checked'; 101 113 switch (ec_selected_code) { … … 131 143 132 144 function ec_mark_user(ec_id) { 133 if (ec_flag1 || 145 if ( 146 !ec_is_creation && 147 document.getElementById('ec_in_up_entry_list_id').value == '-1' 148 ) { 149 alert(ec_JS_message['ec_act_entry_miss']); 150 return false; 151 } 152 else if (ec_flag1 || 134 153 !(document.getElementById('ec_sel_user_old').disabled == 'disabled' || 135 154 document.getElementById('ec_sel_user_old').disabled == true) 136 155 ) { 137 ec_selected_user = ec_id; 156 if (ec_id == 'ec_sel_user_old' && ec_selected_old_user == '-1') { 157 ec_selected_user = 158 (ec_is_creation) ? 'ec_sel_user_new' : 'ec_sel_user_none'; 159 ec_selected_old_user = ec_selected_old_user2; 160 } 161 else ec_selected_user = ec_id; 138 162 document.getElementById(ec_selected_user).checked = 'checked'; 139 163 switch (ec_selected_user) { 140 164 case 'ec_sel_user_none': // None 141 165 ec_selected_action = 142 (ec_ap_ok && (ec_selected_action != 'ec_input_action_ home')) ?143 'ec_input_action_add_p' : 'ec_input_action_ home';166 (ec_ap_ok && (ec_selected_action != 'ec_input_action_refused')) ? 167 'ec_input_action_add_p' : 'ec_input_action_refused'; 144 168 document.getElementById('ec_in_up_usr_txt_id').value = ''; 145 169 document.getElementById('ec_in_up_psd_txt_id').value = ''; … … 147 171 break; 148 172 case 'ec_sel_user_new': // New user 173 if (ec_selected_action == 'ec_input_action_refused') 174 ec_selected_action = 'ec_input_action_home'; 149 175 document.getElementById('ec_in_up_usr_txt_id').value = 150 176 ec_new_user_text; … … 154 180 break; 155 181 case 'ec_sel_user_old': // "Old" user 182 if (ec_selected_action == 'ec_input_action_refused') 183 ec_selected_action = 'ec_input_action_home'; 156 184 document.getElementById('ec_in_up_usr_txt_id').value = ''; 157 185 document.getElementById('ec_in_up_psd_txt_id').value = ''; … … 167 195 } 168 196 } 197 return true; 169 198 } 170 199 171 200 function ec_mark_action(ec_id) { 172 ec_selected_action = ec_id; 173 if (ec_selected_action != '') { 174 document.getElementById(ec_selected_action).checked = 'checked'; 175 switch (ec_selected_action) { 176 case 'ec_input_action_add_p': // Additional Page 177 document.getElementById('ec_in_up_aps_id').value = ec_selected_AP; 178 document.getElementById('ec_in_up_cats_id').value = '-1'; 179 document.getElementById('ec_in_up_imgs_id').value = ''; 180 document.getElementById('ec_in_up_imgs_warn').innerHTML = ''; 181 break; 182 case 'ec_input_action_cat': // Category 183 document.getElementById('ec_in_up_aps_id').value = '-1'; 184 document.getElementById('ec_in_up_cats_id').value = ec_selected_cat; 185 document.getElementById('ec_in_up_imgs_id').value = ''; 186 ec_selected_user = (ec_selected_user == 'ec_sel_user_none') ? 187 'ec_sel_user_old' : ec_selected_user; 188 document.getElementById('ec_in_up_imgs_warn').innerHTML = ''; 189 break; 190 case 'ec_input_action_img': // Image 191 document.getElementById('ec_in_up_aps_id').value = '-1'; 192 document.getElementById('ec_in_up_cats_id').value = ec_selected_cat; 193 document.getElementById('ec_in_up_imgs_id').value = ec_selected_img; 194 ec_selected_user = (ec_selected_user == 'ec_sel_user_none') ? 195 'ec_sel_user_old' : ec_selected_user; 196 ec_check_img_text(); 197 break; 198 case 'ec_input_action_home': // Home 199 document.getElementById('ec_in_up_aps_id').value = '-1'; 200 document.getElementById('ec_in_up_cats_id').value = '-1'; 201 document.getElementById('ec_in_up_imgs_id').value = ''; 202 document.getElementById('ec_in_up_imgs_warn').innerHTML = ''; 203 break; 204 case 'ec_input_action_refused': // Access denied 205 document.getElementById('ec_in_up_aps_id').value = '-1'; 206 document.getElementById('ec_in_up_cats_id').value = '-1'; 207 document.getElementById('ec_in_up_imgs_id').value = ''; 208 ec_selected_user = 'ec_sel_user_none'; 209 document.getElementById('ec_in_up_imgs_warn').innerHTML = ''; 210 break; 211 } 212 if (ec_avoid_infinite_loop) { 213 ec_avoid_infinite_loop = false; 214 ec_mark_user(ec_selected_user); 215 ec_avoid_infinite_loop = true; 216 } 217 ec_mark_forced(); 218 } 201 if ( 202 !ec_is_creation && 203 document.getElementById('ec_in_up_entry_list_id').value == '-1' 204 ) { 205 alert(ec_JS_message['ec_act_entry_miss']); 206 return false; 207 } 208 else { 209 ec_selected_action = ec_id; 210 if (ec_selected_action != '') { 211 document.getElementById(ec_selected_action).checked = 'checked'; 212 switch (ec_selected_action) { 213 case 'ec_input_action_add_p': // Additional Page 214 document.getElementById('ec_in_up_aps_id').value = ec_selected_AP; 215 document.getElementById('ec_in_up_cats_id').value = '-1'; 216 document.getElementById('ec_in_up_imgs_id').value = ''; 217 document.getElementById('ec_in_up_imgs_warn').innerHTML = ''; 218 break; 219 case 'ec_input_action_cat': // Category 220 document.getElementById('ec_in_up_aps_id').value = '-1'; 221 document.getElementById('ec_in_up_cats_id').value = ec_selected_cat; 222 document.getElementById('ec_in_up_imgs_id').value = ''; 223 ec_selected_user = (ec_selected_user == 'ec_sel_user_none') ? 224 'ec_sel_user_old' : ec_selected_user; 225 document.getElementById('ec_in_up_imgs_warn').innerHTML = ''; 226 break; 227 case 'ec_input_action_img': // Image 228 document.getElementById('ec_in_up_aps_id').value = '-1'; 229 document.getElementById('ec_in_up_cats_id').value = ec_selected_cat; 230 document.getElementById('ec_in_up_imgs_id').value = ec_selected_img; 231 ec_selected_user = (ec_selected_user == 'ec_sel_user_none') ? 232 'ec_sel_user_old' : ec_selected_user; 233 ec_check_img_text(); 234 break; 235 case 'ec_input_action_home': // Home 236 document.getElementById('ec_in_up_aps_id').value = '-1'; 237 document.getElementById('ec_in_up_cats_id').value = '-1'; 238 document.getElementById('ec_in_up_imgs_id').value = ''; 239 document.getElementById('ec_in_up_imgs_warn').innerHTML = ''; 240 ec_selected_user = (ec_selected_user == 'ec_sel_user_none') ? 241 'ec_sel_user_old' : ec_selected_user; 242 break; 243 case 'ec_input_action_refused': // Access denied 244 document.getElementById('ec_in_up_aps_id').value = '-1'; 245 document.getElementById('ec_in_up_cats_id').value = '-1'; 246 document.getElementById('ec_in_up_imgs_id').value = ''; 247 ec_selected_user = 'ec_sel_user_none'; 248 document.getElementById('ec_in_up_imgs_warn').innerHTML = ''; 249 break; 250 } 251 if (ec_avoid_infinite_loop) { 252 ec_avoid_infinite_loop = false; 253 ec_mark_user(ec_selected_user); 254 ec_avoid_infinite_loop = true; 255 } 256 ec_mark_forced(); 257 } 258 } 259 return true; 219 260 } 220 261 … … 436 477 } 437 478 479 function ec_change_user_list(ec_id) { 480 ec_selected_old_user2 = ec_selected_old_user; 481 ec_selected_old_user = ec_id; 482 ec_mark_user('ec_sel_user_old'); 483 } 484 438 485 function ec_change_code_list(ec_id) { 486 ec_selected_old_code2 = ec_selected_old_code; 439 487 ec_selected_old_code = ec_id; 440 488 ec_mark_code('ec_sel_code_old'); … … 454 502 function ec_init() { 455 503 var d = document; 456 ec_err = ''; 457 ec_selected_user = 'ec_sel_user_old'; 458 ec_selected_code = 'ec_sel_code_new'; 459 ec_selected_old_user = '-1'; 460 ec_selected_old_code = '-1'; 461 ec_selected_AP = '-1'; 462 ec_selected_cat = '-1'; 463 ec_selected_action = ''; 464 ec_selected_img = ''; 465 ec_new_code_text = ''; 466 ec_new_user_text = ''; 467 ec_new_psd_text = ''; 468 ec_old_new_psd_text = ''; 469 ec_test_reg = ''; 504 ec_err = ''; 505 ec_selected_action = ''; 506 ec_selected_img = ''; 507 ec_new_code_text = ''; 508 ec_new_user_text = ''; 509 ec_new_psd_text = ''; 510 ec_old_new_psd_text = ''; 511 ec_test_reg = ''; 512 ec_selected_old_user = '-1'; 513 ec_selected_old_code = '-1'; 514 ec_selected_old_code2 = '-1'; 515 ec_selected_AP = '-1'; 516 ec_selected_cat = '-1'; 517 ec_selected_old_user2 = '-1'; 518 ec_selected_user = 'ec_sel_user_old'; 519 ec_selected_code = 'ec_sel_code_new'; 470 520 d.getElementById('ec_style_forced_id').innerHTML = 471 521 ec_up_code_lbl_forced_txt; -
extensions/event_cats/admin/template/autolog_new.tpl
r4058 r4064 28 28 <a href = "#ec_top" name = "ec_top" title = "{'ec_top_title'|@translate}"> 29 29 {/if} 30 <label for = "ec_page_type_create" onclick = "ec_mark_type('create');" >30 <label for = "ec_page_type_create" onclick = "ec_mark_type('create');" {if $ec_is_creation} style = "text-decoration:underline;" {/if}> 31 31 <input type = "radio" id = "ec_page_type_create" onclick = "ec_mark_type('create');" {if $ec_is_creation} checked = "checked" {/if} /> 32 32 {'ec_new_entry_title'|@translate} 33 33 </label> 34 34 {if $ec_hidden_when_no_code == ''} 35 <a href = "#ec_top" name = "ec_top" title = "{'ec_top_title'|@translate}"> / 35 <a href = "#ec_top" name = "ec_top" title = "{'ec_top_title'|@translate}"> •• 36 36 {/if} 37 37 </a> 38 <label for = "ec_page_type_modify" onclick = "ec_mark_type('modify_entry_ask');" {$ec_hidden_when_no_code}> 38 <label for = "ec_page_type_modify" onclick = "ec_mark_type('modify_entry_ask');" 39 {$ec_hidden_when_no_code} {if !$ec_is_creation} style = "text-decoration:underline;" {/if} 40 > 39 41 <input type = "radio" id = "ec_page_type_modify" onclick = "ec_mark_type('modify_entry_ask');" {if !$ec_is_creation} checked = "checked" {/if} /> 40 42 {'ec_modify_entry_title'|@translate} … … 107 109 {'ec_up_code_lbl_code_old'|@translate} 108 110 </label> 109 <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');"111 <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" 110 112 onchange = "ec_change_code_list(this.value);" {$ec_hidden_when_no_code} 111 113 > … … 123 125 {* <!-- Entry choice --> *} 124 126 <select name = "ec_in_up_entry_list" id = "ec_in_up_entry_list_id" onchange = "ec_mark_entry(this.value);"> 125 <option label = "" value = "-1">------------</option>127 <option value = "-1" label = "">------------</option> 126 128 {foreach from=$ec_lists.ec_table item=ec_val} 127 129 <option value = "{$ec_val.id}" label = "{$ec_val.user_id},{$ec_val.action},{$ec_val.arg1},{$ec_val.arg2},{$ec_val.forced}"> … … 143 145 <li> 144 146 {* <!-- None --> *} 145 <label onclick = " ec_mark_user('ec_sel_user_none');">147 <label onclick = "return ec_mark_user('ec_sel_user_none');"> 146 148 <input type = "radio" name = "ec_sel_user" value = "none" id = "ec_sel_user_none" 147 onclick = " ec_mark_user('ec_sel_user_none');"149 onclick = "return ec_mark_user('ec_sel_user_none');" 148 150 /> 149 151 {'ec_up_code_lbl_user_none'|@translate} … … 154 156 <li> 155 157 {* <!-- New user (to create) --> *} 156 <label for = "ec_in_up_usr_txt_id" onclick = " ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} >158 <label for = "ec_in_up_usr_txt_id" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} > 157 159 <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new" 158 id = "ec_sel_user_new" onclick = " ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user}160 id = "ec_sel_user_new" onclick = "return ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} 159 161 /> 160 162 {'ec_up_code_lbl_user_new'|@translate} … … 167 169 <label class = "ec_block">{'ec_new_user_name'|@translate}<br> 168 170 <input type = "text" name = "ec_in_up_usr_txt" id = "ec_in_up_usr_txt_id" maxlength = "32" 169 size = "20" onclick = " ec_mark_user('ec_sel_user_new');" onblur = "ec_new_user_text = this.value;"171 size = "20" onclick = "return ec_mark_user('ec_sel_user_new');" onblur = "ec_new_user_text = this.value;" 170 172 /> 171 173 </label> 172 174 <label class = "ec_block">{'ec_new_user_pswd'|@translate}<br> 173 175 <input type = "text" name = "ec_in_up_psd_txt" id = "ec_in_up_psd_txt_id" maxlength = "32" 174 size = "20" onclick = " ec_mark_user('ec_sel_user_new');" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();"176 size = "20" onclick = "return ec_mark_user('ec_sel_user_new');" onblur = "ec_new_psd_text = this.value; ec_check_pwd_text();" 175 177 /> 176 178 </label> … … 184 186 <li> 185 187 {* <!-- Known user --> *} 186 <label for = "ec_in_up_usr_list_id" onclick = " ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} >188 <label for = "ec_in_up_usr_list_id" onclick = "return ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} > 187 189 <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id" {$ec_hidden_when_no_user} 188 value = "old" id = "ec_sel_user_old" onclick = " ec_mark_user('ec_sel_user_old');"190 value = "old" id = "ec_sel_user_old" onclick = "return ec_mark_user('ec_sel_user_old');" 189 191 /> 190 192 {'ec_up_code_lbl_user_old'|@translate} 191 193 </label> 192 <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" onclick = "ec_mark_user('ec_sel_user_old');"193 onchange = "ec_ selected_old_user = this.value;" {$ec_hidden_when_no_user}194 <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" 195 onchange = "ec_change_user_list(this.value);" {$ec_hidden_when_no_user} 194 196 > 195 197 <option label = "------------" value = "-1" {$ec_hidden_when_no_user} >------------</option> … … 214 216 215 217 {* <!-- Additionnal Page, provided the plugin is activated and at least one Add. P. is available --> *} 216 <label class = "ec_block" for = "ec_in_up_aps_id" onclick = " ec_mark_action('ec_input_action_add_p');"217 {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if}218 <label class = "ec_block" for = "ec_in_up_aps_id" onclick = "return ec_mark_action('ec_input_action_add_p');" 219 {if !$ec_ap_ok or count($ec_lists.add_pages) == 0} style = "display:none;" {/if} 218 220 > 219 221 <input type = "radio" name = "ec_input_action" value = "add_p" id = "ec_input_action_add_p" for = "ec_in_up_aps_id" 220 onclick = " ec_mark_action('ec_input_action_add_p');"222 onclick = "return ec_mark_action('ec_input_action_add_p');" 221 223 /> 222 224 {'ec_up_code_lbl_aps'|@translate}<br> 223 225 <select class = "categoryList" name = "ec_in_up_aps" size="30" id = "ec_in_up_aps_id" 224 onclick = " ec_mark_action('ec_input_action_add_p');" onchange = "ec_selected_AP = this.value;"226 onclick = "return ec_mark_action('ec_input_action_add_p');" onchange = "ec_selected_AP = this.value;" 225 227 > 226 228 <option label = "------------" value = "-1" style = "display:none;">------------</option> … … 230 232 231 233 {* <!-- Category --> *} 232 <label class = "ec_block" for = "ec_in_up_cats_id" onclick = " ec_mark_action('ec_input_action_cat');">234 <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');"> 233 235 <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" for = "ec_in_up_cats_id" 234 onclick = " ec_mark_action('ec_input_action_cat');"236 onclick = "return ec_mark_action('ec_input_action_cat');" 235 237 /> 236 238 {'ec_up_code_lbl_cats'|@translate}<br> 237 239 <select class = "categoryList" name = "ec_in_up_cat" size = "30" id = "ec_in_up_cats_id" 238 onclick = " ec_mark_action('ec_input_action_cat');" onchange = "ec_selected_cat = this.value;"240 onclick = "return ec_mark_action('ec_input_action_cat');" onchange = "ec_selected_cat = this.value;" 239 241 > 240 242 <option label = "------------" value = "-1" style = "display:none;">------------</option> … … 244 246 245 247 {* <!-- Image --> *} 246 <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = " ec_mark_action('ec_input_action_img');">248 <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');"> 247 249 <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id" 248 onclick = " ec_mark_action('ec_input_action_img');"250 onclick = "return ec_mark_action('ec_input_action_img');" 249 251 /> 250 252 {'ec_up_code_lbl_img'|@translate}<br> 251 253 <input type = "text" name = "ec_in_up_img" id = "ec_in_up_imgs_id" maxlength = "6" 252 size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = " ec_mark_action('ec_input_action_img');"254 size = "10" onblur = "ec_selected_img = this.value; ec_check_img_text();" onfocus = "return ec_mark_action('ec_input_action_img');" 253 255 /><br> 254 <span id = "ec_in_up_imgs_warn"> </span>256 <span id = "ec_in_up_imgs_warn"></span> 255 257 </label> 256 258 257 259 {* <!-- Index page --> *} 258 <label class = "ec_block" onclick = " ec_mark_action('ec_input_action_home');">260 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_home');"> 259 261 <input type = "radio" name = "ec_input_action" value = "home" id = "ec_input_action_home" 260 onclick = " ec_mark_action('ec_input_action_home');"262 onclick = "return ec_mark_action('ec_input_action_home');" 261 263 /> 262 264 {'ec_up_code_lbl_home'|@translate} … … 265 267 {* <!-- Access denied page (only when modifying an entry) --> *} 266 268 {if !$ec_is_creation} 267 <label class = "ec_block" onclick = " ec_mark_action('ec_input_action_refused');">269 <label class = "ec_block" onclick = "return ec_mark_action('ec_input_action_refused');"> 268 270 <input type = "radio" name = "ec_input_action" value = "refused" id = "ec_input_action_refused" 269 onclick = " ec_mark_action('ec_input_action_refused');"271 onclick = "return ec_mark_action('ec_input_action_refused');" 270 272 /> 271 273 {'ec_up_code_lbl_refused'|@translate} … … 284 286 <script type = "text/javascript" src = "{$RACINE_URL}{$EVNTCATS_PATH}admin/template/autolog_new.js"></script> 285 287 <script type = "text/javascript"><!-- 288 ec_is_creation = {if $ec_is_creation}true{else}false{/if}; 286 289 ec_up_code_lbl_forced_txt = "{'ec_up_code_lbl_forced'|@translate}"; 287 290 ec_JS_message['ec_gen_user_act_miss'] = "{'ec_gen_user_act_miss'|@translate|@escape:javascript}"; … … 289 292 ec_JS_message['ec_act_img_miss'] = "{'ec_act_img_miss'|@translate|@escape:javascript}"; 290 293 ec_JS_message['ec_new_pwd_gen'] = "{'ec_new_pwd_gen'|@translate|@escape:javascript}"; 294 ec_JS_message['ec_act_entry_miss'] = "{'ec_act_entry_miss'|@translate|@escape:javascript}"; 291 295 ec_JS_message['ec_up_code_lbl_home'] = "{'ec_up_code_lbl_home'|@translate}"; 292 296 ec_JS_message['ec_submit_code_miss'] = "{'ec_submit_code_miss'|@translate}";
Note: See TracChangeset
for help on using the changeset viewer.