Changeset 4048


Ignore:
Timestamp:
Oct 15, 2009, 10:51:07 PM (11 years ago)
Author:
LucMorizur
Message:

[Event Cats] Mainly add header & footer, add choose new/old code

Location:
extensions/event_cats
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/autolog_new.inc.php

    r4027 r4048  
    5757
    5858$ec_lists['duplicable_codes'] = array();
     59$t = array();
    5960
    6061foreach ($ec_lists['ec_table'] as $ec_entry) {
     
    6465    $ec_entry['forced'] == 'false'
    6566  ) {
    66     $ec_lists['duplicable_codes'][$ec_entry['code']] = $ec_entry['user_id'];
     67    $t[$ec_entry['id']] = $ec_entry['code'];
     68    $ec_lists['duplicable_codes'][$ec_entry['code']]['id'] =
     69     $ec_entry['id'];
     70    $ec_lists['duplicable_codes'][$ec_entry['code']]['user_id'] =
     71     $ec_entry['user_id'];
    6772  }
     73}
     74foreach ($t as $ec_id => $ec_code) {
     75  $ec_lists['duplicable_codes']['ids'][$ec_id] =
     76   $ec_lists['duplicable_codes'][$ec_code]['id'];
    6877}
    6978
    7079$ec_def_vals = array();
    7180
    72 $ec_def_vals['code'] = '';
    73 $ec_def_vals['user'] = '-1';
    74 $ec_def_vals['act1'] = 'create';
    75 $ec_def_vals['auto_code_dg_nb'] = read_ec_conf('auto_code_dg_nb');
     81$ec_default_action = 'create';
     82$ec_def_auto_code_dg_nb = read_ec_conf('auto_code_dg_nb');
    7683
    7784/*****************************************************************************
     
    8188if (isset($_POST['ec_act1']) and $_POST['ec_act1'] == 'duplicate_entry') {
    8289  if (isset($_POST['ec_entry_sel'])) {
    83     if (array_key_exists($_POST['ec_entry_sel'], $ec_lists['ec_table'])) {
    84       $ec_def_vals['code'] = $ec_lists['ec_table'][$_POST['ec_entry_sel']]['code'];
    85       $ec_def_vals['user'] = $ec_lists['ec_table'][$_POST['ec_entry_sel']]['user_id'];
    86       $ec_def_vals['act1'] = $_POST['ec_entry_sel'];
    87     }
    88     else {
    89       $page['errors'][] = 'Tentative de duplication d\'une entrée inexistante';
    90     }
     90    if (array_key_exists($_POST['ec_entry_sel'], $ec_lists['ec_table']))
     91     $ec_default_action = $_POST['ec_entry_sel'];
     92    else
     93     $page['errors'][] = 'Tentative de duplication d\'une entrée inexistante';
    9194  }
    9295  else {
     
    9598}
    9699
    97 
    98100/****************************************************************************/
    99 
    100101
    101102$template->assign('ec_ap_ok',$ec_ap_ok);
    102103$template->assign('ec_lists',$ec_lists);
    103 $template->assign('ec_def_vals',$ec_def_vals);
     104$template->assign('ec_hidden_when_no_code',
     105  (count($ec_lists['duplicable_codes']) == 0) ? 'style = "display:none;"' : ''
     106);
     107$template->assign('ec_hidden_when_no_user',
     108  (count($ec_lists['user_ids']) == 0) ? 'style = "display:none;"' : ''
     109);
     110$template->assign('ec_default_action',$ec_default_action);
     111$template->assign('ec_def_auto_code_dg_nb',$ec_def_auto_code_dg_nb);
    104112
    105113?>
  • extensions/event_cats/admin/evntcats_admin.php

    r4027 r4048  
    139139$template->assign('RACINE_URL',ROOT_URL);
    140140
    141 $template->assign('GET',str_from_var($_GET));
    142 $template->assign('POST',str_from_var($_POST));
    143 $template->assign('test1tpl',str_from_var($ec_lists));
    144 $template->assign('test2tpl',str_from_var($page['errors']));
    145 if (isset($code_list)) $template->assign('test3tpl',str_from_var($code_list));
     141if (isset($conf['ec_debug1'])) $template->assign('ec_debug1', array(
     142  'GET'       => str_from_var($_GET),
     143  'POST'      => str_from_var($_POST),
     144  'page'      => str_from_var($page),
     145  'ec_lists'  => (isset($ec_lists)) ? str_from_var($ec_lists) : '(unset)',
     146  'code_list' => (isset($code_list)) ? str_from_var($code_list) : '(unset)',
     147));
    146148
    147149$template->set_filenames(array('evntcats_admin_content' => dirname(__FILE__).'/template/'.$page['tab'].'.tpl'));
  • extensions/event_cats/admin/template/autolog_entries.tpl

    r4011 r4048  
    11{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
    22
    3 {* <!-- Page title --> *}
    4 <div class = "titrePage" style="margin-top: -20px;">
    5   <h2>{'ec_admin_page_title'|@translate} {$EVNTCATS_VERSION}</h2>
    6 </div>
    7 
    8 {* <!-- JavaScript warning message --> *}
    9 <div id = "ec_js_warn">
    10   {'ec_javascript_needed'|@translate}<br><br>
    11 </div>
    12 <script type = "text/javascript"><!-- // Removes JavaScript warning message
    13   document.getElementById('ec_js_warn').innerHTML = ''; //-->
    14 </script>
    15 
    16 {* <!-- EC Presentation --> *}
    17 {if $ec_howto}
    18   <div>
    19     {'ec_admin_page_howto'|@translate}
    20   </div>
    21 {/if}
    22 
    23 <p>
    24   <hr width = 75% size = 3 />
    25 </p>
     3{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
    264
    275{* <!-- Whether plugin Additionnal Pages is active or not --> *}
     
    140118//--></script>
    141119
    142 {* <!-- {$test0tpl} --> *}
    143 <p>$_GET :</p>
    144 {$GET}
    145 <p>$_POST :</p>
    146 {$POST}
    147 <p>Autres :</p>
    148 {$test1tpl}
    149 {$test2tpl}
    150 {$test3tpl}
     120{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
    151121
    152122{* <!--
    153123--> *}
    154 
  • extensions/event_cats/admin/template/autolog_new.js

    r4027 r4048  
    22
    33var ec_avoid_infinite_loop      = true;
     4var ec_flag1                    = false;
     5var ec_flag2                    = false;
    46var ec_err                      = '';
    57var ec_selected_action          = '';
     
    1113var ec_test_reg                 = '';
    1214var ec_auto_code_digits_nb      = '';
     15var ec_default_action           = '';
    1316var ec_selected_old_user        = '-1';
    1417var ec_selected_old_code        = '-1';
     
    1821var ec_selected_code            = 'ec_sel_code_new';
    1922var ec_JS_message               = new Array();
    20 var ec_def_vals                 = new Array();
     23var ec_duplic_codes             = new Array();
    2124
    2225function ec_mark_code(ec_id) {
    23   if (
     26  if (ec_flag2 ||
    2427   !(document.getElementById('ec_sel_code_old').disabled == 'disabled' ||
    2528   document.getElementById('ec_sel_code_old').disabled == true)
    2629  ) {
     30    var t1 = '';
    2731    ec_selected_code = ec_id;
    2832    document.getElementById(ec_selected_code).checked = 'checked';
     
    3640         ec_selected_old_code;
    3741        document.getElementById('ec_in_up_code_id').value = '';
    38       break;
    39     }
     42        t1 = 'disabled';
     43        ec_selected_old_user =
     44         document.ec_new_code.ec_in_up_code_list.options[
     45          document.ec_new_code.ec_in_up_code_list.selectedIndex
     46         ].label;
     47        document.getElementById('ec_in_up_usr_list_id').value = ec_selected_old_user;
     48        ec_mark_user('ec_sel_user_old');
     49      break;
     50    }
     51    document.getElementById('ec_sel_user_new').disabled       = t1;
     52    document.getElementById('ec_submit_gen_user_id').disabled = t1;
     53    document.getElementById('ec_in_up_usr_txt_id').disabled   = t1;
     54    document.getElementById('ec_in_up_psd_txt_id').disabled   = t1;
     55    document.getElementById('ec_sel_user_old').disabled       = t1;
     56    document.getElementById('ec_in_up_usr_list_id').disabled  = t1;
    4057  }
    4158}
    4259
    4360function ec_mark_user(ec_id) {
    44   if (
     61  if (ec_flag1 ||
    4562   !(document.getElementById('ec_sel_user_old').disabled == 'disabled' ||
    4663   document.getElementById('ec_sel_user_old').disabled == true)
     
    4966    document.getElementById(ec_selected_user).checked = 'checked';
    5067    switch (ec_selected_user) {
    51       /* case 'ec_sel_user_none': // None
    52         ec_selected_action =
    53          (ec_ap_ok && (ec_selected_action != 'ec_input_action_home')) ?
    54          'ec_input_action_add_p' : 'ec_input_action_home';
    55         document.getElementById('ec_in_up_usr_txt_id').value = '';
    56         document.getElementById('ec_in_up_psd_txt_id').value = '';
    57         document.getElementById('ec_in_up_usr_list_id').value = '-1';
    58       break; */
    5968      case 'ec_sel_user_new': // New user
    6069        document.getElementById('ec_in_up_usr_txt_id').value =
     
    95104        document.getElementById('ec_in_up_cats_id').value = ec_selected_cat;
    96105        document.getElementById('ec_in_up_imgs_id').value = '';
    97         /* ec_selected_user = (ec_selected_user == 'ec_sel_user_none') ?
    98          'ec_sel_user_old' : ec_selected_user; */
    99106        document.getElementById('ec_in_up_imgs_warn').innerHTML = '';
    100107      break;
     
    103110        document.getElementById('ec_in_up_cats_id').value = ec_selected_cat;
    104111        document.getElementById('ec_in_up_imgs_id').value = ec_selected_img;
    105         /* ec_selected_user = (ec_selected_user == 'ec_sel_user_none') ?
    106          'ec_sel_user_old' : ec_selected_user; */
    107112        ec_check_img_text();
    108113      break;
     
    240245      break;
    241246    }
     247    ec_flag1 = true;
    242248    ec_mark_user('ec_sel_user_new');
     249    ec_flag1 = false;
    243250    return true;
    244251  }
     
    274281  var t    = document.getElementById('ec_in_up_code_id').value;
    275282  var treg = /^[a-zA-Z0-9_-]{4,32}$/
    276   if (t == '' || treg.test(t)) {
     283  if (t == '' || treg.test(t) || t == NULL) {
    277284    ec_new_code_text = t;
    278285  }
     
    326333}
    327334
     335function ec_change_code_list(ec_id) {
     336  ec_selected_old_code = ec_id;
     337  ec_mark_code('ec_sel_code_old');
     338}
     339
    328340function ec_test() {
    329341  alert('OK.');
     
    331343
    332344function ec_init() {
    333   var t = (ec_def_vals['code'] == '') ? '' : 'disabled';
    334345  ec_err = '';
    335346  ec_selected_user = 'ec_sel_user_old';
     
    346357  ec_old_new_psd_text = '';
    347358  ec_test_reg = '';
    348   document.getElementById('ec_act1_id').value = ec_def_vals['act1'];
    349   document.getElementById('ec_in_up_pwd_warn').innerHTML = '';
    350   document.getElementById('ec_sel_code_old').checked = 'checked';
    351   document.getElementById('ec_sel_code_old').checked =
    352    (ec_def_vals['code'] == '') ? '' : 'checked';
    353   document.getElementById('ec_sel_user_old').checked = 'checked';
    354   document.getElementById('ec_sel_user_old').checked =
    355    (ec_def_vals['user'] == '-1') ? '' : 'checked';
    356   document.getElementById('ec_input_action_home').checked = 'checked';
    357   document.getElementById('ec_input_action_home').checked = '';
    358   document.getElementById('ec_in_up_usr_txt_id').value = '';
    359   document.getElementById('ec_in_up_psd_txt_id').value = '';
    360   document.getElementById('ec_in_up_usr_list_id').value = ec_def_vals['user'];
    361   document.getElementById('ec_in_up_code_id').value = ec_def_vals['code'];
    362   document.getElementById('ec_in_up_aps_id').value = '-1';
    363   document.getElementById('ec_in_up_cats_id').value = '-1';
    364   document.getElementById('ec_in_up_imgs_id').value = '';
    365   document.getElementById('ec_in_up_auto_code_length_id').value =
     359  document.getElementById('ec_act1_id').value                    =
     360   ec_default_action;
     361  document.getElementById('ec_in_up_auto_code_length_id').value  =
    366362   ec_auto_code_digits_nb;
    367   document.getElementById('ec_submit_gen_full_auto_id').disabled = t;
    368   document.getElementById('ec_in_up_code_id').disabled = t;
    369   document.getElementById('ec_submit_gen_code_id').disabled = t;
    370   document.getElementById('ec_in_up_auto_code_length_id').disabled = t;
    371   document.getElementById('ec_sel_user_new').disabled = t;
    372   document.getElementById('ec_submit_gen_user_id').disabled = t;
    373   document.getElementById('ec_in_up_usr_txt_id').disabled = t;
    374   document.getElementById('ec_in_up_psd_txt_id').disabled = t;
    375   document.getElementById('ec_sel_user_old').disabled = t;
    376   document.getElementById('ec_in_up_usr_list_id').disabled = t;
    377   ec_def_vals['code'] = '';
    378   ec_def_vals['user'] = '-1';
    379   ec_def_vals['act1'] = 'create';
    380 }
     363  document.getElementById('ec_in_up_code_id').value              = '';
     364  document.getElementById('ec_in_up_usr_txt_id').value           = '';
     365  document.getElementById('ec_in_up_psd_txt_id').value           = '';
     366  document.getElementById('ec_in_up_pwd_warn').innerHTML         = '';
     367  document.getElementById('ec_in_up_aps_id').value               = '-1';
     368  document.getElementById('ec_in_up_cats_id').value              = '-1';
     369  document.getElementById('ec_in_up_imgs_id').value              = '';
     370  document.getElementById('ec_in_up_imgs_warn').innerHTML        = '';
     371  document.getElementById('ec_input_action_home').checked        = 'checked';
     372  document.getElementById('ec_input_action_home').checked        = '';
     373 
     374  if (ec_default_action == 'create') {
     375    document.getElementById('ec_in_up_code_list_id').value       = '-1';
     376    document.getElementById('ec_sel_code_old').checked           = 'checked';
     377    document.getElementById('ec_sel_code_old').checked           = '';
     378    document.getElementById('ec_sel_user_old').checked           = 'checked';
     379    document.getElementById('ec_sel_user_old').checked           = '';
     380    document.getElementById('ec_in_up_usr_list_id').value        = '-1';
     381    document.getElementById('ec_submit_gen_full_auto_id').disabled = '';
     382    document.getElementById('ec_submit_gen_code_id').disabled    = '';
     383    document.getElementById('ec_in_up_auto_code_length_id').disabled = '';
     384    document.getElementById('ec_in_up_code_id').disabled         = '';
     385    document.getElementById('ec_sel_code_new').disabled          = '';
     386    document.getElementById('ec_sel_code_old').disabled          = '';
     387    document.getElementById('ec_in_up_code_list_id').disabled    = '';
     388    document.getElementById('ec_sel_user_new').disabled          = '';
     389    document.getElementById('ec_submit_gen_user_id').disabled    = '';
     390    document.getElementById('ec_in_up_usr_txt_id').disabled      = '';
     391    document.getElementById('ec_in_up_psd_txt_id').disabled      = '';
     392    document.getElementById('ec_sel_user_old').disabled          = '';
     393    document.getElementById('ec_in_up_usr_list_id').disabled     = '';
     394  }
     395  else {
     396    document.getElementById('ec_in_up_code_list_id').value       =
     397     ec_default_action;
     398    document.getElementById('ec_sel_code_old').checked           = 'checked';
     399    document.getElementById('ec_submit_gen_full_auto_id').disabled =
     400     'disabled';
     401    document.getElementById('ec_submit_gen_code_id').disabled    = 'disabled';
     402    document.getElementById('ec_in_up_auto_code_length_id').disabled =
     403     'disabled';
     404    document.getElementById('ec_in_up_code_id').disabled         = 'disabled';
     405    document.getElementById('ec_sel_code_new').disabled          = 'disabled';
     406    document.getElementById('ec_sel_code_old').disabled          = 'disabled';
     407    document.getElementById('ec_in_up_code_list_id').disabled    = 'disabled';
     408    ec_selected_old_code = ec_duplic_codes[ec_default_action];
     409    ec_flag2 = true;
     410    ec_mark_code('ec_sel_code_old');
     411    ec_flag2 = false;
     412  }
     413  ec_default_action                                              = 'create';
     414}
  • extensions/event_cats/admin/template/autolog_new.tpl

    r4027 r4048  
    11{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
    22
    3 {* <!-- Page title --> *}
    4 <div class = "titrePage" style="margin-top: -20px;">
    5   <h2>{'ec_admin_page_title'|@translate} {$EVNTCATS_VERSION}</h2>
    6 </div>
    7 
    8 {* <!-- JavaScript warning message --> *}
    9 <div id = "ec_js_warn">
    10   {'ec_javascript_needed'|@translate}<br><br>
    11 </div>
    12 <script type = "text/javascript"><!-- // Removes JavaScript warning message
    13   document.getElementById('ec_js_warn').innerHTML = ''; //-->
    14 </script>
    15 
    16 {* <!-- EC Presentation --> *}
    17 {if $ec_howto}
    18   <div>
    19     {'ec_admin_page_howto'|@translate}
    20   </div>
    21 {/if}
    22 
    23 <p>
    24   <hr width = 75% size = 3 />
    25 </p>
     3{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
    264
    275{* <!-- Whether plugin Additionnal Pages is active or not --> *}
     
    6139        <li>
    6240          {* <!-- New code (to create) --> *}
    63           <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');">
     41          <label for = "ec_in_up_code_id" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code}>
    6442            <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_id" value = "new"
    65              id = "ec_sel_code_new" onclick = "ec_mark_code('ec_sel_code_new');"
     43             id = "ec_sel_code_new" onclick = "ec_mark_code('ec_sel_code_new');" {$ec_hidden_when_no_code}
    6644            />
    6745            {'ec_up_code_lbl_code_new'|@translate}
     
    7553          {'ec_gen_code_nb_pre'|@translate}
    7654          <select name = "ec_in_up_auto_code_length" id = "ec_in_up_auto_code_length_id" onchange = "ec_auto_code_digits_nb = this.value;">
    77             <option value = "4">4</option>
    78             <option value = "5">5</option>
    79             <option value = "8">8</option>
     55            <option value =  "4" >4{'ec_gen_code_nb_min'|@translate}</option>
     56            <option value =  "5" >5</option>
     57            <option value =  "8" >8</option>
    8058            <option value = "10">10</option>
    8159            <option value = "12">12</option>
     
    9876        <li>
    9977          {* <!-- Known code --> *}
    100           <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');">
    101             <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_list_id"
     78          <label for = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');" {$ec_hidden_when_no_code} >
     79            <input type = "radio" name = "ec_sel_code" for = "ec_in_up_code_list_id" {$ec_hidden_when_no_code}
    10280             value = "old" id = "ec_sel_code_old" onclick = "ec_mark_code('ec_sel_code_old');"
    10381            />
     
    10583          </label>
    10684          <select name = "ec_in_up_code_list" id = "ec_in_up_code_list_id" onclick = "ec_mark_code('ec_sel_code_old');"
    107            onchange = "ec_selected_old_code = this.value;"
    108           >
    109             <option label = "------------" value = "-1" id = "ec_old_code_-1">------------</option>
     85           onchange = "ec_change_code_list(this.value);" {$ec_hidden_when_no_code}
     86          >
     87            <option label = "------------" value = "-1" {* id = "ec_old_code_-1" *} {$ec_hidden_when_no_code} >------------</option>
    11088            {foreach from=$ec_lists.duplicable_codes key=ec_key item=ec_val}
    111               <option label = "{$ec_val}" value = "{$ec_key}" id = "ec_old_code_{$ec_key}">{$ec_key}</option>
     89              <option label = "{$ec_val.user_id}" value = "{$ec_val.id}" {* id = "ec_old_code_{$ec_val.id}" *}>{$ec_key}</option>
    11290            {/foreach}
    11391          </select><br>
     
    122100        <li>
    123101          {* <!-- New user (to create) --> *}
    124           <label for = "ec_in_up_usr_txt_id" onclick = "ec_mark_user('ec_sel_user_new');">
     102          <label for = "ec_in_up_usr_txt_id" onclick = "ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user} >
    125103            <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_txt_id" value = "new"
    126              id = "ec_sel_user_new" onclick = "ec_mark_user('ec_sel_user_new');"
     104             id = "ec_sel_user_new" onclick = "ec_mark_user('ec_sel_user_new');" {$ec_hidden_when_no_user}
    127105            />
    128106            {'ec_up_code_lbl_user_new'|@translate}
     
    152130        <li>
    153131          {* <!-- Known user --> *}
    154           <label for = "ec_in_up_usr_list_id" onclick = "ec_mark_user('ec_sel_user_old');">
    155             <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id"
     132          <label for = "ec_in_up_usr_list_id" onclick = "ec_mark_user('ec_sel_user_old');" {$ec_hidden_when_no_user} >
     133            <input type = "radio" name = "ec_sel_user" for = "ec_in_up_usr_list_id" {$ec_hidden_when_no_user}
    156134             value = "old" id = "ec_sel_user_old" onclick = "ec_mark_user('ec_sel_user_old');"
    157135            />
     
    159137          </label>
    160138          <select name = "ec_in_up_usr_list" id = "ec_in_up_usr_list_id" onclick = "ec_mark_user('ec_sel_user_old');"
    161            onchange = "ec_selected_old_user = this.value;"
    162           >
    163             <option label = "------------" value = "-1" id = "ec_old_user_-1">------------</option>
     139           onchange = "ec_selected_old_user = this.value;" {$ec_hidden_when_no_user}
     140          >
     141            <option label = "------------" value = "-1" {* id = "ec_old_user_-1" *} {$ec_hidden_when_no_user} >------------</option>
    164142            {foreach from=$ec_lists.user_ids key=ec_key item=ec_val}
    165               <option label = "{$ec_val}" value = "{$ec_key}" id = "ec_old_user_{$ec_key}">{$ec_val}</option>
     143              <option label = "{$ec_val}" value = "{$ec_key}" {* id = "ec_old_user_{$ec_key}" *} >{$ec_val}</option>
    166144            {/foreach}
    167145          </select><br>
     
    245223  ec_JS_message['ec_submit_action_miss'] = "{'ec_submit_action_miss'|@translate}";
    246224  ec_JS_message['ec_submit_code_bad']    = "{'ec_submit_code_bad'|@translate}";
    247   ec_def_vals['code']                    = "{$ec_def_vals.code}";
    248   ec_def_vals['user']                    = "{$ec_def_vals.user}";
    249   ec_def_vals['act1']                    = "{$ec_def_vals.act1}";
    250   ec_auto_code_digits_nb                 = "{$ec_def_vals.auto_code_dg_nb}";
     225  ec_default_action                      = "{$ec_default_action}";
     226  ec_auto_code_digits_nb                 = "{$ec_def_auto_code_dg_nb}";
     227  {foreach from=$ec_lists.duplicable_codes.ids key=ec_key item=ec_val}
     228    ec_duplic_codes[{$ec_key}] = {$ec_val};
     229  {/foreach}
    251230  ec_init();
    252231//--></script>
    253232
    254 {* <!-- {$test0tpl} --> *}
    255 <p>$_GET :</p>
    256 {$GET}
    257 <p>$_POST :</p>
    258 {$POST}
    259 <p>Autres :</p>
    260 {$test1tpl}
    261 {$test2tpl}
    262 {$test3tpl}
     233{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
    263234
    264235{* <!--
    265236--> *}
    266 
  • extensions/event_cats/admin/template/config.tpl

    r4002 r4048  
    11{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
    22
    3 {* <!-- Page title --> *}
    4 <div class = "titrePage" style="margin-top: -20px;">
    5   <h2>{'ec_admin_page_title'|@translate} {$EVNTCATS_VERSION}</h2>
    6 </div>
    7 
    8 {* <!-- JavaScript warning message --> *}
    9 <div id = "ec_js_warn">
    10   {'ec_javascript_needed'|@translate}<br><br>
    11 </div>
    12 <script type = "text/javascript"><!-- // Removes JavaScript warning message
    13   document.getElementById('ec_js_warn').innerHTML = ''; //-->
    14 </script>
    15 
    16 {* <!-- EC Presentation --> *}
    17 {if $ec_howto}
    18   <div>
    19     {'ec_admin_page_howto'|@translate}
    20   </div>
    21 {/if}
    22 
    23 <p>
    24   <hr width = 75% size = 3 />
    25 </p>
     3{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
    264
    275{* <!-- Available soon... --> *}
     
    4119--> *}
    4220
    43 {* <!-- {$test0tpl} --> *}
    44 <p>$_GET :</p>
    45 {$GET}
    46 <p>$_POST :</p>
    47 {$POST}
    48 <p>Autres :</p>
    49 {$test1tpl}
    50 {$test2tpl}
    51 {$test3tpl}
     21{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
    5222
    5323{* <!--
  • extensions/event_cats/admin/template/duplication.tpl

    r4002 r4048  
    11{* <!-- Event Cats (event categories) LucMorizur June - ... 2009 --> *}
    22
    3 {* <!-- Page title --> *}
    4 <div class = "titrePage" style="margin-top: -20px;">
    5   <h2>{'ec_admin_page_title'|@translate} {$EVNTCATS_VERSION}</h2>
    6 </div>
    7 
    8 {* <!-- JavaScript warning message --> *}
    9 <div id = "ec_js_warn">
    10   {'ec_javascript_needed'|@translate}<br><br>
    11 </div>
    12 <script type = "text/javascript"><!-- // Removes JavaScript warning message
    13   document.getElementById('ec_js_warn').innerHTML = ''; //-->
    14 </script>
    15 
    16 {* <!-- EC Presentation --> *}
    17 {if $ec_howto}
    18   <div>
    19     {'ec_admin_page_howto'|@translate}
    20   </div>
    21 {/if}
    22 
    23 <p>
    24   <hr width = 75% size = 3 />
    25 </p>
     3{include file='../../../plugins/event_cats/admin/template/header.inc.tpl'}
    264
    275{* <!-- Available soon... --> *}
     
    4119--> *}
    4220
    43 {* <!-- {$test0tpl} --> *}
    44 <p>$_GET :</p>
    45 {$GET}
    46 <p>$_POST :</p>
    47 {$POST}
    48 <p>Autres :</p>
    49 {$test1tpl}
    50 {$test2tpl}
    51 {$test3tpl}
     21{include file='../../../plugins/event_cats/admin/template/footer.inc.tpl'}
    5222
    5323{* <!--
  • extensions/event_cats/language/fr_FR/plugin.lang.php

    r4027 r4048  
    4444$lang['ec_new_entry_button']      = 'Générer un code automatiquement';
    4545$lang['ec_gen_code_nb_pre']       = 'de';
     46$lang['ec_gen_code_nb_min']       = ' (min)';
    4647$lang['ec_gen_code_nb_max']       = ' (max)';
    4748$lang['ec_gen_code_nb_end']       = 'caractères';
Note: See TracChangeset for help on using the changeset viewer.