本文整理汇总了PHP中theme::start_form_section方法的典型用法代码示例。如果您正苦于以下问题:PHP theme::start_form_section方法的具体用法?PHP theme::start_form_section怎么用?PHP theme::start_form_section使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类theme
的用法示例。
在下文中一共展示了theme::start_form_section方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?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', 'mrtest@example.com');
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();
示例2:
<?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();
示例3:
<?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();
示例4:
<?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();
示例5:
<?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();
示例6:
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();
示例7: hr
<?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();
示例8:
<?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();
示例9:
<?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();
示例10:
<?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 & 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();
示例11:
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();
示例12: ci
<?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:
<?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:
<?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();
示例15:
<?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) {