本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4: getMainButtonsHtml
public function getMainButtonsHtml()
{
return $this->getAddCustomMotorsRecordButtonHtml() . $this->getSaveFilterButtonHtml() . parent::getMainButtonsHtml();
}
示例5: getMainButtonsHtml
public function getMainButtonsHtml()
{
return parent::getMainButtonsHtml();
}
示例6: getMainButtonsHtml
public function getMainButtonsHtml()
{
$buttons = parent::getMainButtonsHtml();
$buttons .= $this->getAddSlideButtonHtml();
return $buttons;
}
示例7: getMainButtonsHtml
/**
* Retrieve the main buttons html
*
* @return string
*/
public function getMainButtonsHtml()
{
return parent::getMainButtonsHtml() . $this->getChildHtml('add_button');
}
示例8: getMainButtonsHtml
public function getMainButtonsHtml()
{
/* @var $pageHelper Mana_Admin_Helper_Page */
$pageHelper = Mage::helper('mana_admin/page');
return $pageHelper->getActionHtml($this) . parent::getMainButtonsHtml();
}
示例9: getMainButtonsHtml
public function getMainButtonsHtml()
{
return parent::getMainButtonsHtml() . $this->getChildHtml('send_server_info_button') . $this->getChildHtml('check_updates_button');
}
示例10: getMainButtonsHtml
public function getMainButtonsHtml()
{
$html = parent::getMainButtonsHtml();
$html .= $this->getChildHtml('hide_button');
return $html;
}
示例11: getMainButtonsHtml
public function getMainButtonsHtml()
{
$html = parent::getMainButtonsHtml();
$html = $this->getTemplatesSelectHtml() . $this->getImportButtonHtml() . $html;
return $html;
}
示例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;
}
示例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();
}
示例14: getMainButtonsHtml
public function getMainButtonsHtml()
{
$html = parent::getMainButtonsHtml();
$html = $this->getChildHtml('archive_button') . $html;
return $html;
}
示例15: getMainButtonsHtml
public function getMainButtonsHtml()
{
return $this->getSynchronizeButtonHtml() . parent::getMainButtonsHtml();
}