diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:22:30 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2018-06-30 11:22:30 +0200 |
commit | 50b0ff7533657a8edb7a0d9645699559c50ea712 (patch) | |
tree | 54fb5d7b6efc44d26aef24a6fa055e97b65f74b6 /maquette/popfixer.php | |
parent | f55d097d97c3c81382c441f612b0ce2881e63334 (diff) | |
download | 2007-AWOR-50b0ff7533657a8edb7a0d9645699559c50ea712.tar.gz 2007-AWOR-50b0ff7533657a8edb7a0d9645699559c50ea712.tar.bz2 2007-AWOR-50b0ff7533657a8edb7a0d9645699559c50ea712.zip |
Strip retours chariot Windows pour diff propre
Diffstat (limited to 'maquette/popfixer.php')
-rw-r--r-- | maquette/popfixer.php | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/maquette/popfixer.php b/maquette/popfixer.php index 692f4fd..33032ed 100644 --- a/maquette/popfixer.php +++ b/maquette/popfixer.php @@ -1,36 +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>';
- }
-?>
-
+<?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>'; + } +?> + |