"._("commission"); // if (isset($idx) && $idx != ']' && trim($idx) != '') { $ent .= "-> ".$idx." "; } if (isset($idz) && trim($idz) != '') { $ent .= " ".mb_strtoupper($idz, "UTF-8")." "; } // $selection = " WHERE (dossier_commission.dossier ='".$idx."') "; // $case_consultation_lu = "case when dossier_commission.avis = '' then '' else case dossier_commission.lu when 't' then 'Oui' else 'Non' end end"; // $champAffiche = array( 'dossier_commission.dossier_commission as "'._("id").'"', 'commission_type.libelle as "'._("commission_type").'"', 'to_char(date_souhaitee ,\'DD/MM/YYYY\') as "'._("date_souhaitee").'"', 'commission.code as "'._("commission").'"', 'to_char(commission.date_commission ,\'DD/MM/YYYY\') as "'._("date_commission").'"', "avis", $case_consultation_lu." as \""._("lu")."\"", ); /** * Options */ // On affiche le champ lu en gras $options[] = array( "type" => "condition", "field" => $case_consultation_lu, "case" => array( "0" => array( "values" => array("Non", ), "style" => "non_lu", ), ), ); // Surcharge bouton ajouter $tab_actions['corner']['ajouter'] = array('lien' => "../scr/sousform.php?obj=$obj&action=0&tri=&objsf=$obj&premiersf=0&retour=tab&retourformulaire=$retourformulaire&idxformulaire=$idx", 'id' => "", 'lib' => ''._('Ajouter').'', 'rights' => array('list' => array($obj.'_ajouter_instruction'), 'operator' => 'OR'), ); } //Change le lien du contenu si on est dans une commission if ($retourformulaire=='commission'){ $tab_actions['left']['consulter'] = array('lien' => 'sousform.php?obj='.$obj.'&action=1'.'&idx=', 'id' => '&premier='.$premier.'&recherche='.$recherche1.'&retour=form&retourformulaire=commission', 'lib' => ''._('Consulter').'', 'rights' => array('list' => array($obj, $obj.'_modifier'), 'operator' => 'OR'), 'ordre' => 10,); $tab_actions['content'] = $tab_actions['left']['consulter']; $tab_actions['corner']['ajouter'] = NULL; } /** * Gestion particulière de l'affichage du listing dans le contexte d'un dossier * d'instruction */ include "../sql/pgsql/dossier_instruction_droit_specifique_par_division.inc.php"; ?>