".__("moyen_souleve"); $om_validite = true; if(!isset($premier)) $premier=''; if(!isset($tricolsf)) $tricolsf=''; if(!isset($premiersf)) $premiersf=''; if(!isset($selection)) $selection=''; if(!isset($retourformulaire)) $retourformulaire=''; if (!isset($idxformulaire)) { $idxformulaire = ''; } if (!isset($tricol)) { $tricol = ''; } if (!isset($valide)) { $valide = ''; } // FROM $table = DB_PREFIXE."moyen_souleve"; // SELECT $champAffiche = array( 'moyen_souleve.moyen_souleve as "'.__("moyen_souleve").'"', 'moyen_souleve.code as "'.__("code").'"', 'moyen_souleve.libelle as "'.__("libelle").'"', 'to_char(moyen_souleve.om_validite_debut ,\'DD/MM/YYYY\') as "'.__("om_validite_debut").'"', 'to_char(moyen_souleve.om_validite_fin ,\'DD/MM/YYYY\') as "'.__("om_validite_fin").'"', ); // $champNonAffiche = array( 'moyen_souleve.description as "'.__("description").'"', ); // $champRecherche = array( 'moyen_souleve.moyen_souleve as "'.__("moyen_souleve").'"', 'moyen_souleve.code as "'.__("code").'"', 'moyen_souleve.libelle as "'.__("libelle").'"', ); $tri="ORDER BY moyen_souleve.libelle ASC NULLS LAST"; $edition="moyen_souleve"; /** * Gestion de la clause WHERE => $selection */ // Filtre listing standard $selection = " WHERE ((moyen_souleve.om_validite_debut IS NULL AND (moyen_souleve.om_validite_fin IS NULL OR moyen_souleve.om_validite_fin > CURRENT_DATE)) OR (moyen_souleve.om_validite_debut <= CURRENT_DATE AND (moyen_souleve.om_validite_fin IS NULL OR moyen_souleve.om_validite_fin > CURRENT_DATE)))"; $where_om_validite = " WHERE ((moyen_souleve.om_validite_debut IS NULL AND (moyen_souleve.om_validite_fin IS NULL OR moyen_souleve.om_validite_fin > CURRENT_DATE)) OR (moyen_souleve.om_validite_debut <= CURRENT_DATE AND (moyen_souleve.om_validite_fin IS NULL OR moyen_souleve.om_validite_fin > CURRENT_DATE)))"; // Gestion OMValidité - Suppression du filtre si paramètre if (isset($_GET["valide"]) and $_GET["valide"] == "false") { if (!isset($where_om_validite) or (isset($where_om_validite) and $where_om_validite == "")) { if (trim($selection) != "") { $selection = ""; } } else { $selection = trim(str_replace($where_om_validite, "", $selection)); } } /** * Gestion SOUSFORMULAIRE => $sousformulaire */ $sousformulaire = array( 'lien_donnees_techniques_moyen_souleve', );