From 1269889704386de951d7f91eb169eb1e1bb36cc0 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 30 Jun 2018 11:10:17 +0200 Subject: Sous-dossier app entre old4 et old5 --- appli_3_alpha_old/app/index.php | 116 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 appli_3_alpha_old/app/index.php (limited to 'appli_3_alpha_old/app/index.php') diff --git a/appli_3_alpha_old/app/index.php b/appli_3_alpha_old/app/index.php new file mode 100644 index 0000000..8356264 --- /dev/null +++ b/appli_3_alpha_old/app/index.php @@ -0,0 +1,116 @@ +\n"; +generate_html_divs_menu(); +?> +
+

+ > Accueil + > Réunions + > Liste des réunions +

+
+ +
+DEBUG : SESSION :\n"; + //~ print_r($_SESSION); + //~ echo "\nDEBUG : REQUEST :\n"; + //~ print_r($_REQUEST); + //~ echo ""; +?> +

+ Organiser une réunion +

+ + + + + + + + +\n"; + echo ' \n"; + echo " \n"; + $dateStr=''; + $stateStr='En préparation'; + if ( isset($dateR) ) + { + $dateStr=date('d/m/Y \à H:i', $dateR); + if ( $dateR > time() ) + { + $stateStr='Fixée'; + } + else + { + $stateStr='Passée'; + } + } + echo " \n"; + echo " \n"; + echo ' \n"; + echo " \n"; + } + } + } + + + // Réunions fixées et passées + $query = 'SELECT DISTINCT R.idR, R.objetR, P.nomP, P.prenomP, UNIX_TIMESTAMP(C.dateHeure)' + . ' FROM Liste L,Reunion R,Appartenir A,Creneau C,Personne P' + . " WHERE ((A.idP = $idP AND A.idL = L.idL) OR R.idP_Orga = $idP)" + . ' AND R.idL = L.idL AND P.idP = R.idP_Orga AND R.idC_Fixe = C.idC' + . ' ORDER BY C.dateHeure DESC;'; + fill_array_liste_reunion($query); + + // Réunion en préparation + $query = 'SELECT DISTINCT R.idR, R.objetR, P.nomP, P.prenomP, NULL' + . ' FROM Liste L,Reunion R,Appartenir A,Personne P' // Creneau C, + . " WHERE ((A.idP = $idP AND A.idL = L.idL) OR R.idP_Orga = $idP)" + . ' AND R.idL = L.idL AND P.idP = R.idP_Orga AND ISNULL(R.idC_Fixe);'; + //echo "DEBUG : $query\n"; + fill_array_liste_reunion($query); + + //$query = + //echo "DEBUG : $query\n"; +?> +
ObjetOrganisateurDateEtatDétails
' . "$objetR$prenomP $nomP$dateStr$stateStr'; + generate_html_reunion_detail_button($idR); + echo "
+
+ Organiser une réunion +
+ + + + -- cgit v1.2.3