本文整理汇总了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();
}
示例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();
}
示例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();
}
示例4: _prepareLayout
protected function _prepareLayout()
{
if (!$this->getRequest()->isXmlHttpRequest()) {
$this->getLayout()->getBlock('head')->addItem('skin_css', 'sagepaysuite/css/sagePaySuite.css');
}
return parent::_prepareLayout();
}
示例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();
}
示例6: _prepareLayout
protected function _prepareLayout()
{
parent::_prepareLayout();
if (!$this->getRequest()->isXmlHttpRequest()) {
$this->getLayout()->getBlock('head')->addItem('skin_js', 'mailchimp/MailChimp.js');
}
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}