22if (!defined(
'ALLOWED'))
23 die(
'Appel direct ne sont pas permis');
36if (
$op==
'update_comment_followUp')
40 $d_id=
$http->request(
'd_id',
"number");
44 $inplace_description->set_callback(
"ajax_misc.php");
45 $inplace_description->add_json_param(
"d_id", $d_id);
46 $inplace_description->add_json_param(
"gDossier",
Dossier::id());
47 $inplace_description->add_json_param(
"op",
"update_comment_followUp");
51 echo $inplace_description->ajax_input();
65 $inplace_description->set_value(
$value);
68 echo $inplace_description->value();
71 echo $inplace_description->value();
74 throw new Exception(__FILE__.
':'.__LINE__.
'Invalide value');
82if (
$op ==
'followup_comment_oneedit') {
85 $agc_id=
$http->request(
'agc_id',
"number");
89 $ctl_ag_id=
$cn->get_value(
"select ag_id from action_gestion_comment where agc_id=$1",[$agc_id]);
90 if ( $agc_id != -1 && $ctl_ag_id !=
$ag_id) {
91 record_log(
"FLP02 ag_id [$ag_id] <> ctl_ag_id [$ctl_ag_id]");
96 $inplace_description->set_callback(
"ajax_misc.php");
98 $inplace_description->add_json_param(
"ag_id",
$ag_id);
99 $inplace_description->add_json_param(
"gDossier",
Dossier::id());
100 $inplace_description->add_json_param(
"op",
"followup_comment_oneedit");
104 $inplace_description->add_json_param(
"agc_id", $agc_id);
105 echo $inplace_description->ajax_input();
116 $agc_id=
$cn->get_value(
"insert into action_gestion_comment(ag_id,agc_comment,agc_comment_raw,tech_user)
119 $cn->exec_sql(
"update action_gestion_comment set agc_comment=$1,tech_user=$2 ,
126 $inplace_description->add_json_param(
"agc_id", $agc_id);
127 $inplace_description->set_value(
$value);
129 echo $inplace_description->value();
132 $inplace_description->add_json_param(
"agc_id", $agc_id);
134 echo $inplace_description->value();
138 throw new Exception(__FILE__.
':'.__LINE__.
'Invalide value');
147if (
$op ==
"view_followup_card")
153 'closed_action'=>
true]);
155 echo $followup->view_list(
$query,
' limit 25');
156 echo \HtmlInput::button_close(
$div);
162if (
$op ==
'list_filter_followup') {
169if (
$op ==
'delete_filter_followup') {
170 $cn->exec_sql(
"delete from action_gestion_filter where af_id=$1 and af_user=$2",
171 [
$http->get(
"filter_id",
"number"),
$g_user->getLogin()]);
record_log($p_message)
Record an error message into the log file of the server.
h( $row[ 'oa_description'])
Class Document corresponds to the table document.
static id()
return the 'gDossier' value after a check
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
static display_list($login)
display the list of recorded search
static create_query($cn, $p_array=null)
Get date from $_GET and create the sql stmt for the query.
static build($p_serialize)
build a Inplace_Edit object from a serialized string (ajax json parameter = input)