|
@@ 104-109 (lines=6) @@
|
| 101 |
|
} elseif (!$ele->isHidden()) { |
| 102 |
|
if (!$ele->getNocolspan()) { |
| 103 |
|
$ret .= '<tr valign="top" align="left"><td class="head">'; |
| 104 |
|
if ('' != ($caption = $ele->getCaption())) { |
| 105 |
|
$ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">'; |
| 106 |
|
$ret .= '<span class="caption-text">' . $caption . '</span>'; |
| 107 |
|
$ret .= '<span class="caption-marker">*</span>'; |
| 108 |
|
$ret .= '</div>'; |
| 109 |
|
} |
| 110 |
|
if ('' != ($desc = $ele->getDescription())) { |
| 111 |
|
$ret .= '<div class="xoops-form-element-help">' . $desc . '</div>'; |
| 112 |
|
} |
|
@@ 116-121 (lines=6) @@
|
| 113 |
|
$ret .= '</td><td class="' . $class . '">' . $ele->render() . '</td></tr>' . NWLINE; |
| 114 |
|
} else { |
| 115 |
|
$ret .= '<tr valign="top" align="left"><td class="head" colspan="2">'; |
| 116 |
|
if ('' != ($caption = $ele->getCaption())) { |
| 117 |
|
$ret .= '<div class="xoops-form-element-caption' . ($ele->isRequired() ? '-required' : '') . '">'; |
| 118 |
|
$ret .= '<span class="caption-text">' . $caption . '</span>'; |
| 119 |
|
$ret .= '<span class="caption-marker">*</span>'; |
| 120 |
|
$ret .= '</div>'; |
| 121 |
|
} |
| 122 |
|
$ret .= '</td></tr><tr valign="top" align="left"><td class="' . $class . '" colspan="2">' . $ele->render() . '</td></tr>'; |
| 123 |
|
} |
| 124 |
|
} else { |