Advertisement
bueddl

Untitled

Sep 27th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.49 KB | None | 0 0
  1. <table>
  2.     <tr>
  3.         <th rowspan="2">Loch</th>
  4.         <th colspan="<?= count($players) ?>">Spieler</th>
  5.     </tr>
  6.     <tr>
  7.         <?php foreach ($players as $player) { ?>
  8.             <th><?= $player['name'] ?></th>
  9.         <?php } ?>
  10.     </tr>
  11.  
  12.     <?php foreach ($tracks as $track) { ?>
  13.  
  14.         <tr>
  15.             <td><?= $track['number'] ?></td>
  16.             <?php foreach ($players as $player) { ?>
  17.  
  18.                 <td><?= Template::withDefault($scores[$player['id']][$track['number']]['try_count'], '-') ?></td>
  19.  
  20.             <?php } ?>
  21.         </tr>
  22.  
  23.     <?php } ?>
  24. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement