예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 /**
  * (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;
 }
예제 #4
0
 public function render(Customweb_Form_IRenderer $renderer)
 {
     $result = $renderer->renderElementPrefix($this) . $renderer->renderControl($this->getControl()) . $renderer->renderElementPostfix($this);
     return $result;
 }
예제 #5
0
 public function render(Customweb_Form_IRenderer $renderer)
 {
     $result = $renderer->renderElementGroupPrefix($this) . $renderer->renderElementGroupTitle($this) . $renderer->renderRawElements($this->getElements()) . $renderer->renderElementGroupPostfix($this);
     return $result;
 }
예제 #6
0
 public function render(Customweb_Form_IRenderer $renderer)
 {
     return $renderer->renderControlPrefix($this, $this->getControlTypeCssClass()) . $this->renderContent($renderer) . $renderer->renderControlPostfix($this, $this->getControlTypeCssClass());
 }