diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 10:03:15 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 10:03:15 +0200 |
commit | 756f0fa75c7d8e18188dffdfbdd4416651dca9fe (patch) | |
tree | 18b6bae18a08982d5e707954eebde04d05f3d632 /maquette_old/popfixer.php | |
parent | 30238f5847b418645983a4efddb13f087c99e585 (diff) | |
download | 2007-AWOR-756f0fa75c7d8e18188dffdfbdd4416651dca9fe.tar.gz 2007-AWOR-756f0fa75c7d8e18188dffdfbdd4416651dca9fe.tar.bz2 2007-AWOR-756f0fa75c7d8e18188dffdfbdd4416651dca9fe.zip |
Première maquette 2007-02-03+09:05:40 - 2007-02-03+22:31:43
Diffstat (limited to 'maquette_old/popfixer.php')
-rw-r--r-- | maquette_old/popfixer.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/maquette_old/popfixer.php b/maquette_old/popfixer.php new file mode 100644 index 0000000..692f4fd --- /dev/null +++ b/maquette_old/popfixer.php @@ -0,0 +1,36 @@ +<?php
+ if (isset($_GET['idC']))
+ {
+ include ('connect.inc.php');
+ echo '<h2>Désirez-vous fixer ce créneau ?</h2>';
+ echo '<div class="popup_contenu">';
+ $result = mysql_query("SELECT UNIX_TIMESTAMP(dateHeure),duree FROM Creneau WHERE idC=".$_GET['idC']);
+ if (mysql_num_rows($result)>0)
+ {
+ for($i=0;$i<mysql_num_rows($result);$i++)
+ {
+ $row = mysql_fetch_array($result);
+ $date_deb =$row[0];
+ $date_fin = $date_deb + 60 * $row[1];
+ echo 'Le ' . date('d/m/y', $date_deb) . ' de ' . date('H:i', $date_deb) . ' à ' . date('H:i', $date_fin);
+ }
+ }
+
+ echo '<br/><br/>';
+ echo '<form id="formfixer" method="get" action="'.$_GLOBAL['php_self'].'">';
+ echo '<input type="submit" value="Valider" name="action"/>';
+ echo '<input type="button" value="Fermer" onclick="popoff(\'popfixer\')"/>';
+ echo '</form>';
+ echo '</div>';
+ }
+ else
+ {
+ echo '<div class="popup_contenu">';
+ echo 'Erreur - pas d\'identifiant de cr&eaneau !';
+ echo '<form id="formfixer" method="get" action="'.$_GLOBAL['php_self'].'">';
+ echo '<input type="button" value="Fermer" onclick="popoff(\'popfixer\')"/>';
+ echo '</form>';
+ echo '</div>';
+ }
+?>
+
|