summaryrefslogtreecommitdiff
path: root/final/app/include/ludo/div_create_or_modif.php
diff options
context:
space:
mode:
Diffstat (limited to 'final/app/include/ludo/div_create_or_modif.php')
-rw-r--r--final/app/include/ludo/div_create_or_modif.php74
1 files changed, 74 insertions, 0 deletions
diff --git a/final/app/include/ludo/div_create_or_modif.php b/final/app/include/ludo/div_create_or_modif.php
new file mode 100644
index 0000000..34e81ca
--- /dev/null
+++ b/final/app/include/ludo/div_create_or_modif.php
@@ -0,0 +1,74 @@
+<?php
+require_once ('../tools.inc.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&eacute;union : Param&egrave;tres incorrects\n";
+ return;
+ }
+ $idR=htmlentities(stripslashes_if_needed($_GET['idR']), ENT_QUOTES);
+ $objetR=htmlentities(stripslashes_if_needed($_GET['objetR']), ENT_QUOTES);
+ $lieuR=htmlentities(stripslashes_if_needed($_GET['lieuR']), ENT_QUOTES);
+ $ordreJourR=htmlentities(stripslashes_if_needed($_GET['ordreJourR']), ENT_QUOTES);
+ $remarquesR=htmlentities(stripslashes_if_needed($_GET['remarquesR']), ENT_QUOTES);
+
+ $isModif=true;
+}
+?>
+<form action="" method="post">
+ <input name="action" type="hidden" value="modif_detail_reunion" />
+<?php
+ echo ' <input name="idR" type="hidden" value="' . $idR . '" />'
+?>
+ <table class="detail_reunion" summary="D&eacute;tail de la r&eacute;union que vous avez s&eacute;lectionn&eacute;e">
+ <thead>
+ <tr>
+ <th colspan="2">
+ <?php if ($isModif) { echo 'Modification des d&eacute;tails de la r&eacute;union'; } else { echo 'Cr&eacute;ation d\'une r&eacute;union'; } ?>
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td><strong>Objet :</strong></td>
+ <td>
+ <input name="objetR" type="text" size="40" <?php if ($isModif) { echo 'value="' . $objetR .'"'; } ?>></input>
+ </td>
+ </tr>
+ <tr>
+ <td><strong>Lieu :</strong></td>
+ <td>
+ <input name="lieuR" type="text" size="40" <?php if ($isModif) { echo 'value="' . $lieuR .'"'; } ?>></input>
+ </td>
+ </tr>
+ <tr>
+ <td><strong>Ordre du jour :</strong></td>
+ <td>
+ <textarea name="ordreJourR" cols="40" rows="3"><?php if ($isModif) { echo $ordreJourR; } ?></textarea>
+ </td>
+ </tr>
+ <tr>
+ <td><strong>Remarques :</strong></td>
+ <td>
+ <textarea name="remarquesR" cols="40" rows="3"><?php if ($isModif) { echo $remarquesR; } ?></textarea>
+ </td>
+ </tr>
+ <tr>
+ <td><strong>Etat :</strong></td>
+ <td>
+ <input name="isCancelled" type="checkbox">Annul&eacute;e</input>
+ <input name="isHidden" type="checkbox" checked="checked">Disponibilit&eacute;s masqu&eacute;es</input>
+ </td>
+ </tr>
+ <tr>
+ <!--<td>&nbsp;</td>-->
+ <td colspan="2">
+ <input name="Valider" type="submit" value="Valider"></input>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+</form> \ No newline at end of file