Public Member Functions | |
getElementHtml () |
Definition at line 34 of file Export.php.
getElementHtml | ( | ) |
Reimplemented from Varien_Data_Form_Element_Abstract.
Definition at line 36 of file Export.php.
00037 { 00038 $buttonBlock = $this->getForm()->getParent()->getLayout()->createBlock('adminhtml/widget_button'); 00039 00040 $params = array( 00041 'website' => $buttonBlock->getRequest()->getParam('website') 00042 ); 00043 00044 $data = array( 00045 'label' => Mage::helper('adminhtml')->__('Export CSV'), 00046 'onclick' => 'setLocation(\''.Mage::helper('adminhtml')->getUrl("*/*/exportTablerates", $params) . 'conditionName/\' + $(\'carriers_tablerate_condition_name\').value + \'/tablerates.csv\' )', 00047 'class' => '', 00048 ); 00049 00050 $html = $buttonBlock->setData($data)->toHtml(); 00051 00052 return $html; 00053 }