Public Member Functions | |
getEscapedValue ($index=null) | |
getHtml () | |
Protected Member Functions | |
_toHtml () |
Definition at line 35 of file Date.php.
_toHtml | ( | ) | [protected] |
Render block HTML
Reimplemented from Mage_Core_Block_Template.
Definition at line 38 of file Date.php.
00039 { 00040 $html = '<input type="text" name="' . $this->getName() . '" id="' . $this->getId() . '" '; 00041 $html .= 'value="'.$this->getValue().'" class="'.$this->getClass().'" style="width:100px" '.$this->getExtraParams().'/> '; 00042 00043 $html .= '<img src="' . $this->getImage() . '" alt="" class="v-middle" '; 00044 $html .= 'title="' . $this->helper('core')->__('Select Date') . '" id="' . $this->getId() . '_trig" />'; 00045 00046 $html .= 00047 00048 '<script type="text/javascript"> 00049 Calendar.setup({ 00050 inputField : "' . $this->getId() . '", 00051 ifFormat : "' . $this->getFormat() . '", 00052 button : "' . $this->getId() . '_trig", 00053 align : "Bl", 00054 singleClick : true 00055 }); 00056 </script>'; 00057 00058 00059 return $html; 00060 }
getEscapedValue | ( | $ | index = null |
) |