XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
simpleform.php
Go to the documentation of this file.
1 <?php
21 defined('XOOPS_ROOT_PATH') or die('Restricted access');
22 
27 
31 class XoopsSimpleForm extends XoopsForm
32 {
38  function render()
39  {
40  $ret = $this->getTitle() . "\n<form name='" . $this->getName() . "' id='" . $this->getName() . "' action='" . $this->getAction() . "' method='" . $this->getMethod() . "'" . $this->getExtra() . ">\n";
41  foreach ($this->getElements() as $ele) {
42  if (!$ele->isHidden()) {
43  $ret .= "<strong>" . $ele->getCaption() . "</strong><br />" . $ele->render() . "<br />\n";
44  } else {
45  $ret .= $ele->render() . "\n";
46  }
47  }
48  $ret .= "</form>\n";
49  return $ret;
50  }
51 }
52 
53 ?>