1<!DOCTYPE html>
2<html>
3<head>
4<style type="text/css">
5	body {
6		font-family: Arial, sans-serif;
7	}
8	table {
9		border-collapse:collapse;
10	}
11	td, th {
12		border: 1px solid #000;
13		padding: 2px;
14	}
15	th {
16		text-align: left;
17		background-color: #EEE;
18	}
19	a {
20		text-decoration: none;
21		color: #2B73B7;
22	}
23	a:hover {
24		text-decoration: underline;
25	}
26	h1 {
27		font-size: 105%;
28	}
29</style>
30</head>
31<body>
32<?php if (count($tpl->get('issues')) > 0): ?>
33<h1>Twoje niezgodności:</h1>
34<table>
35<tr>
36	<th>Nr</th>
37	<th>Typ problemu</th>
38	<th>Tytuł</th>
39	<th>Zgłoszone</th>
40	<th>Zadania zamknięte</th>
41</tr>
42<?php foreach ($tpl->get('issues') as $issue): ?>
43<?php
44switch($issue->priority) {
45	case '2':
46		$color = "#F8E8E8";
47		break;
48	case '1':
49		$color = "#ffd";
50		break;
51	case '0':
52		$color = "#EEF6F0";
53		break;
54}
55?>
56<tr style="background-color: <?php echo $color ?>">
57	<td><a href="<?php echo $tpl->url('thread', 'id', $issue->id) ?>">
58		#<?php echo $issue->id ?>
59	</a></td>
60	<td><?php echo $issue->label_name ?></td>
61	<td><?php echo $issue->title ?></td>
62	<td><?php echo $issue->create_date ?> (<?php echo $tpl->date_fuzzy_age($issue->create_date) ?>)</td>
63	<td><?php echo $issue->task_count_closed ?>/<?php echo $issue->task_count ?></td>
64</tr>
65<?php endforeach ?>
66</table>
67<?php endif ?>
68
69<?php if (count($tpl->get('outdated_tasks')) > 0): ?>
70    <h1>Zadania przeterminowane</h1>
71    <?php $tpl->set('tasks', $tpl->get('outdated_tasks')) ?>
72    <?php include 'weekly-message-tasks.php' ?>
73<?php endif ?>
74
75<?php if (count($tpl->get('coming_tasks')) > 0): ?>
76    <h1>Zadania nadchodzące</h1>
77    <?php $tpl->set('tasks', $tpl->get('coming_tasks')) ?>
78    <?php include 'weekly-message-tasks.php' ?>
79<?php endif ?>
80
81<?php include __DIR__ . "/../mail/footer.php" ?>
82
83</body>
84</html>
85