Пример #1
0
 /**
  * Produce a string containing a submit button inside a table row
  *
  * @param string $name      a string used in the 'name' attribute
  * @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::displaySubmit(), HTML_Form::displaySubmitRow(),
  *      HTML_Form::returnSubmit(), HTML_Form::addSubmit()
  */
 function returnSubmitRow($name = 'submit', $title = 'Submit Changes', $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::returnSubmit($title, $name, $attr);
     $str .= "  </td>\n";
     $str .= " </tr>\n";
     return $str;
 }