From ac54f5224d4470de9d8ae088e1338dea52668c9d Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Thu, 5 Jul 2018 00:25:51 +0200 Subject: Renommage beta_accents -> final pour diffs --- beta_accents/app/include/je.inc.php | 241 ------------------------------------ 1 file changed, 241 deletions(-) delete mode 100644 beta_accents/app/include/je.inc.php (limited to 'beta_accents/app/include/je.inc.php') diff --git a/beta_accents/app/include/je.inc.php b/beta_accents/app/include/je.inc.php deleted file mode 100644 index 53b1043..0000000 --- a/beta_accents/app/include/je.inc.php +++ /dev/null @@ -1,241 +0,0 @@ - 0) - { - return (mysql_insert_id()); - } - return (false); - } - - function list_modif($idL,$tabParticipant) - { - $result = mysql_query("SELECT P.idP,P.courrielP FROM AWOR_Appartenir A, AWOR_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 AWOR_Personne (courrielP,loginP,nomP) VALUES ('$persMail','$persMail','$persMail')"); - return (mysql_insert_id()); - } - - return (false); - } - - - - //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 AWOR_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 htmlentities($row['libelleL'], ENT_QUOTES); - echo "
\n"; - - } - - function traiter_formulaire_commentaire() - { - require_once ('include/tools.inc.php'); - if ($_GET['txtCommentaire'] != "") - { - require_once ('include/connect.inc.php'); - if (isset($_GET['idR'])) - { - $query="UPDATE AWOR_Repondre SET commentaireReponse ='".addslashes_if_needed($_GET['txtCommentaire'])."' WHERE idR=".addslashes_if_needed($_GET['idR'])." AND idP=".$_SESSION['session_idP']; - $result = @mysql_query($query); - if ( ! $result || ( mysql_affected_rows() !== 1 ) ) - { - $query="INSERT INTO AWOR_Repondre(idR,idP,commentaireReponse) VALUES (".addslashes_if_needed($_GET['idR']).", ".$_SESSION['session_idP'].", '".addslashes_if_needed($_GET['txtCommentaire'])."')"; - - $result = mysql_query($query); - if ( ! $result || ( mysql_affected_rows() !== 1 )) - { - echo $query; - echo "Erreur BD\n"; - return; - } - } - } - } - else - { - $query="DELETE FROM AWOR_Repondre WHERE idR=".addslashes_if_needed($_GET['idR'])." AND idP=".$_SESSION['session_idP']; - $result = mysql_query($query); - } - } - - // Modifiée par Ludo pour les problèmes de variables de session et pour d'autres détails : - // S'il n'y a pas de commentaire, on affiche le tableau vide - function generate_html_reunion_commentaires($idR) - { - $idP = $_SESSION['session_idP']; - echo ''; - echo ''; - echo ''; - echo ""; - echo ''; - echo ''; - $requete = "SELECT P.nomP,P.prenomP,P.courrielP,R.commentaireReponse FROM AWOR_Repondre R,AWOR_Personne P WHERE P.idP = R.idP AND R.idR = '".$idR."'"; - //echo "DEBUG : requete : $requete\n"; - $resultat = mysql_query($requete); - if($resultat != false) - { - if(mysql_num_rows($resultat) > 0) - { - while($pers = mysql_fetch_array($resultat)) - { - echo '\n"; - - } - } - else - { - echo "\n"; - } - } - echo '
Commentaires (Editer votre commentaire)
'; - echo htmlentities($pers["nomP"], ENT_QUOTES) . " " . htmlentities($pers["prenomP"], ENT_QUOTES); - echo " : ".htmlentities($pers["commentaireReponse"], ENT_QUOTES)."
Aucun commentaire pour le moment.
'; - } -?> \ No newline at end of file -- cgit v1.2.3