Warning: Invalid argument supplied for foreach() in /home/jihswbiz/public_html/t6.gwilt.org/refDox.php on line 212
Docs-build1DTable

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  build1DTable   Lines 296-327 (31 lines) file  utils.php   Last mod: Fri 2021-05-14 21:45:07

function build1DTable $a$lim 15 )
        {
#-k     table print format
#-      build an HTML table for the 1D array; after $lim columns, start new table

        
$ar callingVars );
        
$tbl stackPlace() . '<br><b>' $ar[0]['name'] . '</b><br>';
        
$tbl .= '<table><tr>';
        
$tbl1 '<table><tr>';
        
$i 0;
        foreach ( 
$a as $key => $value )
                {
                if (
$i $lim)  { $tbl .= '<th>' $key '</th>'; }
                else            { 
$tbl1 .= '<th>' $key '</th>'; }
                
$i++;
                }
        
$tbl .= '</tr><tr>';
        
$tbl1 .= '</tr><tr>';
        
$i 0;
        foreach ( 
$a as $key => $value )
                {
                if (
$i $lim)  { $tbl .= '<td>' $value '</td>'; }
                else            { 
$tbl1 .= '<td>' $value '</td>'; }
                
$i++;
                }

        
$tbl .= '</tr></table><br>';
        
$tbl1 .= '</tr></table><br>';
        
prt $tbl );
        if (
$i $limprt $tbl1 );
        }

?>