".__($obj); // Modification du libellé du chap destinataire + id $champAffiche = array( 'courrier.courrier as "'.__("id").'"', "'('||autorisation.nature||') '|| CASE WHEN autorisation.marital IS NULL THEN autorisation.nom ELSE autorisation.marital END ||' '||coalesce(autorisation.prenom, '-') as \"".__("destinataire")."\"", 'to_char(courrier.datecourrier ,\'DD/MM/YYYY\') as "'.__("datecourrier").'"', 'courrier.lettretype as "'.__("lettretype").'"', ); $champRecherche = array( 'courrier.courrier as "'.__("id").'"', "'('||autorisation.nature||') '|| CASE WHEN autorisation.marital IS NULL THEN autorisation.nom ELSE autorisation.marital END ||' '||coalesce(autorisation.prenom, '-') as \"".__("destinataire")."\"", 'courrier.lettretype as "'.__("lettretype").'"', ); // EDITION $tab_actions['left']['edition'] = array( 'lien' => OM_ROUTE_FORM."&obj=courrier&action=31&idx=", 'id' => '', 'target' => '_blank', 'lib' => "".__("Edition")."", 'ordre' => 110, ); // 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"]."') "; }