".__($obj); // SELECT $champAffiche = array( $obj.'.'.$obj.' as "'.__("id").'"', 'to_char(dossier.datedossier ,\'DD/MM/YYYY\') as "'.__("datedossier").'"', 'dossier.typedossier as "'.__("typedossier").'"', 'dossier.observation as "'.__("observation").'"' ); // $champRecherche = array( $obj.'.'.$obj.' as "'.__("id").'"', 'dossier.typedossier as "'.__("typedossier").'"', ); // if ($retourformulaire == 'concession' || $retourformulaire == 'colombarium' || $retourformulaire == 'enfeu' || $retourformulaire == 'ossuaire' || $retourformulaire == 'depositoire' || $retourformulaire == 'terraincommunal') { $selection = " WHERE (".$obj.".emplacement=".$idx.") "; } // Filtre multicommune pour les utilisateurs mono-collectivité if ($_SESSION["niveau"] !== "2") { // Utilisateur mono : filtre sur la collectivité via l'emplacement if (stripos($selection, "where ") !== false) { $selection .= " AND "; } else { $selection .= " WHERE "; } $selection .= " (emplacement.om_collectivite = '".$_SESSION["collectivite"]."') "; } // Actions a gauche : télécharger $tab_actions["left"]["download"] = array( 'lien' => OM_ROUTE_FORM.'&snippet=file&obj='.$obj.'&champ=fichier&id=', 'id' => '', 'lib' => ''.__('Télécharger').'', 'rights' => array('list' => array($obj, $obj.'_fichier_telecharger'), 'operator' => 'OR'), 'ordre' => 15, 'target' => '_blank', );