/** * Produce a string containing a file upload 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 int $maxsize an integer determining how large (in bytes) a * submitted file can be. * @param int $size an integer used in the 'size' attribute * @param string $accept a string saying which MIME types are allowed * @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::displayFile(), HTML_Form::displayFileRow(), * HTML_Form::returnFile(), HTML_Form::addFile(), * HTML_Form::returnMultipleFiles() */ function returnFileRow($name, $title, $maxsize = HTML_FORM_MAX_FILE_SIZE, $size = HTML_FORM_TEXT_SIZE, $accept = '', $attr = '', $thattr = HTML_FORM_TH_ATTR, $tdattr = HTML_FORM_TD_ATTR) { $str = " <tr>\n"; $str .= ' <th ' . $thattr . '>' . $title . "</th>\n"; $str .= ' <td ' . $tdattr . ">\n"; $str .= HTML_Form::returnFile($name, $maxsize, $size, $accept, $attr); $str .= " </td>\n"; $str .= " </tr>\n"; return $str; }