Your IP : 216.73.217.64
<?php
//$Id$
//gen openMairie le 30/05/2019 16:10
include "../gen/sql/pgsql/election.inc.php";
$sousformulaire = array(
'election_candidat',
'election_bureau',
'participation_election',
);
$table = DB_PREFIXE."election
LEFT JOIN ".DB_PREFIXE."tranche as tranche0
ON election.heure_fermeture=tranche0.tranche
LEFT JOIN ".DB_PREFIXE."tranche as tranche1
ON election.heure_ouverture=tranche1.tranche
LEFT JOIN ".DB_PREFIXE."perimetre
ON election.perimetre=perimetre.perimetre
LEFT JOIN ".DB_PREFIXE."type_election
ON election.type_election=type_election.type_election
LEFT JOIN ".DB_PREFIXE."election_exprime
ON election.election=election_exprime.election
LEFT JOIN ".DB_PREFIXE."election_cumul_bureau
ON election.election=election_cumul_bureau.election ";
// SELECT
$champAffiche = array(
'election.election as "'.__("election").'"',
'election.libelle as "'.__("libelle").'"',
//'election.code as "'.__("code").'"',
//'type_election.libelle as "'.__("type_election").'"',
'to_char(election.date ,\'DD/MM/YYYY\') as "'.__("date").'"',
//'election.tour as "'.__("tour").'"',
//'canton.libelle as "'.__("canton").'"',
//'election.nb_candidat as "'.__("nb_candidat").'"',
//'election.heure_ouverture as "'.__("heure_ouverture").'"',
//'election.heure_fermeture as "'.__("heure_fermeture").'"',
//"case election.cloture when 't' then 'Oui' else 'Non' end as \"".__("cloture")."\"",
'election_cumul_bureau.inscrit as "'.__("inscrit").'"',
'election_cumul_bureau.votant as "'.__("votant").'"',
'election_cumul_bureau.blanc as "'.__("blanc").'"',
'election_cumul_bureau.nul as "'.__("nul").'"',
'election_cumul_bureau.exprime as "'.__("votant-nuls-blanc").'"',
'election_exprime.exprime as "'.__("exprime candidat").'"',
"case election.creation_bureau when 't' then '<img src=../app/img/arrive.png>' else '<img src=../app/img/nonarrive.png>' end as \"".__("bur")."\"",
"case election.creation_participation when 't' then '<img src=../app/img/arrive.png>' else '<img src=../app/img/nonarrive.png>' end as \"".__("par")."\"",
"case election.verrou when 't' then '<img src=../app/img/arrive.png>' else '<img src=../app/img/nonarrive.png>' end as \"".__("ver")."\"",
"case coalesce(election_exprime.exprime-election_cumul_bureau.exprime,0) when '0' then '<img src=../app/img/arrive.png>' else '<img src=../app/img/erreur.png>' end as \"".__("ok")."\"",
);
$sousformulaire_parameters = array(
"election_candidat" => array(
"title" => _("Candidat(s)")
),
"election_bureau" => array(
"title" => _("Bureau(x)")
),
"participation_election" => array(
"title" => _("participation(s)")
),
);