aboutsummaryrefslogtreecommitdiff
path: root/modules/rudi/views/view.roster.php
blob: c0ee92d49fb382b140bea5ae241a36f5475c2d06 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<table width="100%" class="rudi">
<?php
	$result = $this->db->query("SELECT * FROM `rudi_combat_units` WHERE `detachment` = 0");
	$row = $this->db->fetch($result);
	foreach($row as $unit){
		echo "<tr><th colspan=\"5\">{$unit['name']} : {$unit['callsign']}</th></tr>";
?>
	<tr>
      <!-- Table header -->
      <th class="header">Rank</th>
      <th class="header">Name</th>
      <th class="header">Role</th>
      <th class="header">Weapon</th>
      <th class="header">Status</th>
    </tr>
<?php
		$this->printRoster($unit['unit_id'], $unit['leader_id']); 
		$this->displayUnitsRec($unit['unit_id']);
	}

?>
</table>