当前位置: 首页>>代码示例>>PHP>>正文


PHP theme::form_start方法代码示例

本文整理汇总了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();
开发者ID:ProjectOrangeBox,项目名称:log-file-viewer,代码行数:8,代码来源:details.php

示例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();
开发者ID:ProjectOrangeBox,项目名称:cms-category,代码行数:19,代码来源:form.php

示例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();
开发者ID:ProjectOrangeBox,项目名称:orange-export-import,代码行数:21,代码来源:role.php

示例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();
开发者ID:kverawat,项目名称:flexi-cart-1,代码行数:25,代码来源:form.php

示例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();
开发者ID:ProjectOrangeBox,项目名称:forgot,代码行数:21,代码来源:index.php

示例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();
开发者ID:ProjectOrangeBox,项目名称:register,代码行数:25,代码来源:index.php

示例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();
开发者ID:ProjectOrangeBox,项目名称:forgot,代码行数:28,代码来源:new_password.php


注:本文中的theme::form_start方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。