getOnePrdData($type); if (empty($check) === false) { switch ($type) { case 'visual_console': $result = html_print_label_input_block( __('Visual console'), io_safe_output( html_print_select_from_sql( 'SELECT id, name FROM tlayout', 'select_value', '', '', '', 0, true, false, true, false, false, false, GENERIC_SIZE_TEXT, 'w40p', ), ) ); break; default: // TODO. break; } } echo $result; return; } if ($exportPrd === true) { $type = (string) get_parameter('type', ''); $value = (int) get_parameter('value', 0); $name = (string) get_parameter('name', ''); $prd->exportPrd($type, $value, $name); } }