示例#1
0
 function write_table_header($flights, $type = 'pid')
 {
     $inner_html = '';
     foreach (range(1, $flights) as $pos) {
         $inner_html .= node::create('th', [], get::ordinal($pos));
     }
     $html = node::create('thead', [], node::create('tr', [], node::create('th.pos', [], 'Pos') . node::create('th.name', [], 'Name') . node::create('th.club', [], $type == 'pid' ? 'Club / Glider' : 'Manufacturer') . $inner_html . node::create('th.tot', [], 'Total')));
     return $html;
 }