xref: /plugin/bez/tpl/report.php (revision 38b5c5c45972fa0048c81dcc35b60fc2e2b49a6f)
1<h1 class="bez_report">
2<?php echo $template['title'] ?>
3<span><?php echo $bezlang['report_subhead'] ?></span>
4</h1>
5
6<h2><?php echo $bezlang['report_issues'] ?></h2>
7<table class="bez_sumarise">
8	<tr>
9		<th><?php echo $bezlang['type'] ?></th>
10		<th><?php echo $bezlang['number'] ?></th>
11		<th><?php echo $bezlang['totalcost'] ?></th>
12	</tr>
13	<?php foreach ($template['report']['issues'] as $issue): ?>
14		<tr>
15			<td><?php echo $issue['type'] ?></td>
16			<td><?php echo $issue['number'] ?></td>
17			<td>
18				<?php if ($issue['totalcost'] == ''): ?>
19					<em><?php echo $bezlang['ns'] ?></em>
20				<?php else: ?>
21					<?php echo $issue['totalcost'] ?>
22				<?php endif ?>
23			</td>
24		</tr>
25	<?php endforeach ?>
26	<tr>
27		<th><?php echo $bezlang['report_total'] ?></th>
28		<td><?php echo $template['report']['issues_total'] ?></td>
29		<td><?php echo $template['report']['issues_totalcost'] ?></td>
30	</tr>
31</table>
32<h2><?php echo $bezlang['report_tasks'] ?></h2>
33<table class="bez_sumarise">
34	<tr>
35		<th><?php echo $bezlang['class'] ?></th>
36		<th><?php echo $bezlang['number'] ?></th>
37		<th><?php echo $bezlang['totalcost'] ?></th>
38	</tr>
39	<?php foreach ($template['report']['tasks'] as $task): ?>
40		<tr>
41			<td><?php echo $task['action'] ?></td>
42			<td><?php echo $task['number'] ?></td>
43			<td>
44				<?php if ($task['totalcost'] == ''): ?>
45					<em><?php echo $bezlang['ns'] ?></em>
46				<?php else: ?>
47					<?php echo $task['totalcost'] ?>
48				<?php endif ?>
49			</td>
50		</tr>
51	<?php endforeach ?>
52	<tr>
53		<th><?php echo $bezlang['report_total'] ?></th>
54		<td><?php echo $template['report']['tasks_total'] ?></td>
55		<td><?php echo $template['report']['tasks_totalcost'] ?></td>
56	</tr>
57</table>
58
59<h2><?php echo $bezlang['report_causes'] ?></h2>
60<table class="bez_sumarise">
61	<tr>
62		<th><?php echo $bezlang['root_cause'] ?></th>
63		<th><?php echo $bezlang['number'] ?></th>
64	</tr>
65	<?php foreach ($template['report']['causes'] as $cause): ?>
66		<tr>
67			<td><?php echo $cause['rootcause'] ?></td>
68			<td><?php echo $cause['number'] ?></td>
69		</tr>
70	<?php endforeach ?>
71	<tr>
72		<th><?php echo $bezlang['report_total'] ?></th>
73		<td><?php echo $template['report']['causes_total'] ?></td>
74	</tr>
75</table>
76
77<h2><?php echo $bezlang['report_priority'] ?></h2>
78<table class="bez bez_sumarise">
79	<tr>
80		<th><?php echo $bezlang['priority'] ?></th>
81		<th><?php echo $bezlang['number'] ?></th>
82		<th><?php echo $bezlang['average'] ?></th>
83	</tr>
84	<?php foreach ($template['report']['priorities'] as $priority): ?>
85		<tr class="pr<?php echo $priority['priority_nr'] ?>">
86			<td><?php echo $priority['priority'] ?></td>
87			<td><?php echo $priority['number'] ?></td>
88			<td><?php echo $priority['average'] ?></td>
89		</tr>
90	<?php endforeach ?>
91	<tr>
92		<th><?php echo $bezlang['report_total'] ?></th>
93		<td><?php echo $template['report']['priorities_total'] ?></td>
94		<td><?php echo $template['report']['priorities_average'] ?></td>
95	</tr>
96</table>
97