protected function _prepareLayout()
 {
     if ($head = $this->getLayout()->getBlock('head')) {
         $head->addCss('emjainteractive/accountreceivable/accountreceivable.css');
     }
     return parent::_prepareLayout();
 }
 /**
  * Prepare layout
  *
  * @return Aoe_Scheduler_Block_Adminhtml_Cron
  */
 protected function _prepareLayout()
 {
     $this->removeButton('add');
     $this->_addButton('add_new', array('label' => Mage::helper('aoe_scheduler')->__('Generate Schedule'), 'onclick' => "setLocation('{$this->getUrl('*/*/generateSchedule')}')"));
     $this->_addButton('configure', array('label' => Mage::helper('aoe_scheduler')->__('Cron Configuration'), 'onclick' => "setLocation('{$this->getUrl('adminhtml/system_config/edit', array('section' => 'system'))}#system_cron')"));
     return parent::_prepareLayout();
 }
Пример #3
0
 protected function _prepareLayout()
 {
     $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('ves_blog')->__('Add Record'), 'onclick' => "setLocation('" . $this->getUrl('*/*/add') . "')", 'class' => 'add')));
     $this->setChild('import_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('ves_blog')->__('Import CSV'), 'onclick' => "setLocation('" . $this->getUrl('*/*/uploadCsv') . "')", 'class' => 'add')));
     $this->setChild('grid', $this->getLayout()->createBlock('ves_blog/adminhtml_comment_grid', 'comment.grid'));
     return parent::_prepareLayout();
 }
Пример #4
0
 protected function _prepareLayout()
 {
     if (!$this->getRequest()->isXmlHttpRequest()) {
         $this->getLayout()->getBlock('head')->addItem('skin_css', 'sagepaysuite/css/sagePaySuite.css');
     }
     return parent::_prepareLayout();
 }
Пример #5
0
 protected function _prepareLayout()
 {
     $this->_addButton('apply_rules', array('label' => Mage::helper('catalog')->__('Apply Rules'), 'onclick' => "setLocation('{$this->getUrl('*/*/applyRules')}')", 'class' => 'add'));
     $this->_addButton('add_new', array('label' => Mage::helper('catalog')->__('Import CSV'), 'onclick' => "setLocation('{$this->getUrl('*/*/uploadCsv')}')", 'class' => 'add'));
     $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/catalog_product_grid', 'product.grid'));
     return parent::_prepareLayout();
 }
Пример #6
0
 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if (!$this->getRequest()->isXmlHttpRequest()) {
         $this->getLayout()->getBlock('head')->addItem('skin_js', 'mailchimp/MailChimp.js');
     }
 }
 /**
  * Prepare the layout
  */
 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();
 }
Пример #8
0
 protected function _prepareLayout()
 {
     $this->_removeButton('add');
     $id = $this->getRequest()->getParam('id');
     $this->_addButton('back', array('label' => Mage::helper('catalog')->__('Back'), 'onclick' => "setLocation('{$this->getUrl('*/productlist/index')}')", 'class' => 'back'));
     $this->_addButton('save_position', array('label' => Mage::helper('productlist')->__('Save Position'), 'onclick' => "savePosition('{$this->getUrl('*/*/savePosition', array('id' => $id))}')", 'class' => 'save'));
     return parent::_prepareLayout();
 }
 protected function _prepareLayout()
 {
     //die;
     //echo  $this->_blockGroup.'/' . $this->_controller . '_grid';
     //die;
     return parent::_prepareLayout();
     $this->setChild('grid', $this->getLayout()->createBlock($this->_blockGroup . '/' . $this->_controller . '_grid', $this->_controller . '.grid')->setSaveParametersInSession(true));
 }
