Browse Source

first commit

Pierre Ton-That 2 months ago
commit
317bcf9b00
100 changed files with 9825 additions and 0 deletions
  1. 5 0
      .gitignore
  2. 5 0
      html/admin/.htaccess
  3. 34 0
      html/admin/emails_attente.php
  4. 34 0
      html/admin/emails_textarea.php
  5. 27 0
      html/admin/emails_texte.php
  6. 7 0
      html/admin/includes/page_bas.php
  7. 18 0
      html/admin/includes/page_haut.php
  8. 30 0
      html/admin/includes/page_menu.php
  9. 15 0
      html/admin/includes/page_vide.php
  10. 15 0
      html/admin/index.php
  11. 27 0
      html/admin/livredor.php
  12. 21 0
      html/admin/livredor_effacement.php
  13. 146 0
      html/admin/participant_ajout.php
  14. 48 0
      html/admin/participant_choix.php
  15. 24 0
      html/admin/participant_effacement.php
  16. 369 0
      html/admin/participant_formulaire.php
  17. 322 0
      html/admin/participant_formulaire_ajout.php
  18. 108 0
      html/admin/participant_modification.php
  19. 93 0
      html/admin/participants_creer_jgk.php
  20. 149 0
      html/admin/participants_creer_pdf.php
  21. 135 0
      html/admin/participants_creer_sql.php
  22. 89 0
      html/admin/participants_creer_vote.php
  23. 88 0
      html/admin/participants_creer_xlt.php
  24. 46 0
      html/admin/participants_exporter.php
  25. 109 0
      html/admin/participants_liste.php
  26. 7 0
      html/admin/pdf/fontes/courier.php
  27. 15 0
      html/admin/pdf/fontes/helvetica.php
  28. 15 0
      html/admin/pdf/fontes/helveticab.php
  29. 15 0
      html/admin/pdf/fontes/helveticabi.php
  30. 15 0
      html/admin/pdf/fontes/helveticai.php
  31. 251 0
      html/admin/pdf/fontes/makefont/cp1250.map
  32. 255 0
      html/admin/pdf/fontes/makefont/cp1251.map
  33. 251 0
      html/admin/pdf/fontes/makefont/cp1252.map
  34. 239 0
      html/admin/pdf/fontes/makefont/cp1253.map
  35. 249 0
      html/admin/pdf/fontes/makefont/cp1254.map
  36. 233 0
      html/admin/pdf/fontes/makefont/cp1255.map
  37. 244 0
      html/admin/pdf/fontes/makefont/cp1257.map
  38. 247 0
      html/admin/pdf/fontes/makefont/cp1258.map
  39. 225 0
      html/admin/pdf/fontes/makefont/cp874.map
  40. 256 0
      html/admin/pdf/fontes/makefont/iso-8859-1.map
  41. 248 0
      html/admin/pdf/fontes/makefont/iso-8859-11.map
  42. 256 0
      html/admin/pdf/fontes/makefont/iso-8859-15.map
  43. 256 0
      html/admin/pdf/fontes/makefont/iso-8859-16.map
  44. 256 0
      html/admin/pdf/fontes/makefont/iso-8859-2.map
  45. 256 0
      html/admin/pdf/fontes/makefont/iso-8859-4.map
  46. 256 0
      html/admin/pdf/fontes/makefont/iso-8859-5.map
  47. 250 0
      html/admin/pdf/fontes/makefont/iso-8859-7.map
  48. 256 0
      html/admin/pdf/fontes/makefont/iso-8859-9.map
  49. 256 0
      html/admin/pdf/fontes/makefont/koi8-r.map
  50. 256 0
      html/admin/pdf/fontes/makefont/koi8-u.map
  51. 416 0
      html/admin/pdf/fontes/makefont/makefont.php
  52. 15 0
      html/admin/pdf/fontes/symbol.php
  53. 15 0
      html/admin/pdf/fontes/times.php
  54. 15 0
      html/admin/pdf/fontes/timesb.php
  55. 15 0
      html/admin/pdf/fontes/timesbi.php
  56. 15 0
      html/admin/pdf/fontes/timesi.php
  57. 15 0
      html/admin/pdf/fontes/zapfdingbats.php
  58. 11 0
      html/admin/pdf/fpdf.css
  59. 1655 0
      html/admin/pdf/fpdf.php
  60. 80 0
      html/admin/statistiques.php
  61. 1 0
      html/documents/.htaccess
  62. 499 0
      html/documents/alchimie13.ics
  63. 46 0
      html/documents/autorisation_parentale.rtf
  64. BIN
      html/documents/modele_presentation.otp
  65. BIN
      html/documents/modele_presentation.pot
  66. BIN
      html/images/affiche11.jpg
  67. BIN
      html/images/affiche13.jpg
  68. BIN
      html/images/affiche15.jpg
  69. BIN
      html/images/affiche17.jpg
  70. BIN
      html/images/affiche7.jpg
  71. BIN
      html/images/affiche9.jpg
  72. BIN
      html/images/affichea5.jpg
  73. BIN
      html/images/affiches.jpg
  74. BIN
      html/images/amigabouffes/desmachinesetdesgeek.jpg
  75. BIN
      html/images/amigabouffes/despommesetundormeur.jpg
  76. BIN
      html/images/amigabouffes/monsieurpropre.jpg
  77. BIN
      html/images/amigabus.jpg
  78. BIN
      html/images/amigabus2.jpg
  79. BIN
      html/images/associations/4a.jpg
  80. BIN
      html/images/associations/8tease.jpg
  81. BIN
      html/images/associations/adinpsz.png
  82. BIN
      html/images/associations/aful.png
  83. BIN
      html/images/associations/afup.gif
  84. BIN
      html/images/associations/aldil.jpg
  85. BIN
      html/images/associations/amf.gif
  86. BIN
      html/images/associations/amigafrance.com.png
  87. BIN
      html/images/associations/amigaimpact.png
  88. BIN
      html/images/associations/amigang.png
  89. BIN
      html/images/associations/amigazette.jpg
  90. BIN
      html/images/associations/amigazette83.gif
  91. BIN
      html/images/associations/amiposte.jpg
  92. BIN
      html/images/associations/amstrad.eu.png
  93. BIN
      html/images/associations/annuaire.gif
  94. BIN
      html/images/associations/apolloteam.png
  95. BIN
      html/images/associations/apower.jpg
  96. BIN
      html/images/associations/bac.gif
  97. BIN
      html/images/associations/bandeauboingattack.jpg
  98. BIN
      html/images/associations/barbarie.jpg
  99. BIN
      html/images/associations/boingattitude.png
  100. 0 0
      html/images/associations/caliban.jpg

+ 5 - 0
.gitignore

