Utilisateurs"; */ $ent = "Analyse -> Résultats de l'élection n°".$_GET ['elec']." pour le bureau n°".$_GET ['idx'].""; /** * Icone à afficher * Ex : $ico = "../img/ico.png"; */ $ico = "../img/ico_analyse.png"; /** * ???????????????????? * programme édition : nomfichier.pdf.php */ $edition = ""; // SELECT /** * Tableau de noms de champs à afficher * Ex : $champAffiche = array ("nomtable1.idtable", "libelletable", "nbtable", "phototable"); */ $champAffiche = array ( "candidat.candidat as 'Code du candidat'", "candidat_nom", "candidat_prenom as Prénom", "parti as parti", "election_resultat_resultat as Votes ", "ROUND(election_resultat_tx*100,2) as 'Taux Nombre de votes' "); // FROM /** * Nom de la table à afficher (possibilité d'insérer une jointure) * Ex : $table = "nomtable"; $table = "nomtable1 INNER JOIN nomtable2 ON nomtable1.idtable = nomtable2.idtable"; */ $table = "election INNER JOIN election_resultat ON election.election = election_resultat.election INNER JOIN candidat ON election_resultat.candidat = candidat.candidat"; // WHERE /** * Chaine correspondant à la clause WHERE * Ex : $selection = ""; $selection = "WHERE nbtable > 0"; */ $selection = "WHERE election.election = '".$_GET ['elec']."' AND bureau = ".$_GET ['idx']." "; /** * Tableau de noms de champs à rechercher * Ex : $champRecherche = array ("nomtable1.idtable", "libelletable", "nbtable", "phototable"); */ $champRecherche = array ( "candidat.candidat", "candidat_nom", "candidat_prenom", "parti as parti"); // ORDER BY /** * Chaine correspondant à la clause ORDER BY * Ex : $tri = ""; $tri = "ORDER BY libelletable"; */ $tri = "ORDER BY election_resultat_resultat DESC "; // LIMIT /** * Nombre d'enregistrements par page * $serie = 30; */ $serie = 40; /////////////////////////////////////////////////////////////////////////////// // Liens particuliers pour le tableau : (facultatif, les liens sont traités par défaut dans tab.php) /////////////////////////////////////////////////////////////////////////////// $href [0]['lien'] = ""; $href [0]['id'] = ""; $href [0]['lib'] = ""; $href [1]['lien'] = ""; $href [1]['id'] = ""; $href [1]['lib'] = ""; $href [2]['lien'] = ""; $href [2]['id'] = ""; $href [2]['lib'] = ""; } else { /** * Variable permettant d'afficher ou non les messages du mode débug (1 : On affiche - 0 : On affiche pas) * Ex : $DEBUG = 1; $DEBUG = 0; */ $DEBUG = 0; /** * Message à afficher * Ex : $ent = "Paramètres -> Utilisateurs"; */ $ent = "Analyse -> Résultats par bureau -> Choix de l'élection"; /** * Icone à afficher * Ex : $ico = "../img/ico.png"; */ $ico = "../img/ico_analyse.png"; /** * ???????????????????? * programme édition : nomfichier.pdf.php */ $edition = ""; // SELECT /** * Tableau de noms de champs à afficher * Ex : $champAffiche = array ("nomtable1.idtable", "libelletable", "nbtable", "phototable"); */ $champAffiche = array ( "election.election", "election_date", "election_libelle"); // FROM /** * Nom de la table à afficher (possibilité d'insérer une jointure) * Ex : $table = "nomtable"; $table = "nomtable1 INNER JOIN nomtable2 ON nomtable1.idtable = nomtable2.idtable"; */ $table = "election"; // WHERE /** * Chaine correspondant à la clause WHERE * Ex : $selection = ""; $selection = "WHERE nbtable > 0"; */ $selection = "WHERE election_cloture = -1"; /** * Tableau de noms de champs à rechercher * Ex : $champRecherche = array ("nomtable1.idtable", "libelletable", "nbtable", "phototable"); */ $champRecherche = array ( "election.election", "election_date", "election_libelle"); // ORDER BY /** * Chaine correspondant à la clause ORDER BY * Ex : $tri = ""; $tri = "ORDER BY libelletable"; */ $tri = "ORDER BY election_date DESC"; // LIMIT /** * Nombre d'enregistrements par page * $serie = 30; */ $serie = 40; /////////////////////////////////////////////////////////////////////////////// // Liens particuliers pour le tableau : (facultatif, les liens sont traités par défaut dans tab.php) /////////////////////////////////////////////////////////////////////////////// $href [0]['lien'] = ""; $href [0]['id'] = ""; $href [0]['lib'] = ""; $href [1]['lien'] = "tab.php?obj=res_bureau&elec="; $href [1]['id'] = "&idx=".$_GET ['idx'].""; $href [1]['lib'] = ""; $href [2]['lien'] = ""; $href [2]['id'] = ""; $href [2]['lib'] = ""; } } else { /** * Variable permettant d'afficher ou non les messages du mode débug (1 : On affiche - 0 : On affiche pas) * Ex : $DEBUG = 1; $DEBUG = 0; */ $DEBUG = 0; /** * Message à afficher * Ex : $ent = "Paramètres -> Utilisateurs"; */ $ent = "Analyse -> Résultats par bureau -> Choix du bureau"; /** * Icone à afficher * Ex : $ico = "../img/ico.png"; */ $ico = "../img/ico_analyse.png"; /** * ???????????????????? * programme édition : nomfichier.pdf.php */ $edition = ""; // SELECT /** * Tableau de noms de champs à afficher * Ex : $champAffiche = array ("nomtable1.idtable", "libelletable", "nbtable", "phototable"); */ $champAffiche = array ( "bureau", "bureau_libelle", "canton"); // FROM /** * Nom de la table à afficher (possibilité d'insérer une jointure) * Ex : $table = "nomtable"; $table = "nomtable1 INNER JOIN nomtable2 ON nomtable1.idtable = nomtable2.idtable"; */ $table = "bureau"; // WHERE /** * Chaine correspondant à la clause WHERE * Ex : $selection = ""; $selection = "WHERE nbtable > 0"; */ $selection = ""; /** * Tableau de noms de champs à rechercher * Ex : $champRecherche = array ("nomtable1.idtable", "libelletable", "nbtable", "phototable"); */ $champRecherche = array ( "bureau", "bureau_libelle", "canton"); // ORDER BY /** * Chaine correspondant à la clause ORDER BY * Ex : $tri = ""; $tri = "ORDER BY libelletable"; */ $tri = "ORDER BY bureau"; // LIMIT /** * Nombre d'enregistrements par page * $serie = 30; */ $serie = 40; /////////////////////////////////////////////////////////////////////////// // Liens particuliers pour le tableau : (facultatif, les liens sont traités par défaut dans tab.php) /////////////////////////////////////////////////////////////////////////// $href [0]['lien'] = ""; $href [0]['id'] = ""; $href [0]['lib'] = ""; $href [1]['lien'] = "tab.php?obj=res_bureau&idx="; $href [1]['id'] = ""; $href [1]['lib'] = ""; $href [2]['lien'] = ""; $href [2]['id'] = ""; $href [2]['lib'] = ""; } ?>