Public Member Functions | |
__construct ($data) | |
getElementHtml () |
Definition at line 35 of file Import.php.
__construct | ( | $ | data | ) |
Enter description here...
array | $data |
Reimplemented from Varien_Data_Form_Element_Abstract.
Definition at line 43 of file Import.php.
00044 { 00045 parent::__construct($data); 00046 $this->setType('file'); 00047 }
getElementHtml | ( | ) |
Enter description here...
Reimplemented from Varien_Data_Form_Element_Abstract.
Definition at line 54 of file Import.php.
00055 { 00056 $html = ''; 00057 00058 $html .= '<input id="time_condition" type="hidden" name="'.$this->getName().'" value="'.time().'" />'; 00059 00060 $html .= <<<EndHTML 00061 <script type="text/javascript"> 00062 Event.observe($('carriers_tablerate_condition_name'), 'change', checkConditionName.bind(this)); 00063 function checkConditionName(event) 00064 { 00065 var conditionNameElement = Event.element(event); 00066 if (conditionNameElement && conditionNameElement.id) { 00067 $('time_condition').value = '_' + conditionNameElement.value + '/' + Math.random(); 00068 } 00069 } 00070 </script> 00071 EndHTML; 00072 00073 $html .= parent::getElementHtml(); 00074 00075 return $html; 00076 }