Objet : devel-adl
Archives de la liste
- From: svn AT agendadulibre.org
- To: devel AT agendadulibre.org
- Subject: [Devel] r304 - branches/dui
- Date: Sun, 21 Oct 2007 17:24:02 +0200 (CEST)
- List-archive: <http://agendadulibre.org/pipermail/devel>
- List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>
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();
+
+?>
- [Devel] r304 - branches/dui, svn, 21/10/2007
Archives gérées par MHonArc 2.6.16.