@@ -0,0 +1,5 @@
+.DS_Store
+config_mdp.php
+*.mp4
+
+backup/*

+ 5 - 0
html/admin/.htaccess

@@ -0,0 +1,5 @@
+AuthType Basic
+AuthUserFile /etc/htpasswd
+AuthName "Triple A Member only"
+Require valid-user
+

+ 34 - 0
html/admin/emails_attente.php

@@ -0,0 +1,34 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+
+<p class="titre">Emails des participants</p> 
+
+<br><br>
+
+Dont le statut est 'En attente' = paiement pas encore reçu.</p>
+
+<br><br>
+
+<? 
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+if (mysqli_connect_errno()) { echo "Connexion impossible !"; } else
+{
+	$requete = "SELECT DISTINCT Email FROM ".$TABLEListe." where ligneAffichee = 1 AND Statut = 'En attente' ";
+	$res = mysqli_query($link, $requete) or die ('ERREUR '.$requete.' '.mysqli_error($link));
+   
+   	$liste = '';
+   	while($col = mysqli_fetch_array($res)) { $liste .= $col["Email"].","; }
+   	mysqli_free_result($res);
+}
+$liste = rtrim($liste); 
+?>
+
+<center><TEXTAREA NAME="liste" rows="25" cols="70" WRAP=VIRTUAL><? echo rtrim($liste, ","); ?></TEXTAREA></center>
+
+<? include("includes/page_bas.php"); ?>

+ 34 - 0
html/admin/emails_textarea.php

@@ -0,0 +1,34 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+
+<p class="titre">Emails des participants.</p>
+
+<br><br>
+
+Liste entière.</p>
+
+<br><br>
+
+<? 
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+if (mysqli_connect_errno()) { echo "Connexion impossible !"; } else
+{
+	$requete = "SELECT DISTINCT Email FROM ".$TABLEListe." where ligneAffichee = 1";
+	$res = mysqli_query($link, $requete) or die ('ERREUR '.$requete.' '.mysqli_error($link));
+   
+	$liste = '';
+	while($col = mysqli_fetch_array($res)) { $liste .= $col["Email"].","; }
+	mysqli_free_result($res);
+}
+$liste = rtrim($liste); 
+?>
+
+<center><TEXTAREA NAME="liste" rows="25" cols="70" WRAP=VIRTUAL><? echo rtrim($liste, ","); ?></TEXTAREA></center>
+
+<? include("includes/page_bas.php"); ?>

+ 27 - 0
html/admin/emails_texte.php

@@ -0,0 +1,27 @@
+<? require('../pages/includes/config.php');
+ 
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+if (mysqli_connect_errno()) { echo "Connexion impossible !"; } else
+{
+	$res = mysqli_query($link, "SELECT DISTINCT Email FROM ".$TABLEListe." where ligneAffichee = 1") or die ('Erreur SQL: '.mysqli_error($link));
+	
+	$liste = '';
+	$nb = 0;
+	while($col = mysqli_fetch_array($res)) { $liste .= $col["Email"].","; $nb++; }
+  
+	mysqli_free_result($res);
+
+	$liste = rtrim(rtrim($liste), ",");
+  
+	if ($nb > 0) 
+	{  	
+		echo($liste);
+  		exit();
+	}
+	else 
+	{ 
+		echo "Aucun email enregistré dans la liste"; 
+  	}
+}
+?>

+ 7 - 0
html/admin/includes/page_bas.php

@@ -0,0 +1,7 @@
+<BR><P><BR></TD></TR>
+<TR>
+<TD VALIGN="BOTTOM" ALIGN="RIGHT" COLSPAN="2" CLASS="bodyline3 petit_texte">&nbsp;© 2020 - site web par <a href="https://www.triplea.fr">Triple&nbsp;A</a>&nbsp;</TD>
+</TR>
+</TABLE></CENTER></DIV>
+</body>
+</html>

+ 18 - 0
html/admin/includes/page_haut.php

@@ -0,0 +1,18 @@
+<html>
+<head>
+<title>Site de l<? echo $PARTYName; ?>, partie Administration</title>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<link rel="stylesheet" href="../pages/styles/fontes.css" type="text/css">
+<link rel="stylesheet" href="../pages/styles/general.css" type="text/css">
+<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
+<META NAME="author" CONTENT="BigDan, Rajah">
+<META NAME="Copyright" CONTENT="2018 Triple A">
+<META NAME="Generator" CONTENT="mes dix petits doigts et mon cerveau">
+<META NAME="Distribution" CONTENT="Global">
+<META NAME="Robots" CONTENT="none">
+<META HTTP-EQUIV="Content-language" CONTENT="fr">
+<META NAME="description" CONTENT="Le salon de la récréation numérique - partie admin">
+<META NAME="keywords" CONTENT="alchimie, triple a, boing attack, coding party, amiga, atari, macintosh, linux, libre, rétrogaming, rétrocomputing, arcade, ludique">
+</head>
+
+<body bgcolor="white" text="black" link="#B40431" vlink="#DF0101" alink="#DF0101">

+ 30 - 0
html/admin/includes/page_menu.php

@@ -0,0 +1,30 @@
+
+<DIV STYLE="position:relative;text-align:center;"><CENTER><TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="5">
+
+<TR>
+<TD ALIGN="RIGHT" WIDTH="20%" VALIGN="TOP" CLASS="bodyline1"><TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2">
+
+<TR><TH ALIGN="LEFT" CLASS="texte_menu"><NOBR>Administration&nbsp;</NOBR></TH><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="index.php">Accueil&nbsp;</A></NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="texte_menu"><NOBR>Participants&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="participants_liste.php">Liste</A>&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="participant_choix.php">Modifier</A>&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="participant_formulaire_ajout.php">Ajouter</A>&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="participants_exporter.php">Exports</A>&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="texte_menu"><NOBR>Emails</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="emails_textarea.php">Tous</A>&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="emails_attente.php" TARGET="_blank">En attente</A>&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="texte_menu"><NOBR>Divers&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="livredor.php">Livre d'or</A>&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="statistiques.php">Statistiques</A>&nbsp;</NOBR></TD><TR>
+
+<TR><TD ALIGN="LEFT" CLASS="texte_menu"><NOBR></NOBR></TD><TR>
+
+<TR><TH ALIGN="LEFT" CLASS="texte_menu"><NOBR>Retour au site&nbsp;</NOBR></TH><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="../pages/index.php">Accueil</A>&nbsp;</NOBR></TD><TR>
+<TR><TD ALIGN="LEFT" CLASS="petit_texte_menu"><NOBR>&nbsp;&nbsp;&nbsp;<A HREF="../pages/participants.php">Participants</A>&nbsp;</NOBR></TD><TR>
+
+</TABLE>
+
+</TD>
+<TD ALIGN="LEFT" WIDTH="80%" VALIGN="TOP" CLASS="bodyline2 texte"><DIV>

+ 15 - 0
html/admin/includes/page_vide.php

@@ -0,0 +1,15 @@
+<CENTER><TABLE BORDER="0" CELLSPACING="2" CELLPADDING="5" WIDTH="900">
+
+<TR>
+<TD ALIGN="CENTER" COLSPAN="2"><IMG SRC="../images/microalchimie2020.png" ALT="[Logo µAlchimie VI]" WIDTH="900" HEIGHT="248"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="RIGHT" VALIGN="TOP" WIDTH="90"><TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2" WIDTH="100%">
+
+<TR><TH ALIGN="LEFT" CLASS="texte"><NOBR>&nbsp;</NOBR></TH><TR>
+
+</TABLE>
+
+</TD>
+<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="800" BGCOLOR="#FFFFFF" CLASS="bodyline"><SPAN CLASS="texte">

+ 15 - 0
html/admin/index.php

@@ -0,0 +1,15 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+
+<p class="titre">Fonctions d'administration pour les inscriptions</p>
+
+<br><br>
+
+<center>Veuillez sélectionner la fonction désirée dans le menu à gauche.</center>
+
+<? include("includes/page_bas.php"); ?>

+ 27 - 0
html/admin/livredor.php

@@ -0,0 +1,27 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+
+<p class="titre">Gestion du livre d'or</p>
+
+<br><br>
+
+<script type="text/javascript"><!--// 
+
+function verif() {
+	if (confirm("Confirmez-vous le retrait de l'affichage ?")) { return true; } else { return false; }
+	}
+
+//-->
+</script>
+
+<center><form name="del" action="livredor_effacement.php" method="POST"> 
+Retirer de l'affichage le message #<INPUT TYPE="text" SIZE="4" MAXLENGTH="4" NAME="Id">
+<input type="submit" onClick="return verif();" value="Ok">
+</form></center>
+
+<? include("includes/page_bas.php"); ?>

+ 21 - 0
html/admin/livredor_effacement.php

@@ -0,0 +1,21 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+<?	
+$Id = $_POST["Id"];
+if ($Id > 0) 
+{
+	$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+	
+	$update_reussi = mysqli_query($link, "UPDATE ".$TABLELivredor." SET ligneAffichee = 0 WHERE Id='$Id'") or die ("<font color=\"#BF0000\">Erreur pendant l'effacement.</font><BR>($requete_sql)<BR>(\"".mysqli_error($link)."\")");     
+
+	if ($update_reussi)  { echo "<center>Le message Id=$Id a été retiré de l'affichage.</center>"; }
+}
+
+?></center>
+
+<? include("includes/page_bas.php"); ?>

+ 146 - 0
html/admin/participant_ajout.php

@@ -0,0 +1,146 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<?
+$nom = preg_replace("[^à-üa-z A-Z]", "", $_POST['nom']);
+$prenom = $_POST['prenom'];
+$pseudo = $_POST['pseudo'];
+$groupe = $_POST['groupe'];
+$adresse = $_POST['adresse'];
+$code_postal = preg_replace("[^ abAB0-9]", "", $_POST['code_postal']);
+$ville = preg_replace("[^à-üa-z A-Z]", "", $_POST['ville']);
+$pays = $_POST['pays'];
+$telephone = preg_replace("[^ .()+0-9]", "", $_POST['telephone']);
+$email = trim($_POST['email']);
+$password = trim($_POST['password']);
+$password_md5 = md5(trim($_POST['password']));
+$machine = $_POST['machine'];
+$amigabus = "";
+$dodosurplace = 0; if (isset($_POST['dodosurplace'])) { $dodosurplace = $_POST['dodosurplace']; }
+$paiement= $_POST['paiement'];
+$commentaires = $_POST['commentaires'];
+$inscription_reussie = false;
+$commentaires = htmlspecialchars($commentaires, ENT_QUOTES);
+if (strlen($commentaires) > 1023) {$commentaires = substr($commentaires, 0, 1023); }
+$commentaires = mysqli_real_escape_string($link, $commentaires);
+
+$presence_lien_web = false;
+//if ((stripos($commentaires, "http") !== false) || (stripos($commentaires, "href") !== false)) { $presence_lien_web = true; }
+
+if ($nom !== '' && $presence_lien_web === false) {
+
+	$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName) or die("Impossible de se connecter");
+	mysqli_set_charset($link, "utf8");
+
+    $K1='N'; if (strlen($PARTYJour1) > 0) { if (isset($_POST['J1'])) { $K1='O'; } }
+    $K2='N'; if (strlen($PARTYJour2) > 0) { if (isset($_POST['J2'])) { $K2='O'; } }
+    $K3='N'; if (strlen($PARTYJour3) > 0) { if (isset($_POST['J3'])) { $K3='O'; } }
+
+	if ($paiement === "cheque") { $paiement = 'cheque'; }  elseif ($paiement === "virement" ) { $paiement = 'virement'; } elseif ($paiement === "paypal" ) { $paiement = 'paypal'; }
+
+    $requete_sql  = "INSERT INTO ".$TABLEListe." (Nom, Prenom, Pseudo, Groupe, Adresse, CodePostal, Ville, Pays, Telephone, Email, Pwd_md5, Statut, Machine, Commentaires, J1, J2, J3, paiement, dateInscription, dodoSurPlace) ";
+    $requete_sql .= "VALUES ('$nom', '$prenom', '$pseudo', '$groupe', '$adresse', '$code_postal', '$ville', '$pays', '$telephone', '$email', '$password_md5',  'En attente', '$machine', '$commentaires', '$K1', '$K2', '$K3', '$paiement', CURRENT_TIMESTAMP, '$dodosurplace')";
+
+	$inscription_reussie = mysqli_query($link, $requete_sql) or die ("<font color=\"#BF0000\">Erreur pendant l'inscription, merci de le signaler à ".$PARTYEmailantispam."</font><BR>($requete_sql)<BR>(\"".mysqli_error($link)."\")<BR>Il est également possible que vous tombiez pendant une mise à jour.<BR>Juste au cas où, faites un retour en arrière après une petite minute et renvoyez le formulaire.");
+
+	mysqli_close($link);
+?>
+
+<br><br>
+<p class="titre">Ajout enregistré :</p>
+
+<br>
+<center><table border="0" cellpadding="5" cellspacing="0">
+<tr><td class="texte">Nom</td><td class="texte"><? echo stripslashes($nom); ?></td></tr>
+<tr><td class="texte">Prénom</td><td class="texte"><? echo stripslashes($prenom); ?></td></tr>
+<tr><td class="texte">Pseudo / Groupe</td><td class="texte"><? echo stripslashes($pseudo)." / ".stripslashes($groupe); ?></td></tr>
+<tr><td class="texte">Adresse</td><td class="texte"><? echo stripslashes($adresse); ?></td></tr>
+<tr><td class="texte">CP Ville</td><td class="texte"><? echo $code_postal."  ".stripslashes($ville); ?></td></tr>
+<tr><td class="texte">Pays</td><td class="texte"><? echo $pays; ?></td></tr>
+<tr><td class="texte">Téléphone</td><td class="texte"><? echo $telephone; ?></td></tr>
+<tr><td class="texte">Email</td><td class="texte"><? echo $email; ?></td></tr>
+<tr><td class="texte">Statut</td><td class="texte">En attente</td></tr>
+<tr><td class="texte">Machine</td><td class="texte"><? echo $machine; ?></td></tr>
+<tr><td class="texte">Commentaires</td><td valign="top" class="texte"><? echo stripslashes($commentaires); ?></td></tr>
+<? if (strlen($PARTYJour1) > 0) { ?><tr><td class="texte"><? echo $PARTYJour1 ?></td><td class="texte"><? if (isset($_POST['J1'])) {echo "Oui";} else {echo "Non"; } ?></td></tr><? } ?>
+<? if (strlen($PARTYJour2) > 0) { ?><tr><td class="texte"><? echo $PARTYJour2 ?></td><td class="texte"><? if (isset($_POST['J2'])) {echo "Oui";} else {echo "Non"; } ?></td></tr><? } ?>
+<? if (strlen($PARTYJour3) > 0) { ?><tr><td class="texte"><? echo $PARTYJour3 ?></td><td class="texte"><? if (isset($_POST['J3'])) {echo "Oui";} else {echo "Non"; } ?></td></tr><? } ?>
+<? if ($PARTYNombrePlacesDodoEnTout > 0) { ?><tr><td class="texte">Nuit sur place</td><td class="texte"><? echo $dodosurplace; ?></td></tr><? } ?>
+<tr><td class="texte">Paiement</td><td class="texte"><? echo $paiement; ?></td></tr>
+</table>
+
+<br><br>
+
+<center><?
+
+		$headers  = "From: ".$PARTYEmail."\r\n";
+		$headers .= "Bcc: ".$PARTYEmail." ".$PARTYEmailCopy."\r\n";
+		$headers .= "X-Sender: <".$PARTYEmail.">\r\n";
+		$headers .= "X-Mailer: PHP\r\n";
+		$headers .= "X-Priority: 1\r\n";
+		$headers .= "Return-Path: ".$PARTYEmail."\r\n";
+		$headers .= "Content-Type: text/plain; charset=utf-8\r\n";
+		$headers .= "Content-Transfer-Encoding: 8bit\r\n";
+
+		$message  = "---------------------------------------------------------\r\n";
+		$message .= "        ".$PARTYName."\r\n";
+		$message .= "---------------------------------------------------------\r\n";
+		$message .= "Nous vous confirmons votre réservation.\r\n";
+		$message .= "\r\n";
+		$message .= $MAILTarifs;
+		$message .= "---------------------------------------------------------\r\n";
+		$message .= "Nom       : ".trim(stripslashes($nom))."\r\n";
+		$message .= "Prénom    : ".trim(stripslashes($nom))."\r\n";
+		$message .= "Pseudo    : ".trim(stripslashes($pseudo))."\r\n";
+		$message .= "Groupe    : ".trim(stripslashes($groupe))."\r\n";
+		$message .= "Adresse   : ".trim(stripslashes($adresse))."\r\n";
+		$message .= "CP Ville  : ".trim($code_postal)."  ".trim(stripslashes($ville))."\r\n";
+		$message .= "Pays      : ".trim($pays)."\r\n";
+		$message .= "Telephone : ".trim($telephone)."\r\n";
+		$message .= "Email     : ".$email."\r\n";
+		$message .= "Password  : ".$password."\r\n";
+		$message .= "Statut    : En Attente\r\n";
+		$message .= "Machine   : ".trim($machine)."\r\n";
+		$message .= "---------------------------------------------------------\r\n";
+		$message .= "Commentaires  : ".trim(stripslashes($commentaires))."\r\n";
+		$message .= "---------------------------------------------------------\r\n";
+		if (strlen($PARTYJour1) > 0) { $message .= $PARTYJour1." : "; if (isset($_POST['J1'])) {$message .= "Oui"; } else {$message .= "Non"; } $message .= "\r\n"; }
+		if (strlen($PARTYJour2) > 0) { $message .= $PARTYJour2." : "; if (isset($_POST['J2'])) {$message .= "Oui"; } else {$message .= "Non"; } $message .= "\r\n"; }
+		if (strlen($PARTYJour3) > 0) { $message .= $PARTYJour3." : "; if (isset($_POST['J3'])) {$message .= "Oui"; } else {$message .= "Non"; } $message .= "\r\n"; }
+		if ($PARTYNombrePlacesDodoEnTout > 0) { $message .= "Je dors sur place : ".trim($dodosurplace)."\r\n"; }
+		$message .= "---------------------------------------------------------\r\n";
+
+	if ($paiement === "cheque") {
+		$message .= $MAILPaimentCheque;
+		}
+	elseif ($paiement === "virement")  {
+		$message .= $MAILPaimentVirement;
+		}
+	elseif ($paiement === "paypal")  {
+		$message .= $MAILPaimentPaypal;
+		}
+
+		$message .= $MAILAide;
+
+		if ($email !== '' && $inscription_reussie == true) {
+
+			if (mail($email, "* Confirmation de reservation ".$PARTYName." *", $message, $headers)) {
+
+				echo "<font color=\"#008000\">La confirmation de l'inscription vient d'être envoyée&nbsp;!</font>";
+				}
+			else {
+				echo "<font color=\"#BF0000\">Une erreur s'est produite lors de l'envoi du mail de confirmation de l'inscription.</font><br>L'inscription s'est quand même bien passé, vous pouvez vérifier cela au niveau de la liste des participants.";
+				}
+			}
+		}
+	else {
+		echo "<font color=\"#BF0000\">Il manque un certains nombre d'informations, ou celles-ci ne sont pas correctes.</font>";
+		}
+?></center>
+
+<br><br>
+
+<? include("includes/page_bas.php"); ?>

+ 48 - 0
html/admin/participant_choix.php

@@ -0,0 +1,48 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+
+<p class="titre">Gestion d'un participant</p>
+
+<br><br>
+
+<center><form name="maj" action="participant_formulaire.php" method="POST"> 
+<select name="Id" size="1">
+<? 
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+$result = mysqli_query($link, "SELECT Id, Nom, Pseudo, Groupe FROM ".$TABLEListe." where ligneAffichee = 1 ORDER BY Id");
+while ($row = mysqli_fetch_row($result)) {
+echo "<option value='$row[0]'> $row[1] ($row[2] / $row[3]) </option>";  } ?>
+</select>
+<input type="submit" value="Editer">
+</form></center>
+
+<br><br>
+
+<br><br>
+
+<script type="text/javascript"><!--// 
+
+function verif() {
+	if (confirm("Confirmez-vous le retrait de ce participant ?")) { return true; } else { return false; }
+	}
+
+//-->
+</script>
+
+<center><form name="del" action="participant_effacement.php" method="POST"> 
+<select name="Id" size="1">
+<? $link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+$result = mysqli_query($link, "SELECT Id, Nom, Pseudo, Groupe FROM ".$TABLEListe." where ligneAffichee = 1 ORDER BY Id");
+while ($row = mysqli_fetch_row($result)) {
+echo "<option value='$row[0]'> $row[1] ($row[2] / $row[3]) </option>";  } ?>
+</select>
+<input type="submit" onClick="return verif();" value="Effacer">
+</form></center>
+
+<? include("includes/page_bas.php"); ?>

+ 24 - 0
html/admin/participant_effacement.php

@@ -0,0 +1,24 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+<? 
+	
+$Id = $_POST["Id"];
+
+if ($Id > 0) {
+	
+	$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+	
+	$update_reussi = mysqli_query($link, "UPDATE ".$TABLEListe." SET ligneAffichee = 0 WHERE Id='$Id'") or die ("<font color=\"#BF0000\">Erreur pendant l'effacement.</font><BR>($requete_sql)<BR>(\"".mysqli_error($link)."\")");     
+
+	if ($update_reussi)  { echo "<center>L'enregistrement Id=$Id a été retiré.</center>"; }
+	}
+
+
+?></center>
+
+<? include("includes/page_bas.php"); ?>

+ 369 - 0
html/admin/participant_formulaire.php

@@ -0,0 +1,369 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+
+<p class="titre">Edition des informations d'un participant</p>
+
+<br><br>
+
+<?
+ date_default_timezone_set("Europe/Paris");
+
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+$Id = $_POST["Id"];
+$result = mysqli_query($link, "SELECT * FROM ".$TABLEListe." WHERE Id = '$Id'");
+while($row=mysqli_fetch_array($result)) {
+	$Id=$row["Id"];
+    $Nom=$row["Nom"];
+    $Prenom=$row["Prenom"];
+    $Pseudo=$row["Pseudo"];
+    $Groupe=$row["Groupe"];
+    $Adresse=$row["Adresse"];
+	  $CodePostal=$row["CodePostal"];
+    $Ville=$row["Ville"];
+    $Pays=$row["Pays"];
+    $Telephone=$row["Telephone"];
+    $Email=$row["Email"];
+    $Statut=$row["Statut"];
+    $sommeRecue=$row["sommeRecue"];
+    $Machine=$row["Machine"];
+    $Commentaire=$row["Commentaires"];
+    $J1=$row["J1"];
+    $J2=$row["J2"];
+    $J3=$row["J3"];
+    $dodosurplace=$row["dodoSurPlace"];
+    $Ip=$row["Ip"];
+    $dateInscription=$row["dateInscription"];
+}
+?>
+
+<script type="text/javascript"><!--//
+
+function verif() {
+
+	var f = document.monformulaire;
+
+	if (f.nom.value == "") { alert("Il manque le nom !"); f.nomprenom.focus(); return false; }
+
+	if (f.adresse.value == "") { alert("Il manque l'adresse postale !"); f.focus(); return false; }
+
+	if (f.code_postal.value == "") { alert("Il manque le code postal !"); f.code_postal.focus(); return false; }
+
+	if (f.ville.value == "") {	alert("Il manque la ville !"); f.ville.focus();	return false; }
+
+	if (f.pays.options[f.pays.options.selectedIndex].value == "") { alert("Il manque le pays."); f.pays.focus(); return false; }
+
+	if (f.email.value == "") { alert("Il manque l'email !"); f.email.focus(); return false; }
+
+	return true;
+	}
+
+//-->
+</script>
+
+<FORM METHOD="post" NAME="monformulaire" ACTION="participant_modification.php" ACCEPT-CHARSET="utf-8">
+
+<CENTER><TABLE BORDER="0" CELLPADDING="5" CELLSPACING="0">
+
+<TR>
+<TD ALIGN="right" CLASS="texte">&nbsp;</TD>
+<TD ALIGN="left" CLASS="petit_texte">Les champs précédés d'une astérisque <font color="red">*</font> sont obligatoires.</TD>
+</TR>
+
+<? if (strtotime($dateInscription) > 0) { ?><TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Inscrit le&nbsp;:</TD>
+<TD ALIGN="left" CLASS="texte" VALIGN="top"><? echo date("d/m/Y H:i", strtotime($dateInscription)); ?></TD>
+</TR><? } ?>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Nom<FONT COLOR="#FF0000">*</FONT>&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="32" MAXLENGTH="100" NAME="nom" VALUE="<? echo $Nom; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Prénom&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="32" MAXLENGTH="64" NAME="prenom" VALUE="<? echo $Prenom; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Pseudo&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="32" MAXLENGTH="32" NAME="pseudo" VALUE="<? echo $Pseudo; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Groupe&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="32" MAXLENGTH="32" NAME="groupe" VALUE="<? echo $Groupe; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Adresse<FONT COLOR="#FF0000">*</FONT>&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="48" MAXLENGTH="64" NAME="adresse" VALUE="<? echo $Adresse; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Code postal<FONT COLOR="#FF0000">*</FONT>&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="6" MAXLENGTH="6" NAME="code_postal" VALUE="<? echo $CodePostal; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Ville<FONT COLOR="#FF0000">*</FONT>&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="TEXT" SIZE="32" MAXLENGTH="32" NAME="ville" VALUE="<? echo $Ville; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Pays<FONT COLOR="#FF0000">*</FONT>&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top">
+	<SELECT NAME="pays">
+<OPTION VALUE=""> </OPTION>
+<OPTION VALUE="Amiga"<? if ($Pays === "Amiga") {echo " SELECTED"; } ?>>Amiga</OPTION>
+<OPTION VALUE="Amstrad"<? if ($Pays === "Amstrad") {echo " SELECTED"; } ?>>Amstrad</OPTION>
+<OPTION VALUE="Apple"<? if ($Pays === "Apple") {echo " SELECTED"; } ?>>Apple</OPTION>
+<OPTION VALUE="Argentina"<? if ($Pays === "Argentina") {echo " SELECTED"; } ?>>Argentina</OPTION>
+<OPTION VALUE="Armenia"<? if ($Pays === "Armenia") {echo " SELECTED"; } ?>>Armenia</OPTION>
+<OPTION VALUE="Atari"<? if ($Pays === "Atari") {echo " SELECTED"; } ?>>Atari</OPTION>
+<OPTION VALUE="Australia"<? if ($Pays === "Australia") {echo " SELECTED"; } ?>>Australia</OPTION>
+<OPTION VALUE="Austria"<? if ($Pays === "Austria") {echo " SELECTED"; } ?>>Austria</OPTION>
+<OPTION VALUE="Bahrain"<? if ($Pays === "Bahrain") {echo " SELECTED"; } ?>>Bahrain</OPTION>
+<OPTION VALUE="Belarus"<? if ($Pays === "Belarus") {echo " SELECTED"; } ?>>Belarus</OPTION>
+<OPTION VALUE="Belgium"<? if ($Pays === "Belgium") {echo " SELECTED"; } ?>>Belgium</OPTION>
+<OPTION VALUE="Bosnia-And-Herzegovina"<? if ($Pays === "Bosnia-And-Herzegovina") {echo " SELECTED"; } ?>>Bosnia-And-Herzegovina</OPTION>
+<OPTION VALUE="Botswana"<? if ($Pays === "Botswana") {echo " SELECTED"; } ?>>Botswana</OPTION>
+<OPTION VALUE="Brazil"<? if ($Pays === "Brazil") {echo " SELECTED"; } ?>>Brazil</OPTION>
+<OPTION VALUE="Bulgaria"<? if ($Pays === "Bulgaria") {echo " SELECTED"; } ?>>Bulgaria</OPTION>
+<OPTION VALUE="Cambodia"<? if ($Pays === "Cambodia") {echo " SELECTED"; } ?>>Cambodia</OPTION>
+<OPTION VALUE="Cameroon"<? if ($Pays === "Cameroon") {echo " SELECTED"; } ?>>Cameroon</OPTION>
+<OPTION VALUE="Canada"<? if ($Pays === "Canada") {echo " SELECTED"; } ?>>Canada</OPTION>
+<OPTION VALUE="Chile"<? if ($Pays === "Chile") {echo " SELECTED"; } ?>>Chile</OPTION>
+<OPTION VALUE="China"<? if ($Pays === "China") {echo " SELECTED"; } ?>>China</OPTION>
+<OPTION VALUE="Colombia"<? if ($Pays === "Colombia") {echo " SELECTED"; } ?>>Colombia</OPTION>
+<OPTION VALUE="Costa-Rica"<? if ($Pays === "Costa-Rica") {echo " SELECTED"; } ?>>Costa-Rica</OPTION>
+<OPTION VALUE="Croatia"<? if ($Pays === "Croatia") {echo " SELECTED"; } ?>>Croatia</OPTION>
+<OPTION VALUE="Cyprus"<? if ($Pays === "Cyprus") {echo " SELECTED"; } ?>>Cyprus</OPTION>
+<OPTION VALUE="Czech-Republic"<? if ($Pays === "Czech-Republic") {echo " SELECTED"; } ?>>Czech-Republic</OPTION>
+<OPTION VALUE="Denmark"<? if ($Pays === "Denmark") {echo " SELECTED"; } ?>>Denmark</OPTION>
+<OPTION VALUE="Dominican-Republic"<? if ($Pays === "Dominican-Republic") {echo " SELECTED"; } ?>>Dominican-Republic</OPTION>
+<OPTION VALUE="Earth"<? if ($Pays === "Earth") {echo " SELECTED"; } ?>>Earth</OPTION>
+<OPTION VALUE="East-Timor"<? if ($Pays === "East-Timor") {echo " SELECTED"; } ?>>East-Timor</OPTION>
+<OPTION VALUE="Egypt"<? if ($Pays === "Egypt") {echo " SELECTED"; } ?>>Egypt</OPTION>
+<OPTION VALUE="El-Salvador"<? if ($Pays === "El-Salvador") {echo " SELECTED"; } ?>>El-Salvador</OPTION>
+<OPTION VALUE="Eniac"<? if ($Pays === "Eniac") {echo " SELECTED"; } ?>>Eniac</OPTION>
+<OPTION VALUE="Estonia"<? if ($Pays === "Estonia") {echo " SELECTED"; } ?>>Estonia</OPTION>
+<OPTION VALUE="Exelvision"<? if ($Pays === "Exelvision") {echo " SELECTED"; } ?>>Exelvision</OPTION>
+<OPTION VALUE="Finland"<? if ($Pays === "Finland") {echo " SELECTED"; } ?>>Finland</OPTION>
+<OPTION VALUE="France"<? if ($Pays === "France") {echo " SELECTED"; } ?>>France</OPTION>
+<OPTION VALUE="Georgia"<? if ($Pays === "Georgia") {echo " SELECTED"; } ?>>Georgia</OPTION>
+<OPTION VALUE="Germany"<? if ($Pays === "Germany") {echo " SELECTED"; } ?>>Germany</OPTION>
+<OPTION VALUE="Ghana"<? if ($Pays === "Ghana") {echo " SELECTED"; } ?>>Ghana</OPTION>
+<OPTION VALUE="Greece"<? if ($Pays === "Greece") {echo " SELECTED"; } ?>>Greece</OPTION>
+<OPTION VALUE="Guatemala"<? if ($Pays === "Guatemala") {echo " SELECTED"; } ?>>Guatemala</OPTION>
+<OPTION VALUE="Guernsey"<? if ($Pays === "Guernsey") {echo " SELECTED"; } ?>>Guernsey</OPTION>
+<OPTION VALUE="Guinea-Bissau"<? if ($Pays === "Guinea-Bissau") {echo " SELECTED"; } ?>>Guinea-Bissau</OPTION>
+<OPTION VALUE="Guinea"<? if ($Pays === "Guinea") {echo " SELECTED"; } ?>>Guinea</OPTION>
+<OPTION VALUE="Honduras"<? if ($Pays === "Honduras") {echo " SELECTED"; } ?>>Honduras</OPTION>
+<OPTION VALUE="Hong-Kong"<? if ($Pays === "Hong-Kong") {echo " SELECTED"; } ?>>Hong-Kong</OPTION>
+<OPTION VALUE="Hungary"<? if ($Pays === "Hungary") {echo " SELECTED"; } ?>>Hungary</OPTION>
+<OPTION VALUE="Iceland"<? if ($Pays === "Iceland") {echo " SELECTED"; } ?>>Iceland</OPTION>
+<OPTION VALUE="India"<? if ($Pays === "India") {echo " SELECTED"; } ?>>India</OPTION>
+<OPTION VALUE="Indonesia"<? if ($Pays === "Indonesia") {echo " SELECTED"; } ?>>Indonesia</OPTION>
+<OPTION VALUE="Iran"<? if ($Pays === "Iran") {echo " SELECTED"; } ?>>Iran</OPTION>
+<OPTION VALUE="Ireland"<? if ($Pays === "Ireland") {echo " SELECTED"; } ?>>Ireland</OPTION>
+<OPTION VALUE="Israel"<? if ($Pays === "Israel") {echo " SELECTED"; } ?>>Israel</OPTION>
+<OPTION VALUE="Italy"<? if ($Pays === "Italy") {echo " SELECTED"; } ?>>Italy</OPTION>
+<OPTION VALUE="Japan"<? if ($Pays === "Japan") {echo " SELECTED"; } ?>>Japan</OPTION>
+<OPTION VALUE="Jordan"<? if ($Pays === "Jordan") {echo " SELECTED"; } ?>>Jordan</OPTION>
+<OPTION VALUE="Kazakhstan"<? if ($Pays === "Kazakhstan") {echo " SELECTED"; } ?>>Kazakhstan</OPTION>
+<OPTION VALUE="Kuwait"<? if ($Pays === "Kuwait") {echo " SELECTED"; } ?>>Kuwait</OPTION>
+<OPTION VALUE="Lebanon"<? if ($Pays === "Lebanon") {echo " SELECTED"; } ?>>Lebanon</OPTION>
+<OPTION VALUE="Libya"<? if ($Pays === "Libya") {echo " SELECTED"; } ?>>Libya</OPTION>
+<OPTION VALUE="Linux"<? if ($Pays === "Linux") {echo " SELECTED"; } ?>>Linux</OPTION>
+<OPTION VALUE="Lithuania"<? if ($Pays === "Lithuania") {echo " SELECTED"; } ?>>Lithuania</OPTION>
+<OPTION VALUE="Luxembourg"<? if ($Pays === "Luxembourg") {echo " SELECTED"; } ?>>Luxembourg</OPTION>
+<OPTION VALUE="Macau"<? if ($Pays === "Macau") {echo " SELECTED"; } ?>>Macau</OPTION>
+<OPTION VALUE="Madagascar"<? if ($Pays === "Madagascar") {echo " SELECTED"; } ?>>Madagascar</OPTION>
+<OPTION VALUE="Malaysia"<? if ($Pays === "Malaysia") {echo " SELECTED"; } ?>>Malaysia</OPTION>
+<OPTION VALUE="Mali"<? if ($Pays === "Mali") {echo " SELECTED"; } ?>>Mali</OPTION>
+<OPTION VALUE="Mauritius"<? if ($Pays === "Mauritius") {echo " SELECTED"; } ?>>Mauritius</OPTION>
+<OPTION VALUE="Mexico"<? if ($Pays === "Mexico") {echo " SELECTED"; } ?>>Mexico</OPTION>
+<OPTION VALUE="Moldova"<? if ($Pays === "Moldova") {echo " SELECTED"; } ?>>Moldova</OPTION>
+<OPTION VALUE="Montenegro"<? if ($Pays === "Montenegro") {echo " SELECTED"; } ?>>Montenegro</OPTION>
+<OPTION VALUE="Morocco"<? if ($Pays === "Morocco") {echo " SELECTED"; } ?>>Morocco</OPTION>
+<OPTION VALUE="Morphos"<? if ($Pays === "Morphos") {echo " SELECTED"; } ?>>Morphos</OPTION>
+<OPTION VALUE="Myanmar"<? if ($Pays === "Myanmar") {echo " SELECTED"; } ?>>Myanmar</OPTION>
+<OPTION VALUE="Netherlands"<? if ($Pays === "Netherlands") {echo " SELECTED"; } ?>>Netherlands</OPTION>
+<OPTION VALUE="New-Zealand"<? if ($Pays === "New-Zealand") {echo " SELECTED"; } ?>>New-Zealand</OPTION>
+<OPTION VALUE="Niger"<? if ($Pays === "Niger") {echo " SELECTED"; } ?>>Niger</OPTION>
+<OPTION VALUE="Nigeria"<? if ($Pays === "Nigeria") {echo " SELECTED"; } ?>>Nigeria</OPTION>
+<OPTION VALUE="Norway"<? if ($Pays === "Norway") {echo " SELECTED"; } ?>>Norway</OPTION>
+<OPTION VALUE="Oric"<? if ($Pays === "Oric") {echo " SELECTED"; } ?>>Oric</OPTION>
+<OPTION VALUE="Pakistan"<? if ($Pays === "Pakistan") {echo " SELECTED"; } ?>>Pakistan</OPTION>
+<OPTION VALUE="Panama"<? if ($Pays === "Panama") {echo " SELECTED"; } ?>>Panama</OPTION>
+<OPTION VALUE="Papua-New-Guinea"<? if ($Pays === "Papua-New-Guinea") {echo " SELECTED"; } ?>>Papua-New-Guinea</OPTION>
+<OPTION VALUE="Paraguay"<? if ($Pays === "Paraguay") {echo " SELECTED"; } ?>>Paraguay</OPTION>
+<OPTION VALUE="PcEngine"<? if ($Pays === "PcEngine") {echo " SELECTED"; } ?>>PcEngine</OPTION>
+<OPTION VALUE="Peru"<? if ($Pays === "Peru") {echo " SELECTED"; } ?>>Peru</OPTION>
+<OPTION VALUE="Philippines"<? if ($Pays === "Philippines") {echo " SELECTED"; } ?>>Philippines</OPTION>
+<OPTION VALUE="Poland"<? if ($Pays === "Poland") {echo " SELECTED"; } ?>>Poland</OPTION>
+<OPTION VALUE="Portugal"<? if ($Pays === "Portugal") {echo " SELECTED"; } ?>>Portugal</OPTION>
+<OPTION VALUE="Prison"<? if ($Pays === "Prison") {echo " SELECTED"; } ?>>Prison</OPTION>
+<OPTION VALUE="Puerto-Rico"<? if ($Pays === "Puerto-Rico") {echo " SELECTED"; } ?>>Puerto-Rico</OPTION>
+<OPTION VALUE="Qatar"<? if ($Pays === "Qatar") {echo " SELECTED"; } ?>>Qatar</OPTION>
+<OPTION VALUE="Romania"<? if ($Pays === "Romania") {echo " SELECTED"; } ?>>Romania</OPTION>
+<OPTION VALUE="Russia"<? if ($Pays === "Russia") {echo " SELECTED"; } ?>>Russia</OPTION>
+<OPTION VALUE="Saudi-Arabia"<? if ($Pays === "Saudi-Arabia") {echo " SELECTED"; } ?>>Saudi-Arabia</OPTION>
+<OPTION VALUE="Senegal"<? if ($Pays === "Senegal") {echo " SELECTED"; } ?>>Senegal</OPTION>
+<OPTION VALUE="Serbia"<? if ($Pays === "Serbia") {echo " SELECTED"; } ?>>Serbia</OPTION>
+<OPTION VALUE="Singapore"<? if ($Pays === "Singapore") {echo " SELECTED"; } ?>>Singapore</OPTION>
+<OPTION VALUE="Slovakia"<? if ($Pays === "Slovakia") {echo " SELECTED"; } ?>>Slovakia</OPTION>
+<OPTION VALUE="South-Africa"<? if ($Pays === "South-Africa") {echo " SELECTED"; } ?>>South-Africa</OPTION>
+<OPTION VALUE="South-Korea"<? if ($Pays === "South-Korea") {echo " SELECTED"; } ?>>South-Korea</OPTION>
+<OPTION VALUE="Spain"<? if ($Pays === "Spain") {echo " SELECTED"; } ?>>Spain</OPTION>
+<OPTION VALUE="Sweden"<? if ($Pays === "Sweden") {echo " SELECTED"; } ?>>Sweden</OPTION>
+<OPTION VALUE="Switzerland"<? if ($Pays === "Switzerland") {echo " SELECTED"; } ?>>Switzerland</OPTION>
+<OPTION VALUE="Taiwan"<? if ($Pays === "Taiwan") {echo " SELECTED"; } ?>>Taiwan</OPTION>
+<OPTION VALUE="Thailand"<? if ($Pays === "Thailand") {echo " SELECTED"; } ?>>Thailand</OPTION>
+<OPTION VALUE="Thomson"<? if ($Pays === "Thomson") {echo " SELECTED"; } ?>>Thomson</OPTION>
+<OPTION VALUE="Tunisia"<? if ($Pays === "Tunisia") {echo " SELECTED"; } ?>>Tunisia</OPTION>
+<OPTION VALUE="Turkey"<? if ($Pays === "Turkey") {echo " SELECTED"; } ?>>Turkey</OPTION>
+<OPTION VALUE="Uganda"<? if ($Pays === "Uganda") {echo " SELECTED"; } ?>>Uganda</OPTION>
+<OPTION VALUE="Ukraine"<? if ($Pays === "Ukraine") {echo " SELECTED"; } ?>>Ukraine</OPTION>
+<OPTION VALUE="United-Arab-Emirates"<? if ($Pays === "United-Arab-Emirates") {echo " SELECTED"; } ?>>United-Arab-Emirates</OPTION>
+<OPTION VALUE="United-Kingdom"<? if ($Pays === "United-Kingdom") {echo " SELECTED"; } ?>>United-Kingdom</OPTION>
+<OPTION VALUE="United-States"<? if ($Pays === "United-States") {echo " SELECTED"; } ?>>United-States</OPTION>
+<OPTION VALUE="Uruguay"<? if ($Pays === "Uruguay") {echo " SELECTED"; } ?>>Uruguay</OPTION>
+<OPTION VALUE="Venezuela"<? if ($Pays === "Venezuela") {echo " SELECTED"; } ?>>Venezuela</OPTION>
+<OPTION VALUE="Vietnam"<? if ($Pays === "Vietnam") {echo " SELECTED"; } ?>>Vietnam</OPTION>
+<OPTION VALUE="Windows"<? if ($Pays === "Windows") {echo " SELECTED"; } ?>>Windows</OPTION>
+<OPTION VALUE="Yemen"<? if ($Pays === "Yemen") {echo " SELECTED"; } ?>>Yemen</OPTION>
+	</SELECT>
+</TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Téléphone&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="TEXT" SIZE="32" MAXLENGTH="32" NAME="telephone" VALUE="<? echo $Telephone; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">E-Mail<FONT COLOR="#FF0000">*</FONT>&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="TEXT" SIZE="32" MAXLENGTH="128" NAME="email" VALUE="<? echo $Email; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Mot de passe&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top">
+	<INPUT TYPE="TEXT" SIZE="16" MAXLENGTH="20" NAME="password" VALUE="?"><br>
+	<INPUT TYPE="hidden" NAME="Id" VALUE="<? echo $Id; ?>">
+</TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top"></TD>
+<TD ALIGN="left" VALIGN="top">
+	<span class="petit_texte">Laisser '?' ou ne rien indiquer pour laisse le mot de passe inchangé.</span>
+</TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Statut&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top">
+	<SELECT NAME="statut">
+	<OPTION VALUE="En attente" <? if ($Statut === "En attente") { echo "selected"; } ?>>En attente</OPTION>
+	<OPTION VALUE="Paye Cheque" <? if ($Statut === "Paye cheque") { echo "selected"; } ?>>Payé chèque</OPTION>
+	<OPTION VALUE="Virement bancaire" <? if ($Statut === "Virement bancaire") { echo "selected"; } ?>>Payé virement bancaire</OPTION>
+	<OPTION VALUE="Virement Paypal" <? if ($Statut === "Virement Paypal") { echo "selected"; } ?>>Payé virement Paypal</OPTION>
+	<OPTION VALUE="Paye Especes" <? if ($Statut === "Paye especes") { echo "selected"; } ?>>Payé espèces</OPTION>
+	<OPTION VALUE="Orga" <? if ($Statut === "Orga") { echo "selected"; } ?>>Orga</OPTION>
+	<OPTION VALUE="Guest" <? if ($Statut === "Guest") { echo "selected"; } ?>>Invité</OPTION>
+	</SELECT>
+</TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Somme reçue&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top" CLASS="texte"><INPUT TYPE="TEXT" SIZE="16" MAXLENGTH="16" NAME="sommeRecue" VALUE="<? echo $sommeRecue; ?>">&nbsp;Euros</TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Machine&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top">
+	<SELECT NAME="machine">
+	<OPTION VALUE="Non" <? if ($Machine === "Non") { echo "selected"; } ?>>Non</OPTION>
+	<OPTION VALUE="Oui" <? if ($Machine === "Oui") { echo "selected"; } ?>>Oui</OPTION>
+	</SELECT>
+</TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Commentaires&nbsp:</TD>
+<TD ALIGN="left" VALIGN="top"><TEXTAREA NAME="commentaires" rows="10" cols="50" WRAP=VIRTUAL><?
+if (strlen($Commentaire) > 320) { $Commentaire = substr($Commentaire, 0, 512)."..."; }
+$Commentaire = str_replace(array("\\'", "\\&#039;"), "&apos;", $Commentaire);
+$Commentaire = str_replace(array('\\"', "\\&quot;"), "&quot;", $Commentaire);
+$Commentaire = str_replace(array("\\r\\n", "\\n", "\\r"), "<br/>", $Commentaire);
+echo $Commentaire;
+ ?></TEXTAREA></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Sera présent le&nbsp;:</TD>
+<TD ALIGN="left" CLASS="texte" VALIGN="top">
+	<? if (strlen($PARTYJour1) > 0) { ?><input id="J1label" type="checkbox" name="J1" <? if ($J1 === "O") { echo "checked"; } ?>><label for="J1label"><? echo $PARTYJour1; ?></label><br><? } ?>
+	<? if (strlen($PARTYJour2) > 0) { ?><input id="J2label" type="checkbox" name="J2" <? if ($J2 === "O") { echo "checked"; } ?>><label for="J2label"><? echo $PARTYJour2; ?></label><br><? } ?>
+	<? if (strlen($PARTYJour3) > 0) { ?><input id="J3label" type="checkbox" name="J3" <? if ($J3 === "O") { echo "checked"; } ?>><label for="J3label"><? echo $PARTYJour3; ?></label><br><? } ?>
+</TD>
+</TR>
+
+<?
+if ($PARTYNombrePlacesDodoEnTout > 0) {
+
+	$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+	$res = mysqli_query($link, "SELECT count(*) as 'nombre' FROM ".$TABLEListe." WHERE ligneAffichee = 1 AND dodoSurPlace = 'Oui' ") or die ('ERREUR '.$requete.' '.mysqli_error($link));
+
+	$nombre_places_restantes_dodo = max(0, $PARTYNombrePlacesDodoEnTout - mysqli_result($res, 0, 'nombre'));
+
+	mysqli_free_result($res);
+
+?>
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Je dormirai sur place&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top" class="texte">
+		<SELECT NAME="dodosurplace">
+			<OPTION VALUE="Oui" <? if ($dodosurplace === "Oui") { echo "selected"; } ?>>Oui</OPTION>
+			<OPTION VALUE="Non" <? if ($dodosurplace === "Non") { echo "selected"; } ?>>Non</OPTION>
+		</SELECT>
+		<span class="petit_texte"><? if ($nombre_places_restantes_dodo > 0) { ?>Il reste <? echo $nombre_places_restantes_dodo; ?>&nbsp;places disponibles.<? } else { ?><font color="#BF0000">Attention, il n'y a plus de place disponible pour dormir dans la salle.</font><? } ?></span>
+	</TD>
+</TR>
+<?
+	}
+
+mysqli_close($link);
+?>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Adresse IP&nbsp;:</TD>
+<TD ALIGN="left" VALIGN="top"><INPUT TYPE="TEXT" SIZE="12" MAXLENGTH="13" NAME="ip" VALUE="<? echo $Ip; ?>"></TD>
+</TR>
+
+<TR>
+<TD ALIGN="right" CLASS="texte" VALIGN="top">Confirmation du paiement&nbsp;:</TD>
+<TD ALIGN="left" CLASS="texte" VALIGN="top"><input id="courrieraenvoyer" type="checkbox" name="CHQ">&nbsp;<label for="courrieraenvoyer">Envoyer un email de confirmation</label><br></TD>
+</TR>
+
+
+<TR>
+<TD ALIGN="right" VALIGN="middle"><INPUT TYPE="submit" onClick="return verif();" VALUE="Confirmer"></TD>
+<TD ALIGN="right" VALIGN="middle"><INPUT TYPE="reset" VALUE="Effacer"></TD>
+</TR>
+
+</TABLE></CENTER>
+
+</FORM>
+
+<? include("includes/page_bas.php"); ?>

+ 322 - 0
html/admin/participant_formulaire_ajout.php

@@ -0,0 +1,322 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+
+<p class="titre">Ajouter un participant</p>
+
+<script type="text/javascript"><!--//
+
+function verif() {
+
+	var f = document.monformulaire;
+	var n = f.elements.length;
+	var v = '';
+
+  for (var i = 0; i < n; i++) { v = f.elements[i].value; if (v.indexOf("http") > -1 || v.indexOf("href") > -1)  { alert("Par sécurité, il n'est pas possible d'insérer des liens web."); return false; } }
+
+	if (f.nom.value == "") { alert("Il manque le nom !"); f.nom.focus(); return false; }
+
+	if (f.adresse.value == "") { alert("Il manque l'adresse postale !"); f.focus(); return false; }
+
+	if (f.code_postal.value == "") { alert("Il manque le code postal !"); f.code_postal.focus(); return false; }
+
+	if (f.ville.value == "") {	alert("Il manque le ville !"); f.ville.focus();	return false; }
+
+	if (f.pays.options[f.pays.options.selectedIndex].value == "") { alert("Il manque le pays."); f.pays.focus(); return false; }
+
+	if (f.email.value == "") { alert("Il manque l'email !"); f.email.focus(); return false; }
+
+	if (f.password.value.length > 0) { if (f.password.value != f.passConfirm.value) { alert("Le mot de passe n'est pas identique dans les deux champs. Merci de corriger."); f.password.focus(); return false; } }
+
+	var jours = 1 + 2 + 4;
+
+	<? if (strlen($PARTYJour1) > 0) { ?>if (f.J1.checked == false) { jours -= 1; }<? } ?>
+	<? if (strlen($PARTYJour2) > 0) { ?>if (f.J2.checked == false) { jours -= 2; }<? } ?>
+	<? if (strlen($PARTYJour3) > 0) { ?>if (f.J3.checked == false) { jours -= 4; }<? } ?>
+
+	if (jours == 0) { alert("Veuillez cocher au moins une journée."); f.J1.focus(); return false; }
+
+	return true;
+	}
+
+//-->
+</script>
+
+<br>
+
+<FORM METHOD="post" NAME="monformulaire" ACTION="participant_ajout.php" ACCEPT-CHARSET="utf-8">
+
+<center><TABLE WIDTH="100%" BORDER="0" CELLPADDING="5" CELLSPACING="0">
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte">&nbsp;</TD>
+	<TD ALIGN="left" VALIGN="top"><span class="petit_texte">Les champs précédés d'une astérisque <FONT COLOR="#FF0000">*</FONT> sont obligatoires</span></TD></TR>
+</TR>
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Nom<FONT COLOR="#FF0000">*</FONT>&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="32" MAXLENGTH="100" NAME="nom"></TD></TR>
+</TR>
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Prénom&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="32" MAXLENGTH="64" NAME="prenom"></TD></TR>
+</TR>
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Pseudo&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="32" MAXLENGTH="32" NAME="pseudo"></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Groupe&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="32" MAXLENGTH="32" NAME="groupe"></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Adresse<FONT COLOR="#FF0000">*</FONT>&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="48" MAXLENGTH="64" NAME="adresse"></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Code postal<FONT COLOR="#FF0000">*</FONT>&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="text" SIZE="6" MAXLENGTH="6" NAME="code_postal"></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Ville<FONT COLOR="#FF0000">*</FONT>&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="TEXT" SIZE="32" MAXLENGTH="32" NAME="ville"></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Pays<FONT COLOR="#FF0000">*</FONT>&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top">
+		<SELECT NAME="pays">
+<OPTION VALUE=""> </OPTION>
+<OPTION VALUE="Amiga">Amiga</OPTION>
+<OPTION VALUE="Amstrad">Amstrad</OPTION>
+<OPTION VALUE="Apple">Apple</OPTION>
+<OPTION VALUE="Argentina">Argentina</OPTION>
+<OPTION VALUE="Armenia">Armenia</OPTION>
+<OPTION VALUE="Atari">Atari</OPTION>
+<OPTION VALUE="Australia">Australia</OPTION>
+<OPTION VALUE="Austria">Austria</OPTION>
+<OPTION VALUE="Bahrain">Bahrain</OPTION>
+<OPTION VALUE="Belarus">Belarus</OPTION>
+<OPTION VALUE="Belgium">Belgium</OPTION>
+<OPTION VALUE="Bosnia-And-Herzegovina">Bosnia-And-Herzegovina</OPTION>
+<OPTION VALUE="Botswana">Botswana</OPTION>
+<OPTION VALUE="Brazil">Brazil</OPTION>
+<OPTION VALUE="Bulgaria">Bulgaria</OPTION>
+<OPTION VALUE="Cambodia">Cambodia</OPTION>
+<OPTION VALUE="Cameroon">Cameroon</OPTION>
+<OPTION VALUE="Canada">Canada</OPTION>
+<OPTION VALUE="Chile">Chile</OPTION>
+<OPTION VALUE="China">China</OPTION>
+<OPTION VALUE="Colombia">Colombia</OPTION>
+<OPTION VALUE="Costa-Rica">Costa-Rica</OPTION>
+<OPTION VALUE="Croatia">Croatia</OPTION>
+<OPTION VALUE="Cyprus">Cyprus</OPTION>
+<OPTION VALUE="Czech-Republic">Czech-Republic</OPTION>
+<OPTION VALUE="Denmark">Denmark</OPTION>
+<OPTION VALUE="Dominican-Republic">Dominican-Republic</OPTION>
+<OPTION VALUE="Earth">Earth</OPTION>
+<OPTION VALUE="East-Timor">East-Timor</OPTION>
+<OPTION VALUE="Egypt">Egypt</OPTION>
+<OPTION VALUE="El-Salvador">El-Salvador</OPTION>
+<OPTION VALUE="Eniac">Eniac</OPTION>
+<OPTION VALUE="Estonia">Estonia</OPTION>
+<OPTION VALUE="Exelvision">Exelvision</OPTION>
+<OPTION VALUE="Finland">Finland</OPTION>
+<OPTION VALUE="France">France</OPTION>
+<OPTION VALUE="Georgia">Georgia</OPTION>
+<OPTION VALUE="Germany">Germany</OPTION>
+<OPTION VALUE="Ghana">Ghana</OPTION>
+<OPTION VALUE="Greece">Greece</OPTION>
+<OPTION VALUE="Guatemala">Guatemala</OPTION>
+<OPTION VALUE="Guernsey">Guernsey</OPTION>
+<OPTION VALUE="Guinea-Bissau">Guinea-Bissau</OPTION>
+<OPTION VALUE="Guinea">Guinea</OPTION>
+<OPTION VALUE="Honduras">Honduras</OPTION>
+<OPTION VALUE="Hong-Kong">Hong-Kong</OPTION>
+<OPTION VALUE="Hungary">Hungary</OPTION>
+<OPTION VALUE="Iceland">Iceland</OPTION>
+<OPTION VALUE="India">India</OPTION>
+<OPTION VALUE="Indonesia">Indonesia</OPTION>
+<OPTION VALUE="Iran">Iran</OPTION>
+<OPTION VALUE="Ireland">Ireland</OPTION>
+<OPTION VALUE="Israel">Israel</OPTION>
+<OPTION VALUE="Italy">Italy</OPTION>
+<OPTION VALUE="Japan">Japan</OPTION>
+<OPTION VALUE="Jordan">Jordan</OPTION>
+<OPTION VALUE="Kazakhstan">Kazakhstan</OPTION>
+<OPTION VALUE="Kuwait">Kuwait</OPTION>
+<OPTION VALUE="Lebanon">Lebanon</OPTION>
+<OPTION VALUE="Libya">Libya</OPTION>
+<OPTION VALUE="Linux">Linux</OPTION>
+<OPTION VALUE="Lithuania">Lithuania</OPTION>
+<OPTION VALUE="Luxembourg">Luxembourg</OPTION>
+<OPTION VALUE="Macau">Macau</OPTION>
+<OPTION VALUE="Madagascar">Madagascar</OPTION>
+<OPTION VALUE="Malaysia">Malaysia</OPTION>
+<OPTION VALUE="Mali">Mali</OPTION>
+<OPTION VALUE="Mauritius">Mauritius</OPTION>
+<OPTION VALUE="Mexico">Mexico</OPTION>
+<OPTION VALUE="Moldova">Moldova</OPTION>
+<OPTION VALUE="Montenegro">Montenegro</OPTION>
+<OPTION VALUE="Morocco">Morocco</OPTION>
+<OPTION VALUE="Morphos">Morphos</OPTION>
+<OPTION VALUE="Myanmar">Myanmar</OPTION>
+<OPTION VALUE="Netherlands">Netherlands</OPTION>
+<OPTION VALUE="New-Zealand">New-Zealand</OPTION>
+<OPTION VALUE="Niger">Niger</OPTION>
+<OPTION VALUE="Nigeria">Nigeria</OPTION>
+<OPTION VALUE="Norway">Norway</OPTION>
+<OPTION VALUE="Oric">Oric</OPTION>
+<OPTION VALUE="Pakistan">Pakistan</OPTION>
+<OPTION VALUE="Panama">Panama</OPTION>
+<OPTION VALUE="Papua-New-Guinea">Papua-New-Guinea</OPTION>
+<OPTION VALUE="Paraguay">Paraguay</OPTION>
+<OPTION VALUE="PcEngine">PcEngine</OPTION>
+<OPTION VALUE="Peru">Peru</OPTION>
+<OPTION VALUE="Philippines">Philippines</OPTION>
+<OPTION VALUE="Poland">Poland</OPTION>
+<OPTION VALUE="Portugal">Portugal</OPTION>
+<OPTION VALUE="Prison">Prison</OPTION>
+<OPTION VALUE="Puerto-Rico">Puerto-Rico</OPTION>
+<OPTION VALUE="Qatar">Qatar</OPTION>
+<OPTION VALUE="Romania">Romania</OPTION>
+<OPTION VALUE="Russia">Russia</OPTION>
+<OPTION VALUE="Saudi-Arabia">Saudi-Arabia</OPTION>
+<OPTION VALUE="Senegal">Senegal</OPTION>
+<OPTION VALUE="Serbia">Serbia</OPTION>
+<OPTION VALUE="Singapore">Singapore</OPTION>
+<OPTION VALUE="Slovakia">Slovakia</OPTION>
+<OPTION VALUE="South-Africa">South-Africa</OPTION>
+<OPTION VALUE="South-Korea">South-Korea</OPTION>
+<OPTION VALUE="Spain">Spain</OPTION>
+<OPTION VALUE="Sweden">Sweden</OPTION>
+<OPTION VALUE="Switzerland">Switzerland</OPTION>
+<OPTION VALUE="Taiwan">Taiwan</OPTION>
+<OPTION VALUE="Thailand">Thailand</OPTION>
+<OPTION VALUE="Thomson">Thomson</OPTION>
+<OPTION VALUE="Tunisia">Tunisia</OPTION>
+<OPTION VALUE="Turkey">Turkey</OPTION>
+<OPTION VALUE="Uganda">Uganda</OPTION>
+<OPTION VALUE="Ukraine">Ukraine</OPTION>
+<OPTION VALUE="United-Arab-Emirates">United-Arab-Emirates</OPTION>
+<OPTION VALUE="United-Kingdom">United-Kingdom</OPTION>
+<OPTION VALUE="United-States">United-States</OPTION>
+<OPTION VALUE="Uruguay">Uruguay</OPTION>
+<OPTION VALUE="Venezuela">Venezuela</OPTION>
+<OPTION VALUE="Vietnam">Vietnam</OPTION>
+<OPTION VALUE="Windows">Windows</OPTION>
+<OPTION VALUE="Yemen">Yemen</OPTION>
+		</SELECT>
+	</TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Téléphone&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="TEXT" SIZE="32" MAXLENGTH="32" NAME="telephone"></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>E-Mail<FONT COLOR="#FF0000">*</FONT>&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="TEXT" SIZE="32" MAXLENGTH="128" NAME="email"></TD>
+</TR>
+
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte">&nbsp;</TD>
+	<TD ALIGN="left" VALIGN="top"><span class="petit_texte">Merci d'indiquer un numéro de téléphone et une adresse E-Mail valide.</span></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Mot de passe&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="PASSWORD" SIZE="16" MAXLENGTH="16" NAME="password"></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Confirmation du mot de passe&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><INPUT TYPE="PASSWORD" SIZE="16" MAXLENGTH="16" NAME="passConfirm"></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte">&nbsp;</TD>
+	<TD ALIGN="left" VALIGN="top"><span class="petit_texte">Le mot de passe sert, avec les pseudo et adresse email, à modifier quelques informations sur la réservation (journées et commentaires).<br>
+	Ce mot de passe servira également lors du vote au terme de la coding party.<br>
+	<font color="#BF0000">Attention, les transferts n'étant pas sécurisés (non https://), n'utilisez pas de mot de passe important</font>.</span></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Amène une machine&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top">
+		<SELECT NAME="machine">
+			<OPTION VALUE="Non" Selected>Non
+			<OPTION VALUE="Oui">Oui
+		</SELECT>
+	</TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Commentaires&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top"><TEXTAREA NAME="commentaires" rows="10" cols="50" WRAP="VIRTUAL"></TEXTAREA><br>
+	<span class="petit_texte"><font color="#BF0000">Attention, ces commentaires sont publics</font>.</span></TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Sera présent(e) le(s)&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top" class="texte">
+		<? if (strlen($PARTYJour1) > 0) { ?><input id="J1label" type="checkbox" name="J1" <? if ((strlen($PARTYJour2) == 0) && (strlen($PARTYJour3) == 0)) { echo "checked"; } ?>><label for="J1label"><? echo $PARTYJour1; ?></label><br><? } ?>
+		<? if (strlen($PARTYJour2) > 0) { ?><input id="J2label" type="checkbox" name="J2"><label for="J2label"><? echo $PARTYJour2; ?></label><br><? } ?>
+		<? if (strlen($PARTYJour3) > 0) { ?><input id="J3label" type="checkbox" name="J3"><label for="J3label"><? echo $PARTYJour3; ?></label><br><? } ?>
+	</TD>
+</TR>
+
+<?
+if ($PARTYNombrePlacesDodoEnTout > 0) {
+
+	$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+	$res = mysqli_query($link, "SELECT count(*) as 'nombre' FROM ".$TABLEListe." WHERE ligneAffichee = 1 AND dodoSurPlace = 'Oui' ") or die ('ERREUR '.$requete.' '.mysqli_error($link));
+
+	$nombre_places_restantes_dodo = max(0, $PARTYNombrePlacesDodoEnTout - mysqli_result($res, 0, 'nombre'));
+
+	mysqli_free_result($res);
+
+?>
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Je dormirai sur place&nbsp;:</nobr></TD>
+	<TD ALIGN="left" VALIGN="top" class="texte">
+		<SELECT NAME="dodosurplace">
+			<? if ($nombre_places_restantes_dodo > 0) { ?><OPTION VALUE="Oui" Selected>Oui</OPTION><? } ?>
+			<OPTION VALUE="Non">Non</OPTION>
+		</SELECT>
+		<span class="petit_texte"><? if ($nombre_places_restantes_dodo > 0) { ?>Il reste <? echo $nombre_places_restantes_dodo; ?>&nbsp;places disponibles.<? } else { ?><font color="#BF0000">Attention, il n'y a plus de place disponible pour dormir dans la salle.</font><? } ?></span>
+	</TD>
+</TR>
+<?
+	}
+?>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top" class="texte"><nobr>Moyen de paiement utilisé&nbsp;:</TD>
+	<TD ALIGN="left" VALIGN="top" class="texte">
+		<input id="paiementlabel1" name="paiement" value="cheque" checked="checked" type="radio"><label for="paiementlabel1">Paiement par Cheque</label><br>
+		<input id="paiementlabel2" name="paiement" value="virement" type="radio"><label for="paiementlabel2">Paiement par Virement Bancaire</label><br>
+		<input id="paiementlabel3" name="paiement" value="paypal" type="radio"><label for="paiementlabel3">Paiement par Paypal</label>
+	</TD>
+</TR>
+
+<TR>
+	<TD ALIGN="right" VALIGN="top"><INPUT TYPE="submit" onClick="return verif();" VALUE="Confirmer"></TD>
+	<TD ALIGN="right" VALIGN="top"><INPUT TYPE="reset" VALUE="Effacer"></TD>
+</TR>
+
+</TABLE></center>
+
+</FORM>
+
+<? include("includes/page_bas.php"); ?>

+ 108 - 0
html/admin/participant_modification.php

@@ -0,0 +1,108 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<?
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+$nom = mysqli_real_escape_string($link, preg_replace("[^à-üa-z A-Z]", "", $_POST["nom"]));
+$prenom = mysqli_real_escape_string($link, $_POST["prenom"]);
+$pseudo = mysqli_real_escape_string($link, $_POST["pseudo"]);
+$groupe = mysqli_real_escape_string($link, $_POST["groupe"]);
+$adresse = mysqli_real_escape_string($link, $_POST["adresse"]);
+$code_postal = mysqli_real_escape_string($link, preg_replace("[^ abAB0-9]", "", $_POST["code_postal"]));
+$ville = mysqli_real_escape_string($link, preg_replace("[^à-üa-z A-Z]", "", $_POST["ville"]));
+$pays = mysqli_real_escape_string($link, $_POST["pays"]);
+$telephone = mysqli_real_escape_string($link, preg_replace("[^ .()+0-9]", "", $_POST["telephone"]));
+$email = mysqli_real_escape_string($link, trim($_POST["email"]));
+$statut = mysqli_real_escape_string($link, $_POST["statut"]);
+$sommeRecue = preg_replace("[^.0-9]", "", str_replace(",", ".", $_POST["sommeRecue"]));
+$machine = mysqli_real_escape_string($link, $_POST["machine"]);
+$dodosurplace = 0; if (isset($_POST['dodosurplace'])) { $dodosurplace = $_POST['dodosurplace']; }
+
+$commentaires = mysqli_real_escape_string($link, $_POST['commentaires']);
+$commentaires = htmlspecialchars($commentaires, ENT_QUOTES);
+if (strlen($commentaires) > 1023) {$commentaires = substr($commentaires, 0, 1023); }
+$commentaires = mysqli_real_escape_string($link, $commentaires);
+
+$ip = mysqli_real_escape_string($link, $_POST["ip"]);
+$has_password = true; if (trim($_POST['password']) === '?' || strlen(trim($_POST['password'])) == 0) { $has_password = false; }
+$password_md5 = md5(trim($_POST['password']));
+?>
+<br><br>
+<p class="titre">Informations du participant enregistrées</p>
+<? 
+
+$K1='N'; if (strlen($PARTYJour1) > 0) { if (isset($_POST['J1'])) { $K1='O'; } } 
+$K2='N'; if (strlen($PARTYJour2) > 0) { if (isset($_POST['J2'])) { $K2='O'; } }
+$K3='N'; if (strlen($PARTYJour3) > 0) { if (isset($_POST['J3'])) { $K3='O'; } }
+
+?>
+<br>
+<center><table border="0" cellpadding="5" cellspacing="0"> 
+<tr><td class="texte">Nom</td><td class="texte"><? echo stripslashes($nom); ?></td></tr>
+<tr><td class="texte">Prénom</td><td class="texte"><? echo stripslashes($prenom); ?></td></tr>
+<tr><td class="texte">Pseudo / Groupe</td><td class="texte"><? echo stripslashes($pseudo)." / ".stripslashes($groupe); ?></td></tr>
+<tr><td class="texte">Adresse</td><td class="texte"><? echo stripslashes($adresse); ?></td></tr>
+<tr><td class="texte">CP</td><td class="texte"><? echo stripslashes($code_postal); ?></td></tr>
+<tr><td class="texte">Ville</td><td class="texte"><? echo stripslashes($ville); ?></td></tr>
+<tr><td class="texte">Pays</td><td class="texte"><? echo $pays; ?></td></tr>
+<tr><td class="texte">Téléphone</td><td class="texte"><? echo $telephone; ?></td></tr>
+<tr><td class="texte">Email</td><td class="texte"><? echo $email; ?></td></tr>
+<tr><td class="texte">Statut</td><td class="texte"><? echo $statut; ?></td></tr>
+<tr><td class="texte">Somme reçue</td><td class="texte"><? echo $sommeRecue; ?>&nbsp;Euros</td></tr>
+<tr><td class="texte">Machine</td><td class="texte"><? echo $machine; ?></td></tr>
+<tr><td class="texte">Commentaires</td><td valign="top" class="texte"><? echo stripslashes($commentaires); ?></td></tr>
+<? if (strlen($PARTYJour1) > 0) { ?><tr><td class="texte"><? echo $PARTYJour1 ?></td><td class="texte"><? if (isset($_POST['J1'])) {echo "Oui";} else {echo "Non"; } ?></td></tr><? } ?>
+<? if (strlen($PARTYJour2) > 0) { ?><tr><td class="texte"><? echo $PARTYJour2 ?></td><td class="texte"><? if (isset($_POST['J2'])) {echo "Oui";} else {echo "Non"; } ?></td></tr><? } ?>
+<? if (strlen($PARTYJour3) > 0) { ?><tr><td class="texte"><? echo $PARTYJour3 ?></td><td class="texte"><? if (isset($_POST['J3'])) {echo "Oui";} else {echo "Non"; } ?></td></tr><? } ?>
+<? if ($PARTYNombrePlacesDodoEnTout > 0) { ?><tr><td class="texte">Nuit sur place</td><td class="texte"><? echo $dodosurplace; ?></td></tr><? } ?>
+</table></center>
+
+<br>
+
+<center><? 
+	
+$headers  = "From: ".$PARTYEmail."\r\n";
+$headers .= "Bcc: ".$PARTYEmail." ".$PARTYEmailCopy."\r\n";
+$headers .= "X-Sender: <".$PARTYEmail.">\r\n";
+$headers .= "X-Mailer: PHP\r\n";
+$headers .= "X-Priority: 1\r\n";
+$headers .= "Return-Path: ".$PARTYEmail."\r\n";
+$headers .= "Content-Type: text/plain; charset=utf-8\r\n";
+$headers .= "Content-Transfer-Encoding: 8bit\r\n";
+   
+$message  = "------------------------------------------------------\r\n";
+$message .= "Nous vous confirmons l'arrivée de votre paiement.\r\n";
+$message .= "------------------------------------------------------\r\n";
+$message .= "Ceci nous aide à mieux préparer l".$PARTYName." !\r\n";
+$message .= "Merci et à bientôt à l".$PARTYName." !\r\n";
+$message .= "\r\n";
+$message .= "                                  L'équipe des TripleA\r\n";   
+$message .= "------------------------------------------------------\r\n";
+   
+if (isset($_POST["CHQ"])) {
+	if (mail($email, "*** Confirmation de paiement pour l".$PARTYName." ***", $message, $headers)) {
+		echo "<font color=\"#008000\">La confirmation de réception du paiement a été envoyée&nbsp;!</font>"; 
+	}
+	else {
+		echo "<font color=\"#BF0000\">Une erreur s'est produite lors de l'envoi du mail de confirmation de réception du paiment.</font>";
+	}
+}
+
+$Id = $_POST["Id"];
+
+mysqli_query($link, "UPDATE ".$TABLEListe." SET Nom='$nom', Prenom='$prenom', Pseudo='$pseudo', Groupe='$groupe', Adresse='$adresse', CodePostal='$code_postal', Ville='$ville', Pays='$pays', Telephone= '$telephone', Email= '$email', Statut='$statut', sommeRecue = '$sommeRecue', Machine='$machine', Commentaires='$commentaires', J1='$K1', J2='$K2', J3='$K3', Ip='$ip', dodoSurPlace = '$dodosurplace' WHERE Id='$Id'"); 
+
+if ($has_password) 
+{
+	mysqli_query($link, "UPDATE ".$TABLEListe." SET Pwd_md5='$password_md5' WHERE Id='$Id'"); 
+}
+
+mysqli_close($link); 
+
+?></center>
+
+<? include("includes/page_bas.php"); ?>

+ 93 - 0
html/admin/participants_creer_jgk.php

@@ -0,0 +1,93 @@
+<? require('../pages/includes/config.php');
+
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+if (mysqli_connect_errno()) { echo "Connexion impossible !"; } else
+{
+  $requete = "SELECT * FROM ".$TABLEListe." WHERE ligneAffichee = 1 ORDER BY Id";
+  $res = mysqli_query($link, $requete) or die ('Erreur SQL:'.$requete.' '.mysqli_error($link));
+
+  $backup = "Id|Nom|Prenom|Pseudo|Groupe|Adresse|CodePostal|Ville|Pays|Telephone|Email|Pwd_md5|Statut|Machine|Commentaires|Photo|J1|J2|J3|dodoSurPlace|amigabus|Ip|paiement|dateInscription|sommeRecue|ligneAffichee\r\n";
+
+  $avant = array ("'", "\r\n", "|");
+  $apres = array ("''", "\\r\\n", ",");
+  $nb = 0;
+  
+  while($col = mysqli_fetch_array($res)) 
+  {
+		$backup .= $col["Id"];
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["Nom"]);
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["Prenom"]);
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["Pseudo"]);
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["Groupe"]);
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["Adresse"]);
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["CodePostal"]);
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["Ville"]); 
+		$backup .= "|";
+		$backup .= $col["Pays"];
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["Telephone"]);
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["Email"]);
+		$backup .= "|";
+		$backup .=  $col["Pwd_md5"];
+		$backup .= "|";
+		$backup .= $col["Statut"];
+		$backup .= "|";
+		$backup .= $col["Machine"];
+		$backup .= "|";
+		$backup .= str_replace($avant, $apres, $col["Commentaires"]); 
+		$backup .= "|";
+		$backup .= $col["Photo"];
+		$backup .= "|";
+		$backup .= $col["J1"];
+		$backup .= "|";
+		$backup .= $col["J2"];
+		$backup .= "|";
+		$backup .= $col["J3"];
+		$backup .= "|";
+		$backup .= $col["dodoSurPlace"];
+		$backup .= "|";
+		$backup .= $col["amigabus"];
+		$backup .= "|";
+		$backup .= $col["Ip"];
+		$backup .= "|";
+		$backup .= $col["paiement"];
+		$backup .= "|";
+		$backup .= $col["dateInscription"];
+		$backup .= "|";
+		$backup .= $col["sommeRecue"];
+		$backup .= "|";
+		$backup .= $col["ligneAffichee"];
+		$backup .= "\r\n";
+
+  	$nb++;
+  	}
+  	
+	mysqli_free_result($res);
+	mysqli_close($link); 
+ 	
+    $taille = strlen($backup);
+		
+	$nomfichier = "participants_pour_Ptah.csv";
+		
+	header("Content-Type: application/force-download; name=\"$nomfichier\"");
+	header("Content-Transfer-Encoding: binary");
+	header("Content-Length: $taille");
+	header("Content-Disposition: attachment; filename=\"$nomfichier\"");
+	header("Expires: 0");
+	header("Cache-Control: no-cache, must-revalidate");
+	header("Pragma: no-cache");
+ 	
+ 	if ($nb > 0) { echo($backup); }
+		
+	exit(); 
+ }
+ ?>

+ 149 - 0
html/admin/participants_creer_pdf.php

@@ -0,0 +1,149 @@
+<? require('../pages/includes/config.php');
+require('pdf/fpdf.php');
+define('FPDF_FONTPATH','pdf/fontes/');
+
+// petite customisation FPDF par b!gdAn
+
+class PDF extends FPDF
+{
+
+function PDF($orientation='P',$unit='mm',$format='A4')
+{ $this->FPDF($orientation,$unit,$format);
+  $this->SetAutoPageBreak(1,15);
+  $this->B=0;
+  $this->I=0;
+  $this->U=0;
+}
+
+// En-tête page(s)
+
+function Header()
+{
+
+  // Epaisseur des traits encadrement (0.2 par défaut)
+
+  $this->SetLineWidth(.3);
+
+  // décalage de 12 mm vers le bas, le mm est l'unité par défaut
+
+  $this->Ln(12);
+
+  // Couleurs écriture (noir), remplissage (gris #cccccc soir 221 221 221), etc...
+
+  $this->SetFillColor(255);
+  $this->SetTextColor(0);
+  $this->SetDrawColor(128,0,0);
+
+  // on passe en gras et on affiche le titre
+
+  $this->SetFont('Times','B',14);
+  $this->Cell(0,10,utf8_decode('Liste des réservations pour la microAlchimie VI'),'',1,'C',1);
+  $this->SetFont('');
+
+  // Titres des colonnes
+
+  $entete=array('Id',utf8_decode('Nom prénom'),'Pseudo / Groupe', 'Email', 'Statut');
+
+  // Largeurs des colonnes
+
+  global $w;
+//$w=array(20,50,95,25);
+  $w=array(20,50,45,50,25);
+
+  // En-tête tableau listant les articles
+
+  $this->SetFillColor(200);
+  $this->SetTextColor(0);
+  $this->SetDrawColor(128,0,0);
+
+  $this->SetXY(10,35);
+  $this->SetFont('Times','B',10);
+  for($i=0;$i<count($entete);$i++)
+      $this->Cell($w[$i],7,$entete[$i],1,0,'C',1);
+      $this->Ln();
+      $this->SetFont('');
+}
+
+// Pied de page(s)
+
+function Footer()
+{
+  // Positionnement à 1 cm du bas
+
+  $this->SetY(-10);
+  $this->SetFont('Arial','I',8);
+
+  // Numéro de page sous la forme x / y
+
+  $this->Cell(0,10,'Page '.$this->PageNo().' /{nb}',0,0,'C');
+}
+}
+
+// Définition nouveau document pdf...
+
+$pdf=new PDF();
+$pdf->Open();
+
+// permet de calculer le nombre de pages du document  (nb)
+
+$pdf->AliasNbPages();
+
+// champs facultatifs de copyright, etc...
+
+$pdf->SetAuthor('bigdAn');
+$pdf->SetCreator('Site web microAlchimie VI');
+$pdf->SetTitle(utf8_decode("Liste des réservations"));
+$pdf->SetSubject('Listing PDF');
+$pdf->AddPage();
+
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+if (mysqli_connect_errno()) { $pdf->Cell(0,10,'Connection bdd mysql impossible !','',1,'C',1); } else
+{
+	$requete = "SELECT * FROM ".$TABLEListe." WHERE ligneAffichee = 1 ORDER BY ".$_POST["par"];
+
+    $res = mysqli_query($link, $requete) or die ('ERREUR '.$requete.' '.mysqli_error($link));
+
+    $pdf->SetTextColor(0);
+
+	$pdf->SetFillColor(224,224,235);
+    $fill = 0;
+
+    while($col = mysqli_fetch_array($res))
+    {
+        $pdf->SetX(10);
+        $pdf->Cell($w[0],6,utf8_decode($col['Id']),'1',0,'C',1);
+        $pdf->Cell($w[1],6,utf8_decode(mb_strtoupper($col['Nom'], 'UTF-8')." ".mb_convert_case($col['Prenom'],MB_CASE_TITLE,'UTF-8')),'1',0,'L',1);
+        $pdf->Cell($w[2],6,utf8_decode($col['Pseudo'].' / '.$col['Groupe']),'1',0,'L',1);
+        $pdf->Cell($w[3],6,utf8_decode($col['Email']),'1',0,'L',1);
+        $pdf->Cell($w[4],6,utf8_decode($col['Statut']),'1',1,'C',1);
+
+        $fill=!$fill;
+        if ($fill) { $pdf->SetFillColor(255,255,255); } else { $pdf->SetFillColor(224,224,235); }
+    }
+
+	mysqli_free_result($res);
+	mysqli_close($link);
+}
+
+// Et on affiche le pdf généré... (ou on le sauvegarde en local)
+
+if (file_exists('../temp/liste.pdf')) { unlink('../temp/liste.pdf'); }
+
+$pdf->Output('../temp/liste.pdf');
+
+$nomfichier = $TABLEListe.".pdf";
+$taille     = filesize("../temp/liste.pdf");
+
+header("Content-Type: application/force-download; name=\"$nomfichier\"");
+header("Content-Transfer-Encoding: binary");
+header("Content-Length: $taille");
+header("Content-Disposition: attachment; filename=\"$nomfichier\"");
+header("Expires: 0");
+header("Cache-Control: no-cache, must-revalidate");
+header("Pragma: no-cache");
+
+readfile("../temp/liste.pdf");
+
+exit();
+?>

+ 135 - 0
html/admin/participants_creer_sql.php

@@ -0,0 +1,135 @@
+<? require('../pages/includes/config.php');
+
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+if (mysqli_connect_errno()) { echo "Connexion impossible !"; } else
+{ 
+  $requete = "SELECT * FROM ".$TABLEListe." ORDER BY Id";
+  $res = mysqli_query($link, $requete) or die ('Erreur SQL:'.$requete.' '.mysqli_error($link));
+
+	$schema  = "CREATE TABLE  `triplea`.`".$TABLEListe."` (\r\n";
+	$schema .= "  `Id` smallint(6) NOT NULL auto_increment,\r\n";
+	$schema .= "  `Nom` varchar(100) NOT NULL default '',\r\n";
+	$schema .= "  `Prenom` varchar(64) NOT NULL default '',\r\n";
+	$schema .= "  `Pseudo` varchar(64) NOT NULL default '',\r\n";
+	$schema .= "  `Groupe` varchar(64) NOT NULL default '',\r\n";
+	$schema .= "  `Adresse` varchar(100) NOT NULL default '',\r\n";
+	$schema .= "  `CodePostal` varchar(6) NOT NULL default '',\r\n";
+	$schema .= "  `Ville` varchar(64) NOT NULL default '',\r\n";
+	$schema .= "  `Pays` varchar(32) NOT NULL default 'France',\r\n";
+	$schema .= "  `Telephone` varchar(32) NOT NULL default '',\r\n";
+	$schema .= "  `Email` varchar(128) NOT NULL default '',\r\n";
+	$schema .= "  `Pwd_md5` varchar(256),\r\n";
+	$schema .= "  `Statut` enum('En attente','Paye cheque','Paye especes','Orga','Virement bancaire','Virement Paypal', 'Guest') NOT NULL default 'En attente',\r\n";
+	$schema .= "  `Machine` enum('Non','Oui') NOT NULL default 'Non',\r\n";
+	$schema .= "  `Commentaires` text NOT NULL,\r\n";
+	$schema .= "  `Photo` varchar(128) NOT NULL default 'gfx/photo.jpg',\r\n";
+	$schema .= "  `J1` enum('O','N') NOT NULL default 'O',\r\n";
+	$schema .= "  `J2` enum('O','N') NOT NULL default 'O',\r\n";
+	$schema .= "  `J3` enum('O','N') NOT NULL default 'O',\r\n";
+	$schema .= "  `dodoSurPlace` enum('Non','Oui') NOT NULL default 'Oui',\r\n";
+	$schema .= "  `amigabus` enum('Non','Oui') NOT NULL default 'Non',\r\n";
+	$schema .= "  `Ip` varchar(15) NOT NULL default '',\r\n";
+	$schema .= "  `paiement` enum('cheque','virement','paypal') NOT NULL default 'cheque',\r\n";
+	$schema .= "  `dateInscription` timestamp NOT NULL default CURRENT_TIMESTAMP,\r\n";
+	$schema .= "  `sommeRecue` decimal(10,2) default '0.00',\r\n";
+	$schema .= "  `ligneAffichee` tinyint(1) default 1,\r\n";
+	$schema .= "  `Lat` varchar(128),\r\n";
+	$schema .= "  `Lng` varchar(128),\r\n";
+	$schema .= "  PRIMARY KEY  (`Id`)\r\n";
+	$schema .= ") ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;\r\n\r\n";
+	
+	$backup = "INSERT INTO `triplea`.`".$TABLEListe."` (`Id`,`Nom`,`Prenom`,`Pseudo`,`Groupe`,`Adresse`,`CodePostal`,`Ville`,`Pays`,`Telephone`,`Email`,`Pwd_md5`,`Statut`,`Machine`,`Commentaires`,`Photo`,`J1`,`J2`,`J3`,`amigabus`,`Ip`,`paiement`,`dateInscription`,`sommeRecue`,`ligneAffichee`,`Lat`,`Lng`) VALUES \r\n";
+
+	$avant = array ("'", "\r\n");
+	$apres = array ("''", "\\r\\n");
+  $nb = 0;
+  
+  while($col = mysqli_fetch_array($res)) {
+
+		$backup .= "  (";
+		$backup .= $col["Id"];
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Nom"])."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Prenom"])."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Pseudo"])."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Groupe"])."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Adresse"])."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["CodePostal"])."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Ville"])."`"; 
+		$backup .= ",";
+		$backup .= "`".$col["Pays"]."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Telephone"])."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Email"])."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Pwd_md5"])."`";
+		$backup .= ",";
+		$backup .= "`".$col["Statut"]."`";
+		$backup .= ",";
+		$backup .= "`".$col["Machine"]."`";
+		$backup .= ",";
+		$backup .= "`".str_replace($avant, $apres, $col["Commentaires"])."`"; 
+		$backup .= ",";
+		$backup .= "`".$col["Photo"]."`";
+		$backup .= ",";
+		$backup .= "`".$col["J1"]."`";
+		$backup .= ",";
+		$backup .= "`".$col["J2"]."`";
+		$backup .= ",";
+		$backup .= "`".$col["J3"]."`";
+		$backup .= ",";
+		$backup .= "`".$col["amigabus"]."`";
+		$backup .= ",";
+		$backup .= "`".$col["dodoSurPlace"]."`";
+		$backup .= ",";
+		$backup .= "`".$col["Ip"]."`";
+		$backup .= ",";
+		$backup .= "`".$col["paiement"]."`";
+		$backup .= ",";
+		$backup .= "`".$col["dateInscription"]."`"; 
+		$backup .= ",";
+		$backup .= "`".$col["sommeRecue"]."`"; 
+		$backup .= ",";
+		$backup .= $col["ligneAffichee"]; 
+		$backup .= ",";
+		$backup .= "`".$col["Lat"]."`"; 
+		$backup .= ",";
+		$backup .= "`".$col["Lng"]."`"; 
+		$backup .= "),\r\n";
+
+  	$nb++;
+  	}
+	$backup = substr($backup, 0, strlen($backup) - 3).";\r\n";
+  	
+	mysqli_free_result($res);
+	mysqli_close($link); 
+ 	
+ 	$taille = strlen($schema);
+ 	
+ 	if ($nb > 0) { $taille += strlen($backup); }
+		
+	$nomfichier = $TABLEListe.".sql";
+		
+	header("Content-Type: application/force-download; name=\"$nomfichier\"");
+	header("Content-Transfer-Encoding: binary");
+	header("Content-Length: $taille");
+	header("Content-Disposition: attachment; filename=\"$nomfichier\"");
+	header("Expires: 0");
+	header("Cache-Control: no-cache, must-revalidate");
+	header("Pragma: no-cache");
+ 		
+ 	echo($schema);
+ 	
+ 	if ($nb > 0) { echo($backup); }
+		
+	exit(); 
+ 	}
+?>

+ 89 - 0
html/admin/participants_creer_vote.php

@@ -0,0 +1,89 @@
+<? require('../pages/includes/config.php');
+
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+if (mysqli_connect_errno()) { echo "Connexion impossible !"; } else
+{ 
+  $requete = "SELECT * FROM ".$TABLEListe." WHERE ligneAffichee = 1 ORDER BY Id";
+  $res = mysqli_query($link, $requete) or die ('Erreur SQL:'.$requete.' '.mysqli_error($link));
+	
+  $backup = "";
+  $insert = "INSERT INTO VOTE.PARTICIPANTS (INO_UTI,INO_PROF,CNOM_UTI,CPRENOM_UTI,CCOD_UTI,CGROUP_UTI,CPWD_UTI,CADRESSE_UTI,CCODPOST_UTI,CVILLE_UTI,CPAYS_UTI,CTEL_UTI,CMAIL_UTI,CSTATUS_UTI,LMACHINE_UTI,CCOMMENTAIRES_UTI,LJOUR1_UTI,LJOUR2_UTI,LJOUR3_UTI,CMODEPAIMENT_UTI,DINSCRIT_UTI,ISOMMERECUE_UTI,LARRIVE_UTI) VALUES ";
+
+  $avant = array ("`", "'", "\r\n");
+  $apres = array (" ", "''", "\\r\\n");
+  $nb = 0;
+  
+  while($col = mysqli_fetch_array($res)) {
+
+		$backup .= $insert;
+		$backup .= "(";
+		$backup .= $col["Id"];
+		$backup .= ", 2,";
+		$backup .= "'".str_replace($avant, $apres, strtoupper($col["Nom"]))."'";
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, ucfirst($col["Prenom"]))."'";
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, $col["Pseudo"])."'";
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, $col["Groupe"])."'";
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, $col["Pwd_md5"])."'";
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, $col["Adresse"])."'";
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, $col["CodePostal"])."'";
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, $col["Ville"])."'"; 
+		$backup .= ",";
+		$backup .= "'".$col["Pays"]."'";
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, $col["Telephone"])."'";
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, $col["Email"])."'";
+		$backup .= ",";
+		$backup .= "'".$col["Statut"]."'";
+		$backup .= ",";
+		$backup .= ($col["Machine"] === 'Oui' ? "1" : "0");
+		$backup .= ",";
+		$backup .= "'".str_replace($avant, $apres, $col["Commentaires"])."'"; 
+		$backup .= ",";
+		$backup .= ($col["J1"] === 'O' ? "1" : "0");
+		$backup .= ",";
+		$backup .= ($col["J2"] === 'O' ? "1" : "0");
+		$backup .= ",";
+		$backup .= ($col["J3"] === 'O' ? "1" : "0");
+		$backup .= ",";
+		$backup .= "'".$col["paiement"]."'";
+		$backup .= ",";
+		$backup .= "'".$col["dateInscription"]."'"; 
+		$backup .= ",";
+		$backup .= $col["sommeRecue"]; 
+		$backup .= ", 0);\r\n";
+
+  	$nb++;
+  	}
+	$backup = substr($backup, 0, strlen($backup) - 3).";\r\n";
+  	
+	mysqli_free_result($res);
+	mysqli_close($link); 
+ 	
+ 	$taille = 0;
+ 	
+ 	if ($nb > 0) { $taille += strlen($backup); }
+		
+	$nomfichier = "vote.participants.sql";
+		
+	header("Content-Type: application/force-download; name=\"$nomfichier\"");
+	header("Content-Transfer-Encoding: binary");
+	header("Content-Length: $taille");
+	header("Content-Disposition: attachment; filename=\"$nomfichier\"");
+	header("Expires: 0");
+	header("Cache-Control: no-cache, must-revalidate");
+	header("Pragma: no-cache");
+ 		 	
+ 	if ($nb > 0) { echo($backup); }
+		
+	exit(); 
+ 	}
+?>

+ 88 - 0
html/admin/participants_creer_xlt.php

@@ -0,0 +1,88 @@
+<? require('../pages/includes/config.php');
+
+date_default_timezone_set("Europe/Paris");
+
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+if (mysqli_connect_errno()) { echo "Connexion impossible !"; } else
+{ 
+  $requete = "SELECT * FROM ".$TABLEListe." where ligneAffichee = 1 ORDER BY Id";
+  $res = mysqli_query($link, $requete) or die ('Erreur SQL:'.$requete.' '.mysqli_error($link));
+
+  $grille = "ID\tNOM\tPRENOM\tPSEUDO\tGROUPE\tADRESSE\tCODE POSTAL\tVILLE\tPAYS\tTELEPHONE\tEMAIL\tSTATUS\tMACHINE\tCOMMENTAIRES\tJ1\tJ2\tJ3\tNUITSURPLACE\tTYPE PAIEMENT\tINSCRIT LE\tSOMME RECUE\r\n";
+
+  $avant = array ("|", "\r\n", "\t");
+  $apres = array (" ", "\\r\\n", "\\t");
+  $nb = 0;
+  
+  while($col = mysqli_fetch_array($res)) {
+
+		$grille .= $col["Id"];
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["Nom"]);
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["Prenom"]);
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["Pseudo"]);
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["Groupe"]);
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["Adresse"]);
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["CodePostal"]);
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["Ville"]); 
+		$grille .= "\t";
+		$grille .= $col["Pays"];
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["Telephone"]);
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["Email"]);
+		$grille .= "\t";
+		$grille .= $col["Statut"];
+		$grille .= "\t";
+		$grille .= $col["Machine"];
+		$grille .= "\t";
+		$grille .= str_replace($avant, $apres, $col["Commentaires"]); 
+		$grille .= "\t";
+		$grille .= $col["J1"];
+		$grille .= "\t";
+		$grille .= $col["J2"];
+		$grille .= "\t";
+		$grille .= $col["J3"];
+		$grille .= "\t";
+		$grille .= $col["dodoSurPlace"];
+		$grille .= "\t";
+		$grille .= $col["paiement"];
+		$grille .= "\t";
+		$grille .= date("d/m/Y H:i", strtotime($col["dateInscription"])); 
+		$grille .= "\t";
+		$grille .= $col["sommeRecue"]; 
+		$grille .= "\r\n";
+
+  	$nb++;
+  	}
+  	
+	mysqli_free_result($res);
+	mysqli_close($link); 
+ 	
+ 	if ($nb > 0) { 
+		
+		$nomfichier = $TABLEListe.".xlt";
+		$taille     = strlen($grille);
+		
+		header("Content-Type: application/excel; name=\"$nomfichier\"");
+		header("Content-Transfer-Encoding: binary");
+		header("Content-Length: $taille");
+		header("Content-Disposition: attachment; filename=\"$nomfichier\"");
+		header("Expires: 0");
+		header("Cache-Control: no-cache, must-revalidate");
+		header("Pragma: no-cache");
+ 		
+ 		echo($grille); 
+		
+		exit();
+ 		} 
+ 	else { echo "il n'y a aucun enregistrement dans cette liste, donc pas encore de sauvegarde à faire."; }
+ 	}
+?>

+ 46 - 0
html/admin/participants_exporter.php

@@ -0,0 +1,46 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+
+<p class="titre">Exports</p>
+
+<br><br>
+
+<table width="500" border="0" cellpadding="4" cellspacing="2">
+
+<tr><td class="texte" align="right"><form name="fpdf" action="participants_creer_pdf.php" method="POST" target="_blank">Lister en PDF, trié par&nbsp;: 
+<select name="par" size="1">
+	<option value="Id" selected>Ordre d'inscription</option>
+	<option value="Nom">Noms & prénoms (A...Z)</option>
+	<option value="Nom DESC">Noms et prénoms (Z...A)</option>
+	<option value="Statut, Nom">Statuts paiement et Noms (A...Z)</option>
+	<option value="Pseudo">Pseudos</option>
+	<option value="Groupe">Groupes</option>
+	<option value="Pseudo, Groupe">Pseudos et Groupes</option>
+</select>
+<input type="submit" value="Obtenir">
+</form><br><br></td></tr>
+
+<tr><td class="texte" align="right"><form name="fxlt" action="participants_creer_xlt.php" method="POST" target="_blank">Exporter au format lisible par Excel&nbsp;: 
+<input type="submit" value="Obtenir">
+</form><br><br></td></tr>
+
+<tr><td class="texte" align="right"><form name="fsql" action="participants_creer_sql.php" method="POST" target="_blank">Sauvegarder les données au format SQL&nbsp;: 
+<input type="submit" value="Obtenir">
+</form><br><br></td></tr>
+
+<tr><td class="texte" align="right"><form name="fjgk" action="participants_creer_jgk.php" method="POST" target="_blank">Récupérer le SQL pour Ptah (logiciel de vote de JgK)&nbsp;: 
+<input type="submit" value="Obtenir">
+</form><br><br></td></tr>
+
+<tr><td class="texte" align="right"><form name="fvot" action="participants_creer_vote.php" method="POST" target="_blank">Récupérer le SQL pour Vote (logiciel de vote de Triple A)&nbsp;: 
+<input type="submit" value="Obtenir">
+</form><br><br></td></tr>
+
+</table>
+
+<? include("includes/page_bas.php"); ?>

+ 109 - 0
html/admin/participants_liste.php

@@ -0,0 +1,109 @@
+<? require('../pages/includes/config.php'); ?>
+
+<? include("includes/page_haut.php"); ?>
+
+<? include("includes/page_menu.php"); ?>
+
+<br><br>
+
+<p class="titre">Liste des 
+<? 
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName);  mysqli_set_charset($link, "utf8");
+$requete = "SELECT count(*) as 'nombre' FROM ".$TABLEListe." where ligneAffichee = 1";
+$res = mysqli_query($link, $requete) or die ('ERREUR '.$requete.' '.mysqli_error($link));
+echo mysqli_result($res, 0, "nombre"); ?>&nbsp;réservations</p>
+
+<br><br>
+
+<CENTER>
+
+<form name="tri" action="participants_liste.php" method="POST">tri par&nbsp;: 
+<select name="par" size="1" onChange="document.tri.submit();">
+	<option value="Id" selected>Ordre d'inscription</option>
+	<option value="Nom" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Nom") { echo "selected"; } } ?>>Noms & prénoms (A...Z)</option>
+	<option value="Nom DESC" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Nom DESC") { echo "selected"; } } ?>>Noms et prénoms (Z...A)</option>
+	<option value="Statut, Nom" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Statut, Nom") { echo "selected"; } } ?>>Statuts paiement et Noms (A...Z)</option>
+	<option value="Pseudo" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Pseudo") { echo "selected"; } } ?>>Pseudos</option>
+	<option value="Groupe" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Groupe") { echo "selected"; } } ?>>Groupes</option>
+	<option value="Pseudo, Groupe" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Pseudo, Groupe") { echo "selected"; } } ?>>Pseudos et Groupes</option>
+</select>
+</form>
+
+<br><br>
+
+<TABLE BORDER="0" CELLPADDING="2" CELLSPACING="1">
+
+<TR>
+<TD ALIGN="center" class="petit_texte lst_titre">&nbsp;</TD>
+<TD ALIGN="left" class="petit_texte lst_titre">&nbsp;Nom et prénom&nbsp;</TD>
+<TD ALIGN="left" class="petit_texte lst_titre">&nbsp;Pseudo&nbsp;</TD>
+<TD ALIGN="left" class="petit_texte lst_titre">&nbsp;Email&nbsp;</TD>
+<TD ALIGN="left" class="petit_texte lst_titre">&nbsp;Téléphone&nbsp;</TD>
+<TD ALIGN="center" class="petit_texte lst_titre">Statut</TD>
+<? if (strlen($PARTYJour1Court) > 0) { ?><TD ALIGN="center" class="petit_texte lst_titre"><b><? echo $PARTYJour1Court; ?></b></TD><? } ?>
+<? if (strlen($PARTYJour2Court) > 0) { ?><TD ALIGN="center" class="petit_texte lst_titre"><b><? echo $PARTYJour2Court; ?></b></TD><? } ?>
+<? if (strlen($PARTYJour3Court) > 0) { ?><TD ALIGN="center" class="petit_texte lst_titre"><b><? echo $PARTYJour3Court; ?></b></TD><? } ?>
+<? if ($PARTYNombrePlacesDodoEnTout > 0) { ?><TD ALIGN="center" class="petit_texte lst_titre"><b>NuitSurPlace</b></TD><? } ?>
+</TR>
+
+<?
+date_default_timezone_set("Europe/Paris");
+ 
+$link = mysqli_connect($DBHost, $DBUser, $DBPass, $DBName); mysqli_set_charset($link, "utf8");
+
+if (mysqli_connect_errno()) { echo "Connexion impossible !"; } else
+{
+  $requete = "SELECT * FROM ".$TABLEListe." where ligneAffichee = 1 ORDER BY "; if(isset($_POST["par"])) { $requete .= $_POST["par"]; } else { $requete .= "Id";  }
+  $res = mysqli_query($link, $requete) or die ('ERREUR '.$requete.' '.mysqli_error($link));
+  $ip = 1;
+  while($col = mysqli_fetch_array($res)) {
+        echo "<TR>\n";
+
+        echo "<TD ALIGN=\"center\" class=\"texte ".(($ip % 2 <> 0) ? "lst_pair" : "lst_impair")."\"><form name=\"maj\" action=\"participant_formulaire.php\" method=\"POST\">";
+        echo "<input type=\"hidden\" name=\"Id\" value=\"".$col["Id"]."\"><input type=\"submit\" value=\"".$col["Id"]."\"></form>";
+        if (strtotime($col["dateInscription"]) > 0) { echo "<SPAN CLASS=\"petit_texte\">".date("d/m/Y", strtotime($col["dateInscription"]))."</SPAN>"; }
+        echo "</TD>\n";
+        echo "<TD ALIGN=\"left\" class=\"texte ".(($ip % 2 <> 0) ? "lst_pair" : "lst_impair")."\">&nbsp;<NOBR>".mb_strtoupper($col["Nom"], 'UTF-8')." ".mb_convert_case($col['Prenom'],MB_CASE_TITLE,'UTF-8')."</NOBR></TD>\n";
+        echo "<TD ALIGN=\"left\" class=\"texte ".(($ip % 2 <> 0) ? "lst_pair" : "lst_impair")."\">&nbsp;<NOBR>"; echo $col["Pseudo"]; if (strlen($col["Groupe"]) > 0) { echo " / ".$col["Groupe"]; }; echo "</NOBR></TD>\n";
+        echo "<TD ALIGN=\"left\" class=\"petit_texte ".(($ip % 2 <> 0) ? "lst_pair" : "lst_impair")."\">&nbsp;<NOBR><a href=\"mailto:".$col["Email"]."\">".$col["Email"]."</a></NOBR></TD>\n";
+        echo "<TD ALIGN=\"left\" class=\"texte ".(($ip % 2 <> 0) ? "lst_pair" : "lst_impair")."\">&nbsp;<NOBR>".$col["Telephone"]."</NOBR></TD>\n";
+        echo "<TD BGCOLOR=\"";
+        if ($col["Statut"] === 'En attente') { echo "#BF0000"; } 
+     	elseif ($col["Statut"] === 'Orga') { echo "#0040D0"; } 
+     	elseif ($col["Statut"] === 'Guest') { echo "#0040D0"; } 
+     	elseif ($col["Statut"] === 'Paye cheque') { echo "#008000"; } 
+     	elseif ($col["Statut"] === 'Paye especes') { echo "#008000"; } 
+     	elseif ($col["Statut"] === 'Virement bancaire') { echo "#008000"; } 
+     	elseif ($col["Statut"] === 'Virement Paypal') { echo "#008000"; } 
+     	else { echo "#DDDDDD"; } 
+     	echo "\" VALIGN=\"top\" ALIGN=\"center\" class=\"petit_texte\">".$col["Statut"]; if ($col["Statut"] === "En attente") { echo "<br>".$col["paiement"]; } echo "</TD>\n";
+		if (strlen($PARTYJour1Court) > 0) { echo "<TD ALIGN=\"center\" class=\"texte ".(($ip % 2 <> 0) ? "lst_pair" : "lst_impair")."\">".$col["J1"]."</TD>\n"; }
+		if (strlen($PARTYJour2Court) > 0) { echo "<TD ALIGN=\"center\" class=\"texte ".(($ip % 2 <> 0) ? "lst_pair" : "lst_impair")."\">".$col["J2"]."</TD>\n"; }
+		if (strlen($PARTYJour3Court) > 0) { echo "<TD ALIGN=\"center\" class=\"texte ".(($ip % 2 <> 0) ? "lst_pair" : "lst_impair")."\">".$col["J3"]."</TD>\n"; }
+		if ($PARTYNombrePlacesDodoEnTout > 0) { echo "<TD ALIGN=\"center\" class=\"texte ".(($ip % 2 <> 0) ? "lst_pair" : "lst_impair")."\">".$col["dodoSurPlace"]."</TD>\n"; }
+
+        echo "</TR>\n";
+        $ip++;}
+  mysqli_free_result($res);
+ }
+?>
+
+</TABLE>
+
+<br><br>
+
+<form name="tri_bas" action="participants_liste.php" method="POST">tri par&nbsp;: 
+<select name="par" size="1" onChange="document.tri_bas.submit();">
+	<option value="Id" selected>Ordre d'inscription</option>
+	<option value="Nom" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Nom") { echo "selected"; } } ?>>Noms & prénoms (A...Z)</option>
+	<option value="Nom DESC" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Nom DESC") { echo "selected"; } } ?>>Noms et prénoms (Z...A)</option>
+	<option value="Statut, Nom" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Statut, Nom") { echo "selected"; } } ?>>Statuts paiement et Noms (A...Z)</option>
+	<option value="Pseudo" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Pseudo") { echo "selected"; } } ?>>Pseudos</option>
+	<option value="Groupe" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Groupe") { echo "selected"; } } ?>>Groupes</option>
+	<option value="Pseudo, Groupe" <? if(isset($_POST["par"])) { if ($_POST["par"] === "Pseudo, Groupe") { echo "selected"; } } ?>>Pseudos et Groupes</option>
+</select>
+</form>
+
+</CENTER>
+
+<? include("includes/page_bas.php"); ?>

+ 7 - 0
html/admin/pdf/fontes/courier.php

@@ -0,0 +1,7 @@
+<?php
+for($i=0;$i<=255;$i++)
+	$fpdf_charwidths['courier'][chr($i)]=600;
+$fpdf_charwidths['courierB']=$fpdf_charwidths['courier'];
+$fpdf_charwidths['courierI']=$fpdf_charwidths['courier'];
+$fpdf_charwidths['courierBI']=$fpdf_charwidths['courier'];
+?>

+ 15 - 0
html/admin/pdf/fontes/helvetica.php

@@ -0,0 +1,15 @@
+<?php
+$fpdf_charwidths['helvetica']=array(
+	chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
+	chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
+	','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
+	'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
+	'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
+	'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
+	chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+	chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
+	chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
+	chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+	chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
+	chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
+?>

+ 15 - 0
html/admin/pdf/fontes/helveticab.php

@@ -0,0 +1,15 @@
+<?php
+$fpdf_charwidths['helveticaB']=array(
+	chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
+	chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
+	','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
+	'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
+	'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
+	'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
+	chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+	chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
+	chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
+	chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+	chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
+	chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
+?>

+ 15 - 0
html/admin/pdf/fontes/helveticabi.php

@@ -0,0 +1,15 @@
+<?php
+$fpdf_charwidths['helveticaBI']=array(
+	chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
+	chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>333,'"'=>474,'#'=>556,'$'=>556,'%'=>889,'&'=>722,'\''=>238,'('=>333,')'=>333,'*'=>389,'+'=>584,
+	','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>333,';'=>333,'<'=>584,'='=>584,'>'=>584,'?'=>611,'@'=>975,'A'=>722,
+	'B'=>722,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>556,'K'=>722,'L'=>611,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
+	'X'=>667,'Y'=>667,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>584,'_'=>556,'`'=>333,'a'=>556,'b'=>611,'c'=>556,'d'=>611,'e'=>556,'f'=>333,'g'=>611,'h'=>611,'i'=>278,'j'=>278,'k'=>556,'l'=>278,'m'=>889,
+	'n'=>611,'o'=>611,'p'=>611,'q'=>611,'r'=>389,'s'=>556,'t'=>333,'u'=>611,'v'=>556,'w'=>778,'x'=>556,'y'=>556,'z'=>500,'{'=>389,'|'=>280,'}'=>389,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>278,chr(131)=>556,
+	chr(132)=>500,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>278,chr(146)=>278,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+	chr(154)=>556,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>280,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
+	chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>611,chr(182)=>556,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
+	chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+	chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>556,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>611,chr(241)=>611,
+	chr(242)=>611,chr(243)=>611,chr(244)=>611,chr(245)=>611,chr(246)=>611,chr(247)=>584,chr(248)=>611,chr(249)=>611,chr(250)=>611,chr(251)=>611,chr(252)=>611,chr(253)=>556,chr(254)=>611,chr(255)=>556);
+?>

+ 15 - 0
html/admin/pdf/fontes/helveticai.php

@@ -0,0 +1,15 @@
+<?php
+$fpdf_charwidths['helveticaI']=array(
+	chr(0)=>278,chr(1)=>278,chr(2)=>278,chr(3)=>278,chr(4)=>278,chr(5)=>278,chr(6)=>278,chr(7)=>278,chr(8)=>278,chr(9)=>278,chr(10)=>278,chr(11)=>278,chr(12)=>278,chr(13)=>278,chr(14)=>278,chr(15)=>278,chr(16)=>278,chr(17)=>278,chr(18)=>278,chr(19)=>278,chr(20)=>278,chr(21)=>278,
+	chr(22)=>278,chr(23)=>278,chr(24)=>278,chr(25)=>278,chr(26)=>278,chr(27)=>278,chr(28)=>278,chr(29)=>278,chr(30)=>278,chr(31)=>278,' '=>278,'!'=>278,'"'=>355,'#'=>556,'$'=>556,'%'=>889,'&'=>667,'\''=>191,'('=>333,')'=>333,'*'=>389,'+'=>584,
+	','=>278,'-'=>333,'.'=>278,'/'=>278,'0'=>556,'1'=>556,'2'=>556,'3'=>556,'4'=>556,'5'=>556,'6'=>556,'7'=>556,'8'=>556,'9'=>556,':'=>278,';'=>278,'<'=>584,'='=>584,'>'=>584,'?'=>556,'@'=>1015,'A'=>667,
+	'B'=>667,'C'=>722,'D'=>722,'E'=>667,'F'=>611,'G'=>778,'H'=>722,'I'=>278,'J'=>500,'K'=>667,'L'=>556,'M'=>833,'N'=>722,'O'=>778,'P'=>667,'Q'=>778,'R'=>722,'S'=>667,'T'=>611,'U'=>722,'V'=>667,'W'=>944,
+	'X'=>667,'Y'=>667,'Z'=>611,'['=>278,'\\'=>278,']'=>278,'^'=>469,'_'=>556,'`'=>333,'a'=>556,'b'=>556,'c'=>500,'d'=>556,'e'=>556,'f'=>278,'g'=>556,'h'=>556,'i'=>222,'j'=>222,'k'=>500,'l'=>222,'m'=>833,
+	'n'=>556,'o'=>556,'p'=>556,'q'=>556,'r'=>333,'s'=>500,'t'=>278,'u'=>556,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>500,'{'=>334,'|'=>260,'}'=>334,'~'=>584,chr(127)=>350,chr(128)=>556,chr(129)=>350,chr(130)=>222,chr(131)=>556,
+	chr(132)=>333,chr(133)=>1000,chr(134)=>556,chr(135)=>556,chr(136)=>333,chr(137)=>1000,chr(138)=>667,chr(139)=>333,chr(140)=>1000,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>222,chr(146)=>222,chr(147)=>333,chr(148)=>333,chr(149)=>350,chr(150)=>556,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
+	chr(154)=>500,chr(155)=>333,chr(156)=>944,chr(157)=>350,chr(158)=>500,chr(159)=>667,chr(160)=>278,chr(161)=>333,chr(162)=>556,chr(163)=>556,chr(164)=>556,chr(165)=>556,chr(166)=>260,chr(167)=>556,chr(168)=>333,chr(169)=>737,chr(170)=>370,chr(171)=>556,chr(172)=>584,chr(173)=>333,chr(174)=>737,chr(175)=>333,
+	chr(176)=>400,chr(177)=>584,chr(178)=>333,chr(179)=>333,chr(180)=>333,chr(181)=>556,chr(182)=>537,chr(183)=>278,chr(184)=>333,chr(185)=>333,chr(186)=>365,chr(187)=>556,chr(188)=>834,chr(189)=>834,chr(190)=>834,chr(191)=>611,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
+	chr(198)=>1000,chr(199)=>722,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>278,chr(205)=>278,chr(206)=>278,chr(207)=>278,chr(208)=>722,chr(209)=>722,chr(210)=>778,chr(211)=>778,chr(212)=>778,chr(213)=>778,chr(214)=>778,chr(215)=>584,chr(216)=>778,chr(217)=>722,chr(218)=>722,chr(219)=>722,
+	chr(220)=>722,chr(221)=>667,chr(222)=>667,chr(223)=>611,chr(224)=>556,chr(225)=>556,chr(226)=>556,chr(227)=>556,chr(228)=>556,chr(229)=>556,chr(230)=>889,chr(231)=>500,chr(232)=>556,chr(233)=>556,chr(234)=>556,chr(235)=>556,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>556,chr(241)=>556,
+	chr(242)=>556,chr(243)=>556,chr(244)=>556,chr(245)=>556,chr(246)=>556,chr(247)=>584,chr(248)=>611,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>500,chr(254)=>556,chr(255)=>500);
+?>

+ 251 - 0
html/admin/pdf/fontes/makefont/cp1250.map

@@ -0,0 +1,251 @@
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+20AC Euro
+!82 U+201A quotesinglbase
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!89 U+2030 perthousand
+!8A U+0160 Scaron
+!8B U+2039 guilsinglleft
+!8C U+015A Sacute
+!8D U+0164 Tcaron
+!8E U+017D Zcaron
+!8F U+0179 Zacute
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!99 U+2122 trademark
+!9A U+0161 scaron
+!9B U+203A guilsinglright
+!9C U+015B sacute
+!9D U+0165 tcaron
+!9E U+017E zcaron
+!9F U+017A zacute
+!A0 U+00A0 space
+!A1 U+02C7 caron
+!A2 U+02D8 breve
+!A3 U+0141 Lslash
+!A4 U+00A4 currency
+!A5 U+0104 Aogonek
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+00A8 dieresis
+!A9 U+00A9 copyright
+!AA U+015E Scedilla
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+017B Zdotaccent
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+02DB ogonek
+!B3 U+0142 lslash
+!B4 U+00B4 acute
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+00B8 cedilla
+!B9 U+0105 aogonek
+!BA U+015F scedilla
+!BB U+00BB guillemotright
+!BC U+013D Lcaron
+!BD U+02DD hungarumlaut
+!BE U+013E lcaron
+!BF U+017C zdotaccent
+!C0 U+0154 Racute
+!C1 U+00C1 Aacute
+!C2 U+00C2 Acircumflex
+!C3 U+0102 Abreve
+!C4 U+00C4 Adieresis
+!C5 U+0139 Lacute
+!C6 U+0106 Cacute
+!C7 U+00C7 Ccedilla
+!C8 U+010C Ccaron
+!C9 U+00C9 Eacute
+!CA U+0118 Eogonek
+!CB U+00CB Edieresis
+!CC U+011A Ecaron
+!CD U+00CD Iacute
+!CE U+00CE Icircumflex
+!CF U+010E Dcaron
+!D0 U+0110 Dcroat
+!D1 U+0143 Nacute
+!D2 U+0147 Ncaron
+!D3 U+00D3 Oacute
+!D4 U+00D4 Ocircumflex
+!D5 U+0150 Ohungarumlaut
+!D6 U+00D6 Odieresis
+!D7 U+00D7 multiply
+!D8 U+0158 Rcaron
+!D9 U+016E Uring
+!DA U+00DA Uacute
+!DB U+0170 Uhungarumlaut
+!DC U+00DC Udieresis
+!DD U+00DD Yacute
+!DE U+0162 Tcommaaccent
+!DF U+00DF germandbls
+!E0 U+0155 racute
+!E1 U+00E1 aacute
+!E2 U+00E2 acircumflex
+!E3 U+0103 abreve
+!E4 U+00E4 adieresis
+!E5 U+013A lacute
+!E6 U+0107 cacute
+!E7 U+00E7 ccedilla
+!E8 U+010D ccaron
+!E9 U+00E9 eacute
+!EA U+0119 eogonek
+!EB U+00EB edieresis
+!EC U+011B ecaron
+!ED U+00ED iacute
+!EE U+00EE icircumflex
+!EF U+010F dcaron
+!F0 U+0111 dcroat
+!F1 U+0144 nacute
+!F2 U+0148 ncaron
+!F3 U+00F3 oacute
+!F4 U+00F4 ocircumflex
+!F5 U+0151 ohungarumlaut
+!F6 U+00F6 odieresis
+!F7 U+00F7 divide
+!F8 U+0159 rcaron
+!F9 U+016F uring
+!FA U+00FA uacute
+!FB U+0171 uhungarumlaut
+!FC U+00FC udieresis
+!FD U+00FD yacute
+!FE U+0163 tcommaaccent
+!FF U+02D9 dotaccent

+ 255 - 0
html/admin/pdf/fontes/makefont/cp1251.map

@@ -0,0 +1,255 @@
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft
+!29 U+0029 parenright
+!2A U+002A asterisk
+!2B U+002B plus
+!2C U+002C comma
+!2D U+002D hyphen
+!2E U+002E period
+!2F U+002F slash
+!30 U+0030 zero
+!31 U+0031 one
+!32 U+0032 two
+!33 U+0033 three
+!34 U+0034 four
+!35 U+0035 five
+!36 U+0036 six
+!37 U+0037 seven
+!38 U+0038 eight
+!39 U+0039 nine
+!3A U+003A colon
+!3B U+003B semicolon
+!3C U+003C less
+!3D U+003D equal
+!3E U+003E greater
+!3F U+003F question
+!40 U+0040 at
+!41 U+0041 A
+!42 U+0042 B
+!43 U+0043 C
+!44 U+0044 D
+!45 U+0045 E
+!46 U+0046 F
+!47 U+0047 G
+!48 U+0048 H
+!49 U+0049 I
+!4A U+004A J
+!4B U+004B K
+!4C U+004C L
+!4D U+004D M
+!4E U+004E N
+!4F U+004F O
+!50 U+0050 P
+!51 U+0051 Q
+!52 U+0052 R
+!53 U+0053 S
+!54 U+0054 T
+!55 U+0055 U
+!56 U+0056 V
+!57 U+0057 W
+!58 U+0058 X
+!59 U+0059 Y
+!5A U+005A Z
+!5B U+005B bracketleft
+!5C U+005C backslash
+!5D U+005D bracketright
+!5E U+005E asciicircum
+!5F U+005F underscore
+!60 U+0060 grave
+!61 U+0061 a
+!62 U+0062 b
+!63 U+0063 c
+!64 U+0064 d
+!65 U+0065 e
+!66 U+0066 f
+!67 U+0067 g
+!68 U+0068 h
+!69 U+0069 i
+!6A U+006A j
+!6B U+006B k
+!6C U+006C l
+!6D U+006D m
+!6E U+006E n
+!6F U+006F o
+!70 U+0070 p
+!71 U+0071 q
+!72 U+0072 r
+!73 U+0073 s
+!74 U+0074 t
+!75 U+0075 u
+!76 U+0076 v
+!77 U+0077 w
+!78 U+0078 x
+!79 U+0079 y
+!7A U+007A z
+!7B U+007B braceleft
+!7C U+007C bar
+!7D U+007D braceright
+!7E U+007E asciitilde
+!7F U+007F .notdef
+!80 U+0402 afii10051
+!81 U+0403 afii10052
+!82 U+201A quotesinglbase
+!83 U+0453 afii10100
+!84 U+201E quotedblbase
+!85 U+2026 ellipsis
+!86 U+2020 dagger
+!87 U+2021 daggerdbl
+!88 U+20AC Euro
+!89 U+2030 perthousand
+!8A U+0409 afii10058
+!8B U+2039 guilsinglleft
+!8C U+040A afii10059
+!8D U+040C afii10061
+!8E U+040B afii10060
+!8F U+040F afii10145
+!90 U+0452 afii10099
+!91 U+2018 quoteleft
+!92 U+2019 quoteright
+!93 U+201C quotedblleft
+!94 U+201D quotedblright
+!95 U+2022 bullet
+!96 U+2013 endash
+!97 U+2014 emdash
+!99 U+2122 trademark
+!9A U+0459 afii10106
+!9B U+203A guilsinglright
+!9C U+045A afii10107
+!9D U+045C afii10109
+!9E U+045B afii10108
+!9F U+045F afii10193
+!A0 U+00A0 space
+!A1 U+040E afii10062
+!A2 U+045E afii10110
+!A3 U+0408 afii10057
+!A4 U+00A4 currency
+!A5 U+0490 afii10050
+!A6 U+00A6 brokenbar
+!A7 U+00A7 section
+!A8 U+0401 afii10023
+!A9 U+00A9 copyright
+!AA U+0404 afii10053
+!AB U+00AB guillemotleft
+!AC U+00AC logicalnot
+!AD U+00AD hyphen
+!AE U+00AE registered
+!AF U+0407 afii10056
+!B0 U+00B0 degree
+!B1 U+00B1 plusminus
+!B2 U+0406 afii10055
+!B3 U+0456 afii10103
+!B4 U+0491 afii10098
+!B5 U+00B5 mu
+!B6 U+00B6 paragraph
+!B7 U+00B7 periodcentered
+!B8 U+0451 afii10071
+!B9 U+2116 afii61352
+!BA U+0454 afii10101
+!BB U+00BB guillemotright
+!BC U+0458 afii10105
+!BD U+0405 afii10054
+!BE U+0455 afii10102
+!BF U+0457 afii10104
+!C0 U+0410 afii10017
+!C1 U+0411 afii10018
+!C2 U+0412 afii10019
+!C3 U+0413 afii10020
+!C4 U+0414 afii10021
+!C5 U+0415 afii10022
+!C6 U+0416 afii10024
+!C7 U+0417 afii10025
+!C8 U+0418 afii10026
+!C9 U+0419 afii10027
+!CA U+041A afii10028
+!CB U+041B afii10029
+!CC U+041C afii10030
+!CD U+041D afii10031
+!CE U+041E afii10032
+!CF U+041F afii10033
+!D0 U+0420 afii10034
+!D1 U+0421 afii10035
+!D2 U+0422 afii10036
+!D3 U+0423 afii10037
+!D4 U+0424 afii10038
+!D5 U+0425 afii10039
+!D6 U+0426 afii10040
+!D7 U+0427 afii10041
+!D8 U+0428 afii10042
+!D9 U+0429 afii10043
+!DA U+042A afii10044
+!DB U+042B afii10045
+!DC U+042C afii10046
+!DD U+042D afii10047
+!DE U+042E afii10048
+!DF U+042F afii10049
+!E0 U+0430 afii10065
+!E1 U+0431 afii10066
+!E2 U+0432 afii10067
+!E3 U+0433 afii10068
+!E4 U+0434 afii10069
+!E5 U+0435 afii10070
+!E6 U+0436 afii10072
+!E7 U+0437 afii10073
+!E8 U+0438 afii10074
+!E9 U+0439 afii10075
+!EA U+043A afii10076
+!EB U+043B afii10077
+!EC U+043C afii10078
+!ED U+043D afii10079
+!EE U+043E afii10080
+!EF U+043F afii10081
+!F0 U+0440 afii10082
+!F1 U+0441 afii10083
+!F2 U+0442 afii10084
+!F3 U+0443 afii10085
+!F4 U+0444 afii10086
+!F5 U+0445 afii10087
+!F6 U+0446 afii10088
+!F7 U+0447 afii10089
+!F8 U+0448 afii10090
+!F9 U+0449 afii10091
+!FA U+044A afii10092
+!FB U+044B afii10093
+!FC U+044C afii10094
+!FD U+044D afii10095
+!FE U+044E afii10096
+!FF U+044F afii10097

+ 251 - 0
html/admin/pdf/fontes/makefont/cp1252.map

@@ -0,0 +1,251 @@
+!00 U+0000 .notdef
+!01 U+0001 .notdef
+!02 U+0002 .notdef
+!03 U+0003 .notdef
+!04 U+0004 .notdef
+!05 U+0005 .notdef
+!06 U+0006 .notdef
+!07 U+0007 .notdef
+!08 U+0008 .notdef
+!09 U+0009 .notdef
+!0A U+000A .notdef
+!0B U+000B .notdef
+!0C U+000C .notdef
+!0D U+000D .notdef
+!0E U+000E .notdef
+!0F U+000F .notdef
+!10 U+0010 .notdef
+!11 U+0011 .notdef
+!12 U+0012 .notdef
+!13 U+0013 .notdef
+!14 U+0014 .notdef
+!15 U+0015 .notdef
+!16 U+0016 .notdef
+!17 U+0017 .notdef
+!18 U+0018 .notdef
+!19 U+0019 .notdef
+!1A U+001A .notdef
+!1B U+001B .notdef
+!1C U+001C .notdef
+!1D U+001D .notdef
+!1E U+001E .notdef
+!1F U+001F .notdef
+!20 U+0020 space
+!21 U+0021 exclam
+!22 U+0022 quotedbl
+!23 U+0023 numbersign
+!24 U+0024 dollar
+!25 U+0025 percent
+!26 U+0026 ampersand
+!27 U+0027 quotesingle
+!28 U+0028 parenleft