'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"); } ?>
Selezionate una data per la ricerca, e premere il tasto Invia.
titolo) > 103) ? substr($notizia->titolo,0,100).'...' : $notizia->titolo; $stringSottotitolo = (strlen($notizia->sottotitolo) > 73) ? substr($notizia->sottotitolo,0,70).'...' : $notizia->sottotitolo; $stringTesto = (strlen($notizia->testo) > 33) ? substr($notizia->testo,0,30).'...' : $notizia->testo; $media = DaoMediaHandler::getMainMediaFromModel($notizia); ?>
renderMedia(array("size"=>MediaRenderer::SIZE_SMALL)):"" ;?>
Nessun articolo trovato nella data selezionata.