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