diff options
Diffstat (limited to 'final/app/include/ludo/div_create_or_modif.php')
-rw-r--r-- | final/app/include/ludo/div_create_or_modif.php | 74 |
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éunion : Paramè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é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" 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ée</input> + <input name="isHidden" type="checkbox" checked="checked">Disponibilités masquées</input> + </td> + </tr> + <tr> + <!--<td> </td>--> + <td colspan="2"> + <input name="Valider" type="submit" value="Valider"></input> + </td> + </tr> + </tbody> + </table> +</form>
\ No newline at end of file |