Move busui to seperate repository
[bus.git] / options_goals.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<div class="panel_headline"><?php echo $headline?></div>

<div class="subview_content">

	<table class="management">
		<thead>
			<tr>
				<th>Goal Number</th>
				<th>Goal Name</th>
				<th>Goal Group</th>
				<th>Goal Type</th>
				<th>Status</th>
			</tr>
		</thead>
		
		<tbody>
			
			<?php foreach ($goals as $k => $goal): ?>
			<tr>
				<td>Goal <?php $this->out($k);?> <a class="" href="<?php echo $this->makeLink(array('do' => 'base.optionsGoalEntry', 'goal_number' => $k, 'siteId' => $siteId));?>">Edit</a></p></td>
				<td><?php $this->out($goal['goal_name']);?></td>
				<td>
				<?php 
					if ( isset( $goal['goal_group'] ) ) {
						if ( !empty( $goal_groups[$goal['goal_group']] ) ) {
							$this->out($goal_groups[$goal['goal_group']] );
						} else {
							$this->out( $goal['goal_group'] );
						}
					}
				?>
				</td>
				<td><?php $this->out($goal['goal_type']);?></td>
				<td><?php $this->out($goal['goal_status']);?></td>
			</tr>
			<?php endforeach; ?>
		</tbody>
		
		<tfoot>
		
		</tfoot>		
	</table>
	
</div>