diff --git a/inc/class.page.php b/inc/class.page.php --- a/inc/class.page.php +++ b/inc/class.page.php @@ -47,6 +47,7 @@ set_include_path(get_include_path() . PA $use_captcha = FALSE; $admin_enable_purge = FALSE; $qtips_always = FALSE; +$input_warning_banner = FALSE; $config_inc = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'config.inc'; if (file_exists($config_inc)) { diff --git a/inc/config.inc.example b/inc/config.inc.example --- a/inc/config.inc.example +++ b/inc/config.inc.example @@ -134,3 +134,17 @@ */ /* $feedback_disk_log = TRUE; */ /* $feedback_disk_log_file = "/var/log/sp-feedback.log"; */ + + +/** + * \brief + * A banner to display to users on input.php for temporary warnings. + * + * Used to inform users about known data problems, etc. + * + * Set to a string to display a banner. Otherwise, set to FALSE to + * hide the banner. Must be a valid XHTML fragment which may be placed + * into a
verbatim. + */ +/* $input_warning_banner = FALSE; */ +/* $input_warning_banner = 'Warning: BIOL-111\'s autocomplete data does not include all sections. Please use schedule 7578 to get a correct BIOL-111 entry.
'; */ diff --git a/input.php b/input.php --- a/input.php +++ b/input.php @@ -156,6 +156,13 @@ if (!empty($_REQUEST['selectsemester'])) $inputPage->showSavedScheds($_SESSION); ?> + + +Welcome to SlatePermutateaddressStudent(', ', '', FALSE); ?>! get_school())): ?> diff --git a/styles/general.css b/styles/general.css --- a/styles/general.css +++ b/styles/general.css @@ -391,3 +391,9 @@ a:hover { border: none; background: transparent; } + +.warning +{ + background: #ffffdd; + border: 1pt solid yellow; +}