22if (!defined(
'ALLOWED'))
23 die(
'Appel direct ne sont pas permis');
30$sa=
$http->request(
'sa',
"string",
"acc_report_mtable");
31if (
$sa ==
"acc_report_mtable")
37 $id=
$http->request(
"p_id",
"number");
39 $form_def=
$http->request(
"form_def",
"number");
48 $acc_report->set_object_name(
$ctl);
52 $acc_report->send_header();
53 echo $acc_report->ajax_input()->saveXML();
58 $acc_report->send_header();
59 echo $acc_report->ajax_save()->saveXML();
64 $acc_report->send_header();
65 echo $acc_report->ajax_delete()->saveXML();
76 catch (Exception $exc)
78 echo $exc->getMessage();
83 $iName->set_callback(
"ajax_misc.php");
84 $iName->add_json_param(
"op",
"report_definition");
85 $iName->add_json_param(
"sa",
"change_name");
87 $iName->add_json_param(
"p_id",
$id);
88 echo $iName->ajax_input();
91 $iName->set_callback(
"ajax_misc.php");
92 $iName->add_json_param(
"op",
"report_definition");
93 $iName->add_json_param(
"sa",
"change_name");
94 $iName->add_json_param(
"p_id",
$id);
96 $iName->set_value(
$http->request(
"value"));
99 $cn->exec_sql(
"update form_definition set fr_label=$1 where fr_id=$2",[
100 $http->request(
"value"),
104 $iName->set_callback(
"ajax_misc.php");
105 $iName->add_json_param(
"op",
"report_definition");
106 $iName->add_json_param(
"sa",
"change_name");
107 $iName->add_json_param(
"p_id",
$id);
109 echo $iName->value();
static build($p_id, $p_form_def_id)
build an object Acc_Report_MTable
static id()
return the 'gDossier' value after a check
static build($p_serialize)
build a Inplace_Edit object from a serialized string (ajax json parameter = input)
if( $delta< 0) elseif( $delta==0)