From 71b503f07007346eda3d1da71d4a64f31f13d846 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 30 Jun 2018 10:05:02 +0200 Subject: Prmère version alpha 2007-02-03+09:07:04 - 2007-02-06+12:19:50 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appli_3_alpha_old/include/je.inc.php | 99 ++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 appli_3_alpha_old/include/je.inc.php (limited to 'appli_3_alpha_old/include/je.inc.php') diff --git a/appli_3_alpha_old/include/je.inc.php b/appli_3_alpha_old/include/je.inc.php new file mode 100644 index 0000000..cb80df0 --- /dev/null +++ b/appli_3_alpha_old/include/je.inc.php @@ -0,0 +1,99 @@ +=0) + { + //Fabrication des trois tableaux + $tabOldPers = array(); + $tabOldPersMail = array(); + $tabNewPers = array(); + if (isset( $_GET['dataParticipants'] ) ) $tabNewPers = $_GET['dataParticipants']; + for($i=0;$i" . $tabNewPers[$j] . "OU " . $tabOldPersMail[$i] . "==" . $tabNewPers[$j] . "->" ; + echo "" . (($tabOldPers[$i] == $tabNewPers[$j]) or ($tabOldPersMail[$i] == $tabNewPers[$j])) . "
"; + + if (($tabOldPers[$i] == $tabNewPers[$j]) or ($tabOldPersMail[$i] == $tabNewPers[$j])) + { + $exist = true; + print_r($tabNewPers); + $tabNewPers[$j]=NULL; + echo "
"; + print_r($tabNewPers); + echo "
"; + } + } + if ($exist) + { + /* + $tabOldPers[$i] = $tabOldPers[(count($tabOldPers)-1)];unset($tabOldPers[(count($tabOldPers)-1)]); + $tabOldPersMail[$i] = $tabOldPersMail[(count($tabOldPersMail)-1)];unset($tabOldPersMail[(count($tabOldPersMail)-1)]); + } + else + {i++;} + */ + $tabOldPers[$i]=NULL; + $tabOldPersMail[$i]=NULL; + } + $i++; + } + //Tableau permet de savoir qui doit etre supprimer et ajouter + echo "--TabOldPers--
"; + print_r ($tabOldPers); + //for ($i=0;$i<(int)$sizeTabOldPers;$i++) echo "
- " . $tabOldPers[$i]; + echo "
--TabNewPers--
"; + print_r ($tabNewPers); + //for ($i=0;$i<(int)$sizeTabNewPers;$i++) echo " - " . $tabNewPers[$i] ."
"; + } + /* + for ($i=0;$i\n\nType\nLibellé\n\n"; + if (mysql_num_rows($result)>0) + { + + for($i=0;$i\n"; + if ($row['estPrivee'] == 'oui') echo 'Privée' ; else echo 'Public'; + echo "\n"; + echo ""; + echo $row['libelleL']; + echo "\n"; + echo "\n\n"; + } + + } + echo "\n"; + + } +?> \ No newline at end of file -- cgit v1.2.3