summaryrefslogtreecommitdiff
path: root/beta_old1/app/popfixer.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:26:37 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:26:37 +0200
commit19cdd5e2fde57d53f05570cd50f5ffd223182566 (patch)
treeed6a50c73c16b3c5a2cee8c8954e46268c256ee3 /beta_old1/app/popfixer.php
parent3c8d3719af0f77f8a01881b022e548d3a7d4604e (diff)
download2007-AWOR-19cdd5e2fde57d53f05570cd50f5ffd223182566.tar.gz
2007-AWOR-19cdd5e2fde57d53f05570cd50f5ffd223182566.tar.bz2
2007-AWOR-19cdd5e2fde57d53f05570cd50f5ffd223182566.zip
Renommage pour diff entre appli_3_alpha_old et beta_old1
Diffstat (limited to 'beta_old1/app/popfixer.php')
-rw-r--r--beta_old1/app/popfixer.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/beta_old1/app/popfixer.php b/beta_old1/app/popfixer.php
new file mode 100644
index 0000000..a1232b0
--- /dev/null
+++ b/beta_old1/app/popfixer.php
@@ -0,0 +1,42 @@
+<?php
+ if (isset($_GET['idC']))
+ {
+ include ('include/connect.inc.php');
+ echo '<h2>D&eacute;sirez-vous fixer ce cr&eacute;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) . ' &agrave; ' . date('H:i', $date_fin);
+ }
+ }
+
+ echo '<br/>';
+ echo '<em>(Il vous sera impossible par la suite de modifier les informations concernant la r&eacute;union)</em>';
+ echo '<br/>';echo '<br/>';
+ //~ echo '<form id="formfixer" method="get" action="'.$_SERVER['PHP_SELF'].'">';
+ echo '<form id="formfixer" method="get" action="">';
+ echo '<input type="hidden" name="action" value="fixer_creneau" />';
+ echo '<input type="hidden" name="idR" value="'.$_GET['idR'].'" />';
+ echo '<input type="hidden" name="idC" value="'.$_GET['idC'].'" />';
+ echo '<input type="submit" value="Valider"/>';
+ echo '<input type="button" value="Annuler" 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="">';
+ echo '<input type="button" value="Fermer" onclick="popoff(\'popfixer\')"/>';
+ echo '</form>';
+ echo '</div>';
+ }
+?>
+