Public Member Functions | |
getHtml () |
Definition at line 35 of file Action.php.
getHtml | ( | ) |
Reimplemented from Mage_Adminhtml_Block_Widget_Grid_Column_Filter_Abstract.
Definition at line 38 of file Action.php.
00039 { 00040 $values = array( 00041 '' => '', 00042 'create' => Mage::helper('adminhtml')->__('Create'), 00043 'run' => Mage::helper('adminhtml')->__('Run'), 00044 'update' => Mage::helper('adminhtml')->__('Update'), 00045 ); 00046 $value = $this->getValue(); 00047 00048 $html = '<select name="' . ($this->getColumn()->getName() ? $this->getColumn()->getName() : $this->getColumn()->getId()) . '" ' . $this->getColumn()->getValidateClass() . '>'; 00049 foreach ($values as $k => $v) { 00050 $html .= '<option value="'.$k.'"' . ($value == $k ? ' selected="selected"' : '') . '>'.$v.'</option>'; 00051 } 00052 $html .= '</select>'; 00053 return $html; 00054 }