Changeset 8004 for extensions/event_cats
- Timestamp:
- Dec 6, 2010, 3:47:33 AM (14 years ago)
- Location:
- extensions/event_cats/admin
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/event_cats/admin/evntcats_admin.php
r7832 r8004 388 388 */ 389 389 390 $template->assign( 391 'HeaderIncTPL', realpath('plugins/event_cats/admin/template/header.inc.tpl') 392 ); 393 394 $template->assign( 395 'FooterIncTPL', realpath('plugins/event_cats/admin/template/footer.inc.tpl') 396 ); 390 $template->assign(array( 391 'HeaderIncTPL' => 392 realpath('plugins/event_cats/admin/template/header.inc.tpl'), 393 'SmartFieldsetIncTPL' => 394 realpath('plugins/event_cats/admin/template/ec_smart_fieldset.inc.tpl'), 395 'FooterIncTPL' => 396 realpath('plugins/event_cats/admin/template/footer.inc.tpl'), 397 )); 397 398 398 399 $template->assign( -
extensions/event_cats/admin/template/autolog_new.js
r7985 r8004 32 32 var ec_up_code_lbl_forced_txt = ''; 33 33 var ec_original_old_user = ''; 34 var ec_plus_bullet_path = ''; 35 var ec_minus_bullet_path = ''; 34 36 var ec_selected_old_entry = '-1'; 35 37 var ec_selected_old_code = '-1'; … … 172 174 (ec_selected_old_group) ? 'checked' : ''; 173 175 de('ec_act2_id').value = '-1'; 174 de('first_ fieldset_value_id').innerHTML= ec_new_code_text;176 de('first_cache_id').innerHTML = ec_new_code_text; 175 177 ec_update_comment(ec_new_comment_text); 176 178 break; … … 188 190 ec_selected_old_user = 189 191 ec_lists['user_id'][ec_selected_old_code]; 190 de('first_ fieldset_value_id').innerHTML=192 de('first_cache_id').innerHTML = 191 193 ec_lists['code'][t2.options[t2.selectedIndex].value]; 192 194 ec_update_comment( … … 244 246 de('ec_in_up_newgroup_id').checked = ''; 245 247 de('ec_in_up_usr_list_id').selectedIndex = '-1'; 246 de('second_ fieldset_value_id').innerHTML = '';248 de('second_cache_id').innerHTML = ''; 247 249 break; 248 250 case 'ec_sel_user_new': // New user … … 257 259 (ec_selected_old_group) ? 'checked' : ''; 258 260 de('ec_in_up_usr_list_id').selectedIndex = '-1'; 259 de('second_ fieldset_value_id').innerHTML = ec_new_user_text;261 de('second_cache_id').innerHTML = ec_new_user_text; 260 262 break; 261 263 case 'ec_sel_user_old': // "Old" user … … 268 270 de('ec_in_up_newgroup_id').checked = ''; 269 271 de('ec_in_up_usr_list_id').value = ec_selected_old_user; 270 de('second_ fieldset_value_id').innerHTML =272 de('second_cache_id').innerHTML = 271 273 t.options[t.selectedIndex].label; 272 274 break; … … 1013 1015 } 1014 1016 ec_mark_help(''); 1017 ec_init_smart_fieldset('first_fieldset_id', 'first_cache_id', 1018 ec_plus_bullet_path, ec_minus_bullet_path, '', false); 1019 ec_init_smart_fieldset('second_fieldset_id', 'second_cache_id', 1020 ec_plus_bullet_path, ec_minus_bullet_path, '', false); 1015 1021 jQuery(document).ready(function(){ 1022 jQuery('#first_cache_id').after(document.createElement('span')); 1023 jQuery('#first_cache_id').next().attr('id', 'first_fieldset_comment_id'); 1016 1024 jQuery('#ec_tmp_img').attr( 1017 1025 'src', jQuery('img.ui-datepicker-trigger:first').attr('src') 1018 1026 ); 1019 1027 ec_check_validity_on(); 1020 jQuery('#reduced_first_fieldset_legend_id').click(function(){1021 ec_toggle_fieldset(1022 '#reduced_first_fieldset_id', '#maximized_first_fieldset_id'1023 );1024 });1025 jQuery('#reduced_second_fieldset_legend_id').click(function(){1026 ec_toggle_fieldset(1027 '#reduced_second_fieldset_id', '#maximized_second_fieldset_id'1028 );1029 });1030 jQuery('#maximized_first_fieldset_legend_id').click(function(){1031 ec_toggle_fieldset(1032 '#reduced_first_fieldset_id', '#maximized_first_fieldset_id'1033 );1034 });1035 jQuery('#maximized_second_fieldset_legend_id').click(function(){1036 ec_toggle_fieldset(1037 '#reduced_second_fieldset_id', '#maximized_second_fieldset_id'1038 );1039 });1040 1028 jQuery('.ui-datepicker').click(function(){ 1041 1029 ec_validity_check_min(); … … 1055 1043 ec_check_validity_on(); 1056 1044 }); 1057 jQuery('.reduced_fieldsets').css({1058 'padding-left' : jQuery('fieldset').css('padding-left'),1059 'padding-right' : jQuery('fieldset').css('padding-right'),1060 'margin-left' : jQuery('fieldset').css('margin-left'),1061 'margin-right' : jQuery('fieldset').css('margin-right'),1062 'margin-top' : jQuery('fieldset').css('margin-top'),1063 'margin-bottom' : jQuery('fieldset').css('margin-bottom'),1064 });1065 jQuery('.plus_bullets').css(1066 'padding-left', jQuery('legend').css('padding-left')1067 );1068 jQuery('.reduced_fieldsets_legend').css({1069 'padding-left' : jQuery('fieldset').css('border-left-width'),1070 'padding-top' : jQuery('fieldset').css('border-top-width'),1071 'letter-spacing' : jQuery('legend').css('letter-spacing'),1072 });1073 1045 }); 1074 1046 return false; -
extensions/event_cats/admin/template/autolog_new.tpl
r7985 r8004 5 5 {include file = $HeaderIncTPL} 6 6 {include file = 'include/datepicker.inc.tpl'} 7 {include file = $SmartFieldsetIncTPL} 7 8 8 9 {* <!-- Specific CSS --> *} 9 {html_head} {literal} 10 {html_head} 11 {literal} 10 12 <link rel = "stylesheet" type = "text/css" href = "{$RACINE_URL}themes/default/js/ui/theme/ui.datepicker.css"> 11 13 <style type = "text/css"> … … 13 15 display:none; 14 16 } 15 .reduced_fieldsets {16 margin:0;17 padding:0;18 }19 .fieldsets_legend {20 cursor:pointer;21 }22 17 </style> 23 {/literal} {/html_head} 18 {/literal} 19 {/html_head} 24 20 25 21 {* <!-- JS functions --> *} … … 59 55 {* <!-- Parameters list --> *} 60 56 <form class = "filter" method = "post" name = "ec_new_code" action = "" onsubmit = "return ec_check_submit();"> 61 <p >57 <p style = "display:none;"> 62 58 <input type = "hidden" id = "ec_act1_id" name = "ec_act1"> 63 59 <input type = "hidden" id = "ec_act2_id" name = "ec_entry_sel"> … … 84 80 85 81 {* <!-- [ [ [New] / [existing] code] / [Existing entry] ] selection --> *} 86 <div id = "reduced_first_fieldset_id" class = "reduced_fieldsets" style = "display:none;"> 87 <span style = "font-weight:bold;" class = "reduced_fieldsets_legend fieldsets_legend" id = "reduced_first_fieldset_legend_id" 88 ><img class = "plus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/plus.png" 89 > <span id = "first_fieldset_legend_id" 90 >{if $ec_is_creation}{'Code'|@translate}{else}{'Selected entry'|@translate}{/if}</span> : </span 91 ><span id = "first_fieldset_value_id"></span><span id = "first_fieldset_comment_id"></span> 92 </div> 93 <fieldset id = "maximized_first_fieldset_id"> 94 <legend style = "font-weight:bold;" class = "fieldsets_legend" id = "maximized_first_fieldset_legend_id"> 95 <img class = "minus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/minus.png"> 96 <script type = "text/javascript">d.write(de('first_fieldset_legend_id').innerHTML);</script> 82 <fieldset id = "first_fieldset_id"> 83 <legend style = "font-weight:bold;"> 84 {if $ec_is_creation} 85 {'Code'|@translate} 86 {else} 87 {'Selected entry'|@translate} 88 {/if} 97 89 </legend> 98 90 <ul> … … 188 180 189 181 {* <!-- User to identify --> *} 190 <div id = "reduced_second_fieldset_id" class = "reduced_fieldsets" style = "display:none;"> 191 <span style = "font-weight:bold;" class = "reduced_fieldsets_legend fieldsets_legend" id = "reduced_second_fieldset_legend_id" 192 ><img class = "plus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/plus.png" 193 > {'Identified user'|@translate} : </span><span id = "second_fieldset_value_id"></span> 194 </div> 195 <fieldset id = "maximized_second_fieldset_id"> 196 <legend style = "font-weight:bold;" class = "fieldsets_legend" id = "maximized_second_fieldset_legend_id"> 197 <img class = "minus_bullets" alt = "" title = "" src = "{$EVNTCATS_URLS.ROOT}icon/minus.png"> 182 <fieldset id = "second_fieldset_id"> 183 <legend style = "font-weight:bold;"> 198 184 {'Identified user'|@translate} 199 <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn"> </span><br >185 <span style = "font-weight:bold; color:red;" id = "ec_in_up_pwd_warn"> </span><br /> 200 186 </legend> 201 187 <ul> … … 539 525 ec_default_entry = "{$ec_default_entry}"; 540 526 ec_auto_code_digits_nb = "{$ec_def_auto_code_dg_nb}"; 527 ec_plus_bullet_path = "{$EVNTCATS_URLS.ROOT}icon/plus.png"; 528 ec_minus_bullet_path = "{$EVNTCATS_URLS.ROOT}icon/minus.png"; 541 529 {if $ec_is_creation} 542 530 {foreach from = $ec_lists.duplicable_codes.ids key = ec_key item = ec_val}
Note: See TracChangeset
for help on using the changeset viewer.