public function Render($blnPrint = true) { $strRendered = parent::Render(); $strRendered .= sprintf("<iframe id='%s' src='%s' initCall='true' %s ><p>Your browser does not support iframes.</p></iframe>", $this->strControlId, $this->strSrc, $this->GetAttrString()); if ($blnPrint) { _p($strRendered, false); } else { return $strRendered; } }
public function Render($blnPrint = true) { $strRendered = parent::Render(); $strRendered .= sprintf("<input id='%s' name='%s' class='ui-widget' type='text' value='%s' />", $this->strControlId, $this->strControlId, $this->strText); if ($blnPrint) { _p($strRendered, false); } else { return $strRendered; } }
public function Render($blnPrint = true) { //Render Actions first if applicable $strRendered = parent::Render(); $strRendered .= sprintf("<input id='%s' name='%s' type='button' value='%s'></input>", $this->strControlId, $this->strControlId, $this->strText); if ($blnPrint) { _p($strRendered, false); } else { return $strRendered; } }
public function Render($blnPrint = true) { //Render Actions first if applicable $strRendered = parent::Render(); $strRendered .= sprintf("<img id='%s' name='%s' src='%s' %s></img>", $this->strControlId, $this->strControlId, $this->strSrc, $this->objStyle->__toAttr()); if ($blnPrint) { _p($strRendered, false); } else { return $strRendered; } }
public function Render($blnPrint = true) { //Render Actions first if applicable $strRendered = parent::Render(); $strRendered .= sprintf("<a id='%s' name='%s' %s>%s</a>", $this->strControlId, $this->strControlId, $this->GetAttrString(), $this->strText); if ($blnPrint) { _p($strRendered, false); } else { return $strRendered; } }
public function Render($blnPrint = true) { if ($this->blnChecked) { $this->attr('checked', true); } else { unset($this->arrAttr['checked']); } //Render Actions first if applicable $strRendered = parent::Render(); $strRendered .= sprintf("<input id='%s' name='%s' type='checkbox' value='%s' %s></input>", $this->strControlId, $this->strControlId, $this->strText, $this->GetAttrString()); if ($blnPrint) { _p($strRendered, false); } else { return $strRendered; } }
public function Render($blnPrint = true, $blnRenderAsAjax = false) { //Render Actions first if applicable $strRendered = parent::Render(); if (!$blnRenderAsAjax) { $strText = $this->strText; } else { $strText = QString::XmlEscape(trim($this->strText)); } $strRendered .= sprintf("<a id='%s' name='%s' %s>%s</a>", $this->strControlId, $this->strControlId, $this->GetAttrString(), $strText); if ($blnPrint) { _p($strRendered, false); } else { return $strRendered; } }
public function Render($blnPrint = true, $blnRenderAsAjax = false) { if ($blnRenderAsAjax) { $strElementOverride = 'control'; $this->Attr('transition', $this->strTransition); } else { $strElementOverride = 'div'; } $strRendered = parent::Render(); $strHeader = sprintf("<%s id='%s' name='%s' %s>\n", $strElementOverride, $this->strControlId, $this->strControlId, $this->GetAttrString()); //If template is set render template if (!is_null($this->strTemplate)) { if (!file_exists($this->strTemplate)) { throw new QCallerException("Template file (" . $this->strTemplate . ") does not exist"); } global $_CONTROL; $objPrevControl = $_CONTROL; $_CONTROL = $this; $_FORM = $this->objForm; $strRendered .= $this->objForm->EvaluateTemplate($this->strTemplate); $_CONTROL = $objPrevControl; } //Render Text $strRendered .= $this->strText; //Check/Do autorender children if ($this->blnAutoRenderChildren) { foreach ($this->arrChildControls as $objChildControl) { $strRendered .= $objChildControl->Render(false); } } $strFooter = sprintf("</%s>", $strElementOverride); if (!$blnRenderAsAjax) { $strRendered = $strHeader . $strRendered . $strFooter; } else { $strRendered = $strHeader . QString::XmlEscape(trim($strRendered)) . $strFooter; } $this->blnModified = false; if ($blnPrint) { _p($strRendered, false); } else { return $strRendered; } }
public function Render($blnPrint = true) { $strRendered = parent::Render(); $strType = 'text'; switch ($this->strTextMode) { case QTextMode::Password: $strType = 'password'; case QTextMode::SingleLine: $strRendered .= sprintf("<input id='%s' name='%s' type='%s' value='%s' %s />", $this->strControlId, $this->strControlId, $strType, $this->strText, $this->GetAttrString()); break; case QTextMode::MultiLine: $strRendered .= sprintf("<textarea id='%s' name='%s' %s>%s</textarea>", $this->strControlId, $this->strControlId, $this->GetAttrString(), $this->strText); break; } if ($blnPrint) { _p($strRendered, false); } else { return $strRendered; } }