예제 #1
0
파일: Points.php 프로젝트: rajarshc/Rooja
 protected function _prepareLayout()
 {
     //Display store switcher if system has more one store
     if (!Mage::app()->isSingleStoreMode()) {
         $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null))));
     }
     return parent::_prepareLayout();
 }
예제 #2
0
파일: Transfer.php 프로젝트: rajarshc/Rooja
 protected function _prepareLayout()
 {
     $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('rewards')->__('Create New Transfer'), 'onclick' => "setLocation('" . $this->getUrl('*/*/new') . "')", 'class' => 'add')));
     /**
      * Display store switcher if system has more one store
      */
     if (!Mage::app()->isSingleStoreMode()) {
         $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null))));
     }
     $this->setChild('grid', $this->getLayout()->createBlock('rewards/manage_transfer_grid', 'transfer.grid'));
     return parent::_prepareLayout();
 }