public function getValueElement()
 {
     $element = parent::getValueElement();
     switch ($this->getInputType()) {
         case 'date':
             $element->setImage(Mage::getDesign()->getSkinUrl('images/grid-cal.gif'));
             break;
     }
     return $element;
 }
예제 #2
0
파일: Params.php 프로젝트: ntnhan220488/ggm
 /**
  * Retrieve value element
  *
  * @return Varien_Data_Form_Element_Abstract
  */
 public function getValueElement()
 {
     $element = parent::getValueElement();
     $customer = Mage::getModel('customer/customer');
     foreach ($customer->getAttributes() as $attribute) {
         if ($attribute->getBackendModel() == "" && $attribute->getFrontendLabel() != "") {
             if ($attribute->getAttributeCode() == $this->getAttribute()) {
                 switch ($attribute->getBackendType()) {
                     case 'date':
                     case 'datetime':
                         $element->setImage(Mage::getDesign()->getSkinUrl('images/grid-cal.gif'));
                         break;
                 }
             }
         }
     }
     return $element;
 }
예제 #3
0
파일: Abstract.php 프로젝트: quyip8818/Mag
 /**
  * Retrieve value element
  *
  * @return Varien_Data_Form_Element_Abstract
  */
 public function getValueElement()
 {
     $element = parent::getValueElement();
     if (is_object($this->getAttributeObject())) {
         switch ($this->getAttributeObject()->getFrontendInput()) {
             case 'date':
                 $element->setImage(Mage::getDesign()->getSkinUrl('images/grid-cal.gif'));
                 break;
         }
     }
     return $element;
 }
예제 #4
0
파일: Params.php 프로젝트: ntnhan220488/ggm
 /**
  * Retrieve value element
  *
  * @return Varien_Data_Form_Element_Abstract
  */
 public function getValueElement()
 {
     $element = parent::getValueElement();
     return $element;
 }