26if (!defined(
'ALLOWED'))
27 die(
'Appel direct ne sont pas permis');
30if (
$g_user->check_module(
"PLANANC ") ) die(
"forbidden");
38$answer->set_callback(
"ajax_misc.php");
39$answer->add_json_param(
"action",
"anc_updatedescription");
40$answer->add_json_param(
"op",
"anc_updatedescription");
51 echo _(
"Le nom ne peut ĂȘtre vide"),
$answer->ajax_input();
53 if (
$input->name==
"pa_name") {
54 $cn->exec_sql(
" update plan_analytique set pa_name=$1 where pa_id=$2",array(
$value,
$pa_id));
56 if (
$input->name==
"pa_description") {
58 $cn->exec_sql(
" update plan_analytique set pa_description=$1 where pa_id=$2",array(
$value,
$pa_id));
59 if ( trim(
$value ) == NULL )
$value=_(
"Aucune description");
global $g_user
if no group available , then stop
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)