. */ include_once __DIR__.'/../../../core.php'; $manager_id = filter('manager_id'); $checks = $structure->recordChecks($id_record); $list = []; foreach ($checks as $check) { $list[] = [ 'id' => $check->id, 'text' => $check->content, ]; } echo '
{[ "type": "text", "label": "'.tr('Contenuto').'", "name": "content", "required": 1 ]}
{[ "type": "select", "label": "'.tr('Genitore').'", "name": "parent", "values": '.json_encode($list).' ]}
{[ "type": "select", "label": "'.tr('Utente').'", "name": "assigned_users", "ajax-source": "utenti", "multiple": 1 ]}
{[ "type": "select", "label": "'.tr('Gruppo').'", "name": "group_id", "values": "query=SELECT id, nome AS text FROM zz_groups" ]}
';