Пример #1
0
 /**
  * Produce a string containing the text provided inside a table row
  *
  * @param string $title     the string used as the label
  * @param string $text      a string to be displayed
  * @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::displayPlaintext(), HTML_Form::displayPlaintextRow(),
  *      HTML_Form::returnPlaintext(), HTML_Form::addPlaintext()
  */
 function returnPlaintextRow($title, $text = '&nbsp;', $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::returnPlaintext($text) . "\n";
     $str .= "  </td>\n";
     $str .= " </tr>\n";
     return $str;
 }