本文整理匯總了PHP中theme::radio方法的典型用法代碼示例。如果您正苦於以下問題:PHP theme::radio方法的具體用法?PHP theme::radio怎麽用?PHP theme::radio使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類theme
的用法示例。
在下文中一共展示了theme::radio方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
theme::end_form_section();
if ($advanced == true && has_access('Orange::Advanced Settings')) {
theme::start_form_section('Enabled', true);
theme::checker('enabled', (int) $record->enabled);
theme::end_form_section('Settings which are present are usually considered "enabled" but, this is internally supported for debugging etc...');
theme::start_form_section('Help');
o::text('help', $record->help);
theme::end_form_section('Help to display under the Value input element');
theme::start_form_section('Internal');
o::text('internal', $record->internal);
theme::end_form_section('Internal package "owner"');
theme::start_form_section('Managed', true);
theme::checker('managed', (int) $record->managed);
theme::end_form_section('If a setting is managed a user can not change it\'s group or name.');
theme::start_form_section('Show As', true);
theme::radio('show_as', $record->show_as, [0 => 'textarea', 1 => 'boolean', 2 => 'radios', 3 => 'input']);
theme::end_form_section();
theme::start_form_section('Options');
o::textarea('options', $record->options);
theme::end_form_section('If <b>Show As</b> is:<br>textarea - optional height in pixels<br>boolean - no options are available<br>radios - you <b>MUST</b> enter a json object where the key/value pairs are the radio button options<br>input - optional bootstrap grid block width.');
theme::start_form_section('Is Deletable');
theme::checker('is_deletable', (int) $record->is_deletable);
theme::end_form_section();
o::hidden('advanced', 1);
} else {
if ($controller_action == 'new') {
o::hidden('enabled', 1);
o::hidden('help', '');
o::hidden('internal', '');
o::hidden('managed', 0);
o::hidden('show_as', 0);