} nc_print_status($param ? CONTROL_FIELD_MSG_ADDED : CONTROL_FIELD_MSG_ADDED, 'ok'); $custom_settings = $nc_core->component->get_by_id($ClassID, 'CustomSettingsTemplate'); nc_customsettings_show($ClassID, 0, $custom_settings); break; case 2510: # добавлние/измнение одного параметра BeginHtml($Title2, $Title2, "http://" . $DOC_DOMAIN . "/management/class/"); $perm->ExitIfNotAccess(NC_PERM_CLASS, 0, 0, 0, 1); $UI_CONFIG = new ui_config_class_template('custom', $ClassID); require_once $ADMIN_FOLDER . 'array_to_form.inc.php'; try { nc_customsettings_save_once(); } catch (Exception $e) { nc_print_status($e->getMessage(), 'error'); nc_customsettings_show_once($ClassID, 0, $param, 1); break; } nc_print_status($param ? CONTROL_FIELD_MSG_ADDED : CONTROL_FIELD_MSG_ADDED, 'ok'); $custom_settings = $nc_core->component->get_by_id($ClassID, 'CustomSettingsTemplate'); nc_customsettings_show($ClassID, 0, $custom_settings, 1); break; case 26: # ручное редактирование BeginHtml($Title2, $Title2, "http://" . $DOC_DOMAIN . "/management/class/"); $perm->ExitIfNotAccess(NC_PERM_CLASS, 0, 0, 0, 1); $UI_CONFIG = new ui_config_class('custom', $ClassID); $UI_CONFIG->locationHash = '#dataclass.custom.manual(' . $ClassID . ')'; require_once $ADMIN_FOLDER . 'array_to_form.inc.php'; nc_customsettings_show_manual($ClassID); break;
$UI_CONFIG = new ui_config_template('custom', $TemplateID); $UI_CONFIG->locationHash = $param ? '#template.custom.edit(' . $TemplateID . ', ' . $param . ')' : '#template.custom.new(' . $TemplateID . ')'; require_once $ADMIN_FOLDER . 'array_to_form.inc.php'; nc_customsettings_show_once(0, $TemplateID, $param); break; case 91: # добавлние/измнение одного параметра BeginHtml($Title2, $Title2, "http://" . $DOC_DOMAIN . "/management/design/"); $perm->ExitIfNotAccess(NC_PERM_TEMPLATE, 0, 0, 0, 1); $UI_CONFIG = new ui_config_template('custom', $TemplateID); require_once $ADMIN_FOLDER . 'array_to_form.inc.php'; try { nc_customsettings_save_once(); } catch (Exception $e) { nc_print_status($e->getMessage(), 'error'); nc_customsettings_show_once(0, $TemplateID, $param); break; } $custom_settings = $nc_core->template->get_by_id($TemplateID, 'CustomSettings'); nc_print_status($param ? NETCAT_CUSTOM_PARAMETR_UPDATED : NETCAT_CUSTOM_PARAMETR_ADDED, 'ok'); nc_customsettings_show(0, $TemplateID, $custom_settings); break; case 10: # ручное редактирование BeginHtml($Title2, $Title2, "http://" . $DOC_DOMAIN . "/management/design/"); $perm->ExitIfNotAccess(NC_PERM_TEMPLATE, 0, 0, 0, 1); $UI_CONFIG = new ui_config_template('custom', $TemplateID); $UI_CONFIG->locationHash = '#template.custom.manual(' . $TemplateID . ')'; nc_customsettings_show_manual(0, $TemplateID); break; case 101: