public function renderContent(Customweb_Form_IRenderer $renderer) { $result = ''; $result .= '<div id="' . $this->getControlId() . '" class="' . $this->getCssClass() . '">'; foreach ($this->getSubControls() as $control) { $result .= $renderer->renderControl($control); } $result .= '</div>'; return $result; }
public function renderContent(Customweb_Form_IRenderer $renderer) { $result = $renderer->renderOptionPrefix($this, $this->getValue()); $result .= '<input type="checkbox" name="' . $this->getControlName() . '" class="' . $this->getCssClass() . '" '; if ($this->isChecked()) { $result .= ' checked="checked" '; } $result .= ' value="' . $this->getValue() . '" id="' . $this->getControlId() . '" /> '; $result .= '<label for="' . $this->getControlId() . '">' . $this->getLabel() . '</label>'; $result .= $renderer->renderOptionPostfix($this, $this->getValue()); return $result; }
/** * (non-PHPdoc) * @see Customweb_Form_Control_Abstract::renderContent() */ public function renderContent(Customweb_Form_IRenderer $renderer) { $result = ''; foreach ($this->getOptions() as $key => $label) { $result .= $renderer->renderOptionPrefix($this, $key); $result .= '<input type="radio" name="' . $this->getControlName() . '" class="' . $this->getCssClass() . '" '; if ($this->getDefaultValue() == $key) { $result .= ' checked="checked" '; } $result .= ' value="' . $key . '" id="' . $this->getControlId() . '-' . $key . '" />'; $result .= '<label for="' . $this->getControlId() . '-' . $key . '">' . $label . '</label>'; $result .= $renderer->renderOptionPostfix($this, $key); } return $result; }
public function render(Customweb_Form_IRenderer $renderer) { $result = $renderer->renderElementPrefix($this) . $renderer->renderControl($this->getControl()) . $renderer->renderElementPostfix($this); return $result; }
public function render(Customweb_Form_IRenderer $renderer) { $result = $renderer->renderElementGroupPrefix($this) . $renderer->renderElementGroupTitle($this) . $renderer->renderRawElements($this->getElements()) . $renderer->renderElementGroupPostfix($this); return $result; }
public function render(Customweb_Form_IRenderer $renderer) { return $renderer->renderControlPrefix($this, $this->getControlTypeCssClass()) . $this->renderContent($renderer) . $renderer->renderControlPostfix($this, $this->getControlTypeCssClass()); }