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