Beispiel #1
0
 /**
  * Returns HTML for submitlink form element.
  *
  * @return string
  */
 function toHtml()
 {
     require_once 'HTML/QuickForm/Renderer/Default.php';
     $renderer = new HTML_QuickForm_Renderer_Default();
     $renderer->setElementTemplate('{element}');
     parent::accept($renderer);
     return $renderer->toHtml();
 }
 /**
  * Returns HTML for advchecbox form element.
  *
  * @return string
  */
 function toHtml()
 {
     include_once 'HTML/QuickForm/Renderer/Default.php';
     $renderer = new HTML_QuickForm_Renderer_Default();
     $renderer->setElementTemplate('{element}');
     parent::accept($renderer);
     $html = $this->_wrap[0];
     if ($this->_usedcreateelement) {
         $html .= html_writer::tag('span', $renderer->toHtml(), array('class' => 'fdate_time_selector'));
     } else {
         $html .= $renderer->toHtml();
     }
     $html .= $this->_wrap[1];
     return $html;
 }
Beispiel #3
0
 /**
  * Returns HTML for advchecbox form element.
  *
  * @return string
  */
 function toHtml()
 {
     include_once 'HTML/QuickForm/Renderer/Default.php';
     $renderer = new HTML_QuickForm_Renderer_Default();
     $renderer->setElementTemplate('{element}');
     parent::accept($renderer);
     return $this->_wrap[0] . $renderer->toHtml() . $this->_wrap[1];
 }