示例#1
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();
示例#2
0
theme::end_form_section('leaving both fields empty will make this template always available');
?>
	</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) {
示例#3
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();
示例#4
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();
示例#5
0
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);
theme::end_form_section();
theme::start_form_section('Template', true);
theme::dropdown3('template_id', $record->template_id, $templates);
theme::end_form_section($save_text);
theme::start_form_section('Note');
theme::textarea('note', $record->note, ['rows' => 3]);
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();
示例#6
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();