Пример #1
0
 /**
  * Produce a string containing a reset button inside a table row
  *
  * NOTE: Unusual parameter order.
  *
  * @param string $title     a string that appears on the button
  * @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::displayReset(), HTML_Form::displayResetRow(),
  *      HTML_Form::returnReset(), HTML_Form::addReset()
  */
 function returnResetRow($title = 'Clear contents', $attr = '', $thattr = HTML_FORM_TH_ATTR, $tdattr = HTML_FORM_TD_ATTR)
 {
     $str = " <tr>\n";
     $str .= '  <th ' . $thattr . ">&nbsp;</th>\n";
     $str .= '  <td ' . $tdattr . ">\n   ";
     $str .= HTML_Form::returnReset($title, $attr);
     $str .= "  </td>\n";
     $str .= " </tr>\n";
     return $str;
 }