コード例 #1
0
ファイル: Account.php プロジェクト: xiaoguizhidao/ecommerce
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('account');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_common_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');
     //------------------------------
     $this->_addButton('add', array('label' => Mage::helper('M2ePro')->__('Add Account'), 'onclick' => $this->getAddButtonOnClickAction(), 'class' => 'add add-button-drop-down'));
     //------------------------------
 }
コード例 #2
0
 public function __construct()
 {
     parent::__construct();
     // Initialization block
     //------------------------------
     $this->setId('templateSynchronization');
     $this->_blockGroup = 'M2ePro';
     $this->_controller = 'adminhtml_common_template_synchronization';
     //------------------------------
     // Set header text
     //------------------------------
     $this->_headerText = Mage::helper('M2ePro')->__('Synchronization Templates');
     //------------------------------
     // Set buttons actions
     //------------------------------
     $this->removeButton('back');
     $this->removeButton('reset');
     $this->removeButton('delete');
     $this->removeButton('add');
     $this->removeButton('save');
     $this->removeButton('edit');
     //------------------------------
     //------------------------------
     $url = $this->getUrl('*/adminhtml_common_listing/index');
     $this->_addButton('goto_listings', array('label' => Mage::helper('M2ePro')->__('Listings'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'button_link'));
     //------------------------------
     //------------------------------
     $url = $this->getUrl('*/adminhtml_common_synchronization/index');
     $this->_addButton('goto_synchronization', array('label' => Mage::helper('M2ePro')->__('Synchronization Settings'), 'onclick' => 'setLocation(\'' . $url . '\')', 'class' => 'button_link'));
     //------------------------------
     //------------------------------
     $this->_addButton('add', array('label' => Mage::helper('M2ePro')->__('Add Synchronization Template'), 'onclick' => $this->getAddButtonOnClickAction(), 'class' => 'add add-button-drop-down'));
     //------------------------------
 }
コード例 #3
0
 public function getGridHtml()
 {
     $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_template_synchronization_help');
     return $helpBlock->toHtml() . parent::getGridHtml();
 }
コード例 #4
0
ファイル: Account.php プロジェクト: ppkowalski/M2E
 public function getGridHtml()
 {
     $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_account_help');
     return $helpBlock->toHtml() . parent::getGridHtml();
 }