/** * @override Ensures that there's a valid href attribute, if not adds "#" to it. */ public function WdfRender() { if ($this->href == "") { $this->href = "#"; } return parent::WdfRender(); }
/** * @override Ensures that there's a valid href attribute, if not adds "javascript:{}" to it. */ public function WdfRender() { if ($this->href == "") { $this->href = "javascript:{}"; } return parent::WdfRender(); }
/** * @override Prepares JS init code */ public function WdfRender() { $script = ""; $trigger = implode(",", $this->_triggers); if (count($this->_defaults) > 0) { $script .= "\$.contextMenu.defaults({" . $this->CreateDefaults() . "});"; } if (count($this->_triggers) > 0) { $script .= "\$('" . $trigger . "').contextMenu('{$this->id}',{"; } else { $script .= "\$(document).contextMenu('{$this->id}',{"; } if (count($this->_bindings) > 0) { $script .= $this->CreateBindings(); } $script .= "});"; if ($trigger && $this->_leftclick) { $script .= "\$('{$trigger}').click(function(e){ e.type = 'contextmenu'; \$(this).trigger(e); });"; } $script .= ";"; $this->script($script); $this->_content[] = $this->CreateUL(); return parent::WdfRender(); }
/** * @override */ function WdfRender() { if ($this->options) { if (isset($this->options['collapsible']) && $this->options['collapsible']) { if (!isset($this->class)) { $this->class = ""; } $this->class .= " collapsible"; $colcount = 0; foreach ($this->_content as &$row) { $colcount = max($colcount, count($row->_content)); if (!isset($row->_content[0]->class)) { $row->_content[0]->class = ""; } $row->_content[0]->class .= " indent"; } if (!$this->header) { $this->header = new Tr($this->RowOptions); $hc = $this->header->NewCell('>> Click to expand.'); $hc->colspan = $colcount; } if (!isset($this->header->onclick)) { $this->header->onclick = ""; } $speed = "500"; $func = "function(){ \$('#{$this->table->id}').click(); wdf.debug('Click invoked'); }"; $func = "setTimeout(unescape(" . json_encode("\$('#{$this->table->id}').click();") . "),{$speed}+10);"; $this->header->onclick = "{$func} \$(this).siblings('tr').css('display') == 'none' ? \$(this).siblings('tr').fadeIn({$speed}) : \$(this).siblings('tr').fadeOut({$speed});" . $this->header->onclick; $this->header->css("cursor", "pointer"); foreach ($this->_content as &$row) { unset($row->options['oddclass']); unset($row->options['evenclass']); } } if (isset($this->options['visible']) && !$this->options['visible']) { //$colcount = 0; foreach ($this->_content as &$row) { //$colcount = max($colcount,count($row->_content)); $row->css("display", "none"); } } } if ($this->header) { $this->_content = array_merge(array($this->header), $this->_content); } return parent::WdfRender(); }
/** * @override */ function WdfRender() { if (isset($this->options['oddclass']) && isset($this->options['evenclass'])) { if (!isset($this->_css['display']) || $this->_css['display'] != "none") { $this->class = $GLOBALS['TR_CURRENTLY_ODD'] ? $this->options['oddclass'] : $this->options['evenclass']; $GLOBALS['TR_CURRENTLY_ODD'] = !$GLOBALS['TR_CURRENTLY_ODD']; } } return parent::WdfRender(); }
/** * @override */ function WdfRender() { if ($this->DataCallback) { $this->Clear(); $args = array($this); system_call_user_func_array_byref($this->DataCallback[0], $this->DataCallback[1], $args); } if ($this->ItemsPerPage && !$this->HidePager) { $pager = $this->RenderPager(); $this->content($pager); } if ($this->footer) { $this->prepend($this->footer); } //array_merge(array($this->footer),$this->_content); if ($this->header) { $this->prepend($this->header); } //array_merge(array($this->header),$this->_content); if ($this->colgroup) { $this->prepend($this->colgroup); } //array_merge(array($this->colgroup),$this->_content); if ($this->Caption) { $this->_ensureCaptionObject(); $this->prepend($this->Caption); //array_merge(array($this->Caption),$this->_content); } foreach ($this->_content as &$c) { if (!is_object($c) || get_class_simple($c) != "TBody") { continue; } foreach ($c->_content as $r) { if (!$r instanceof Tr) { continue; } $rcnt = count($r->_content); for ($i = 0; $i < $rcnt; $i++) { if ($r->_content[$i]->CellFormat) { $r->_content[$i]->CellFormat->Format($r->_content[$i], $this->Culture); } elseif (isset($this->ColFormats[$i])) { $this->ColFormats[$i]->Format($r->_content[$i], $this->Culture); } } } } return parent::WdfRender(); }
/** * @override */ function WdfRender() { if ($this->sub) { $this->sub->content('<li class="page_item"><span class="subclsr"> </span></li>'); } return parent::WdfRender(); }