コード例 #1
0
 static function checkboxListTable(&$arr, $tag_name, $tag_attribs, $key = 'value', $text = 'text', $selected = null, $cols = 0, $rows = 0, $size = 0, $required = 0, $classes = null)
 {
     $cellsHtml = moscomprofilerHTML::checkboxListArr($arr, $tag_name, $tag_attribs, $key, $text, $selected, $required, $classes);
     return moscomprofilerHTML::list2Table($cellsHtml, $cols, $rows, $size);
 }
コード例 #2
0
 /**
  * Returns a checkbox input list formatted as a table
  *
  * @param  array        $arr
  * @param  string       $tagName
  * @param  null|string  $tagAttributes
  * @param  int|string   $key
  * @param  string       $text
  * @param  string       $selected
  * @param  int          $cols
  * @param  int          $rows
  * @param  int          $size
  * @param  int          $required
  * @param  null|array   $classes
  * @param  null|string  $cellAttributes
  * @param  boolean      $translate
  * @return string
  */
 public static function checkboxListTable($arr, $tagName, $tagAttributes = null, $key = 'value', $text = 'text', $selected = null, $cols = 0, $rows = 0, $size = 0, $required = 0, $classes = null, $cellAttributes = null, $translate = true)
 {
     $cellsHtml = moscomprofilerHTML::checkboxListArr($arr, $tagName, $tagAttributes, $key, $text, $selected, $required, $classes, $translate);
     return moscomprofilerHTML::list2Table($cellsHtml, $cols, $rows, $size, $cellAttributes);
 }