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