本文整理汇总了PHP中Configuration::getAdminDropdownOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP Configuration::getAdminDropdownOptions方法的具体用法?PHP Configuration::getAdminDropdownOptions怎么用?PHP Configuration::getAdminDropdownOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Configuration
的用法示例。
在下文中一共展示了Configuration::getAdminDropdownOptions方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getPage4
public function getPage4()
{
return array('title' => Yii::t('admin', 'Finally, enter your email server settings. {Lightspeed} Click for standard settings for: <a href=\'javascript:setupMail("smtp");\'>Standard SMTP</a>, <a href=\'javascript:setupMail("gmail");\'>Gmail</a>, <a href=\'javascript:setupMail("godaddy");\'>Godaddy</a>', array('{Lightspeed}' => _xls_get_conf('LIGHTSPEED_CLOUD', 0) > 0 ? '' : "These are generally identical to Lightspeed's setup in Tools->Setup->Advanced->Email.")), 'elements' => array('EMAIL_SMTP_SERVER' => array('type' => 'text', 'maxlength' => 64), 'EMAIL_SMTP_PORT' => array('type' => 'text', 'maxlength' => 64), 'EMAIL_SMTP_USERNAME' => array('type' => 'text', 'maxlength' => 64, 'size' => 60), 'EMAIL_SMTP_PASSWORD' => array('type' => 'password', 'maxlength' => 64, 'size' => 60), 'EMAIL_SMTP_SECURITY_MODE' => array('type' => 'dropdownlist', 'items' => Configuration::getAdminDropdownOptions('EMAIL_SMTP_SECURITY_MODE')), 'page' => array('type' => 'hidden', 'value' => $this->page)));
}
示例2: array
case "PINT":
echo CHtml::activeTextField($item, "[{$i}]key_value", array('title' => $item->helper_text, 'id' => $item->key_name));
break;
case "EMAIL":
echo CHtml::activeEmailField($item, "[{$i}]key_value", array('title' => $item->helper_text, 'id' => $item->key_name, 'pattern' => '^[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&\'*+\\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?$'));
break;
case "PASSWORD":
echo CHtml::activePasswordField($item, "[{$i}]key_value", array('title' => $item->helper_text, 'id' => $item->key_name));
break;
case "BOOL":
echo '<div class="onoff" id="' . $item->id . '" title="' . $item->helper_text . '"></div>';
//Create On/Off
echo CHtml::activeHiddenField($item, "[{$i}]key_value");
break;
default:
echo CHtml::activeDropDownList($item, "[{$i}]key_value", Configuration::getAdminDropdownOptions($item->options), array('title' => $item->helper_text, 'id' => $item->key_name));
}
?>
</div>
<div class="span1">
<?php
if (!empty($item->helper_text)) {
?>
<img src="<?php
echo $this->assetUrl;
?>
/img/help.png" title="<?php
echo $item->helper_text;
?>
"/><?php
}
示例3: array
case null:
case "NULL":
case "INT":
case "PINT":
echo CHtml::activeTextField($item, "[{$i}]key_value", array('title' => 'Hover to help image'));
break;
case "PASSWORD":
echo CHtml::activePasswordField($item, "[{$i}]key_value", array('title' => 'Hover to help image'));
break;
case "BOOL":
echo '<div class="onoff" id="' . $item->id . '" title="Hover to help image"></div>';
//Create On/Off
echo CHtml::activeHiddenField($item, "[{$i}]key_value");
break;
default:
echo CHtml::activeDropDownList($item, "[{$i}]key_value", Configuration::getAdminDropdownOptions($item->options), array('title' => 'Hover to help image'));
}
?>
</div>
<div class="span1 wrap-help">
<?php
if (!empty($item->helper_text)) {
?>
<img src="<?php
echo $this->assetUrl;
?>
/img/help.png" title=""/><div class="help-hover">
<?php
if (strpos($item->helper_text, 'css/zoomproduct/css') >= 0) {
?>
<img src="<?php