'Gennaio', 'Febbraio', 'Marzo', 'Aprile', 'Maggio', 'Giugno', 'Luglio', 'Agosto', 'Settembre', 'Ottobre', 'Novembre','Dicembre'); $currentYear=date("Y"); $post=false; $found = false; $day = ""; $month= ""; $year = ""; if(array_key_exists("submit", $_POST) && strcmp($_POST["submit"], "Invia")==0){ $post = true; $day = $_POST["day"]; $month= $_POST["month"]; $year = $_POST["year"]; $dateString = $_POST["year"]."-".$_POST["month"]."-".$_POST["day"]; $notizieDate = GlobalVariables::get("dao")->query("NotiziaModel", array("status"=>NotiziaModel::STATUS_ACCEPTED,"about.data"=>array('$gt'=>new MongoDate(strtotime($dateString)), '$lt'=>new MongoDate(strtotime($dateString." +1 day")))) ); if(sizeof($notizieDate)>0){ $found=true; } // var_dump($notizieDate); } }catch(GUIException $ex){ $error = $ex->getMessage(); }catch (Exception $exec){ $msg = LogModel::fromException($exec); GlobalVariables::get("dao")->save($msg); GUIHandler::redirect("index.php"); } ?>