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