本文整理汇总了PHP中Actions::getColors方法的典型用法代码示例。如果您正苦于以下问题:PHP Actions::getColors方法的具体用法?PHP Actions::getColors怎么用?PHP Actions::getColors使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Actions
的用法示例。
在下文中一共展示了Actions::getColors方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
echo $form->checkBox($model, 'allDay', array('onChange' => 'giveSaveButtonFocus();'));
?>
</div>
<div class="cell dialog-cell">
<?php
echo $form->label($model, 'priority', array('class' => 'dialog-label'));
?>
<?php
echo $form->dropDownList($model, 'priority', array('Low' => Yii::t('actions', 'Low'), 'Medium' => Yii::t('actions', 'Medium'), 'High' => Yii::t('actions', 'High')), array('onChange' => 'giveSaveButtonFocus();'));
?>
<?php
echo $form->label($model, 'color', array('class' => 'dialog-label'));
?>
<?php
echo $form->dropDownList($model, 'color', Actions::getColors(), array('onChange' => 'giveSaveButtonFocus();'));
?>
</div>
<div class="cell dialog-cell">
<?php
if ($model->assignedTo == null && is_numeric($model->calendarId)) {
// assigned to calendar instead of user?
$model->assignedTo = $model->calendarId;
}
?>
<?php
echo $form->label($model, 'assignedTo', array('class' => 'dialog-label'));
?>
<?php
echo $form->dropDownList($model, 'assignedTo', $users + X2Calendar::getEditableCalendarNames(), array('id' => 'dialog_actionsAssignedToDropdown', 'onChange' => 'giveSaveButtonFocus();'));
示例2: array
?>
</div>
<div class="cell">
<?php
echo $form->label($event, 'priority');
?>
<?php
echo $form->dropDownList($event, 'priority', array('Low' => Yii::t('actions', 'Low'), 'Medium' => Yii::t('actions', 'Medium'), 'High' => Yii::t('actions', 'High')));
//echo $form->error($actionModel,'priority');
?>
<?php
echo $form->label($event, 'color');
?>
<?php
echo $form->dropDownList($event, 'color', Actions::getColors());
?>
</div>
<div class="cell">
<?php
echo $form->label($event, 'assignedTo');
?>
<?php
echo $form->dropDownList($event, 'assignedTo', $users + X2Calendar::getEditableCalendarNames(), array('id' => 'actionsAssignedToDropdown'));
?>
<?php
//echo $form->error($actionModel,'assignedTo');
?>
<?php
/* x2temp */
echo "<br />";