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


PHP theme::radio方法代码示例

本文整理汇总了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);
开发者ID:dmyers2004,项目名称:theme-orange,代码行数:31,代码来源:form.php


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