Пример #1
0
 /**
  * Prints a select list inside a table row
  *
  * NOTE:  In order for defaults to be automatically selected in the
  * output, the PHP data types of the $default must match the data types
  * of the keys in the $entries array.
  *
  * @param string $name      the string used in the 'name' attribute
  * @param string $title     the string used as the label
  * @param array  $entries   an array containing the <options> to be listed.
  *                           The array's keys become the option values and
  *                           the array's values become the visible text.
  * @param mixed  $default   a default value for the element
  * @param int    $size      an integer saying how many rows should be
  * @param string $blank     if this string is present, an <option> will be
  *                           added to the top of the list that will contain
  *                           the given text in the visible portion and an
  *                           empty string as the value
  * @param bool   $multiple  a bool saying if multiple choices 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 void
  *
  * @access public
  * @static
  * @see HTML_Form::displaySelect(), HTML_Form::addSelect(),
  *      HTML_Form::returnSelect(), HTML_Form::returnSelectRow()
  */
 function displaySelectRow($name, $title, $entries, $default = null, $size = 1, $blank = '', $multiple = false, $attr = '', $thattr = HTML_FORM_TH_ATTR, $tdattr = HTML_FORM_TD_ATTR)
 {
     print HTML_Form::returnSelectRow($name, $title, $entries, $default, $size, $blank, $multiple, $attr, $thattr, $tdattr);
 }