diff --git a/config/dates.php b/config/dates.php new file mode 100644 index 00000000..1a21b95c --- /dev/null +++ b/config/dates.php @@ -0,0 +1,37 @@ +<< ".i18n("Back to Configuration")."
"; + + if($_POST['action']=="save") + { + if($_POST['savedates']) + { + foreach($_POST['savedates'] as $key=>$val) + { + mysql_query("UPDATE dates SET date='".mysql_escape_string(stripslashes($val))."' WHERE year='".$config['FAIRYEAR']."' AND id='$key'"); + } + } + echo happy(i18n("Dates successfully saved")); + + + } + $q=mysql_query("SELECT * FROM dates WHERE year=0 ORDER BY var"); + echo "
"; + echo "\n"; + echo ""; + echo ""; + + $q=mysql_query("SELECT * FROM dates WHERE year='".$config['FAIRYEAR']."' ORDER BY date"); + while($r=mysql_fetch_object($q)) + { + echo ""; + + + } + echo "

".i18n("Dates for fair year %1",array($config['FAIRYEAR']))."

$r->name".i18n($r->description)."id]\" value=\"$r->date\" />
"; + echo "\n"; + echo "
"; + + send_footer(); +?> diff --git a/config/index.php b/config/index.php index 429baa39..fcee4be6 100644 --- a/config/index.php +++ b/config/index.php @@ -4,6 +4,7 @@ echo error(i18n("Note: this section will normally be password protected. It is left open for now for debugging and testing purposes")); echo "Configuration Variables
"; + echo "Important Dates
"; echo "Project Age Categories
"; echo "Project Divisons
"; echo "Project Sub-Divisons
"; diff --git a/config/variables.php b/config/variables.php index ceb18736..d1292f45 100644 --- a/config/variables.php +++ b/config/variables.php @@ -24,7 +24,7 @@ } $q=mysql_query("SELECT * FROM config WHERE year=0 ORDER BY var"); - echo "
"; + echo ""; echo "\n"; echo ""; echo "";

".i18n("Global configuration settings")."