"._("lien_service_service_categorie"); 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."lien_service_service_categorie LEFT JOIN ".DB_PREFIXE."service ON lien_service_service_categorie.service=service.service LEFT JOIN ".DB_PREFIXE."service_categorie ON lien_service_service_categorie.service_categorie=service_categorie.service_categorie "; // SELECT $champAffiche = array( 'lien_service_service_categorie.lien_service_service_categorie as "'._("lien_service_service_categorie").'"', 'service_categorie.libelle as "'._("service_categorie").'"', 'service.libelle as "'._("service").'"', ); // $champNonAffiche = array( ); // $champRecherche = array( 'lien_service_service_categorie.lien_service_service_categorie as "'._("lien_service_service_categorie").'"', 'service_categorie.libelle as "'._("service_categorie").'"', 'service.libelle as "'._("service").'"', ); $tri="ORDER BY service_categorie.libelle ASC NULLS LAST"; $edition="lien_service_service_categorie"; /** * Gestion de la clause WHERE => $selection */ // Filtre listing standard $selection = ""; // Liste des clés étrangères avec leurs éventuelles surcharges $foreign_keys_extended = array( "service" => array("service", ), "service_categorie" => array("service_categorie", ), ); // Filtre listing sous formulaire - service if (in_array($retourformulaire, $foreign_keys_extended["service"])) { $selection = " WHERE (lien_service_service_categorie.service = '".$idx."') "; } // Filtre listing sous formulaire - service_categorie if (in_array($retourformulaire, $foreign_keys_extended["service_categorie"])) { $selection = " WHERE (lien_service_service_categorie.service_categorie = '".$idx."') "; } ?>