theme::start_form_section('Password', $record->id == -1, 3); o::password('password', ['value' => $record->password]); theme::end_form_section($password_format_copy); theme::start_form_section('Confirm Password', $record->id == -1, 3); o::password('confirm_password', ['value' => $record->confirm_password]); theme::end_form_section(); if ($record->id != 1) { theme::start_form_section('Role', 4); theme::dropdown3('role_id', $record->role_id, o::smart_model_list('o_role_model', 'id', 'name')); theme::end_form_section(); theme::start_form_section('Active'); theme::checkbox('is_active', 1, $record->is_active); theme::end_form_section(); } else { o::hidden('role_id', $record->role_id); o::hidden('is_active', $record->is_active); } if (strtotime($record->last_login) > 1) { theme::start_form_section('Last login'); theme::static_text(date('F j, Y, g:i a', strtotime($record->last_login))); o::hidden('last_login', $record->last_login); theme::end_form_section(); } o::view_event($controller_path, 'form.footer'); o::hr(0, 12); theme::footer_start(); theme::footer_cancel_button($controller_path); theme::footer_submit_button(); theme::footer_required(); theme::footer_end(); theme::form_end();
theme::form_start($controller_path . '/' . $controller_action, $record->id); theme::header_start('View Security Violations'); theme::header_end(); theme::hr(0, 12); theme::start_form_section('Entry Date'); theme::static_text($record->created_on); theme::end_form_section(); theme::start_form_section('type'); theme::static_text($record->type); theme::end_form_section(); theme::start_form_section('Route'); theme::static_text($record->route); theme::end_form_section(); theme::start_form_section('Username'); theme::static_text($record->username); theme::end_form_section(); theme::start_form_section('User'); theme::static_text($record->user); theme::end_form_section(); theme::start_form_section('Session'); theme::static_text($record->session); theme::end_form_section(); theme::start_form_section('Extra'); theme::static_text($record->extra); theme::end_form_section(); theme::hr(0, 12); theme::footer_start(); theme::footer_button('Done'); theme::footer_end(); theme::form_end();
<?php theme::form_start($controller_path . '/' . $controller_action, $record->id); theme::header_start(ucfirst($controller_action) . ' Template'); theme::header_button('cancel'); theme::header_end(); theme::hr(0, 12); theme::start_form_section('Name', true, 5); if (has_access('templates::change name') || $this->id < 0) { theme::text('name', $record->name); } else { theme::static_text($record->name); } theme::hidden('previous_name', $record->name); theme::end_form_section(); theme::start_form_section('HTML', true); codemirror::textarea('content', $record->content); if ($record->id > 0) { $save_text = os_save::copy(); } theme::end_form_section('Pressing Esc will toggle fullscreen ~ ' . $save_text); theme::hr(0, 12); theme::footer_start(); theme::checkbox('is_file', 1, $record->is_file); echo ' Save as file'; theme::footer_required(); theme::footer_button('submit'); theme::footer_end(); theme::form_end();
case 3: /* input */ o::text('value', $record->value); break; default: $height = $record->options > 1 ? 'height:' . filter_var($record->options, FILTER_SANITIZE_NUMBER_INT) . 'px' : ''; o::textarea('value', $record->value, ['class' => ' js-validate-json', 'style' => $height]); } theme::end_form_section($record->help); theme::start_form_section('Group', true, 5); if ($record->managed == 0 || $controller_action == 'new' || $advanced == true && has_access('Orange::Advanced Settings')) { $sorted = o::smart_model_list('o_setting_model', 'group', 'group'); asort($sorted); plugin_combobox::show('group', $record->group, $sorted); } else { theme::static_text($record->group); o::hidden('group', $record->group); } theme::end_form_section(); if ($advanced == true && has_access('Orange::Advanced Settings')) { theme::start_form_section('Enabled', true); theme::checker('enabled', (int) $record->enabled); theme::end_form_section('Settings which are present are usually considered "enabled" but, this is internally supported for debugging etc...'); theme::start_form_section('Help'); o::text('help', $record->help); theme::end_form_section('Help to display under the Value input element'); theme::start_form_section('Internal'); o::text('internal', $record->internal); theme::end_form_section('Internal package "owner"'); theme::start_form_section('Managed', true); theme::checker('managed', (int) $record->managed);
theme::form_start($controller_path . '/' . $controller_action, $record->id); theme::header_start(ucfirst($controller_action) . ' ' . $controller_title); theme::header_button('cancel'); theme::header_end(); theme::hr(0, 12); theme::hidden('sort', $record->sort); theme::hidden('parent_id', $record->parent_id); theme::start_form_section('Title', true, 6); theme::text('title', $record->title, ['class' => 'js-human-input']); theme::end_form_section(); theme::start_form_section('Segment', true, 5); Plugin_locked_field::show('segment', $record->segment, ['has_access' => 'page::change internal', 'class' => 'js-computer-input']); theme::end_form_section(); theme::start_form_section('URL'); theme::static_text($record->url); theme::end_form_section('The URL is dynamically generated when the record is saved.'); theme::start_form_section('Show in menu'); theme::checkbox('in_menu', 1, $record->in_menu); theme::end_form_section(); theme::start_form_section('Is Visible'); theme::checkbox('is_visible', 1, $record->is_visible); theme::end_form_section(); theme::start_form_section('Wildcard'); theme::checkbox('wildcard', 1, $record->wildcard); theme::end_form_section(); theme::start_form_section('Show After', false, 3); plugin_datetimepicker::date_time('start_on', $record->start_on); theme::end_form_section(); theme::start_form_section('Hide After', false, 3); plugin_datetimepicker::date_time('end_on', $record->end_on);