31if ( ! defined (
'ALLOWED')) die (_(
'Non autorisé'));
33require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
48 $d_id=
$http->request(
'd_id',
"number");
57 $json=
'{"d_id":"-1"}';
60 $d_id=
$http->request(
'd_id',
"number");
64 $json = sprintf(
'{"d_id":"%s"}', $d_id);
66 header(
"Content-type: text/html; charset: utf8",
true);
72 $json =
'{"ago_id":"-1"}';
73 $dt_id =
$cn->get_value(
"select ag_id from action_gestion_operation where ago_id=$1",array(
$id));
76 $cn->exec_sql(
"delete from action_gestion_operation where ago_id=$1", array(
$id));
77 $json = sprintf(
'{"ago_id":"%s"}',
$id);
79 header(
"Content-type: text/html; charset: utf8",
true);
85 $json =
'{"agc_id":"-1"}';
86 $dt_id =
$cn->get_value(
"select ag_id from action_gestion_comment where agc_id=$1", array(
$id));
89 $cn->exec_sql(
"delete from action_gestion_comment where agc_id=$1", array(
$id));
90 $json = sprintf(
'{"agc_id":"%s"}',
$id);
92 header(
"Content-type: text/html; charset: utf8",
true);
98 $json =
'{"act_id":"-1"}';
101 $cn->exec_sql(
"delete from action_gestion_related where aga_least=$1 and aga_greatest=$2", array(
$id,
$ag_id));
102 $cn->exec_sql(
"delete from action_gestion_related where aga_least=$2 and aga_greatest=$1", array(
$id,
$ag_id));
103 $json = sprintf(
'{"act_id":"%s"}',
$id);
105 header(
"Content-type: text/html; charset: utf8",
true);
114 throw new Exception(
"Action inconnue");
120 throw new Exception (
"not allowed");
125 $aDocument=$document->get_all(
$ag_id);
128 $document->download($aDocument);
global $g_user
if no group available , then stop
Class Document corresponds to the table document.