00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 class Mage_Adminhtml_Block_Catalog_Product_Edit_Action_Attribute extends Mage_Adminhtml_Block_Widget
00036 {
00037
00038 protected function _prepareLayout()
00039 {
00040 $this->setChild('back_button',
00041 $this->getLayout()->createBlock('adminhtml/widget_button')
00042 ->setData(array(
00043 'label' => Mage::helper('catalog')->__('Back'),
00044 'onclick' => 'setLocation(\''.$this->getUrl('*/catalog_product/', array('store'=>$this->getRequest()->getParam('store', 0))).'\')',
00045 'class' => 'back'
00046 ))
00047 );
00048
00049 $this->setChild('reset_button',
00050 $this->getLayout()->createBlock('adminhtml/widget_button')
00051 ->setData(array(
00052 'label' => Mage::helper('catalog')->__('Reset'),
00053 'onclick' => 'setLocation(\''.$this->getUrl('*/*/*', array('_current'=>true)).'\')'
00054 ))
00055 );
00056
00057 $this->setChild('save_button',
00058 $this->getLayout()->createBlock('adminhtml/widget_button')
00059 ->setData(array(
00060 'label' => Mage::helper('catalog')->__('Save'),
00061 'onclick' => 'attributesForm.submit()',
00062 'class' => 'save'
00063 ))
00064 );
00065 }
00066
00067
00068
00069
00070
00071
00072 public function getProducts()
00073 {
00074 return $this->_getHelper()->getProducts();
00075 }
00076
00077
00078
00079
00080
00081
00082 protected function _getHelper()
00083 {
00084 return $this->helper('adminhtml/catalog_product_edit_action_attribute');
00085 }
00086
00087 public function getBackButtonHtml()
00088 {
00089 return $this->getChildHtml('back_button');
00090 }
00091
00092 public function getCancelButtonHtml()
00093 {
00094 return $this->getChildHtml('reset_button');
00095 }
00096
00097 public function getSaveButtonHtml()
00098 {
00099 return $this->getChildHtml('save_button');
00100 }
00101
00102 public function getSaveUrl()
00103 {
00104 return $this->getUrl('*
00105
00106
00107