diff --git a/config/dates.php b/config/dates.php index 5a04fcc..dfae213 100644 --- a/config/dates.php +++ b/config/dates.php @@ -31,22 +31,30 @@ ,"important_dates" ); +?> + + + $error_ids = array(); - if($_POST['action']=="save") - { - if($_POST['savedates']) - { - foreach($_POST['savedates'] as $key=>$val) - { - $v = mysql_escape_string(stripslashes($val)); + if($_POST['action']=="save") { + if($_POST['savedates']) { + foreach($_POST['savedates'] as $key=>$val) { + //put the date and time back together + $d = mysql_escape_string(stripslashes($val)); + $t =mysql_escape_string(stripslashes($_POST['savetimes'][$key])); + $v="$d $t"; mysql_query("UPDATE dates SET date='$v' WHERE year='".$config['FAIRYEAR']."' AND id='$key'"); } } echo happy(i18n("Dates successfully saved")); - - } + echo "
";