echo h2info(_("Ce document n'est pas accessible")); return; } } echo '</div>'; } //------------------------------------------------------------------------------- // Delete an action if ($sub_action == 'delete') { // confirmed $cn->start(); $act = new Follow_Up($cn); $act->ag_id = $_REQUEST['ag_id']; $act->get(); if ($g_user->can_write_action($_REQUEST['ag_id']) == true) { $act->remove(); } $sub_action = "list"; $cn->commit(); Follow_Up::show_action_list($cn, $base); if (isset($act->ag_ref)) { echo hb(_('Action ') . $act->ag_ref . _(' effacée')); } return; } //-------------------------------------------------------------------------------- // Show a list of the action if ($sub_action == "list") { // Add a button to export to Csv echo '<form method="GET" style="display:inline;" ACTION="export.php">'; echo HtmlInput::request_to_hidden(array("closed_action", "remind_date_end", "remind_date", "sag_ref", "remind_date", "only_internal", "state", "gDossier", "qcode", "start_date", "end_date", "ag_id", "ag_dest_query", "tdoc", "action_query", "date_start", "date_end", "hsstate", "searchtag"));