Beispiel #1
0
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();
Beispiel #2
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 #3
0
<?php

theme::form_start($controller_path . '/' . $controller_action);
o::hidden('curr_id', $record->curr_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('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 */
Beispiel #4
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 #5
0
    theme::start_form_section('Is Deletable');
    theme::checker('is_deletable', (int) $record->is_deletable);
    theme::end_form_section();
    o::hidden('advanced', 1);
} else {
    if ($controller_action == 'new') {
        o::hidden('enabled', 1);
        o::hidden('help', '');
        o::hidden('internal', '');
        o::hidden('managed', 0);
        o::hidden('show_as', 0);
        o::hidden('options', '');
        o::hidden('is_deletable', 1);
    } else {
        o::hidden('enabled', $record->enabled);
        o::hidden('help', $record->help);
        o::hidden('internal', $record->internal);
        o::hidden('managed', $record->managed);
        o::hidden('show_as', $record->show_as);
        o::hidden('options', $record->options);
        o::hidden('is_deletable', $record->is_deletable);
    }
}
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 #6
0
    theme::start_form_section('Is Editable');
    theme::checker('is_editable', (int) $record->is_editable);
    theme::end_form_section();
    theme::start_form_section('Is Deletable');
    theme::checker('is_deletable', (int) $record->is_deletable);
    theme::end_form_section();
    o::hidden('advanced', 1);
} else {
    if ($controller_action == 'new') {
        o::hidden('target', '');
        o::hidden('class', '');
        o::hidden('internal', '');
        o::hidden('is_editable', 1);
        o::hidden('is_deletable', 1);
    } else {
        o::hidden('target', $record->target);
        o::hidden('class', $record->class);
        o::hidden('internal', $record->internal);
        o::hidden('is_editable', $record->is_editable);
        o::hidden('is_deletable', $record->is_deletable);
    }
}
o::hidden('return_to', $return_to);
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();