Ejemplo n.º 1
0
 /**
  * Date 'from-to' filter HTML.
  *
  * @deprecated
  * @param Mage_Eav_Model_Entity_Attribute $attribute
  * @return string
  */
 protected function _getDateFromToHtml(Mage_Eav_Model_Entity_Attribute $attribute)
 {
     $dateBlock = new Mage_Core_Block_Html_Date(array('name' => $this->getFilterElementName($attribute->getAttributeCode()) . '[]', 'id' => $this->getFilterElementId($attribute->getAttributeCode()), 'class' => 'input-text', 'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'extra_params' => 'style="width:85px !important"', 'image' => $this->getSkinUrl('images/grid-cal.gif')));
     return '<strong>' . $this->_helper->__('From') . ':</strong>&nbsp;' . $dateBlock->getHtml() . '&nbsp;<strong>' . $this->_helper->__('To') . ':</strong>&nbsp;' . $dateBlock->setId($dateBlock->getId() . '_to')->getHtml();
 }