/** * Render / draw the element according to the mode * * @return string HTML text */ public function render() { Openbiz::$app->getClientProxy()->includeCalendarScripts(); $format = $this->dateFormat ? $this->dateFormat : "%Y-%m-%d"; $sHTML = parent::render(); $showTime = 'false'; //$image = "<img src=\"".Openbiz::$app->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->objectName}','{$format}',{$showTime},true);\"></a>"; return $sHTML; }
/** * Render / draw the element according to the mode * * @return string HTML text */ public function render() { Openbiz::$app->getClientProxy()->includeCalendarScripts(); $format = $this->dateFormat ? $this->dateFormat : "%Y-%m-%d %H:%M:%S"; $sHTML = parent::render(); $showTime = "'24'"; //$image = "<img src=\"".Openbiz::$app->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->objectName . "', '" . $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() { $this->defaultValueRename = "N"; $this->enabled = 'N'; $sHTML = parent::render(); // sample picker call CallFunction('easy.f_AttendeeListChild.LoadPicker(view,form,elem)','Prop_Window'); if ($this->valuePicker != null) { $function = $this->formName . ".LoadPicker({$this->valuePicker},{$this->objectName})"; $sHTML .= " <input type=button onClick=\"Openbiz.CallFunction('{$function}');\" value=\"...\" style='width:20px;' />"; } return $sHTML; }