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

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' Trackback');
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Match', true, 5);
echo '<div class="input-group">';
echo '<div class="input-group-addon">/trackback/</div>';
theme::text('match', $record->match);
echo '</div>';
theme::end_form_section();
theme::start_form_section('Trackback to URL', true, 5);
theme::text('url', $record->url);
theme::end_form_section();
theme::start_form_section('Active');
theme::checkbox('active', 1, $record->active);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
<?php

theme::start_form_section('Display', 3);
theme::text('display', $options->display);
theme::end_form_section();
theme::start_form_section('Help');
theme::text('help', $options->help);
theme::end_form_section();
theme::start_form_section('Required', 1);
theme::checkbox('required', 1, $options->required);
theme::end_form_section();
theme::start_form_section('Index', 1);
theme::checkbox('index', 1, $options->index);
theme::end_form_section();
theme::start_form_section('Columns', 1);
theme::text('columns', $options->columns);
theme::end_form_section();
<?php

theme::start_form_section('Display', 3);
theme::text('display', $options->display);
theme::end_form_section();
theme::start_form_section('Help');
theme::text('help', $options->help);
theme::end_form_section();
theme::start_form_section('Required', 1);
theme::checkbox('required', 1, $options->required);
theme::end_form_section();
theme::start_form_section('Index', 1);
theme::checkbox('index', 1, $options->index);
theme::end_form_section();
theme::start_form_section('Columns', 1);
theme::text('columns', $options->columns);
theme::end_form_section();
theme::start_form_section('Filter');
$list = ['int', 'float', 'money', 'num', 'hex', 'email', 'alpha', 'alphanum', 'alphanumlower', 'alphaspace', 'alphanumspace', 'alphanumspacelower', 'url', 'phone'];
echo '<select class="select3" name="filter">';
foreach ($list as $v) {
    $select = $v == $options->filter ? 'selected' : '';
    echo '<option ' . $select . ' value="' . $v . '">' . $v . '</option>';
}
echo '</select>';
theme::end_form_section();
Example #5
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();
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();
Example #7
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();
Example #8
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_button('back');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Created');
theme::text('Created On', $record->created_on, ['readonly' => 'readonly']);
theme::end_form_section();
theme::start_form_section('Log');
theme::textarea('note', $record->output, ['readonly' => 'readonly']);
theme::end_form_section();
theme::view_event($controller_path, 'form.footer');
theme::form_end();
Example #9
0
<?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();
Example #10
0
<?php

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::start_form_section('Name');
theme::text('name', $record->name);
theme::end_form_section();
theme::start_form_section('Crop Box Width', 2);
theme::text('width', $record->width);
theme::end_form_section();
theme::start_form_section('Crop Box Height', 2);
theme::text('height', $record->height);
theme::end_form_section();
theme::start_form_section('Export Zoom', 1);
theme::text('exportzoom', $record->exportzoom);
theme::end_form_section('Multiple width &amp; height by this value on export. This is also how it\'s displayed to end users.');
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();
Example #11
0
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Title', true, 5);
theme::text('title', $record->title);
theme::end_form_section();
theme::start_form_section('URL', false, 5);
theme::text('url', $record->url);
theme::end_form_section();
theme::start_form_section('Categories');
Plugin_chosen::show('categories', $record->categories, $category_options);
theme::end_form_section();
theme::start_form_section('Image', true, 9);
Plugin_cropper::show('content', $record->content, 843, 403);
theme::end_form_section();
theme::start_form_section('Weight', false, 5);
Field_range::range('weight', $record->weight, ['before' => 'Light', 'after' => 'Heavy']);
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);
theme::end_form_section();
theme::hidden('category', 0);
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
Example #12
0
<?php

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::start_form_section('Name', true, 5);
theme::text('name', $record->name);
theme::end_form_section();
theme::start_form_section('Age', true, 1);
theme::text('age', $record->age);
theme::end_form_section();
theme::start_form_section('Textarea');
theme::textarea('text', $record->text);
theme::end_form_section();
theme::portal_header_start('Title Goes here');
theme::portal_header_button('Add', 'magic', ['data-child_id' => 'child1', 'data-url' => $controller_path . '/new_child', 'class' => 'btn btn-default btn-xs add_child']);
theme::portal_header_end();
theme::portal_start(189, 0, ['id' => 'child1']);
foreach ($childern as $sf) {
    ci()->load->view('form/new_child', ['parent_id' => $record->id, 'record' => (object) $sf]);
}
theme::portal_end();
echo '<br>';
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
<?php

