Пример #1
0
 public function renderFoot()
 {
     $ret = "";
     if ($this->showSubmit) {
         $ret .= '<div class="form-submit-area">';
         foreach ($this->submitValues as $submitValue) {
             if (is_array($submitValue)) {
                 $submitValue = $submitValue ? "value='{$submitValue['value']}' name='{$submitValue['name']}' id='{$submitValue['id']}'" : "";
             } else {
                 $submitValue = $submitValue ? "value='{$submitValue}'" : "";
             }
             $ret .= sprintf('<input class="form-submit" type="submit" %s />', $submitValue);
         }
         $ret .= '</div>';
     }
     $ret .= '</form>';
     return FormsHelper::getRendererInstance()->foot() . $ret;
 }
Пример #2
0
 public function __toString()
 {
     return FormsHelper::getRendererInstance()->element($this);
 }