/** * Produce a string containing an image input inside a table row * * @param string $name the string used in the 'name' attribute * @param string $title the string used as the label * @param string $src the string denoting the path to the image. * Can be a relative path or full URI. * @param string $attr a string of additional attributes to be put * in the element (example: 'id="foo"') * @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::displayImage(), HTML_Form::displayImageRow(), * HTML_Form::returnImage(), HTML_Form::addImage() * @since Method available since Release 1.1.0 */ function returnImageRow($name, $title, $src, $attr = '', $thattr = HTML_FORM_TH_ATTR, $tdattr = HTML_FORM_TD_ATTR) { return " <tr>\n" . ' <th ' . $thattr . '>' . $title . "</th>\n" . ' <td ' . $tdattr . ">\n " . HTML_Form::returnImage($name, $src, $attr) . " </td>\n" . " </tr>\n"; }