コード例 #1
0
ファイル: form.php プロジェクト: ProjectOrangeBox/capture
<?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();
コード例 #2
0
ファイル: log.php プロジェクト: ProjectOrangeBox/scheduler
<?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();
コード例 #3
0
ファイル: form.php プロジェクト: ProjectOrangeBox/cms-people
<?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();
コード例 #4
0
ファイル: form.php プロジェクト: ProjectOrangeBox/trackback
<?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();
コード例 #5
0
ファイル: form.php プロジェクト: ProjectOrangeBox/flexi-cart
<?php

theme::form_start($controller_path . '/' . $controller_action);
theme::hidden('ord_status_id', $record->ord_status_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('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();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
コード例 #6
0
<?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');
コード例 #7
0
ファイル: form.php プロジェクト: ProjectOrangeBox/cms-page
<?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::hidden('sort', $record->sort);
theme::hidden('parent_id', $record->parent_id);
theme::start_form_section('Title', true, 6);
theme::text('title', $record->title, ['class' => 'js-human-input']);
theme::end_form_section();
theme::start_form_section('Segment', true, 5);
Plugin_locked_field::show('segment', $record->segment, ['has_access' => 'page::change internal', 'class' => 'js-computer-input']);
theme::end_form_section();
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);
コード例 #8
0
<?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();
コード例 #9
0
ファイル: form.php プロジェクト: ProjectOrangeBox/flexi-cart
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('curr_name', $record->curr_name);
theme::end_form_section();
theme::start_form_section('Exchange Rate', true, 2);
theme::text('curr_exchange_rate', $record->curr_exchange_rate);
theme::end_form_section();
theme::start_form_section('Symbol HTML', true, 2);
theme::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);
theme::text('curr_thousand_separator', $record->curr_thousand_separator);
theme::end_form_section();
theme::start_form_section('Decimal', true, 2);
theme::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();
theme::hr(0, 12);
theme::footer_start();
theme::footer_button('submit');
theme::footer_required();
theme::footer_end();
theme::form_end();
コード例 #10
0
ファイル: form.php プロジェクト: ProjectOrangeBox/snippet
<?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('Name', true);
Plugin_locked_field::show('name', $record->name, ['has_access' => 'snippet::change name']);
theme::end_form_section();
theme::start_form_section('Internal Name', true);
theme::text('variable', $record->variable, ['readonly' => true, 'id' => 'variable_text']);
theme::end_form_section();
theme::start_form_section('Value');
theme::textarea('value', $record->value);
theme::end_form_section();
theme::start_form_section('Note');
theme::textarea('note', $record->note);
theme::end_form_section();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
コード例 #11
0
ファイル: form.php プロジェクト: ProjectOrangeBox/flexi-cart
<?php

theme::form_start($controller_path . '/' . $controller_action);
theme::hidden('lzone_id', $record->lzone_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('lzone_name', $record->lzone_name);
theme::end_form_section();
theme::start_form_section('Exchange Rate', true, 2);
theme::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();
theme::hr(0, 12);
theme::footer_start();
theme::footer_required();
theme::footer_button('submit');
theme::footer_end();
theme::form_end();
コード例 #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();
コード例 #13
0
<?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');
コード例 #14
0
theme::end_form_section();
echo '<ul class="nav nav-tabs js-tabs">
    <li class="active"><a href="#general_tab" data-toggle="tab">General</a></li>
    <li><a href="#plain-tab" data-toggle="tab">Plain</a></li>
    <li><a href="#html-plain" data-toggle="tab">HTML</a></li>
    <li><a href="#variables-plain" data-toggle="tab">Snippets & Paths</a></li>
  </ul><br>';
?>
<div class="tab-content">
	<div class="tab-pane active" id="general_tab">
		<?php 
theme::start_form_section('Subject Line', true);
theme::text('subject', $record->subject);
theme::end_form_section();
theme::start_form_section('Description');
theme::text('description', $record->description);
theme::end_form_section();
theme::start_form_section('Active From');
Plugin_datetimepicker::dt('active_from', $record->active_from);
theme::end_form_section();
theme::start_form_section('Active To');
Plugin_datetimepicker::dt('active_to', $record->active_to);
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.');
コード例 #15
0
ファイル: form.php プロジェクト: ProjectOrangeBox/cms-content
theme::hr(0, 12);
//kd($record);
theme::start_form_section('Title', true);
theme::text('title', $record->title, ['class' => 'js-human-input']);
theme::end_form_section();
theme::start_form_section('Internal', true);
Plugin_locked_field::show('internal', $record->internal, ['data-lock' => 'internal', 'has_access' => 'content::change internal', 'class' => 'js-computer-input']);
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('Picture');
plugin_attach_file::image('picture', $record->picture, 150, 1);
theme::end_form_section();
theme::start_form_section('Link');
theme::text('link', $record->link);
theme::end_form_section();
theme::start_form_section('Content');
plugin_bootstrap_wysiwyg::input('content', $record->content, ['toolbar' => $controller_path . '/toolbar.php']);
theme::end_form_section();
theme::start_form_section('Show After', 3);
plugin_datetimepicker::date_time('start_on', $record->start_on);
theme::end_form_section();
theme::start_form_section('Hide After', 3);
plugin_datetimepicker::date_time('end_on', $record->end_on);
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('Note');
theme::textarea('note', $record->note);
コード例 #16
0
ファイル: form.php プロジェクト: ProjectOrangeBox/scheduler
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();
コード例 #17
0
ファイル: form.php プロジェクト: ProjectOrangeBox/cropper
<?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();
コード例 #18
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();
コード例 #19
0
ファイル: index.php プロジェクト: ProjectOrangeBox/register
<?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();