Utilisateurs"; */ $ent = "Saisie des résultats"; /** * Icone à afficher * Ex : $ico = "../img/ico.png"; */ $ico = "../img/ico_config.png"; /** * ???????????????????? * programme édition : nomfichier.pdf.php */ $edition = ""; // SELECT /** * Tableau de noms de champs à afficher * Ex : $champAffiche = array ("nomtable1.idtable", "libelletable", "nbtable", "phototable"); */ $champAffiche = array ( "resultat.bureau", "bureau_libelle", "inscrit", "votant", "exprime", "nul"); for ($i = 1 ; $i <= $_SESSION ['election']['nbcandidat']; $i++) { $tmp = "candidat".$i; if (isset ($_SESSION ['candidat'][$i])) $tmp .= " as '".addslashes($_SESSION ['candidat'][$i]['nom'])."'"; array_push ($champAffiche, $tmp); } // 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 = "resultat INNER JOIN bureau ON bureau.bureau = resultat.bureau"; // WHERE /** * Chaine correspondant à la clause WHERE * Ex : $selection = ""; $selection = "WHERE nbtable > 0"; */ $selection = " WHERE election = '".$_GET ['idx']."'"; /** * Tableau de noms de champs à rechercher * Ex : $champRecherche = array ("nomtable1.idtable", "libelletable", "nbtable", "phototable"); */ $champRecherche = array ( "resultat.bureau", "bureau_libelle"); // ORDER BY /** * Chaine correspondant à la clause ORDER BY * Ex : $tri = ""; $tri = "ORDER BY libelletable"; */ $tri = "ORDER BY bureau.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'] = ""; $href [1]['id'] = ""; $href [1]['lib'] = ""; $href [2]['lien'] = ""; $href [2]['id'] = ""; $href [2]['lib'] = ""; ?>