31if (
$g_user->check_module(
"C0CARD") == 0 ) {
33 record_log(
new \Exception(
"C0CARD: not authorized"));
45 record_log(
"ACA01".
$ex->getMessage().$ex->getTraceAsString());
55 $cn->exec_sql(
"update attr_def set ad_search_followup=0 where ad_id=$1", [
$ad_id]);
60 $cn->exec_sql(
"update attr_def set ad_search_followup=1 where ad_id=$1", [
$ad_id]);
64 $ic->set_callback(
"ajax_misc.php");
65 $ic->add_json_param(
"op",
"card");
66 $ic->add_json_param(
"gDossier", Dossier::id());
67 $ic->add_json_param(
"op2",
"attribute");
68 $ic->add_json_param(
"action",
"enable_search");
69 $ic->add_json_param(
"ad_id",
$ad_id);
70 $ic->add_json_param(
"ctl",
$ad_id);
77 $mtable->add_json_param(
"op",
"card");
78 $mtable->add_json_param(
"op2",
"attribute");
79 $mtable->set_callback(
"ajax_misc.php");
87 if (
$ad_id < 0 )
$mtable->get_table()->set(
"ad_search_followup",0);
89 echo
$mtable->ajax_input()->saveXML();
95 echo
$mtable->ajax_save()->saveXML();
102 echo
$mtable->ajax_delete()->saveXML();
record_log($p_message)
Record an error message into the log file of the server or in the log folder of NOALYSS Record also t...
global $g_user
if no group available , then stop
ORM of the table public.attr_def.
manage the table attr_def
A switch let you switch between 2 values : 0 and 1, it is used to replace the check.