/** * Render / draw the element according to the mode * * @return string HTML text */ public function render() { BizSystem::clientProxy()->includeCalendarScripts(); $format = $this->m_DateFormat ? $this->m_DateFormat : "%Y-%m-%d"; $sHTML = parent::render(); $showTime = 'false'; //$image = "<img src=\"".Resource::getImageUrl()."/calendar.gif\" border=0 title=\"Select date...\" align='top' hspace='2'>"; $sHTML .= "<a class=\"date_picker\" href=\"javascript: void(0);\" onclick=\"return showCalendar('{$this->m_Name}','{$format}',{$showTime},true);\"></a>"; return $sHTML; }
/** * Render / draw the element according to the mode * * @return string HTML text */ public function render() { BizSystem::clientProxy()->includeCalendarScripts(); $format = $this->m_DateFormat ? $this->m_DateFormat : "%Y-%m-%d %H:%M:%S"; $sHTML = parent::render(); $showTime = "'24'"; //$image = "<img src=\"".Resource::getImageUrl()."/calendar.gif\" border=0 title=\"Select date...\" align='top' hspace='2'>"; $sHTML .= "<a title=\"Select date...\" class=\"date_picker\" href=\"javascript: void(0);\" onclick=\"return showCalendar('" . $this->m_Name . "', '" . $format . "', " . $showTime . ", true); return false;\" onmousemove='window.status=\"Select a datetime\"' onmouseout='window.status=\"\"'></a>"; return $sHTML; }
/** * Render, draw the control according to the mode * * @return string HTML text */ public function render() { $sHTML = parent::render(); // sample picker call CallFunction('easy.f_AttendeeListChild.LoadPicker(view,form,elem)','Prop_Window'); if ($this->m_ValuePicker != null) { $function = $this->m_FormName . ".LoadPicker({$this->m_ValuePicker},{$this->m_Name})"; $sHTML .= " <input type=button onClick=\"Openbiz.CallFunction('{$function}');\" value=\"...\" style='width:20px;' />"; } return $sHTML; }