"._("candidature"); 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."candidature LEFT JOIN ".DB_PREFIXE."agent ON candidature.agent=agent.agent LEFT JOIN ".DB_PREFIXE."bureau ON candidature.bureau=bureau.bureau LEFT JOIN ".DB_PREFIXE."periode ON candidature.periode=periode.periode LEFT JOIN ".DB_PREFIXE."poste ON candidature.poste=poste.poste LEFT JOIN ".DB_PREFIXE."scrutin ON candidature.scrutin=scrutin.scrutin "; // SELECT $champAffiche = array( 'candidature.candidature as "'._("candidature").'"', 'agent.nom as "'._("agent").'"', 'scrutin.libelle as "'._("scrutin").'"', 'periode.libelle as "'._("periode").'"', 'poste.libelle as "'._("poste").'"', 'bureau.libelle as "'._("bureau").'"', "case candidature.recuperation when 't' then 'Oui' else 'Non' end as \""._("recuperation")."\"", "case candidature.decision when 't' then 'Oui' else 'Non' end as \""._("decision")."\"", 'candidature.debut as "'._("debut").'"', 'candidature.fin as "'._("fin").'"', ); // $champNonAffiche = array( 'candidature.note as "'._("note").'"', ); // $champRecherche = array( 'candidature.candidature as "'._("candidature").'"', 'agent.libelle as "'._("agent").'"', 'scrutin.libelle as "'._("scrutin").'"', 'periode.libelle as "'._("periode").'"', 'poste.libelle as "'._("poste").'"', 'bureau.libelle as "'._("bureau").'"', ); $tri="ORDER BY agent.nom ASC NULLS LAST"; $edition="candidature"; $selection=''; if ($retourformulaire== 'agent') { $selection=" WHERE (candidature.agent ='".$idx."')"; } if ($retourformulaire== 'bureau') { $selection=" WHERE (candidature.bureau ='".$idx."')"; } if ($retourformulaire== 'periode') { $selection=" WHERE (candidature.periode ='".$idx."')"; } if ($retourformulaire== 'poste') { $selection=" WHERE (candidature.poste ='".$idx."')"; } if ($retourformulaire== 'scrutin') { $selection=" WHERE (candidature.scrutin ='".$idx."')"; } ?>