<?php

theme::form_start($title);
theme::header_start('Log file "' . $title . '"');
theme::header_button('back');
theme::header_end();
echo '<pre>' . $record->content . '</pre>';
theme::return_to_top();
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start($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('Name', true, 6);
theme::text('name', $record->name);
theme::end_form_section();
theme::view_event($controller_path, 'form.footer');
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
<?php

theme::form_start($controller_path . '/role', null, ['data-validate' => false]);
theme::header_start('Export Roles');
Plugin_search_sort::field();
theme::header_button('Export File', ['icon' => 'upload', 'action' => 'js-post']);
theme::header_button('back');
theme::header_end();
theme::table_start(['Name', 'Description', 'Export' => 'text-center'], [], $records);
foreach ($records as $record) {
    theme::table_start_tr();
    theme::e($record->name);
    theme::table_row();
    theme::e($record->description);
    theme::table_row('actions text-center');
    echo '<input type="checkbox" name="export[]" value="' . $record->id . '">';
    theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
theme::form_end();
Exemple #4
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();
Exemple #5
0
<?php

theme::form_start($controller_path . '/forgot');
theme::header_start('Forgot Password');
theme::header_end();
hr(0, 12);
/* 4px padding top and bottom */
theme::hero_copy('In order to receive your access code by email, please enter the email address you provided during the registration process.');
theme::start_form_section('Email', true, 5);
text('email');
theme::end_form_section();
hr(0, 12);
/* 4px padding top and bottom */
theme::footer_start();
theme::footer_button('submit');
theme::footer_required();
theme::footer_end();
echo '<p class="text-right"><br><br><br>';
form_a($login_page_url, 'Return to Login Page');
echo '</p>';
theme::form_end();
Exemple #6
0
<?php

theme::form_start($controller_path . '/register');
theme::header_start('Register');
theme::header_end();
theme::start_form_section('User Name', true, 5);
theme::text('username', 'Mr Test');
theme::end_form_section();
theme::start_form_section('Email', true, 5);
theme::text('email', '*****@*****.**');
theme::end_form_section();
theme::start_form_section('Password', true, 5);
theme::password('password', ['value' => 'Password#2']);
theme::end_form_section($password_format_txt);
theme::start_form_section('Confirm Password', true, 5);
theme::password('confirm_password', ['value' => 'Password#2']);
theme::end_form_section();
theme::footer_start();
theme::footer_button('submit');
theme::footer_required();
theme::footer_end();
echo '<p class="text-right"><br><br><br>';
theme::a($login_page_url, 'Return to Home Page');
echo '</p>';
theme::form_end();
<?php

theme::form_start($controller_path . '/password');
theme::header_start('Forgot Password');
theme::header_end();
hr(0, 12);
/* 4px padding top and bottom */
theme::start_form_section('New Password', true, 5);
password('password');
theme::end_form_section();
theme::start_form_section('Confirm New Password', true, 5);
password('confirm_password');
theme::end_form_section();
theme::start_form_section('');
echo $password_format;
theme::end_form_section();
hidden('a', $hmac);
hidden('b', $key);
hr(0, 12);
/* 4px padding top and bottom */
theme::footer_start();
theme::footer_button('submit');
theme::footer_required();
theme::footer_end();
echo '<p class="text-right"><br><br><br>';
form_a($login_page_url, 'Return to Home Page');
echo '</p>';
theme::form_end();