本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Container::_prepareLayout方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Container::_prepareLayout方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Container::_prepareLayout怎么用?PHP Mage_Adminhtml_Block_Widget_Container::_prepareLayout使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Container
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Container::_prepareLayout方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _prepareLayout
/**
* Prepare URL rewrite editing layout
*
* @return Mage_Adminhtml_Block_Urlrewrite_Edit
*/
protected function _prepareLayout()
{
$this->setTemplate('urlrewrite/edit.phtml');
$this->_addBackButton();
$this->_prepareLayoutFeatures();
return parent::_prepareLayout();
}
示例2: _prepareLayout
/**
* Create buttons
* TODO: implement ACL restrictions
* @return Mage_Sales_Block_Adminhtml_Recurring_Profile_View
*/
protected function _prepareLayout()
{
$this->_addButton('back', array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => "setLocation('{$this->getUrl('*/*/')}')", 'class' => 'back'));
$profile = Mage::registry('current_recurring_profile');
$comfirmationMessage = Mage::helper('sales')->__('Are you sure you want to do this?');
// cancel
if ($profile->canCancel()) {
$url = $this->getUrl('*/*/updateState', array('profile' => $profile->getId(), 'action' => 'cancel'));
$this->_addButton('cancel', array('label' => Mage::helper('sales')->__('Cancel'), 'onclick' => "confirmSetLocation('{$comfirmationMessage}', '{$url}')", 'class' => 'delete'));
}
// suspend
if ($profile->canSuspend()) {
$url = $this->getUrl('*/*/updateState', array('profile' => $profile->getId(), 'action' => 'suspend'));
$this->_addButton('suspend', array('label' => Mage::helper('sales')->__('Suspend'), 'onclick' => "confirmSetLocation('{$comfirmationMessage}', '{$url}')", 'class' => 'delete'));
}
// activate
if ($profile->canActivate()) {
$url = $this->getUrl('*/*/updateState', array('profile' => $profile->getId(), 'action' => 'activate'));
$this->_addButton('activate', array('label' => Mage::helper('sales')->__('Activate'), 'onclick' => "confirmSetLocation('{$comfirmationMessage}', '{$url}')", 'class' => 'add'));
}
// get update
if ($profile->canFetchUpdate()) {
$url = $this->getUrl('*/*/updateProfile', array('profile' => $profile->getId()));
$this->_addButton('update', array('label' => Mage::helper('sales')->__('Get Update'), 'onclick' => "confirmSetLocation('{$comfirmationMessage}', '{$url}')", 'class' => 'add'));
}
return parent::_prepareLayout();
}
示例3: _prepareLayout
protected function _prepareLayout()
{
$this->_addButton('back_button', array('label' => Mage::helper('seosuite')->__('Back'), 'onclick' => "setLocation('{$this->getUrl('*/*/index')}')", 'class' => 'back'));
$this->_addButton('generate', array('label' => Mage::helper('seosuite')->__('Generate'), 'onclick' => "setLocation('{$this->getUrl('*/*/generate')}')", 'class' => 'generate'));
$this->setChild('grid', $this->getLayout()->createBlock('mageworx/seosuite_report_product_duplicate_view_grid', 'seosuite.report.product.duplicate.view.grid'));
return parent::_prepareLayout();
}
示例4: _prepareLayout
protected function _prepareLayout()
{
if ($this->_blockGroup && $this->_controller && $this->_mode) {
$this->setChild('form', $this->getLayout()->createBlock($this->_blockGroup . '_Block_' . str_replace(' ', '_', ucwords(str_replace('_', ' ', $this->_controller . '_' . $this->_mode))) . '_Form'));
}
return parent::_prepareLayout();
}
示例5: _prepareLayout
protected function _prepareLayout()
{
if ($this->_blockGroup && $this->_controller && $this->_mode) {
$this->setChild('form', $this->getLayout()->createBlock($this->_blockGroup . '/' . $this->_controller . '_' . $this->_mode . '_form'));
}
return parent::_prepareLayout();
}
示例6: _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();
}
示例7: _prepareLayout
protected function _prepareLayout()
{
$��� = $this->{"_getSlider"}()->{"getStyle"}();
switch ($���) {
case WP_AdvancedSlider_Model_Source_Style::STYLE_STANDARD:
$���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(115) . chr(116) . chr(97) . chr(110) . chr(100) . chr(97) . chr(114) . chr(100));
break;
case WP_AdvancedSlider_Model_Source_Style::STYLE_NICOLE:
$���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(110) . chr(105) . chr(99) . chr(111) . chr(108) . chr(101));
break;
case WP_AdvancedSlider_Model_Source_Style::STYLE_KRISTA:
$���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(107) . chr(114) . chr(105) . chr(115) . chr(116) . chr(97));
break;
case WP_AdvancedSlider_Model_Source_Style::STYLE_XANDRA:
$���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(120) . chr(97) . chr(110) . chr(100) . chr(114) . chr(97));
break;
case WP_AdvancedSlider_Model_Source_Style::STYLE_TRISHA:
$���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(116) . chr(114) . chr(105) . chr(115) . chr(104) . chr(97));
break;
case WP_AdvancedSlider_Model_Source_Style::STYLE_SAMANTA:
$���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(115) . chr(97) . chr(109) . chr(97) . chr(110) . chr(116) . chr(97));
break;
case WP_AdvancedSlider_Model_Source_Style::STYLE_AMANDA:
$���� = $this->{"getLayout"}()->{"createBlock"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(114) . chr(47) . chr(97) . chr(100) . chr(109) . chr(105) . chr(110) . chr(104) . chr(116) . chr(109) . chr(108) . chr(95) . chr(115) . chr(108) . chr(105) . chr(100) . chr(101) . chr(115) . chr(95) . chr(101) . chr(100) . chr(105) . chr(116) . chr(95) . chr(116) . chr(97) . chr(98) . chr(95) . chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(97) . chr(109) . chr(97) . chr(110) . chr(100) . chr(97));
break;
}
if ($this->{"_getSlide"}()->{"getId"}()) {
$����� = unserialize($this->{"_getSlide"}()->{"getStyleOptions"}());
$����->{"setOptions"}($�����);
} else {
$����->{"setOptionsDefault"}();
}
$this->{"setChild"}(chr(97) . chr(100) . chr(118) . chr(97) . chr(110) . chr(99) . chr(101) . chr(100) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115), $����);
return parent::_prepareLayout();
}
示例8: _prepareLayout
protected function _prepareLayout()
{
if ($this->_blockGroup && $this->_controller) {
$this->setChild('form', $this->getLayout()->createBlock($this->_blockGroup . '/' . $this->_controller . '_' . $this->_mode . 'form'));
}
return Mage_Adminhtml_Block_Widget_Container::_prepareLayout();
}
示例9: _prepareLayout
/**
* Prepare buttons.
*
* @return Mage_Core_Block_Abstract
*/
protected function _prepareLayout()
{
$this->addButton('back_button', array('label' => $this->__('Back'), 'onclick' => 'setLocation(\'' . $this->getBackButtonUrl() . '\')', 'class' => 'back'));
$this->addButton('reset_button', array('label' => $this->__('Reset'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/*', array('_current' => true)) . '\')', 'class' => 'reset'));
$this->addButton('save_button', array('label' => $this->__('Save'), 'onclick' => 'attributeValueForm.submit();', 'class' => 'save'));
$this->addButton('save_and_continue_button', array('label' => $this->__('Save and Continue Edit'), 'onclick' => 'attributeValueForm.submit(\'' . $this->getSaveAndContinueUrl() . '\');', 'class' => 'save'));
return parent::_prepareLayout();
}
示例10: _prepareLayout
/**
* Prepare button and grid
*
* @return Reea_Entries_Block_Adminhtml_Entry_Grid
*/
protected function _prepareLayout()
{
$l_sAttributeSetName = 'pdf_catalogues';
$l_iAttributeSetId = Mage::getModel('eav/entity_attribute_set')->load($l_sAttributeSetName, 'attribute_set_name')->getAttributeSetId();
$this->_addButton('add_new', array('label' => Mage::helper('catalog')->__('Add New Pdf Catalogue'), 'onclick' => "setLocation('{$this->getUrl('*/*/new', array('set' => $l_iAttributeSetId, 'type' => 'simple'))}')", 'class' => 'add'));
$this->setChild('grid', $this->getLayout()->createBlock('reea_entries/adminhtml_entrypdf_grid', 'entry.grid'));
return parent::_prepareLayout();
}
示例11: _prepareLayout
protected function _prepareLayout()
{
$selected = $this->getData('selected_categories');
$uniqId = Mage::helper('core')->uniqHash('categories') . 'Tree';
$categoriesTree = $this->getLayout()->createBlock('advancedslider/adminhtml_widget_categorychooser')->setId($uniqId)->setSelectedCategories($selected);
$this->setChild('categories', $categoriesTree);
return parent::_prepareLayout();
}
示例12: _prepareLayout
protected function _prepareLayout()
{
parent::_prepareLayout();
/* @var $layoutHelper Mana_Core_Helper_Layout */
$layoutHelper = Mage::helper('mana_core/layout');
$layoutHelper->delayPrepareLayout($this, 10000);
return $this;
}
示例13: _prepareLayout
/**
* Prepare button and grid
*
* @return Mage_Adminhtml_Block_Catalog_Product
*/
protected function _prepareLayout()
{
$this->_addButton('add_new', array('label' => Mage::helper('catalog')->__('Add Product'), 'onclick' => "setLocation('{$this->getUrl('*/*/new')}')", 'class' => 'add'));
$this->_addButton('update_zip', array('label' => Mage::helper('catalog')->__('Update Products Zip Codes'), 'onclick' => "setLocation('{$this->getUrl('*/*/update_zip')}')", 'class' => 'add'));
$this->_addButton('update_stock', array('label' => Mage::helper('catalog')->__('Update Stock'), 'onclick' => "setLocation('{$this->getUrl('*/*/update_vendor_stock')}')", 'class' => 'add'));
$this->setChild('grid', $this->getLayout()->createBlock('adminhtml/catalog_product_grid', 'product.grid'));
return parent::_prepareLayout();
}
示例14: _prepareLayout
protected function _prepareLayout()
{
$this->_addButton('generate', array('label' => Mage::helper('seosuite')->__('Generate'), 'onclick' => "setLocation('{$this->getUrl('*/*/generate')}')", 'class' => 'generate'));
if (!Mage::app()->getRequest()->getParam('store')) {
Mage::app()->getRequest()->setParam('store', 1);
}
$this->setChild('grid', $this->getLayout()->createBlock('mageworx/seosuite_report_cms_grid', 'seosuite.report.cms.grid'));
return parent::_prepareLayout();
}
示例15: _prepareLayout
protected function _prepareLayout()
{
/* Add website button */
$this->_addButton('add', array('label' => Mage::helper('core')->__('Create Website'), 'onclick' => 'setLocation(\'' . $this->getUrl('*/*/newWebsite') . '\')', 'class' => 'add'));
/* 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();
}