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


PHP HtmlForm::addSelectBoxFromXml方法代码示例

本文整理汇总了PHP中HtmlForm::addSelectBoxFromXml方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlForm::addSelectBoxFromXml方法的具体用法?PHP HtmlForm::addSelectBoxFromXml怎么用?PHP HtmlForm::addSelectBoxFromXml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HtmlForm的用法示例。


在下文中一共展示了HtmlForm::addSelectBoxFromXml方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: HtmlForm

$page->addHtml('</div>
                </div>
            </div>
            <div class="panel panel-default" id="panel_regional_settings">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion_common" href="#collapse_regional_settings">
                            <img class="admidio-panel-heading-icon" src="' . THEME_PATH . '/icons/world.png" alt="' . $gL10n->get('ORG_REGIONAL_SETTINGS') . '" />' . $gL10n->get('ORG_REGIONAL_SETTINGS') . '
                        </a>
                    </h4>
                </div>
                <div id="collapse_regional_settings" class="panel-collapse collapse">
                    <div class="panel-body">');
// show form
$form = new HtmlForm('regional_settings_preferences_form', $g_root_path . '/adm_program/modules/preferences/preferences_function.php?form=regional_settings', $page, array('class' => 'form-preferences'));
$form->addSelectBoxFromXml('system_language', $gL10n->get('SYS_LANGUAGE'), SERVER_PATH . '/adm_program/languages/languages.xml', 'ISOCODE', 'NAME', array('property' => FIELD_REQUIRED, 'defaultValue' => $form_values['system_language'], 'showContextDependentFirstEntry' => true));
$form->addSelectBox('default_country', $gL10n->get('PRO_DEFAULT_COUNTRY'), $gL10n->getCountries(), array('defaultValue' => $form_values['default_country'], 'helpTextIdInline' => 'PRO_DEFAULT_COUNTRY_DESC'));
$form->addInput('system_date', $gL10n->get('ORG_DATE_FORMAT'), $form_values['system_date'], array('maxLength' => 20, 'helpTextIdInline' => array('ORG_DATE_FORMAT_DESC', '<a href="http://www.php.net/date">date()</a>'), 'class' => 'form-control-small'));
$form->addInput('system_time', $gL10n->get('ORG_TIME_FORMAT'), $form_values['system_time'], array('maxLength' => 20, 'helpTextIdInline' => array('ORG_TIME_FORMAT_DESC', '<a href="http://www.php.net/date">date()</a>'), 'class' => 'form-control-small'));
$form->addInput('system_currency', $gL10n->get('ORG_CURRENCY'), $form_values['system_currency'], array('maxLength' => 20, 'helpTextIdInline' => 'ORG_CURRENCY_DESC', 'class' => 'form-control-small'));
$form->addSubmitButton('btn_save_regional_settings', $gL10n->get('SYS_SAVE'), array('icon' => THEME_PATH . '/icons/disk.png', 'class' => ' col-sm-offset-3'));
$page->addHtml($form->show(false));
$page->addHtml('</div>
                </div>
            </div>
            <div class="panel panel-default" id="panel_registration">
                <div class="panel-heading">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion_common" href="#collapse_registration">
                            <img class="admidio-panel-heading-icon" src="' . THEME_PATH . '/icons/new_registrations.png" alt="' . $gL10n->get('SYS_REGISTRATION') . '" />' . $gL10n->get('SYS_REGISTRATION') . '
                        </a>
开发者ID:bash-t,项目名称:admidio,代码行数:31,代码来源:preferences.php


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