本文整理汇总了PHP中theme::dropdown3方法的典型用法代码示例。如果您正苦于以下问题:PHP theme::dropdown3方法的具体用法?PHP theme::dropdown3怎么用?PHP theme::dropdown3使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类theme
的用法示例。
在下文中一共展示了theme::dropdown3方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
theme::form_start($controller_path . '/' . $controller_action);
o::hidden('curr_id', $record->curr_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('Currency');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
theme::end_form_section();
theme::start_form_section('Shipping Location');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
theme::end_form_section();
theme::start_form_section('Shipping Option');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
theme::end_form_section();
theme::start_form_section('Tax Location');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
theme::end_form_section();
theme::start_form_section('Tax Rate');
theme::dropdown3('currency_option', $record->currency_option, $currency_options);
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_end();
theme::form_end();
示例2: strtotime
o::hr(0, 12);
theme::start_form_section('User Name', true, 3);
o::text('username', $record->username);
theme::end_form_section();
theme::start_form_section('Email', true, 3);
o::text('email', $record->email);
theme::end_form_section();
theme::start_form_section('Password', $record->id == -1, 3);
o::password('password', ['value' => $record->password]);
theme::end_form_section($password_format_copy);
theme::start_form_section('Confirm Password', $record->id == -1, 3);
o::password('confirm_password', ['value' => $record->confirm_password]);
theme::end_form_section();
if ($record->id != 1) {
theme::start_form_section('Role', 4);
theme::dropdown3('role_id', $record->role_id, o::smart_model_list('o_role_model', 'id', 'name'));
theme::end_form_section();
theme::start_form_section('Active');
theme::checkbox('is_active', 1, $record->is_active);
theme::end_form_section();
} else {
o::hidden('role_id', $record->role_id);
o::hidden('is_active', $record->is_active);
}
if (strtotime($record->last_login) > 1) {
theme::start_form_section('Last login');
theme::static_text(date('F j, Y, g:i a', strtotime($record->last_login)));
o::hidden('last_login', $record->last_login);
theme::end_form_section();
}
o::view_event($controller_path, 'form.footer');
示例3:
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);
plugin_datetimepicker::date_time('end_on', $record->end_on);
theme::end_form_section();
theme::start_form_section('Template', true);
theme::dropdown3('template_id', $record->template_id, $templates);
theme::end_form_section($save_text);
theme::start_form_section('Note');
theme::textarea('note', $record->note, ['rows' => 3]);
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();