XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
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
26
xoops_load
('
XoopsForm
');
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
?>
L:
0xoops
xoops-2.5.6
htdocs
class
xoopsform
simpleform.php
Generated on Fri May 10 2013 01:04:25 for XOOPS 2.5.6 by
1.8.3.1