comparison index.php @ 178:6a7ff339b4bb

Keep track of subcolumns for grouped entries.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 25 Aug 2015 08:32:16 +0300
parents f8ae384b817e
children a59bb75aa0ec
comparison
equal deleted inserted replaced
177:f8ae384b817e 178:6a7ff339b4bb
270 $maxColumns = count($col); 270 $maxColumns = count($col);
271 } 271 }
272 $out .= "</tr>"; 272 $out .= "</tr>";
273 273
274 // Print rest of the data 274 // Print rest of the data
275 $ncol = 1;
275 for ($i = 1; $i < $maxColumns; $i++) 276 for ($i = 1; $i < $maxColumns; $i++)
276 { 277 {
277 $out .= "<tr>"; 278 $out .= "<tr>";
278 foreach ($data as $col) 279 foreach ($data as $col)
279 { 280 {
281 if (isset($col[$i])) 282 if (isset($col[$i]))
282 $out .= chentities($col[$i]); 283 $out .= chentities($col[$i]);
283 $out .= "</td>"; 284 $out .= "</td>";
284 } 285 }
285 $out .= "</tr>"; 286 $out .= "</tr>";
287 $ncol++;
286 } 288 }
287 289
288 $out .= "</table>"; 290 $out .= "</table>";
289 } 291 }
290 else 292 else