本文整理汇总了PHP中theme::end_form_section方法的典型用法代码示例。如果您正苦于以下问题:PHP theme::end_form_section方法的具体用法?PHP theme::end_form_section怎么用?PHP theme::end_form_section使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类theme
的用法示例。
在下文中一共展示了theme::end_form_section方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?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();
示例2: foreach
}
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) {
if ($access_record->group == $tab) {
echo '<div style="padding: 2px 0">';
theme::checkbox('access[' . $access_record->id . ']', $access_record->id, array_key_exists($access_record->id, $access), ['text' => $access_record->name . ' <small class="text-info">' . $access_record->description . '</small>']);
echo '</div>';
}
}
echo '</div>';
}
echo '</div>';
echo '</div>';
/* close well */
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();
foreach ($access_options as $id => $access) {
theme::checkbox('groups[]', $id, array_key_exists($id, $groups), ['text' => $access->description . ' <small style="opacity: .6">' . $access->key . '</small>']);
echo '<div style="height: 6px;"></div>';
}
示例3:
<?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();
示例4:
<?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();
示例5:
<?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');