public function getHtml()
 {
     $helper = Mage::helper('fileattributes');
     $html = parent::getHtml();
     $html .= '<div class="range"><div class="range-line"><span class="label">' . $helper->__('In:') . '</span> <select name="' . $this->_getHtmlName() . '[unit]" id="' . $this->_getHtmlId() . '_unit" class="no-changes">';
     $unit = $this->_parseUnitValue($this->getValue('unit'));
     $html .= '<option value="0"' . ($unit === 0 ? ' selected="selected"' : '') . '>' . $helper->__('Bytes') . '</option>';
     $html .= '<option value="1"' . ($unit === 1 ? ' selected="selected"' : '') . '>' . $helper->__('Kilobytes') . '</option>';
     $html .= '<option value="2"' . ($unit === 2 ? ' selected="selected"' : '') . '>' . $helper->__('Megabytes') . '</option>';
     $html .= '<option value="3"' . ($unit === 3 ? ' selected="selected"' : '') . '>' . $helper->__('Gigabytes') . '</option>';
     $html .= '</select></div></div>';
     return $html;
 }
Exemple #2
0
 public function getHtml()
 {
     $afnChecked = $this->getValue('afn') == 1 ? 'checked="checked"' : '';
     return parent::getHtml() . '<div class="range"><div class="range-line"><span class="label">' . Mage::helper('M2ePro')->__('AFN') . ' : </span>' . '<input style="margin-left:6px;float:none;width:auto !important;" type="checkbox" value="1" name="' . $this->_getHtmlName() . '[afn]" ' . $afnChecked . '></div></div>';
 }