本文整理汇总了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);