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


PHP ZurmoHtml::button方法代码示例

本文整理汇总了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;
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:21,代码来源:EditableDropDownCollectionElement.php

示例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;
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:27,代码来源:SortableCompareLists.php

示例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");'));
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:4,代码来源:DesignerLayoutEditor.php


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