本文整理汇总了PHP中ZurmoHtml::button方法的典型用法代码示例。如果您正苦于以下问题:PHP ZurmoHtml::button方法的具体用法?PHP ZurmoHtml::button怎么用?PHP ZurmoHtml::button使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZurmoHtml
的用法示例。
在下文中一共展示了ZurmoHtml::button方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: renderAddInputAndAddButton
protected function renderAddInputAndAddButton()
{
$activeLanguagesData = $this->getActiveLanguagesData();
$baseLanguage = $this->getBaseLanguage();
$content = '<table>';
$content .= '<colgroup><col style="width:50%" />';
$content .= '</colgroup>';
$content .= '<tbody>';
$content .= '<tr>';
$content .= '<td>';
$content .= '<div class="has-lang-label">' . ZurmoHtml::textField($this->attribute . '_AddInput', '', array('size' => 50));
$content .= static::renderLanguageLabelHtmlContent($activeLanguagesData[$baseLanguage]);
$content .= '</div>';
$content .= ZurmoHtml::button(Yii::t('Default', 'Add Item'), array('id' => $this->attribute . '_AddInputButton'));
$content .= '<div id="' . $this->attribute . '_AddInput_em_" class="errorMessage" style="display:none"></div>';
$content .= '</td>';
$content .= '</tr>';
$content .= '</tbody>';
$content .= '</table>';
return $content;
}
示例2: run
public function run()
{
$id = $this->getId();
$leftListContent = $this->resolveLeftSideListBox();
$rightListContent = $this->resolveRightSideListBox();
$content = '<td><div class="multiselect-holder"><div class="multiselect-left">';
$content .= '<label>' . $this->leftSideDisplayLabel . '</label>';
$content .= $leftListContent;
$content .= '</div><div class="multiselect-nav">';
$content .= ZurmoHtml::button('7', array('id' => $id . 'moveRight', 'class' => 'icon-right-arrow'));
//used 7, 8 becuase those are rendered as icons with symbly, other option is to make it an A with a SPAN inside it
$content .= ZurmoHtml::button('8', array('id' => $id . 'moveLeft', 'class' => 'icon-left-arrow'));
$content .= '</div><div class="multiselect-right">';
$content .= '<label>' . $this->rightSideDisplayLabel . '</label>';
$content .= $rightListContent;
$content .= '</div>';
if ($this->allowSorting) {
$content .= '<div class="multiselect-nav' . $this->resolveMultiselectNavigationClassesContent() . '">';
$content .= ZurmoHtml::button('5', array('id' => $id . 'moveUp', 'class' => 'icon-up-arrow'));
// value "up" in icon font
$content .= ZurmoHtml::button('6', array('id' => $id . 'moveDown', 'class' => 'icon-down-arrow'));
// value "down" in icon font
$content .= '</div>';
}
$content .= '</td>';
echo $content;
}
示例3: renderSaveModalSettingsButton
protected function renderSaveModalSettingsButton()
{
return ZurmoHtml::button(Yii::t('Default', 'Save and Close'), array('class' => 'z-button green-button attachLoading', 'onclick' => '$(this).closest(".modal-settings").dialog("close");'));
}