コード例 #1
0
ファイル: Account.php プロジェクト: xiaoguizhidao/beut
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('account');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_account';
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Accounts');
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     if (Mage::helper('M2ePro/Component_Ebay')->isActive()) {
         $this->_addButton('goto_general_templates', array('label' => Mage::helper('M2ePro')->__('General Templates'), 'onclick' => 'setLocation(\'' . $this->getUrl("*/adminhtml_template_general/index") . '\')', 'class' => 'button_link'));
     }
     $this->_addButton('add', array('label' => Mage::helper('M2ePro')->__('Add Account'), 'onclick' => $this->getAddButtonOnClickAction(), 'class' => 'add add-button-drop-down'));
     //------------------------------
 }
コード例 #2
0
ファイル: SellingFormat.php プロジェクト: xiaoguizhidao/beut
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('templateSellingFormat');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_template_sellingFormat';
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Selling Format Templates');
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     $this->_addButton('goto_listings', array('label' => Mage::helper('M2ePro')->__('Listings'), 'onclick' => 'setLocation(\'' . $this->getUrl("*/adminhtml_listing/index") . '\')', 'class' => 'button_link'));
     $this->_addButton('add', array('label' => Mage::helper('M2ePro')->__('Add Selling Format Template'), 'onclick' => $this->getAddButtonOnClickAction(), 'class' => 'add add-button-drop-down'));
     //------------------------------
 }