require("../common.inc.php");
send_header("Configuration - Dates");
echo "<< ".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 "