Changeset 4157 for extensions/event_cats/admin/template/autolog_new.tpl
- Timestamp:
- Oct 31, 2009, 4:59:48 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/template/autolog_new.tpl
r4116 r4157 23 23 <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel" /> 24 24 25 {* <!-- Page title. Can be "New entry" or " New entry / Entry modification" whether some entries already exist or not--> *}25 {* <!-- Page title. Can be "New entry" or "Entry modification" --> *} 26 26 <div style = "text-align:center;"> 27 <span style = "font-weight:bold; font-size:120%;"> 28 {if $ec_hidden_when_no_code != ''} 29 <a href = "#ec_top" name = "ec_top" title = "{'ec_top_title'|@translate}"> 30 {/if} 31 <label for = "ec_page_type_create" {if $ec_hidden_when_no_code == ''} onclick = "ec_mark_type('create_ask');" {/if}> 32 {if $ec_hidden_when_no_code == ''} 33 <input type = "radio" id = "ec_page_type_create" {* onclick = "ec_mark_type('create_ask');" *} {if $ec_is_creation} checked = "checked" {/if} /> 34 {/if} 35 <span {if $ec_is_creation and $ec_hidden_when_no_code == ''} style = "text-decoration:underline;" {/if}>{'ec_new_entry_title'|@translate}</span> 27 <a style = "font-weight:bold; font-size:120%;" href = "#ec_top" name = "ec_top" title = "{'ec_top_title'|@translate}"> 28 <label> 29 {if $ec_is_creation} 30 {'ec_new_entry_title'|@translate} 31 {else} 32 {'ec_modify_entry_title'|@translate} 33 {/if} 36 34 </label> 37 {if $ec_hidden_when_no_code == ''} 38 <a href = "#ec_top" name = "ec_top" title = "{'ec_top_title'|@translate}"> 39 <label style = "font-weight:bold; font-size:120%;"> // </label> 40 {/if} 41 </a> 42 <label for = "ec_page_type_modify" onclick = "ec_mark_type('modify_entry_ask');" {$ec_hidden_when_no_code}> 43 <input type = "radio" id = "ec_page_type_modify" {* onclick = "ec_mark_type('modify_entry_ask');" *} {if !$ec_is_creation} checked = "checked" {/if} /> 44 <span {if !$ec_is_creation} style = "text-decoration:underline;" {/if}>{'ec_modify_entry_title'|@translate}</span> 45 </label> 46 </span> 35 </a> 47 36 {if $ec_is_creation} 48 37 <br><br> … … 97 86 <ul><li> 98 87 <input type = "text" name = "ec_in_up_code" maxlength = "32" size = "40" 99 id = "ec_in_up_code_id" onblur = "ec_check_code_text( );"88 id = "ec_in_up_code_id" onblur = "ec_check_code_text(this.value);" 100 89 /> 101 90 </li></ul> … … 160 149 <label class = "ec_block" onclick = "return ec_mark_user('ec_sel_user_new');">{'ec_new_user_name'|@translate}<br> 161 150 <input type = "text" name = "ec_in_up_usr_txt" id = "ec_in_up_usr_txt_id" maxlength = "32" 162 size = "20" onblur = "ec_new_user_text = this.value; "151 size = "20" onblur = "ec_new_user_text = this.value; ec_check_user_text();" 163 152 /> 164 153 </label> … … 168 157 /> 169 158 </label> 170 <label class = "ec_block"> <br> 171 <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn"> </span> 172 </label> 173 159 <label class = "ec_block" onclick = "ec_check_grp_text(); return ec_mark_user('ec_sel_user_new');" for = "ec_in_up_grp_txt_id"> 160 <input type = "checkbox" name = "ec_in_up_newgroup" id = "ec_in_up_newgroup_id" 161 onchange = "ec_selected_old_group = (this.checked != '');" 162 /> 163 <span onMouseover = "ec_chk_over_grp = true;" onMouseout = "ec_chk_over_grp = false;"> 164 {'ec_new_user_group'|@translate} 165 </span><br> 166 <input type = "text" name = "ec_in_up_grp_txt" id = "ec_in_up_grp_txt_id" maxlength = "32" 167 size = "20" onblur = "ec_new_grp_text = this.value; if (this.value != '') ec_selected_old_group = true;" 168 /> 169 </label> 170 <label class = "ec_block"><span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn1"> </span><br> 171 <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn2"> </span> 172 </label> 174 173 </li></ul><br> 175 174 </li> … … 212 211 </label> 213 212 214 {* <!-- Category --> *} 215 <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');"> 213 {* <!-- Category, provided at least one category is available --> *} 214 <label class = "ec_block" for = "ec_in_up_cats_id" onclick = "return ec_mark_action('ec_input_action_cat');" 215 {if count($ec_lists.categories) == 0} style = "display:none;" {/if} 216 > 216 217 <input type = "radio" name = "ec_input_action" value = "cat" id = "ec_input_action_cat" for = "ec_in_up_cats_id" 217 218 onMouseover = "ec_chk_nover_cat = false;" onMouseout = "ec_chk_nover_cat = true;" … … 223 224 </label> 224 225 225 {* <!-- Image --> *} 226 <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');"> 226 {* <!-- Image, provided at least one category is available and at least one image is associated to one category --> *} 227 <label class = "ec_block" for = "ec_in_up_imgs_id" onclick = "return ec_mark_action('ec_input_action_img');" 228 {if $ec_no_assoc or count($ec_lists.categories) == 0} style = "display:none;" {/if} 229 > 227 230 <input type = "radio" name = "ec_input_action" value = "img" id = "ec_input_action_img" for = "ec_in_up_imgs_id" /> 228 231 {'ec_up_code_lbl_img'|@translate}<br> … … 263 266 ec_JS_message['ec_act_cat_miss'] = "{'ec_act_cat_miss'|@translate|@escape:javascript}"; 264 267 ec_JS_message['ec_act_img_miss'] = "{'ec_act_img_miss'|@translate|@escape:javascript}"; 265 ec_JS_message['ec_new_pwd_gen'] = "{'ec_new_pwd_gen'|@translate|@escape:javascript}"; 268 ec_JS_message['ec_new_pwd_gen1'] = "{'ec_new_pwd_gen1'|@translate|@escape:javascript}"; 269 ec_JS_message['ec_new_pwd_gen2'] = "{'ec_new_pwd_gen2'|@translate|@escape:javascript}"; 266 270 ec_JS_message['ec_act_entry_miss'] = "{'ec_act_entry_miss'|@translate|@escape:javascript}"; 267 271 ec_JS_message['ec_confirm_del_other'] = "{'ec_confirm_del_other'|@translate|@escape:javascript}"; 272 ec_JS_message['ec_user_already_exists'] = "{'ec_user_already_exists'|@translate|@escape:javascript}"; 273 ec_JS_message['ec_code_already_exists'] = "{'ec_code_already_exists'|@translate|@escape:javascript}"; 268 274 ec_JS_message['ec_up_code_lbl_home'] = "{'ec_up_code_lbl_home'|@translate}"; 269 275 ec_JS_message['ec_submit_code_miss'] = "{'ec_submit_code_miss'|@translate}"; … … 279 285 {/foreach} 280 286 {/if} 281 {foreach from=$ec_lists.ec_table item=ec_val} 282 ec_lists['user_id']['{$ec_val.id}'] = "{$ec_val.user_id}"; 283 ec_lists['action']['{$ec_val.id}'] = "{$ec_val.action}"; 284 ec_lists['arg1']['{$ec_val.id}'] = "{$ec_val.arg1}"; 285 ec_lists['arg2']['{$ec_val.id}'] = "{$ec_val.arg2}"; 286 ec_lists['forced']['{$ec_val.id}'] = "{$ec_val.forced}"; 287 {foreach from=$ec_lists.ec_table item=ec_val name=listloop} 288 ec_lists_temp[{$smarty.foreach.listloop.index}] = "{$ec_val.id};{$ec_val.user_id};{$ec_val.action};{$ec_val.arg1};{$ec_val.arg2};{$ec_val.forced}"; 287 289 {/foreach} 290 ec_build_ec_lists(); 288 291 ec_init(); 289 292 //--></script>
Note: See TracChangeset
for help on using the changeset viewer.