summaryrefslogtreecommitdiff
path: root/appli_3_alpha_old/include/ludo/div_create_or_modif.php
diff options
context:
space:
mode:
Diffstat (limited to 'appli_3_alpha_old/include/ludo/div_create_or_modif.php')
-rw-r--r--appli_3_alpha_old/include/ludo/div_create_or_modif.php87
1 files changed, 87 insertions, 0 deletions
diff --git a/appli_3_alpha_old/include/ludo/div_create_or_modif.php b/appli_3_alpha_old/include/ludo/div_create_or_modif.php
new file mode 100644
index 0000000..b7f7193
--- /dev/null
+++ b/appli_3_alpha_old/include/ludo/div_create_or_modif.php
@@ -0,0 +1,87 @@
+<?php
+$isModif=false;
+if ( isset ( $_GET['idR']) )
+{
+ if ( ! isset($_GET['objetR']) || ! isset($_GET['lieuR']) || ! isset($_GET['ordreJourR']) || ! isset($_GET['remarquesR']) )
+ {
+ $errmsg="Impossible de modifier la réunion : Paramètres incorrects\n";
+ return;
+ }
+ $idR=addslashes($_GET['idR']);
+ $objetR=addslashes($_GET['objetR']);
+ $lieuR=addslashes($_GET['lieuR']);
+ $ordreJourR=addslashes($_GET['ordreJourR']);
+ $remarquesR=addslashes($_GET['remarquesR']);
+
+ $isModif=true;
+}
+?>
+<form action="" method="post">
+ <table class="detail_reunion" summary="Détail de la réunion que vous avez sélectionnée">
+ <thead>
+ <tr>
+ <th colspan="2">
+ <?php if ($isModif) { echo 'Modification des détails de la réunion'; } else { echo 'Création d\'une réunion'; } ?>
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><strong>Objet :</strong></td>
+ <td>
+ <input name="objetR" type="text"<?php if ($isModif) { echo 'value="' . $objetR .'"'; } ?>></input>
+ </td>
+ </tr>
+<!-- <tr>
+ <td><strong>Organisateur :</strong></td>
+ <td>
+ <?php// echo "$prenomP $nomP\n"; ?>
+ </td>
+ </tr>
+-->
+ <tr>
+ <td><strong>Lieu :</strong></td>
+ <td>
+ <input name="lieuR" type="text"<?php if ($isModif) { echo 'value="' . $lieuR .'"'; } ?>></input>
+ </td>
+ </tr>
+ <tr>
+ <td><strong>Ordre du jour :</strong></td>
+ <td>
+ <input name="ordreJourR" type="text"<?php if ($isModif) { echo 'value="' . $ordreJourR .'"'; } ?>></input>
+ </td>
+ </tr>
+ <tr>
+ <td><strong>Remarques :</strong></td>
+ <td>
+ <input name="remarquesR" type="text"<?php if ($isModif) { echo 'value="' . $remarquesR .'"'; } ?>></input>
+ </td>
+ </tr>
+ <tr>
+ <td><strong>Etat :</strong></td>
+ <td>
+ <input type="checkbox">Annulée</input>
+ <?php
+ // TODO : refléter l'état de la BD pour l'annulation !
+ //~ echo '<a href="#confirmAnnulation" onclick="loadid(\'include/ludo/popConfirmAnnulR.php?idR=';
+ //~ echo $idR . "','popfixer',true);popon('popfixer');\">Annuler</a>";
+ ?>
+ </td>
+ </tr>
+ <tr>
+ <!--<td>&nbsp;</td>-->
+ <td colspan="2">
+ <input name="Valider" type="submit" value="Valider"></input>
+ <?php
+ // TODO : refléter l'état de la BD pour l'annulation !
+ //~ echo '<a href="#confirmAnnulation" onclick="loadid(\'include/ludo/popConfirmAnnulR.php?idR=';
+ //~ echo $idR . "','popfixer',true);popon('popfixer');\">Annuler</a>";
+ ?>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</form>
+<?php
+// POST vers details_reunion.php?action=create_or_modif_reunion
+?> \ No newline at end of file