Ignore:
Timestamp:
Dec 7, 2009, 4:01:10 AM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Implement help banner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/evntcats_admin.php

    r4436 r4437  
    7676// If needed, stores in the DB that acknowledgement message has been displayed
    7777if ($ec_howto = (read_ec_conf('howto') == '0')) change_ec_conf('howto', '1');
     78
     79// If needed, stores in the DB whether help banner must be displayed or not
     80if (isset($_POST['ec_help_banner_onoff2']))
     81 $_POST['ec_help_banner_onoff'] = $_POST['ec_help_banner_onoff2'];
     82if (isset($_POST['ec_help_banner2_onoff']))
     83 $_POST['ec_help_banner_onoff'] = $_POST['ec_help_banner2_onoff'];
     84if (
     85  isset($_POST['ec_help_banner_onoff']) and
     86  $_POST['ec_help_banner_onoff'] != read_ec_conf('in_help_display')
     87) change_ec_conf('in_help_display', $_POST['ec_help_banner_onoff']);
    7888
    7989build_ec_lists(); // in evntcats_main_funcs.php
     
    378388 ($ec_howto and (count($page['errors']) ==0 and count($page['infos']) == 0)));
    379389
     390$template->assign('ec_help_banner_OK', (read_ec_conf('in_help_display') == '1'));
     391
    380392$template->assign('EVNTCATS_PATH',EVNTCATS_PATH);
    381393$template->assign('RACINE_URL',ROOT_URL);
Note: See TracChangeset for help on using the changeset viewer.