當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。