示例#1
0
文件: Grid.php 项目: bevello/bevello
 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;
 }
示例#2
0
文件: Rma.php 项目: rcclaudrey/dev
 public function getMainButtonsHtml()
 {
     $hlr = Mage::helper('amrma');
     $html = parent::getMainButtonsHtml();
     if ($hlr->canCreateRma($this->getOrder()->getEntityId())) {
         $html .= $this->getChildHtml('add_button');
     }
     return $html;
 }
示例#3
0
文件: Test.php 项目: rcclaudrey/dev
 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;
 }
示例#4
0
 public function getMainButtonsHtml()
 {
     return $this->getAddCustomMotorsRecordButtonHtml() . $this->getSaveFilterButtonHtml() . parent::getMainButtonsHtml();
 }
示例#5
0
文件: Points.php 项目: rajarshc/Rooja
 public function getMainButtonsHtml()
 {
     return parent::getMainButtonsHtml();
 }
示例#6
0
 public function getMainButtonsHtml()
 {
     $buttons = parent::getMainButtonsHtml();
     $buttons .= $this->getAddSlideButtonHtml();
     return $buttons;
 }
示例#7
0
 /**
  * Retrieve the main buttons html
  *
  * @return string
  */
 public function getMainButtonsHtml()
 {
     return parent::getMainButtonsHtml() . $this->getChildHtml('add_button');
 }
示例#8
0
 public function getMainButtonsHtml()
 {
     /* @var $pageHelper Mana_Admin_Helper_Page */
     $pageHelper = Mage::helper('mana_admin/page');
     return $pageHelper->getActionHtml($this) . parent::getMainButtonsHtml();
 }
 public function getMainButtonsHtml()
 {
     return parent::getMainButtonsHtml() . $this->getChildHtml('send_server_info_button') . $this->getChildHtml('check_updates_button');
 }
示例#10
0
 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $html .= $this->getChildHtml('hide_button');
     return $html;
 }
示例#11
0
 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $html = $this->getTemplatesSelectHtml() . $this->getImportButtonHtml() . $html;
     return $html;
 }
示例#12
0
 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;
 }
示例#13
0
 /**
  * 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();
 }
示例#14
0
 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $html = $this->getChildHtml('archive_button') . $html;
     return $html;
 }
 public function getMainButtonsHtml()
 {
     return $this->getSynchronizeButtonHtml() . parent::getMainButtonsHtml();
 }
示例#16
0
 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $html .= $this->getAddfilterButtonHtml();
     return $html;
 }
示例#17
0
 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $html .= $this->getChildHtml('new_dRule');
     return $html;
 }
示例#18
0
文件: Grid.php 项目: rajarshc/Rooja
 public function getMainButtonsHtml()
 {
     return $this->getClearSelectionsButtonHtml() . parent::getMainButtonsHtml();
 }
示例#19
0
 public function getMainButtonsHtml()
 {
     return $this->getRefreshButtonHtml() . parent::getMainButtonsHtml();
 }
示例#20
0
 public function getMainButtonsHtml()
 {
     return parent::getMainButtonsHtml() . $this->getChildHtml('web_to_print_source_button');
 }
示例#21
0
 public function getMainButtonsHtml()
 {
     $html = $this->getChildHtml('update_stock');
     $html .= parent::getMainButtonsHtml();
     return $html;
 }
示例#22
0
 public function getMainButtonsHtml()
 {
     $html = parent::getMainButtonsHtml();
     $html .= $this->getButtonHtml(Mage::helper('catalog')->__('Create Empty'), 'superProduct.createEmptyProduct()', 'add');
     if ($product = $this->_getProduct()->getId()) {
     }
     $html .= $this->getButtonHtml(Mage::helper('catalog')->__('Create From Configurable'), 'superProduct.createNewProduct()', 'add');
     return $html;
 }
示例#23
0
 public function getMainButtonsHtml()
 {
     $url = $this->getUrl('*/adminhtml_ebay_template_general/edit', array('id' => $this->getRequest()->getParam('general_template_id'), 'tab' => 'specific'));
     $buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'change_motors_specifics_attribute', 'label' => Mage::helper('M2ePro')->__('Change Compatibility Attribute'), 'onclick' => 'window.open(\'' . $url . '\', \'_blank\')', 'class' => 'button_link'));
     return $buttonBlock->toHtml() . parent::getMainButtonsHtml();
 }