本文整理汇总了PHP中theme::form_start方法的典型用法代码示例。如果您正苦于以下问题:PHP theme::form_start方法的具体用法?PHP theme::form_start怎么用?PHP theme::form_start使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类theme
的用法示例。
在下文中一共展示了theme::form_start方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
theme::form_start($title);
theme::header_start('Log file "' . $title . '"');
theme::header_button('back');
theme::header_end();
echo '<pre>' . $record->content . '</pre>';
theme::return_to_top();
示例2:
<?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();
示例3:
<?php
theme::form_start($controller_path . '/role', null, ['data-validate' => false]);
theme::header_start('Export Roles');
Plugin_search_sort::field();
theme::header_button('Export File', ['icon' => 'upload', 'action' => 'js-post']);
theme::header_button('back');
theme::header_end();
theme::table_start(['Name', 'Description', 'Export' => 'text-center'], [], $records);
foreach ($records as $record) {
theme::table_start_tr();
theme::e($record->name);
theme::table_row();
theme::e($record->description);
theme::table_row('actions text-center');
echo '<input type="checkbox" name="export[]" value="' . $record->id . '">';
theme::table_end_tr();
}
theme::table_end();
theme::return_to_top();
theme::form_end();
示例4:
<?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();
示例5:
<?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();
示例6:
<?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();
示例7:
<?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();