"._("travaux_nature"); $om_validite = true; 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_nature"; // SELECT $champAffiche = array( 'travaux_nature.travaux_nature as "'._("travaux_nature").'"', 'travaux_nature.code as "'._("code").'"', 'travaux_nature.libelle as "'._("libelle").'"', 'travaux_nature.description as "'._("description").'"', 'to_char(travaux_nature.om_validite_debut ,\'DD/MM/YYYY\') as "'._("om_validite_debut").'"', 'to_char(travaux_nature.om_validite_fin ,\'DD/MM/YYYY\') as "'._("om_validite_fin").'"', ); // $champNonAffiche = array( ); // $champRecherche = array( 'travaux_nature.travaux_nature as "'._("travaux_nature").'"', 'travaux_nature.code as "'._("code").'"', 'travaux_nature.libelle as "'._("libelle").'"', 'travaux_nature.description as "'._("description").'"', ); $tri="ORDER BY travaux_nature.libelle ASC NULLS LAST"; $edition="travaux_nature"; $selection=' WHERE ((travaux_nature.om_validite_debut IS NULL AND (travaux_nature.om_validite_fin IS NULL OR travaux_nature.om_validite_fin > CURRENT_DATE)) OR (travaux_nature.om_validite_debut <= CURRENT_DATE AND (travaux_nature.om_validite_fin IS NULL OR travaux_nature.om_validite_fin > CURRENT_DATE)))'; 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)); } } $sousformulaire = array( 'travaux', 'travaux_archive',); ?>