summaryrefslogtreecommitdiff
path: root/appli_3_alpha_old/details_reunion.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 10:05:02 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 10:05:02 +0200
commit71b503f07007346eda3d1da71d4a64f31f13d846 (patch)
tree3d1aaa880857eb05e7e9c1f2d75f309507dd9c07 /appli_3_alpha_old/details_reunion.php
parent756f0fa75c7d8e18188dffdfbdd4416651dca9fe (diff)
download2007-AWOR-71b503f07007346eda3d1da71d4a64f31f13d846.tar.gz
2007-AWOR-71b503f07007346eda3d1da71d4a64f31f13d846.tar.bz2
2007-AWOR-71b503f07007346eda3d1da71d4a64f31f13d846.zip
Prmère version alpha 2007-02-03+09:07:04 - 2007-02-06+12:19:50
Diffstat (limited to 'appli_3_alpha_old/details_reunion.php')
-rw-r--r--appli_3_alpha_old/details_reunion.php107
1 files changed, 107 insertions, 0 deletions
diff --git a/appli_3_alpha_old/details_reunion.php b/appli_3_alpha_old/details_reunion.php
new file mode 100644
index 0000000..599c918
--- /dev/null
+++ b/appli_3_alpha_old/details_reunion.php
@@ -0,0 +1,107 @@
+<?php
+require('include/ludo/session_verify.inc.php');
+require_once('include/connect.inc.php');
+require_once('include/ludo/html_elements.inc.php');
+require_once('include/ludo/fonctions.inc.php');
+
+
+require_once('include/je.inc.php');
+require_once('include/ju.inc.php');
+
+
+if ( isset($_REQUEST['action']) )
+{
+ /*
+ switch ($_REQUEST['action'])
+ {
+ 'reunion_modif':
+
+ break;
+
+ default:
+ echo "type de formulaire non enregistré :!!!\n\n";
+ }
+ */
+ $nom_func = 'traiter_formulaire_' . $_REQUEST['action'];
+ $nom_func();
+}
+
+generate_html_doctype_and_head("Modèle");
+
+echo "<body>\n";
+
+generate_html_divs_menu();
+?>
+ <div id="sous_menu">
+ <p class="arbre">
+ &gt; <a href="index.php">Accueil</a>
+ &gt; <a href="index.php">R&eacute;unions</a>
+ &gt; D&eacute;tails d'une r&eacute;union
+ </p>
+ </div>
+<?php
+ // Connexion à la base et sélection de la database
+ require_once 'include/connect.inc.php';
+
+ if ( ! isset($_GET['idR'] ) || ! is_numeric($_GET['idR']) || ! isset($_SESSION['idP']))
+ {
+ $errmsg='Erreur de génération de la page : paramètres erronés ou manquant';
+ }
+ else
+ {
+ $idR=addslashes($_GET['idR']);
+ $idP=$_SESSION['idP'];
+
+ // Vérification que la réunion nous concerne bien
+ $query="SELECT * FROM Appartenir a WHERE a.idL=$idR, a.idP=$idP;";
+ if ( ( $result = @mysql_query($query) ) && ( mysql_num_rows($result) === 1 ) )
+ {
+ $errmsg='Vous n\'avez pas le droit de consulter cette page : cette réunion n\'existe pas ou ne vous concerne pas !';
+ }
+ }
+
+ if ( isset($errmsg) )
+ {
+ generate_html_div_errmsg($errmsg);
+ echo '</body></html>';
+ exit();
+ }
+
+
+ generate_html_div_help('help/details_reunion_admin.php.hlp');
+ echo '<div id="contenu">' . "\n";
+ generate_html_reunion_detail($idR);
+ echo "<br />\n";
+ generate_html_array_personnes_crenaux($idR, $idP);
+ echo "<br />\n";
+ generate_html_reunion_fichiers($idR);
+?>
+</div>
+<div id="popcommentaire" class="popup_commentaire">
+<h2>Editer votre commentaire</h2>
+<div class="popup_contenu">
+<form id="formcommentaire" method="get" action="details_reunion_admin.php">
+Commentaire : <input name="txtCommentaire" type="text" id="txtCommentaire" />
+<br/><br/>
+<input type="submit" name="Submit" value="Enregistrer" /><input type="button" name="fermer" value="Fermer" alt="commentaire" />
+</form>
+</div>
+</div>
+
+<div id="popfichier" class="popup_fichier">
+<h2>Ajouter un fichier</h2>
+<div class="popup_contenu">
+<form id="formfichier" method="get" action="details_reunion_admin.php">
+Fichier : <input name="fichier" type="file" id="fichier"/>
+<br/><br/>
+<input type="submit" name="Submit" value="Valider" /><input type="button" value="fermer" onclick="popoff('popfichier');"/>
+</form>
+</div>
+</div>
+
+<div class="popup" id="popfixer"></div>
+<div class="popup_creneau" id="popcreneau"></div>
+<div id="poppersonne" class="popup_personne"></div>
+<div id="masque"></div>
+</body>
+</html>