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


PHP Mage_Adminhtml_Block_Widget_Grid::getMainButtonsHtml方法代码示例

本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Grid::getMainButtonsHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Grid::getMainButtonsHtml方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Grid::getMainButtonsHtml怎么用?PHP Mage_Adminhtml_Block_Widget_Grid::getMainButtonsHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Mage_Adminhtml_Block_Widget_Grid的用法示例。


在下文中一共展示了Mage_Adminhtml_Block_Widget_Grid::getMainButtonsHtml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     //get the parent class buttons
     $addButton = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => "setLocation('" . $this->getUrl('*/adminhtml_footerrow/index') . "')", 'class' => 'back'))->toHtml();
     return $addButton . $html;
 }
开发者ID:bevello,项目名称:bevello,代码行数:7,代码来源:Grid.php

示例2: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     $hlr = Mage::helper('amrma');
     $html = parent::getMainButtonsHtml();
     if ($hlr->canCreateRma($this->getOrder()->getEntityId())) {
         $html .= $this->getChildHtml('add_button');
     }
     return $html;
 }
开发者ID:rcclaudrey,项目名称:dev,代码行数:9,代码来源:Rma.php

示例3: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $model = $this->getModel();
     if ($model) {
         $js = array();
         $js[] = "\n                function runRuleTesting(btn, id, email){\n                    var r=confirm('Email will be sent to ' + email + ', are you sure?!')\n                    if (r==true)\n                    {\n                    btn.setAttribute('disabled', true);\n                    new Ajax.Request('" . Mage::helper("adminhtml")->getUrl('*/*/testRule') . " ', {\n                        parameters: {\n                            quote_id: id,\n                            rule_id: " . $model->getId() . "\n                        },\n                        onSuccess: function(response) {\n                            btn.removeAttribute('disabled');\n                        }\n                      });\n                }\n                }\n            ";
         $html .= '<script> ' . implode('', $js) . ' </script>';
     }
     return $html;
 }
开发者ID:rcclaudrey,项目名称:dev,代码行数:11,代码来源:Test.php

示例4: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     return $this->getAddCustomMotorsRecordButtonHtml() . $this->getSaveFilterButtonHtml() . parent::getMainButtonsHtml();
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:4,代码来源:Grid.php

示例5: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     return parent::getMainButtonsHtml();
 }
开发者ID:rajarshc,项目名称:Rooja,代码行数:4,代码来源:Points.php

示例6: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     $buttons = parent::getMainButtonsHtml();
     $buttons .= $this->getAddSlideButtonHtml();
     return $buttons;
 }
开发者ID:zaiats85,项目名称:blacknwhite,代码行数:6,代码来源:Slide.php

示例7: getMainButtonsHtml

 /**
  * Retrieve the main buttons html
  *
  * @return string
  */
 public function getMainButtonsHtml()
 {
     return parent::getMainButtonsHtml() . $this->getChildHtml('add_button');
 }
开发者ID:igorvasiliev4,项目名称:magento_code,代码行数:9,代码来源:Grid.php

示例8: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     /* @var $pageHelper Mana_Admin_Helper_Page */
     $pageHelper = Mage::helper('mana_admin/page');
     return $pageHelper->getActionHtml($this) . parent::getMainButtonsHtml();
 }
开发者ID:axovel,项目名称:easycarcare,代码行数:6,代码来源:Grid.php

示例9: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     return parent::getMainButtonsHtml() . $this->getChildHtml('send_server_info_button') . $this->getChildHtml('check_updates_button');
 }
开发者ID:commercekitchen,项目名称:dualeyewear-magento,代码行数:4,代码来源:Grid.php

示例10: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $html .= $this->getChildHtml('hide_button');
     return $html;
 }
开发者ID:jsiefer,项目名称:emarketing,代码行数:6,代码来源:Grid.php

示例11: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $html = $this->getTemplatesSelectHtml() . $this->getImportButtonHtml() . $html;
     return $html;
 }
开发者ID:CE-Webmaster,项目名称:CE-Hub,代码行数:6,代码来源:Grid.php

示例12: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $addButton = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('productquestions')->__('Add New'), 'onclick' => 'newPopup()', 'class' => 'scalable add'))->toHtml();
     return $addButton . $html;
 }
开发者ID:ramantalkin,项目名称:tmp01skin,代码行数:6,代码来源:Answer.php

示例13: getMainButtonsHtml

 /**
  * Includes the custom check updates button in the main grid button area.
  *
  * @return string
  */
 public function getMainButtonsHtml()
 {
     return $this->getChildHtml('check_updates_button') . parent::getMainButtonsHtml();
 }
开发者ID:AleksNesh,项目名称:pandora,代码行数:9,代码来源:Grid.php

示例14: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $html = $this->getChildHtml('archive_button') . $html;
     return $html;
 }
开发者ID:jsiefer,项目名称:emarketing,代码行数:6,代码来源:Grid.php

示例15: getMainButtonsHtml

 public function getMainButtonsHtml()
 {
     return $this->getSynchronizeButtonHtml() . parent::getMainButtonsHtml();
 }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:4,代码来源:Adminhtml_Items_Item.php


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