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


PHP Mage_Adminhtml_Block_Widget_Grid_Container::_prepareLayout方法代码示例

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


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

示例1: _prepareLayout

 protected function _prepareLayout()
 {
     if ($head = $this->getLayout()->getBlock('head')) {
         $head->addCss('emjainteractive/accountreceivable/accountreceivable.css');
     }
     return parent::_prepareLayout();
 }
开发者ID:flintdigital,项目名称:mage-mod-ar-po-emja,代码行数:7,代码来源:Accountreceivable.php

示例2: _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();
 }
开发者ID:buttasg,项目名称:cowgirlk,代码行数:12,代码来源:Aoe_Scheduler_Block_Adminhtml_Scheduler.php

示例3: _prepareLayout

 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();
 }
开发者ID:booklein,项目名称:bookle,代码行数:7,代码来源:Comment.php

示例4: _prepareLayout

 protected function _prepareLayout()
 {
     if (!$this->getRequest()->isXmlHttpRequest()) {
         $this->getLayout()->getBlock('head')->addItem('skin_css', 'sagepaysuite/css/sagePaySuite.css');
     }
     return parent::_prepareLayout();
 }
开发者ID:xiaoguizhidao,项目名称:mydigibits,代码行数:7,代码来源:Fraud.php

示例5: _prepareLayout

 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();
 }
开发者ID:TusharKDonda,项目名称:maruti,代码行数:7,代码来源:Rule.php

示例6: _prepareLayout

 protected function _prepareLayout()
 {
     parent::_prepareLayout();
     if (!$this->getRequest()->isXmlHttpRequest()) {
         $this->getLayout()->getBlock('head')->addItem('skin_js', 'mailchimp/MailChimp.js');
     }
 }
开发者ID:votanlean,项目名称:Magento-Pruebas,代码行数:7,代码来源:WebHooks.php

示例7: _prepareLayout

 /**
  * 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();
 }
开发者ID:digitalpianism,项目名称:abandonedcarts,代码行数:11,代码来源:Abandonedcarts.php

示例8: _prepareLayout

 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();
 }
开发者ID:TusharKDonda,项目名称:maruti,代码行数:8,代码来源:Product.php

示例9: _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));
 }
开发者ID:ankita-parashar,项目名称:magento,代码行数:8,代码来源:ICC_Ecodes_Block_Adminhtml_Customer_Edit_Tab_Premium.php

示例10: _prepareLayout

 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();
 }
开发者ID:cnglobal-sl,项目名称:caterez,代码行数:8,代码来源:Main.php

示例11: _prepareLayout

 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();
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:9,代码来源:Export.php

示例12: _prepareLayout

 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;
 }
开发者ID:swnsma,项目名称:practice,代码行数:9,代码来源:News.php

示例13: _prepareLayout

 /**
  * @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();
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:13,代码来源:Reminder.php

示例14: _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();
 }
开发者ID:hunnybohara,项目名称:magento-chinese-localization,代码行数:11,代码来源:Store.php

示例15: _prepareLayout

 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();
 }
开发者ID:macosxvn,项目名称:techheroes,代码行数:12,代码来源:Cat.php


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