/** * 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(); }
/** * 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(); }
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(); }
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(); }
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(); }
/** * 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(); }
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(); }
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(); }
/** * 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(); }
/** * 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(); }
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(); }
protected function _prepareLayout() { parent::_prepareLayout(); /* @var $layoutHelper Mana_Core_Helper_Layout */ $layoutHelper = Mage::helper('mana_core/layout'); $layoutHelper->delayPrepareLayout($this, 10000); return $this; }
/** * 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(); }
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(); }
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(); }
/** * Prepare button and grid * * @return Reea_Entries_Block_Adminhtml_Entry_Grid */ protected function _prepareLayout() { $l_sAttributeSetName = 'Entry'; $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 Entry'), 'onclick' => "setLocation('{$this->getUrl('*/*/new', array('set' => $l_iAttributeSetId, 'type' => 'simple'))}')", 'class' => 'add')); $this->_addButton('edit_multiple_entries', array('label' => Mage::helper('catalog')->__('View Multiple Entries List'), 'onclick' => "setLocation('{$this->getUrl('*/adminhtml_multiple/index')}')", 'class' => 'navigation')); $this->_addButton('view_email_to_a_friend_list', array('label' => Mage::helper('catalog')->__('View Email To A Client List'), 'onclick' => "Reea.EmailToAFriend.viewList();", 'class' => 'navigation')); $this->setChild('grid', $this->getLayout()->createBlock('reea_entries/adminhtml_entry_grid', 'entry.grid')); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->_addButton('add_new', array('label' => Mage::helper('catalog')->__('Add Product'), 'onclick' => "setLocation('{$this->getUrl('*/*/new')}')", 'class' => 'add')); if (Mage::getSingleton('admin/session')->isAllowed('admin/bizilent_magerpsync')) { $this->_addButton('export_product', array('label' => Mage::helper('catalog')->__('Export All Products'), 'class' => 'export_all_product add')); $this->_addButton('export_category', array('label' => Mage::helper('catalog')->__('Export All Categories'), 'class' => 'export_all_category add')); } $this->setChild('grid', $this->getLayout()->createBlock('adminhtml/catalog_product_grid', 'product.grid')); return parent::_prepareLayout(); }
protected function _prepareLayout() { //$this->_addButton('add_new', array( // 'label' => Mage::helper('managebrands')->__('Add New Brand'), // 'onclick' => "setLocation('{$this->getUrl('*/*/new')}')", // 'class' => 'add' //)); $this->setChild('grid', $this->getLayout()->createBlock('managebrands/adminhtml_managebrands_grid', 'managebrands.grid')); return parent::_prepareLayout(); }
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')); /** @var $tabs Xcom_Mapping_Block_Adminhtml_Attribute_Tabs */ $tabs = $this->getLayout()->getBlock('map_attribute_tabs'); if ($tabs) { $tabs->addTab('attribute_set', array('label' => $this->__('Map Attribute'))); } return parent::_prepareLayout(); }
/** * Set header text, add some buttons * * @return Enterprise_Invitation_Block_Adminhtml_Invitation_View */ protected function _prepareLayout() { $invitation = $this->getInvitation(); $this->_headerText = Mage::helper('enterprise_invitation')->__('View Invitation for %s (ID: %s)', $invitation->getEmail(), $invitation->getId()); $this->_addButton('back', array('label' => Mage::helper('enterprise_invitation')->__('Back'), 'onclick' => "setLocation('{$this->getUrl('*/*/')}')", 'class' => 'back'), -1); if ($invitation->canBeCanceled()) { $massCancelUrl = $this->getUrl('*/*/massCancel', array('_query' => array('invitations' => array($invitation->getId())))); $this->_addButton('cancel', array('label' => Mage::helper('enterprise_invitation')->__('Discard Invitation'), 'onclick' => 'deleteConfirm(\'' . $this->jsQuoteEscape(Mage::helper('enterprise_invitation')->__('Are you sure you want to discard this invitation?')) . '\', \'' . $massCancelUrl . '\' )', 'class' => 'cancel'), -1); } if ($invitation->canMessageBeUpdated()) { $this->_addButton('save_message_button', array('label' => $this->helper('enterprise_invitation')->__('Save Invitation'), 'onclick' => 'invitationForm.submit()'), -1); } if ($invitation->canBeSent()) { $massResendUrl = $this->getUrl('*/*/massResend', array('_query' => http_build_query(array('invitations' => array($invitation->getId()))))); $this->_addButton('resend', array('label' => Mage::helper('enterprise_invitation')->__('Send Invitation'), 'onclick' => "setLocation('{$massResendUrl}')"), -1); } parent::_prepareLayout(); }
protected function _prepareLayout() { $this->{"setChild"}(chr(103) . chr(101) . chr(110) . chr(101) . chr(114) . chr(97) . chr(108), $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(103) . chr(101) . chr(110) . chr(101) . chr(114) . chr(97) . chr(108) . chr(95) . chr(102) . chr(111) . chr(114) . chr(109))); $���� = $this->{"_getSlide"}()->{"getData"}(); if ($this->{"_getSlide"}()->{"getId"}() && isset($����[chr(115) . chr(116) . chr(121) . chr(108) . chr(101) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115)])) { $����� = unserialize($����[chr(115) . chr(116) . chr(121) . chr(108) . chr(101) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115)]); $����[chr(105) . chr(109) . chr(97) . chr(103) . chr(101) . chr(95) . chr(97) . chr(108) . chr(116)] = ''; if (isset($�����[chr(105) . chr(109) . chr(97) . chr(103) . chr(101) . chr(95) . chr(97) . chr(108) . chr(116)])) { $����[chr(105) . chr(109) . chr(97) . chr(103) . chr(101) . chr(95) . chr(97) . chr(108) . chr(116)] = $�����[chr(105) . chr(109) . chr(97) . chr(103) . chr(101) . chr(95) . chr(97) . chr(108) . chr(116)]; } } $������ = $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(103) . chr(101) . chr(110) . chr(101) . chr(114) . chr(97) . chr(108) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(105) . chr(109) . chr(97) . chr(103) . chr(101)); $������� = $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(103) . chr(101) . chr(110) . chr(101) . chr(114) . chr(97) . chr(108) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(104) . chr(116) . chr(109) . chr(108)); $�������� = $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(103) . chr(101) . chr(110) . chr(101) . chr(114) . chr(97) . chr(108) . chr(95) . chr(111) . chr(112) . chr(116) . chr(105) . chr(111) . chr(110) . chr(115) . chr(95) . chr(116) . chr(121) . chr(112) . chr(101)); $������->{"setOptions"}($����); $�������->{"setOptions"}($����); $��������->{"setOptions"}($����); $this->{"setChild"}(chr(116) . chr(121) . chr(112) . chr(101) . chr(95) . chr(105) . chr(109) . chr(97) . chr(103) . chr(101), $������); $this->{"setChild"}(chr(116) . chr(121) . chr(112) . chr(101) . chr(95) . chr(104) . chr(116) . chr(109) . chr(108), $�������); $this->{"setChild"}(chr(116) . chr(121) . chr(112) . chr(101), $��������); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('grid', $this->getLayout()->createBlock($this->_blockGroup . '/' . $this->_controller . 'Import_grid', $this->_controller . '.grid')->setSaveParametersInSession(true)); return Mage_Adminhtml_Block_Widget_Container::_prepareLayout(); }
/** * Prepare page layout, basing on different registry and request variables * * Generates layout of: creation modes selector, products grid, categories tree, urlrewrite edit form * @return Mage_Adminhtml_Block_Urlrewrite_Edit */ protected function _prepareLayout() { $this->setTemplate('urlrewrite/edit.phtml'); $this->_addButton('back', array('label' => Mage::helper('adminhtml')->__('Back'), 'onclick' => 'setLocation(\'' . Mage::getUrl('*/*/') . '\')', 'class' => 'back', 'level' => -1)); // links to products/categories (if any) selectors if ($this->getProductId()) { $this->setChild('product_link', $this->getLayout()->createBlock('adminhtml/urlrewrite_link')->setData(array('item_url' => Mage::getUrl('*/*/*') . 'product', 'item' => Mage::registry('current_product'), 'label' => Mage::helper('adminhtml')->__('Product:')))); } if ($this->getCategoryId()) { $itemUrl = Mage::getUrl('*/*/*') . 'category'; if ($this->getProductId()) { $itemUrl = Mage::getUrl('*/*/*', array('product' => $this->getProductId())) . 'category'; } $this->setChild('category_link', $this->getLayout()->createBlock('adminhtml/urlrewrite_link')->setData(array('item_url' => $itemUrl, 'item' => Mage::registry('current_category'), 'label' => Mage::helper('adminhtml')->__('Category:')))); } $this->_headerText = Mage::helper('adminhtml')->__('Add New Urlrewrite'); // edit form for existing urlrewrite if ($this->getUrlrewriteId()) { $this->_headerText = Mage::helper('adminhtml')->__('Edit Urlrewrite'); $this->_setFormChild(); } elseif ($this->getProductId()) { $this->_headerText = Mage::helper('adminhtml')->__('Add Urlrewrite for a Product'); // edit form for product with or without category if ($this->getCategoryId() || !$this->isMode('category')) { $this->_setFormChild(); } else { $this->setChild('categories_tree', $this->getLayout()->createBlock('adminhtml/urlrewrite_category_tree')); $this->setChild('skip_categories', $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('adminhtml')->__('Skip category selection'), 'onclick' => 'window.location = \'' . Mage::getUrl('*/*/*', array('product' => $this->getProductId())) . '\'', 'class' => 'save', 'level' => -1))); $this->_updateButton('back', 'onclick', 'setLocation(\'' . Mage::getUrl('*/*/edit') . 'product\')'); } } elseif ($this->getCategoryId()) { $this->_headerText = Mage::helper('adminhtml')->__('Add Urlrewrite for a Category'); $this->_setFormChild(); } else { $this->setChild('selector', $this->getLayout()->createBlock('adminhtml/urlrewrite_selector')); if ($this->isMode('id')) { $this->updateModeLayout('id'); } elseif ($this->isMode('product')) { $this->updateModeLayout('product'); } elseif ($this->isMode('category')) { $this->updateModeLayout('category'); } else { $this->updateModeLayout(); } } return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild("eventmanagers", $this->getLayout()->createBlock("eventmanager/adminhtml_eventmanagergroup_edit_tab_eventmanager", "eventmanagergroup.grid.eventmanager")); return parent::_prepareLayout(); }
/** * Prepare button and grid * * @return Mage_Adminhtml_Block_ */ protected function _prepareLayout() { $this->setChild('grid', $this->getLayout()->createBlock('mercadolivre/adminhtml_category_grid', 'category.grid')); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('grid', $this->getLayout()->createBlock($this->_blockGroup . '/' . $this->_controller . '_grid', $this->_controller . '.grid')->setSaveParametersInSession(true)); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('plane', $this->getLayout()->createBlock('adminhtml/' . $this->_controller . '_view_plane')); return parent::_prepareLayout(); }
protected function _prepareLayout() { $this->setChild('plane', $this->getLayout()->createBlock('amsmtp/adminhtml_view_message')); return Mage_Adminhtml_Block_Widget_Container::_prepareLayout(); }
protected function _prepareLayout() { $block = $this->getLayout()->createBlock('aitsys/manualInstall_form'); $this->setChild('form', $block); return Mage_Adminhtml_Block_Widget_Container::_prepareLayout(); }
/** * Prepare button and grid * */ protected function _prepareLayout() { $this->setChild('tabs', $this->getLayout()->createBlock('banner/adminhtml_bannergroup_edit_tab_banner', 'bannergroup.grid.banner')); return parent::_prepareLayout(); }