summaryrefslogtreecommitdiff
path: root/appli_3_alpha_old/app/details_reunion.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:10:17 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:10:17 +0200
commit1269889704386de951d7f91eb169eb1e1bb36cc0 (patch)
treeff0b0fbcf5d6cc6cb769ef25924721e348f339a5 /appli_3_alpha_old/app/details_reunion.php
parentc93c261a461c9a2359bdcd75f7136fcb05237106 (diff)
download2007-AWOR-1269889704386de951d7f91eb169eb1e1bb36cc0.tar.gz
2007-AWOR-1269889704386de951d7f91eb169eb1e1bb36cc0.tar.bz2
2007-AWOR-1269889704386de951d7f91eb169eb1e1bb36cc0.zip
Sous-dossier app entre old4 et old5
Diffstat (limited to 'appli_3_alpha_old/app/details_reunion.php')
-rw-r--r--appli_3_alpha_old/app/details_reunion.php111
1 files changed, 111 insertions, 0 deletions
diff --git a/appli_3_alpha_old/app/details_reunion.php b/appli_3_alpha_old/app/details_reunion.php
new file mode 100644
index 0000000..d453b13
--- /dev/null
+++ b/appli_3_alpha_old/app/details_reunion.php
@@ -0,0 +1,111 @@
+<?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("Détail de la réunion");
+echo "<body>\n";
+
+// DEBUG
+echo '<pre>';
+print_r($_REQUEST);
+echo '</pre>';
+
+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($_REQUEST['idR'] ) || ! is_numeric($_REQUEST['idR']) || ! isset($_SESSION['session_idP']))
+ {
+ $errmsg='Erreur de génération de la page : paramètres erronés ou manquant';
+ }
+ else
+ {
+ $idR=addslashes($_REQUEST['idR']);
+ $idP=$_SESSION['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";
+ echo '<div id="details_reunion">' . "\n";
+ generate_html_reunion_detail2($idR);
+ echo "</div>\n";
+ echo "<br />\n";
+ generate_html_array_personnes_crenaux($idR, $idP);
+ echo "<br />\n";
+ generate_html_reunion_commentaires($idR);
+ 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="post" action="details_reunion.php?idR=<?php echo $idR; ?>" enctype="multipart/form-data">
+Fichier : <input name="fichier" type="file" id="fichier"/>
+<br/><br/>
+<input type="hidden" name="action" value="popfichier" />
+<input type="submit" name="Submit" value="Valider" onclick="popoff('popfichier');"/>
+<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>