[Devel] r304 - branches/dui

svn at agendadulibre.org svn at agendadulibre.org
Dim 21 Oct 17:24:02 CEST 2007


Author: ldayot
Date: Sun Oct 21 17:23:00 2007
New Revision: 304

Log:
Ajout d'un script présentant tous les événements à une date.



Added:
   branches/dui/showoneday.php

Added: branches/dui/showoneday.php
==============================================================================
--- (empty file)
+++ branches/dui/showoneday.php	Sun Oct 21 17:23:00 2007
@@ -0,0 +1,44 @@
+<?php
+
+/* Copyright 2004-2007
+ * - Mélanie Bats <melanie POINT bats CHEZ utbm POINT fr>
+ * - Thomas Petazzoni <thomas POINT petazzoni CHEZ enix POINT org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ * 02111-1307, USA.
+ */
+
+include("bd.inc.php");
+include("funcs.inc.php");
+
+$db = new db();
+
+$date = isset($_GET['date']) ? $_GET['date'] : date("Y-n-j");
+calendar_setlocale();
+$human_date = onlyday_timestamp2humanreadable(date_mysql2timestamp($date));
+
+$year = substr($date,0,4);
+$month = substr($date,5,2);
+$day = substr($date,8,2);
+
+put_header("Tous les événements du ". $human_date);
+
+echo "<h2>Tous les événements du ". $human_date. "</h2>\n\n";
+
+show_day_events ($db, $day, $month, $year, $region="all", $count=100);
+
+put_footer();
+
+?>


Plus d'informations sur la liste de diffusion Devel