1<div class="bds_block"> 2<form action="<?php echo $template['uri'] ?>?id=bez:report" method="POST"> 3<fieldset class="bds_form"> 4 <label><?php echo $bezlang['entity'] ?>: 5 <select name="entity"> 6 <option <?php if ($value['entity'] == '-all') echo 'selected' ?> 7 value="-all">--- <?php echo $bezlang['all'] ?> ---</option> 8 <?php foreach ($template['entities'] as $entity): ?> 9 <option <?php if ($value['entity'] == $entity) echo 'selected' ?> 10 value="<?php echo $entity ?>"><?php echo $entity ?></option> 11 <?php endforeach ?> 12 </select> 13 </label> 14 <label><input type="submit" value="<?php echo $bezlang['filter'] ?>" /> 15 16 <span id="bez_8d_send_button">[<a href=" 17 <?php echo $helper->mailto($template['issue']['coordinator_email'], 18 $bezlang['8d_report'].': #'.$template['issue']['id'].' ['.$template['issue']['entity'].'] '.$template['issue']['title'], 19 $template['uri']) ?>"> 20 ✉ <?php echo $bezlang['send_mail'] ?> 21 </a>]</span> 22</fieldset> 23</form> 24</div> 25 26<h1><?php echo $bezlang['report'] ?></h1> 27 28<h2><?php echo $bezlang['report_issues'] ?></h2> 29<table class="bez_sumarise"> 30 <tr> 31 <th><?php echo $bezlang['type'] ?></th> 32 <th><?php echo $bezlang['number'] ?></th> 33 <th><?php echo $bezlang['totalcost'] ?></th> 34 </tr> 35 <?php foreach ($template['report']['issues'] as $issue): ?> 36 <tr> 37 <td><?php echo $issue['type'] ?></td> 38 <td><?php echo $issue['number'] ?></td> 39 <td> 40 <?php if ($issue['totalcost'] == ''): ?> 41 <em><?php echo $bezlang['ns'] ?></em> 42 <?php else: ?> 43 <?php echo $issue['totalcost'] ?> 44 <?php endif ?> 45 </td> 46 </tr> 47 <?php endforeach ?> 48 <tr> 49 <th><?php echo $bezlang['report_total'] ?></th> 50 <td><?php echo $template['report']['issues_total'] ?></td> 51 <td><?php echo $template['report']['issues_totalcost'] ?></td> 52 </tr> 53</table> 54<h2><?php echo $bezlang['report_tasks'] ?></h2> 55<table class="bez_sumarise"> 56 <tr> 57 <th><?php echo $bezlang['class'] ?></th> 58 <th><?php echo $bezlang['number'] ?></th> 59 <th><?php echo $bezlang['totalcost'] ?></th> 60 </tr> 61 <?php foreach ($template['report']['tasks'] as $task): ?> 62 <tr> 63 <td><?php echo $task['action'] ?></td> 64 <td><?php echo $task['number'] ?></td> 65 <td> 66 <?php if ($task['totalcost'] == ''): ?> 67 <em><?php echo $bezlang['ns'] ?></em> 68 <?php else: ?> 69 <?php echo $task['totalcost'] ?> 70 <?php endif ?> 71 </td> 72 </tr> 73 <?php endforeach ?> 74 <tr> 75 <th><?php echo $bezlang['report_total'] ?></th> 76 <td><?php echo $template['report']['tasks_total'] ?></td> 77 <td><?php echo $template['report']['tasks_totalcost'] ?></td> 78 </tr> 79</table> 80 81<h2><?php echo $bezlang['report_causes'] ?></h2> 82<table class="bez_sumarise"> 83 <tr> 84 <th><?php echo $bezlang['root_cause'] ?></th> 85 <th><?php echo $bezlang['number'] ?></th> 86 </tr> 87 <?php foreach ($template['report']['causes'] as $cause): ?> 88 <tr> 89 <td><?php echo $cause['rootcause'] ?></td> 90 <td><?php echo $cause['number'] ?></td> 91 </tr> 92 <?php endforeach ?> 93 <tr> 94 <th><?php echo $bezlang['report_total'] ?></th> 95 <td><?php echo $template['report']['causes_total'] ?></td> 96 </tr> 97</table> 98 99<h2><?php echo $bezlang['report_priority'] ?></h2> 100<table class="bez bez_sumarise"> 101 <tr> 102 <th><?php echo $bezlang['priority'] ?></th> 103 <th><?php echo $bezlang['number'] ?></th> 104 <th><?php echo $bezlang['average'] ?></th> 105 </tr> 106 <?php foreach ($template['report']['priorities'] as $priority): ?> 107 <tr class="pr<?php echo $priority['priority_nr'] ?>"> 108 <td><?php echo $priority['priority'] ?></td> 109 <td><?php echo $priority['number'] ?></td> 110 <td><?php echo $priority['average'] ?></td> 111 </tr> 112 <?php endforeach ?> 113 <tr> 114 <th><?php echo $bezlang['report_total'] ?></th> 115 <td><?php echo $template['report']['priorities_total'] ?></td> 116 <td><?php echo $template['report']['priorities_average'] ?></td> 117 </tr> 118</table> 119