>\'date_debut\', \'YYYY-MM-DD\'), \'DD/MM/YYYY\') as "'.__("date de début de la période").'"', 'to_char(to_date(storage.info::json->>\'date_fin\', \'YYYY-MM-DD\'), \'DD/MM/YYYY\') as "'.__("date de fin de la période").'"', ); if ($_SESSION['niveau'] === '2') { array_push($champAffiche, "om_collectivite.libelle as \""._("collectivite")."\""); } $selection = sprintf( " WHERE storage.type = '%s' %s ", $retourformulaire, $_SESSION['niveau'] !== '2' ? sprintf(" AND storage.om_collectivite = '%s' ", $_SESSION["collectivite"]) : '' ); $tri = ' ORDER BY to_date(storage.info::json->>\'date_fin\', \'YYYY-MM-DD\') DESC NULLS LAST, storage.storage DESC '; $tab_actions['left']["telecharger"] = array( 'lien' => OM_ROUTE_FORM.'&snippet=file&obj='.$obj.'&champ=uid&id=', 'id' => '', 'lib' => ''.__('Télécharger').'', 'rights' => array('list' => array($obj, $obj.'_uid_telecharger'), 'operator' => 'OR'), 'ordre' => 20, "target" => "_blank", ); }