Protected Member Functions | |
_prepareLayout () |
Definition at line 34 of file Website.php.
_prepareLayout | ( | ) | [protected] |
Preparing global layout
You can redefine this method in child classes for changin layout
Reimplemented from Mage_Core_Block_Abstract.
Definition at line 37 of file Website.php.
00038 { 00039 $itemId = $this->getRequest()->getParam('website_id'); 00040 00041 $this->setTemplate('system/store/delete_website.phtml'); 00042 $this->setAction($this->getUrl('*/*/deleteWebsitePost', array('website_id'=>$itemId))); 00043 $this->setChild('confirm_deletion_button', 00044 $this->getLayout()->createBlock('adminhtml/widget_button') 00045 ->setData(array( 00046 'label' => Mage::helper('core')->__('Delete Website'), 00047 'onclick' => "deleteForm.submit()", 00048 'class' => 'cancel' 00049 )) 00050 ); 00051 $onClick = "setLocation('".$this->getUrl('*/*/editWebsite', array('website_id'=>$itemId))."')"; 00052 $this->setChild('cancel_button', 00053 $this->getLayout()->createBlock('adminhtml/widget_button') 00054 ->setData(array( 00055 'label' => Mage::helper('core')->__('Cancel'), 00056 'onclick' => $onClick, 00057 'class' => 'cancel' 00058 )) 00059 ); 00060 $this->setChild('back_button', 00061 $this->getLayout()->createBlock('adminhtml/widget_button') 00062 ->setData(array( 00063 'label' => Mage::helper('core')->__('Back'), 00064 'onclick' => $onClick, 00065 'class' => 'cancel' 00066 )) 00067 ); 00068 return parent::_prepareLayout(); 00069 }