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/include/je.inc.php | 175 +++++++++++++++++++++++++++++++ 1 file changed, 175 insertions(+) create mode 100644 appli_3_alpha_old/app/include/je.inc.php (limited to 'appli_3_alpha_old/app/include/je.inc.php') diff --git a/appli_3_alpha_old/app/include/je.inc.php b/appli_3_alpha_old/app/include/je.inc.php new file mode 100644 index 0000000..e902a1a --- /dev/null +++ b/appli_3_alpha_old/app/include/je.inc.php @@ -0,0 +1,175 @@ + 0) + { + return (mysql_insert_id()); + } + } + + function list_modif($idL,$tabParticipant) + { + $result = mysql_query("SELECT P.idP,P.courrielP FROM Appartenir A, Personne P WHERE P.idP = A.idP AND A.idL=$idL") or die (mysql_error()); + if (mysql_num_rows($result)>=0) + { + //Fabrication des trois tableaux + $tabOldPers = array(); + $tabOldPersMail = array(); + $tabNewPers = array(); + if (!empty($tabParticipant)) $tabNewPers = $tabParticipant; + for($i=0;$i0) + { + $row = mysql_fetch_array($result); + return ($row['idP']); + } + else + { + $result = mysql_query("INSERT INTO Personne (courrielP,loginP) VALUES ('$persMail','$persMail')"); + return (mysql_insert_id()); + } + + return (0); + } + + + + //Fonction qui affiche toutes les liste public ainsi que les liste privée possédées par idP + function generate_html_array_list ($idP) + { + $result = mysql_query("SELECT idL,libelleL,estPrivee,idP_Createur FROM Liste WHERE idP_Createur=$idP OR estPrivee='non' ORDER BY estPrivee,libelleL"); + echo "\n\n\n\n\n\n"; + if (mysql_num_rows($result)>0) + { + + for($i=0;$i\n\n" ; else echo "\n"; + if ($row['estPrivee'] == 'oui') echo "\n\n"; + echo "\n"; + } + + } + echo "
SupprimerTypeLibellé
"; + if ($row['estPrivee'] == 'oui' || $row['idP_Createur']==$idP) echo "\"SupprimerestPrivée" ; else echo "Public"; + echo ""; + echo ""; + echo $row['libelleL']; + echo "
\n"; + + } +?> \ No newline at end of file -- cgit v1.2.3