Accéder au contenu.
Menu Sympa

devel - [Devel] r176 - trunk

Objet : devel-adl

Archives de la liste

[Devel] r176 - trunk


Chronologique Discussions 
  • From: svn AT agendadulibre.org
  • To: devel AT agendadulibre.org
  • Subject: [Devel] r176 - trunk
  • Date: Sun, 9 Jul 2006 17:20:13 +0200 (CEST)
  • List-archive: <http://lolut.utbm.info/pipermail/devel>
  • List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>

Author: thomas
Date: Sun Jul 9 17:20:11 2006
New Revision: 176

Added:
trunk/testevent.php

Log:

* testevent.php:

- Nouvelle page, utilisée par le script de soumission, afin de
récupérer une page Web ressemblant à ce que donnera l'évènement
une fois modéré. C'est une demande reçue de la part de l'ALDIL,
via la liste InterLUG.



Added: trunk/testevent.php
==============================================================================
--- (empty file)
+++ trunk/testevent.php Sun Jul 9 17:20:11 2006
@@ -0,0 +1,96 @@
+<?php
+
+/* Copyright 2006
+ * - 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();
+
+put_header("Informations sur un �v�nement");
+
+echo "<div id=\"lug-list\"><h1>Groupes d'utilisateurs de la r�gion</h1>";
+
+$lugs = $db->query ("select distinct region, name, url from lugs where
region = '" .
+ $_POST['__event_region'] . "'");
+
+if (mysql_num_rows ($lugs) == 0)
+{
+ echo "Pas de groupes d'utilisateur.<br/>";
+}
+else
+{
+ echo " <ul>";
+
+ while ($lug = mysql_fetch_object ($lugs))
+ {
+ echo "<li><a href=\"" . $lug->url . "\">" . $lug->name . "</a> (";
+ $dpts = $db->query ("select distinct department from lugs where name =
'" . $lug->name . "'");
+ $i = 1;
+ while ($dpt = mysql_fetch_object ($dpts))
+ {
+ echo $dpt->department;
+ if ($i != mysql_num_rows($dpts))
+ echo ", ";
+ $i++;
+ }
+ echo ")</li>";
+ }
+ echo " </ul>";
+}
+echo "</div>";
+
+/* Convert form date to timestamp */
+if ($_POST['__event_start_day'])
+{
+ $start = mktime($_POST['__event_start_hour'],
+ $_POST['__event_start_minute'],
+ 0,
+ $_POST['__event_start_month'],
+ $_POST['__event_start_day'],
+ $_POST['__event_start_year']);
+}
+
+if ($_POST['__event_end_day'])
+{
+ $end = mktime($_POST['__event_end_hour'],
+ $_POST['__event_end_minute'],
+ 0,
+ $_POST['__event_end_month'],
+ $_POST['__event_end_day'],
+ $_POST['__event_end_year']);
+}
+
+echo format_event ($db,
+ $_POST['__event_title'],
+ date_mysql2timestamp($start),
+ date_mysql2timestamp($end),
+ $_POST['__event_description'],
+ $_POST['__event_city'],
+ $_POST['__event_region'],
+ $_POST['__event_locality'],
+ $_POST['__event_url'],
+ $_POST['__event_contact']);
+}
+
+put_footer();
+
+?>
\ No newline at end of file




  • [Devel] r176 - trunk, svn, 09/07/2006

Archives gérées par MHonArc 2.6.16.

Haut de le page