/** * Produce a string containing a blank row in the table * * @param int $i the number of rows to create. Ignored if * $title is used. * @param string $title a string to be used as the label for the row * @param string $thattr a string of additional attributes to be put * in the <th> element (example: 'class="foo"') * @param string $tdattr a string of additional attributes to be put * in the <td> element (example: 'class="foo"') * @return string * * @access public * @static * @see HTML_Form::displayBlank(), HTML_Form::displayBlankRow(), * HTML_Form::returnBlank(), HTML_Form::addBlank() * @since Method available since Release 1.1.0 */ function returnBlankRow($i, $title = '', $thattr = HTML_FORM_TH_ATTR, $tdattr = HTML_FORM_TD_ATTR) { if (!$title) { $str = ''; for ($j = 0; $j < $i; $j++) { $str .= " <tr>\n"; $str .= ' <th ' . $thattr . "> </th>\n"; $str .= ' <td ' . $tdattr . '>' . HTML_Form::returnBlank() . "</td>\n"; $str .= " </tr>\n"; } return $str; } else { return " <tr>\n" . ' <th ' . $thattr . '>' . $title . "</th>\n" . ' <td ' . $tdattr . '>' . HTML_Form::returnBlank() . "</td>\n" . " </tr>\n"; } }