Пример #10
0
 protected function _prepareLayout()
 {
     $this->setChild('back_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('approveorder')->__('Back'), 'onclick' => "setLocation('" . $this->getUrl('*/*/index') . "')", 'class' => 'back')));
     $this->setChild('view_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('approveorder')->__('View Statistic Page'), 'onclick' => "setLocation('" . $this->getUrl('*/*/view') . "')", 'class' => 'task')));
     $this->setChild('grid', $this->getLayout()->createBlock('approveorder/adminhtml_main_grid'));
     //$this->setChild('statistic', $this->getLayout()->createBlock('approveorder/adminhtml_main_statistic'));
     return parent::_prepareLayout();
 }
Пример #11
0
 protected function _prepareLayout()
 {
     // Remove add button
     $this->_removeButton('add');
     // Add export all button
     $this->_addButton('exportall', array('label' => 'Export Baseline Feeds For All Sites', 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/exportall') . '\')', 'class' => 'exportall'));
     // Call parent
     return parent::_prepareLayout();
 }
Пример #12
0
 protected function _prepareLayout()
 {
     $return = parent::_prepareLayout();
     if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
         $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
         $this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
     }
     return $return;
 }
Пример #13
0
 /**
  * @return Mage_Core_Block_Abstract
  */
 protected function _prepareLayout()
 {
     if (!Mage::helper('bronto_reminder')->isEnabledForAny()) {
         return parent::_prepareLayout();
     }
     if (Mage::helper('bronto_reminder')->isLogEnabled()) {
         $this->_addButton('log_button', array('label' => Mage::helper('adminhtml')->__('Delivery Log'), 'onclick' => "setLocation('{$this->getLogUrl()}')", 'class' => 'go'), 0, 1);
     }
     return parent::_prepareLayout();
 }
 protected function _prepareLayout()
 {
     /* Update default add button to add website button */
     $this->_updateButton('add', 'label', Mage::helper('core')->__('Create Website'));
     $this->_updateButton('add', 'onclick', "setLocation('" . $this->getUrl('*/*/newWebsite') . "')");
     /* Add Store Group button */
     $this->_addButton('add_group', array('label' => Mage::helper('core')->__('Create Store'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/newGroup') . '\')', 'class' => 'add'));
     /* Add Store button */
     $this->_addButton('add_store', array('label' => Mage::helper('core')->__('Create Store View'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/newStore') . '\')', 'class' => 'add'));
     return parent::_prepareLayout();
 }
Пример #15
0
 protected function _prepareLayout()
 {
     $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('blog')->__('Add Category'), '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('blog/manage_cat_grid', 'blog.grid'));
     return parent::_prepareLayout();
 }
Пример #16
0
 protected function _prepareLayout()
 {
     $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('ves_verticalmenu')->__('Add Verticalmenu'), 'onclick' => "setLocation('" . $this->getUrl('*/*/add') . "')", 'class' => 'add')));
     $this->setChild('importcsv', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('ves_verticalmenu')->__('Import CSV'), 'onclick' => 'setLocation(\'' . $this->getImportUrl() . '\')', 'class' => 'import')));
     /**
      * 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('ves_verticalmenu/adminhtml_verticalmenu_grid', 'verticalmenu.grid'));
     return parent::_prepareLayout();
 }
Пример #17
0
 protected function _prepareLayout()
 {
     // Remove add button
     $this->_removeButton('add');
     // Add refesh button
     $this->_addButton('refresh', array('label' => Mage::helper("mybuys")->__("Refresh"), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/index') . '\')', 'class' => 'refresh'));
     // Add export all button
     $this->_addButton('exportall', array('label' => Mage::helper("mybuys")->__("Export Baseline Feeds For All Sites"), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/exportall') . '\')', 'class' => 'exportall'));
     // Add purge all jobs button
     $this->_addButton('deleteall', array('label' => Mage::helper("mybuys")->__("Purge Job Queue"), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/purgeall') . '\')', 'class' => 'purgeall'));
     // Call parent
     return parent::_prepareLayout();
 }
Пример #18
0
 protected function _prepareLayout()
 {
     //		$block = $this->getLayout()->createBlock(
     //            'Mage_Core_Block_Template',
     //            'my_block_name_here',
     //            array('template' => 'widget/grid.phtml')
     //        );
     //
     //        if ($block){
     //            $this->getLayout()->getBlock('content')->insert($block)->toHtml();
     //        }else{
     //            echo "no block";
     //        }
     parent::_prepareLayout();
 }
Пример #19
0
 protected function _prepareLayout()
 {
     $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('ves_blog')->__('Add Record'), 'onclick' => "setLocation('" . $this->getUrl('*/*/add') . "')", 'class' => 'add')));
     $this->setChild('mass_rewrite_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('ves_blog')->__('Mass Generate Rewrite URLs'), 'onclick' => "setLocation('" . $this->getUrl('*/*/massRewrite') . "')", 'class' => 'mass')));
     /**
      * 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('ves_blog/adminhtml_category_grid', 'category.grid'));
     return parent::_prepareLayout();
 }
Пример #20
0
 protected function _prepareLayout()
 {
     $this->getLayout()->getBlock('head')->addJs('M2ePro/Plugin/DropDown.js')->addCss('M2ePro/css/Plugin/DropDown.css');
     return parent::_prepareLayout();
 }
 protected function _prepareLayout()
 {
     $this->_removeButton('add');
     return parent::_prepareLayout();
 }
Пример #22
0
 protected function _prepareLayout()
 {
     $this->setChild('grid', $this->getLayout()->createBlock($this->_blockGroup . '/' . $this->_controller . '_grid', $this->_controller . '.grid'));
     parent::_prepareLayout();
 }
Пример #23
0
 protected function _prepareLayout()
 {
     $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher')->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*', array('store' => null)))->setTemplate('report/store/switcher.phtml'));
     return parent::_prepareLayout();
 }
Пример #24
0
 /**
  * Prepare layout
  * Add new button
  *
  * @return Mage_Adminhtml_Block_Widget_Grid_Container
  */
 protected function _prepareLayout()
 {
     $this->_addButton('add_new', array('label' => $this->__('Add New Template'), 'onclick' => "setLocation('{$this->getUrl('*/*/newTemplate')}')", 'class' => 'add'));
     return parent::_prepareLayout();
 }
Пример #25
0
 protected function _prepareLayout()
 {
     #Mage::Log("in Rrap_Corporate_Block_Adminhtml_Corporate:_prepareLayout");
     $this->setChild('grid', $this->getLayout()->createBlock($this->_blockGroup . '/' . $this->_controller . '_grid', $this->_controller . '.grid')->setSaveParametersInSession(true));
     return parent::_prepareLayout();
 }
Пример #26
0
 protected function _prepareLayout()
 {
     $this->setChild('store_switcher', $this->getLayout()->createBlock('adminhtml/store_switcher', 'store_switcher')->setUseConfirm(false));
     return parent::_prepareLayout();
 }
 protected function _prepareLayout()
 {
     $this->_headerText = Mage::helper('collpur/adminhtml_deals')->process('headerText');
     return parent::_prepareLayout();
 }
Пример #28
0
 protected function _prepareLayout()
 {
     $script = "\n            if (confirm('" . Mage::helper('amsmtp')->__('Are you sure?') . "'))\n                window.location.href='" . $this->getUrl('adminhtml/amsmtp/clearlog') . "';\n        ";
     $this->addButton('clear', array('label' => Mage::helper('amsmtp')->__('Clear Sent Emails Log'), 'onclick' => $script, 'class' => 'delete'));
     return parent::_prepareLayout();
 }
Пример #29
0
 protected function _prepareLayout()
 {
     $this->setChild('add_new_button', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('smvendors')->__('Add New Page'), 'onclick' => "setLocation('" . $this->getUrl('*/*/add') . "')", 'class' => 'add')));
     $this->setChild('grid', $this->getLayout()->createBlock('smvendors/adminhtml_page_grid', 'page.grid'));
     return parent::_prepareLayout();
 }
Пример #30
0
 protected function _prepareLayout()
 {
     $this->setChild('settings_grid', $this->getLayout()->createBlock('magicslideshow/adminhtml_settings_grid', 'magicslideshow.grid'));
     $this->setChild('custom_design_settings_form', $this->getLayout()->createBlock('magicslideshow/adminhtml_settings_form', 'magicslideshow.form'));
     return parent::_prepareLayout();
 }