"._("travaux"); 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."travaux LEFT JOIN ".DB_PREFIXE."emplacement ON travaux.emplacement=emplacement.emplacement LEFT JOIN ".DB_PREFIXE."entreprise ON travaux.entreprise=entreprise.entreprise LEFT JOIN ".DB_PREFIXE."travaux_nature ON travaux.naturetravaux=travaux_nature.travaux_nature "; // SELECT $champAffiche = array( 'travaux.travaux as "'._("travaux").'"', 'entreprise.nomentreprise as "'._("entreprise").'"', 'to_char(travaux.datedebinter ,\'DD/MM/YYYY\') as "'._("datedebinter").'"', 'to_char(travaux.datefininter ,\'DD/MM/YYYY\') as "'._("datefininter").'"', 'travaux.naturedemandeur as "'._("naturedemandeur").'"', 'travaux_nature.libelle as "'._("naturetravaux").'"', ); // $champNonAffiche = array( 'travaux.emplacement as "'._("emplacement").'"', 'travaux.observation as "'._("observation").'"', ); // $champRecherche = array( 'travaux.travaux as "'._("travaux").'"', 'entreprise.nomentreprise as "'._("entreprise").'"', 'travaux.naturedemandeur as "'._("naturedemandeur").'"', 'travaux_nature.libelle as "'._("naturetravaux").'"', ); $tri="ORDER BY entreprise.nomentreprise ASC NULLS LAST"; $edition="travaux"; $selection=''; if ($retourformulaire== 'emplacement') { $selection=" WHERE (travaux.emplacement ='".$idx."')"; } if ($retourformulaire== 'entreprise') { $selection=" WHERE (travaux.entreprise ='".$idx."')"; } if ($retourformulaire== 'travaux_nature') { $selection=" WHERE (travaux.naturetravaux ='".$idx."')"; } ?>