38 record_log(
"ACA01".
$ex->getMessage().$ex->getTraceAsString());
48 $cn->exec_sql(
"update attr_def set ad_search_followup=0 where ad_id=$1", [
$ad_id]);
53 $cn->exec_sql(
"update attr_def set ad_search_followup=1 where ad_id=$1", [
$ad_id]);
57 $ic->set_callback(
"ajax_misc.php");
58 $ic->add_json_param(
"op",
"card");
60 $ic->add_json_param(
"op2",
"attribute");
61 $ic->add_json_param(
"action",
"enable_search");
62 $ic->add_json_param(
"ad_id",
$ad_id);
63 $ic->add_json_param(
"ctl",
$ad_id);
70 $mtable->add_json_param(
"op",
"card");
71 $mtable->add_json_param(
"op2",
"attribute");
72 $mtable->set_callback(
"ajax_misc.php");
80 if (
$ad_id < 0 )
$mtable->get_table()->set(
"ad_search_followup",0);
82 echo
$mtable->ajax_input()->saveXML();
88 echo
$mtable->ajax_save()->saveXML();
95 echo
$mtable->ajax_delete()->saveXML();
record_log($p_message)
Record an error message into the log file of the server.
ORM of the table public.attr_def.
manage the table attr_def
static id()
return the 'gDossier' value after a check
A switch let you switch between 2 values : 0 and 1, it is used to replace the check.