Beispiel #1
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_end();
o::hr(0, 12);
theme::start_form_section('Group', true, 3);
$sorted = o::smart_model_list('o_access_model', 'group', 'group');
asort($sorted);
plugin_combobox::show('group', $record->group, $sorted);
theme::end_form_section();
theme::start_form_section('Access', true, 3);
o::text('name', $record->name);
theme::end_form_section();
theme::start_form_section('Description', 6);
o::text('description', $record->description);
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();
Beispiel #2
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_end();
o::hr(0, 12);
theme::start_form_section('User Name', true, 3);
o::text('username', $record->username);
theme::end_form_section();
theme::start_form_section('Email', true, 3);
o::text('email', $record->email);
theme::end_form_section();
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');
Beispiel #3
0
<?php

theme::form_start($controller_path . '/' . $controller_action);
o::hidden('lzone_id', $record->lzone_id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_end();
o::hr(0, 12);
/* 4px padding top and bottom */
theme::start_form_section('Name', true, 5);
o::text('lzone_name', $record->lzone_name);
theme::end_form_section();
theme::start_form_section('Exchange Rate', true, 2);
o::text('lzone_description', $record->lzone_description);
theme::end_form_section();
theme::start_form_section('Enabled');
theme::checkbox('lzone_status', 1, $record->lzone_status);
theme::end_form_section();
o::hr(0, 12);
/* 4px padding top and bottom */
theme::footer_start();
theme::footer_cancel_button($controller_path);
theme::footer_submit_button();
theme::footer_required();
theme::footer_end();
theme::form_end();
Beispiel #4
0
o::hr(0, 12);
/* 4px padding top and bottom */
theme::start_form_section('Name', true, 5);
o::text('curr_name', $record->curr_name);
theme::end_form_section();
theme::start_form_section('Exchange Rate', true, 2);
o::text('curr_exchange_rate', $record->curr_exchange_rate);
theme::end_form_section();
theme::start_form_section('Symbol HTML', true, 2);
o::text('curr_symbol', $record->curr_symbol);
theme::end_form_section();
theme::start_form_section('Suffix', 2);
theme::checkbox('curr_symbol_suffix', 1, $record->curr_symbol_suffix);
theme::end_form_section();
theme::start_form_section('Thousand', true, 2);
o::text('curr_thousand_separator', $record->curr_thousand_separator);
theme::end_form_section();
theme::start_form_section('Decimal', true, 2);
o::text('curr_decimal_separator', $record->curr_decimal_separator);
theme::end_form_section();
theme::start_form_section('Enabled');
theme::checkbox('curr_status', 1, $record->curr_status);
theme::end_form_section();
o::hr(0, 12);
/* 4px padding top and bottom */
theme::footer_start();
theme::footer_cancel_button($controller_path);
theme::footer_submit_button();
theme::footer_required();
theme::footer_end();
theme::form_end();
Beispiel #5
0
<?php

theme::form_start($controller_path . '/' . $controller_action);
o::hidden('ord_status_id', $record->ord_status_id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_end();
o::hr(0, 12);
/* 4px padding top and bottom */
theme::start_form_section('Name', true, 5);
o::text('ord_status_description', $record->ord_status_description);
theme::end_form_section();
theme::start_form_section('On Save', 2);
theme::checkbox('ord_status_save_default', 1, $record->ord_status_save_default);
theme::end_form_section();
theme::start_form_section('On Update', 2);
theme::checkbox('ord_status_resave_default', 1, $record->ord_status_resave_default);
theme::end_form_section();
theme::start_form_section('Canceled', 2);
theme::checkbox('ord_status_cancelled', 1, $record->ord_status_cancelled);
theme::end_form_section();
o::hr(0, 12);
/* 4px padding top and bottom */
theme::footer_start();
theme::footer_cancel_button($controller_path);
theme::footer_submit_button();
theme::footer_required();
theme::footer_end();
theme::form_end();
Beispiel #6
0
    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::end_form_section('If a setting is managed a user can not change it\'s group or name.');
    theme::start_form_section('Show As', true);
    theme::radio('show_as', $record->show_as, [0 => 'textarea', 1 => 'boolean', 2 => 'radios', 3 => 'input']);
    theme::end_form_section();
    theme::start_form_section('Options');
    o::textarea('options', $record->options);
    theme::end_form_section('If <b>Show As</b> is:<br>textarea - optional height in pixels<br>boolean - no options are available<br>radios - you <b>MUST</b> enter a json object where the key/value pairs are the radio button options<br>input - optional bootstrap grid block width.');
    theme::start_form_section('Is Deletable');
    theme::checker('is_deletable', (int) $record->is_deletable);
    theme::end_form_section();
    o::hidden('advanced', 1);
} else {