theme::start_form_section('Required', 1);
theme::checkbox('required', 1, $options->required);
theme::end_form_section();
theme::start_form_section('Minimum Height', true, 3);
theme::text('min_height', $options->min_height, ['data-parsley-required' => 'true', 'data-parsley-type' => 'integer']);
theme::end_form_section();
theme::start_form_section('Minimum Width', true, 3);
theme::text('min_width', $options->min_width, ['data-parsley-required' => 'true', 'data-parsley-type' => 'integer']);
theme::end_form_section();
theme::start_form_section('Zoom', 3);
theme::text('zoom', $options->zoom, ['data-parsley-type' => 'integer']);
theme::end_form_section('The form preview is the maximum width and height divided by this number to keep it to a manageable size on the form');
theme::start_form_section('Image Public Folder', true);
theme::text('image_path', $options->image_path, ['placeholder' => '/images/']);
theme::end_form_section('public path to save images');
Example #14
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' ' . $controller_title);
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Created On');
theme::text('created_on', $record->created_on, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('Form Name');
theme::text('form_name', $record->form_name, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('URL');
theme::text('url', $record->url, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('User Agent');
theme::text('user_agent', $record->user_agent, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('Ip Address');
theme::text('ip_address', $record->ip_address, ['readonly' => true]);
theme::end_form_section();
theme::start_form_section('Capture');
theme::textarea('capture', $record->capture, ['readonly' => true]);
theme::end_form_section();
theme::view_event($controller_path, 'form.footer');
theme::hr(0, 12);
theme::footer_start();
theme::footer_button('back', ['href' => $controller_path]);
theme::footer_end();
theme::form_end();
Example #15
0
<?php

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::start_form_section('Name', true);
theme::text('name', $record->name);
theme::end_form_section();
theme::start_form_section('Internal', true);
Plugin_locked_field::show('internal', $record->internal, ['has_access' => 'dropdowns::change internal']);
theme::end_form_section();
?>
<div class="row">
	<div class="col-md-6">
		For database integrative once you add a entry and save the record you cannot remove it.
	</div>
	<div class="col-md-6 text-right">
		<button type="button" class="js-add btn btn-default btn-sm"><i class="fa fa-magic"></i> Add Row</button>
	</div>
</div>

<?php 
theme::hr(4, 12);
?>

<div class="dd" id="nestable">
<ol class="dd-list">
<?php 
foreach ($record->childern as $child) {
Example #16
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();
<?php

$index = 'id' . uniqid();
theme::element('div', ['id' => $index, 'class' => 'magic-row']);
theme::element('div', ['style' => 'width:95%', 'class' => 'portal-cell']);
theme::hidden('t_orange_c[' . $index . '][id]', $record->id);
theme::hidden('t_orange_c[' . $index . '][parent_id]', $record->parent_id);
theme::start_form_section('Name');
theme::text('t_orange_c[' . $index . '][name]', $record->name);
theme::end_form_section();
theme::start_form_section('Age', 2);
theme::text('t_orange_c[' . $index . '][age]', $record->age);
theme::end_form_section();
theme::element('/div');
theme::element('div', ['style' => 'width:5%', 'class' => 'portal-cell portal-cell-action']);
//theme::table_action('edit',$this->controller_path.'/xedit/'.$record->id,['class'=>'js-o_dialog','data'=>['redirect'=>'true','heading'=>'Leave this record?','text'=>'If you edit this record you will leave the current record.']]);
o_dialog::confirm_a_delete($this->controller_path . '/delete_child/' . $parent_id . '/' . $record->id, ['div' => $index]);
theme::element('/div');
theme::element('/div');
Example #18
0
	</div>

	<div class="tab-pane" id="plain-tab">
		<?php 
theme::start_form_section('Plain Body', $plain_required);
theme::textarea('plain', $record->plain, ['class' => 'span8 code-textarea', 'rows' => 25]);
theme::end_form_section('This will be auto generated from the html if not provided.');
?>
	</div>

	<div class="tab-pane" id="html-plain">
		<?php 
theme::start_form_section('HTML Body', $html_required);
theme::textarea('html', $record->html, ['class' => 'span8 code-textarea', 'rows' => 25]);
theme::end_form_section();
theme::start_form_section('&nbsp;');
theme::header_button('Preview HTML', ['icon' => 'eye', 'data-preview' => $controller_path . '/preview']);
if ($has_file_manager) {
    echo theme::spacer();
    theme::header_button('Manage Assets', ['icon' => 'file', 'onclick' => 'javascript:open_file_manager(\'emails\');"']);
}
theme::end_form_section();
?>
	</div>

	<div class="tab-pane" id="variables-plain">
		<table class="table table-striped table-bordered">
<?php 
foreach ($variables as $key => $name) {
    ?>
			<tr>
Example #19
0
    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 {
    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);
Example #20
0
theme::start_form_section('Hour', 2);
theme::text('hour', $record->hour);
theme::end_form_section();
theme::start_form_section('Day Of Month', 2);
theme::text('day_of_month', $record->day_of_month);
theme::end_form_section();
theme::start_form_section('Month', 2);
theme::text('month', $record->month);
theme::end_form_section();
theme::start_form_section('Day Of Week', 2);
theme::text('day_of_week', $record->day_of_week);
theme::end_form_section();
theme::start_form_section('URL', true);
theme::text('url', $record->url);
theme::end_form_section('This is the equilate of calling a CodeIgniter controller from the command line. php index.php <b>controller/method/arg1/arg2</b>');
theme::start_form_section('Log');
theme::checkbox('add_log', 1, $record->add_log);
theme::end_form_section();
theme::start_form_section('Keep', 1);
theme::text('keep', $record->keep);
theme::end_form_section('How many previous log files to keep');
theme::start_form_section('Note');
theme::textarea('note', $record->note);
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();
Example #21
0
<?php

theme::form_start($controller_path . '/' . $controller_action, $record->id);
theme::header_start(ucfirst($controller_action) . ' Person');
theme::header_button('cancel');
theme::header_end();
theme::hr(0, 12);
theme::start_form_section('Title', true, 5);
theme::text('title', $record->title);
theme::end_form_section();
theme::start_form_section('Position', false, 5);
theme::text('position', $record->position);
theme::end_form_section();
theme::start_form_section('Order', false, 5);
field_range::range('weight', $record->weight, ['before' => 'First', 'after' => 'Last']);
theme::end_form_section();
theme::start_form_section('Bio', true);
plugin_bootstrap_wysiwyg::input('bio', $record->bio, ['toolbar' => '/admin/content/people/toolbar/bio.php']);
theme::end_form_section();
theme::start_form_section('Picture', true, 3);
plugin_cropper::show('picture', $record->picture, 256, 256);
//plugin_attach_file::image('picture',$record->picture,150,1);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
Example #22
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();
Example #23
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('Role', 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();
theme::start_form_section('Access');
/* sort the tabs */
sort($access_tabs);
/* sort all the entries by name - then when they are shown in tabs they are in order */
uasort($all_access, function ($a, $b) {
    return $a->name > $b->name ? 1 : -1;
});
theme::table_tabs($records);
theme::table_tabs_start();
echo '<ul id="tabs" class="nav nav-pills js-tabs" data-tabs="tabs">';
foreach ($access_tabs as $idx => $tab) {
    echo '<li><a href="#tab-' . md5($tab) . '" data-toggle="tab">' . $tab . '</a></li>	';
}
echo '</ul>';
echo '<div class="well" style="overflow: hidden">';
echo '<div id="my-tab-content" class="tab-content">';
foreach ($access_tabs as $idx => $tab) {
    echo '<div class="tab-pane" id="tab-' . md5($tab) . '" style="margin-top: -14px">';
    foreach ($all_access as $access_record) {
Example #24
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();
Example #25
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('Currency');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
theme::end_form_section();
theme::start_form_section('Shipping Location');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
theme::end_form_section();
theme::start_form_section('Shipping Option');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
theme::end_form_section();
theme::start_form_section('Tax Location');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
theme::end_form_section();
theme::start_form_section('Tax Rate');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
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_end();
theme::form_end();
Example #26
0
<?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();
Example #27
0
<?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();