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


PHP Mage_Adminhtml_Block_Widget_Form_Container::getButtonsHtml方法代码示例

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


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

示例1: getButtonsHtml

    public function getButtonsHtml($area = NULL)
    {
        $html = parent::getButtonsHtml($area);
        if ($area != 'footer') {
            return $html;
        }
        $cancelWord = Mage::helper('M2ePro')->__('Cancel');
        // ---------------------------------------
        $callback = 'function(params) { EbayListingSettingsGridHandlerObj.saveSettings(params); }';
        $data = array('class' => 'save', 'label' => Mage::helper('M2ePro')->__('Save'), 'onclick' => 'EbayListingTemplateSwitcherHandlerObj.saveSwitchers(' . $callback . ')');
        $saveButtonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
        // ---------------------------------------
        // ---------------------------------------
        $html .= '<div style="height: 25px;"></div>';
        // ---------------------------------------
        $html .= <<<HTML
<div style="position: absolute; text-align: right; bottom: 0; padding: 10px 0 10px 0; background: #fff; width: 950px;">
    <span style="padding-left: 10px;">
        <a href="javascript:void(0);" onclick="Windows.getFocusedWindow().close();">{$cancelWord}</a>
    </span>
    <span style="padding-left: 10px;">{$saveButtonBlock->toHtml()}</span>
</div>
HTML;
        return $html;
    }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:25,代码来源:Edit.php

示例2: getButtonsHtml

 public function getButtonsHtml($area = null)
 {
     $out = parent::getButtonsHtml($area);
     $sliderId = Mage::registry('advancedslider_slide_data')->getSliderId();
     $slideId = Mage::registry('advancedslider_slide_data')->getSlideId();
     $collection = Mage::getModel('advancedslider/slides')->getCollection()->addFieldToFilter('slider_id', array('eq' => $sliderId))->addFieldToFilter('slide_id', array('neq' => $slideId))->setOrder('sort_order', 'asc');
     $options = array(0 => $this->__('--Go to a Slide--'));
     foreach ($collection as $item) {
         $options[$item->getId()] = $item->getId() . ' / ' . $item->getTitle();
     }
     if (count($options) == 1) {
         return $out;
     }
     $select = Mage::app()->getLayout()->createBlock('core/html_select')->setName('goToSlide')->setId('goToSlide')->setTitle($this->__('Go to a Slide'))->setValue(0)->setOptions($options)->setExtraParams('onchange="setLocation(\'' . Mage::helper('adminhtml')->getUrl('advancedslider/slides/edit', array('id' => '{{id}}')) . '\'.replace(\'{{id}}\', this.options[this.selectedIndex].value));"');
     return $select->getHtml() . $out;
 }
开发者ID:sshegde123,项目名称:wmp8,代码行数:16,代码来源:Edit.php


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