thanks for the link to the tutorial, I think that will be useful for me also. Bookmarked.
Cheers.
function render()
{
$ele_name = $this->getName();
$ret = '<form name="' . $ele_name . '" id="' . $ele_name . '" action="' . $this->getAction() . '" method="' . $this->getMethod() . '" onsubmit="return xoopsFormValidate_' . $ele_name . '();"' . $this->getExtra() . '>
<div class="tableWrap">
<div class="tableTitle"><span>' . $this->getTitle() . '</span></div>
';
$hidden = '';
$class = 'even';
foreach ($this->getElements() as $ele) {
if (!is_object($ele)) {
$ret .= $ele;
} else if (!$ele->isHidden()) {
if (!$ele->getNocolspan()) {
$ret .= '<div class="tableInner"><div class="head">';
if (($caption = $ele->getCaption()) != '') {
$ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">';
$ret .= '<span class="caption-text">' . $caption . '</span>';
$ret .= '<span class="caption-marker">*</span>';
$ret .= '</div>';
}
if (($desc = $ele->getDescription()) != '') {
$ret .= '<div class="xoops-form-element-help">' . $desc . '</div>';
}
$ret .= '</div><div class="' . $class . '">' . $ele->render() . '</div></div>' . NWLINE; //this is possibley where it adds odd/even class?
} else {
$ret .= '<div><div class="head">';
if (($caption = $ele->getCaption()) != '') {
$ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">';
$ret .= '<span class="caption-text">' . $caption . '</span>';
$ret .= '<span class="caption-marker">*</span>';
$ret .= '</div>';
}
$ret .= '</div></div><div><div class="' . $class . '">' . $ele->render() . '</div></div>';
}
} else {
$hidden .= $ele->render();
}
}
$ret .= '</div>' . NWLINE . ' ' . $hidden . '</form>' . NWLINE; //end tableWrap
$ret .= $this->renderValidationJS(true);
return $ret;
}
}
.site_title {
float: left;
margin: 23px 0 0;
position: relative;
z-index: 1;
}
#xo-globalnav {
clear: left;
float: left;
left: 0;
margin-top: -10px;
padding: 0;
position: relative;
top: 0;
}