22if (!defined(
'ALLOWED'))
23 die(
'Appel direct ne sont pas permis');
35if (
$op==
'update_comment_followUp')
39 $d_id=
$http->request(
'd_id',
"number");
43 $inplace_description->set_callback(
"ajax_misc.php");
44 $inplace_description->add_json_param(
"d_id", $d_id);
45 $inplace_description->add_json_param(
"gDossier",
Dossier::id());
46 $inplace_description->add_json_param(
"op",
"update_comment_followUp");
50 echo $inplace_description->ajax_input();
64 $inplace_description->set_value(
$value);
67 echo $inplace_description->value();
70 echo $inplace_description->value();
73 throw new Exception(__FILE__.
':'.__LINE__.
'Invalide value');
81if (
$op ==
'followup_comment_oneedit') {
84 $agc_id=
$http->request(
'agc_id',
"number");
88 $ctl_ag_id=
$cn->get_value(
"select ag_id from action_gestion_comment where agc_id=$1",[$agc_id]);
89 if ( $agc_id != -1 && $ctl_ag_id !=
$ag_id) {
90 record_log(
"FLP02 ag_id [$ag_id] <> ctl_ag_id [$ctl_ag_id]");
95 $inplace_description->set_callback(
"ajax_misc.php");
97 $inplace_description->add_json_param(
"ag_id",
$ag_id);
98 $inplace_description->add_json_param(
"gDossier",
Dossier::id());
99 $inplace_description->add_json_param(
"op",
"followup_comment_oneedit");
103 $inplace_description->add_json_param(
"agc_id", $agc_id);
104 echo $inplace_description->ajax_input();
115 $agc_id=
$cn->get_value(
"insert into action_gestion_comment(ag_id,agc_comment,agc_comment_raw,tech_user)
118 $cn->exec_sql(
"update action_gestion_comment set agc_comment=$1,tech_user=$2 ,
125 $inplace_description->add_json_param(
"agc_id", $agc_id);
126 $inplace_description->set_value(
$value);
128 echo $inplace_description->value();
131 $inplace_description->add_json_param(
"agc_id", $agc_id);
133 echo $inplace_description->value();
137 throw new Exception(__FILE__.
':'.__LINE__.
'Invalide value');
145if (
$op ==
'list_filter_followup') {
152if (
$op ==
'delete_filter_followup') {
153 $cn->exec_delete(
"delete from action_gestion_id where af_id=$1 and af_user=$2",
154 [
$http->get(
"filter_id",
"number"),
$g_user->getLogin()]);
record_log($p_message)
Record an error message into the log file of the server.
Class Document corresponds to the table document.
static id()
return the 'gDossier' value after a check
static display_list($login)
display the list of recorded search
static build($p_serialize)
build a Inplace_Edit object from a serialized string (ajax json parameter = input)