"._("affectation"); if(!isset($premier)) $premier=''; if(!isset($recherche1)) $recherche1=''; if(!isset($tricolsf)) $tricolsf=''; if(!isset($premiersf)) $premiersf=''; if(!isset($selection)) $selection=''; if(!isset($retourformulaire)) $retourformulaire=''; if (isset($idx) && $idx != ']' && trim($idx) != '') { $ent .= "-> ".$idx." "; } if (isset($idz) && trim($idz) != '') { $ent .= " ".strtoupper($idz)." "; } // FROM $table = DB_PREFIXE."affectation LEFT JOIN ".DB_PREFIXE."bureau ON affectation.bureau=bureau.bureau LEFT JOIN ".DB_PREFIXE."candidat ON affectation.candidat=candidat.candidat LEFT JOIN ".DB_PREFIXE."elu ON affectation.elu=elu.elu LEFT JOIN ".DB_PREFIXE."periode ON affectation.periode=periode.periode LEFT JOIN ".DB_PREFIXE."poste ON affectation.poste=poste.poste LEFT JOIN ".DB_PREFIXE."scrutin ON affectation.scrutin=scrutin.scrutin "; // SELECT $champAffiche = array( 'affectation.affectation as "'._("affectation").'"', 'elu.nom as "'._("elu").'"', 'scrutin.libelle as "'._("scrutin").'"', 'periode.libelle as "'._("periode").'"', 'poste.libelle as "'._("poste").'"', 'bureau.libelle as "'._("bureau").'"', "case affectation.decision when 't' then 'Oui' else 'Non' end as \""._("decision")."\"", 'candidat.nom as "'._("candidat").'"', ); // $champNonAffiche = array( 'affectation.note as "'._("note").'"', ); // $champRecherche = array( 'affectation.affectation as "'._("affectation").'"', 'elu.libelle as "'._("elu").'"', 'scrutin.libelle as "'._("scrutin").'"', 'periode.libelle as "'._("periode").'"', 'poste.libelle as "'._("poste").'"', 'bureau.libelle as "'._("bureau").'"', 'candidat.libelle as "'._("candidat").'"', ); $tri="ORDER BY elu.nom ASC NULLS LAST"; $edition="affectation"; $selection=''; if ($retourformulaire== 'bureau') { $selection=" WHERE (affectation.bureau ='".$idx."')"; } if ($retourformulaire== 'candidat') { $selection=" WHERE (affectation.candidat ='".$idx."')"; } if ($retourformulaire== 'elu') { $selection=" WHERE (affectation.elu ='".$idx."')"; } if ($retourformulaire== 'periode') { $selection=" WHERE (affectation.periode ='".$idx."')"; } if ($retourformulaire== 'poste') { $selection=" WHERE (affectation.poste ='".$idx."')"; } if ($retourformulaire== 'scrutin') { $selection=" WHERE (affectation.scrutin ='".$idx."')"; } ?>