xref: /plugin/bez/tpl/activity_report.php (revision 7c304d967e2fbe7e6bcb4c7fe767b4d7884ed955)
1<h1 class="bez_report">
2<?php echo $template['title'] ?>
3</h1>
4
5<table>
6	<tr>
7		<th><?php echo $bezlang['user'] ?></th>
8		<th><?php echo $bezlang['reporter'] ?></th>
9		<th><?php echo $bezlang['coordinator'] ?></th>
10		<th><?php echo $bezlang['commentator'] ?></th>
11		<th><?php echo $bezlang['executor'] ?></th>
12		<th><?php echo $bezlang['report_total'] ?></th>
13	</tr>
14	<?php $reporter = 0 ?>
15	<?php $total_total = 0 ?>
16	<?php foreach ($template['report']['involvement'] as $nick => $involvement): ?>
17		<tr>
18			<td><?php echo $involvement['name'] ?></td>
19			<td><?php echo $involvement['reporter'] ?></td>
20			<td><?php echo $involvement['coordinator'] ?></td>
21			<td><?php echo $involvement['commentator'] ?></td>
22			<td><?php echo $involvement['executor'] ?></td>
23			<td><?php echo $involvement['total'] ?></td>
24		</tr>
25		<?php $reporter += (int)$involvement['reporter'] ?>
26		<?php $total_total += (int)$involvement['total'] ?>
27	<?php endforeach ?>
28</table>
29<p style="font-weight: bold">KPI = <?php echo sprintf("%.2f", $total_total/$reporter) ?></p>
30