1<?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?>
2<h1>
3    <?php echo $tpl->getLang('kp_report') ?>
4    <span id="bez_8d_send_button">[<a href="
5		<?php echo $tpl->mailto('',
6                                $tpl->getLang('kp_report').': #'.$tpl->get('thread')->id.' '.$tpl->get('thread')->title,
7                                $tpl->url('kp', 'id', $tpl->get('thread')->id) . '?t=' . $_GET['t']); ?>">
8<?php echo $tpl->getLang('send_mail') ?>
9	</a>]</span>
10</h1>
11
12<table>
13    <tr>
14        <td>
15            <strong>
16                <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id) ?>">
17                    #<?php echo  $tpl->get('thread')->id ?>
18                </a>
19            </strong>
20            <?php echo $tpl->getLang('project') ?>
21        </td>
22
23        <td>
24            <strong><?php echo $tpl->getLang('open_date') ?>:</strong>
25            <?php echo $tpl->date($tpl->get('thread')->create_date) ?>
26        </td>
27    </tr>
28
29    <tr>
30        <td colspan="2">
31            <strong><?php echo $tpl->getLang('title') ?>:</strong>
32            <?php echo  $tpl->get('thread')->title ?>
33        </td>
34    </tr>
35</table>
36<h2><?php echo $tpl->getLang('kp_team') ?></h2>
37<ul>
38    <?php foreach($tpl->get('thread')->get_participants() as $participant): ?>
39        <li><?php echo $tpl->user_name($participant['user_id']) ?></li>
40    <?php endforeach ?>
41</ul>
42
43<h2><?php echo $tpl->getLang('kp_description') ?></h2>
44<?php echo $tpl->get('thread')->content_html ?>
45
46<?php if (count($tpl->get('tasks')) > 0): ?>
47    <h2><?php echo $tpl->getLang('kp_schedule') ?></h2>
48    <?php include '8d_tasks.php' ?>
49<?php endif ?>
50
51<?php if ($tpl->get('thread')->state == 'closed'): ?>
52    <h2><?php echo $tpl->getLang('kp_evaluation') ?></h2>
53    <?php echo  $tpl->get('thread')->closing_comment() ?>
54    <table>
55        <tr>
56            <td>
57                <strong><?php echo $tpl->getLang('true_date') ?>:</strong>
58                <?php echo $tpl->date($tpl->get('thread')->close_date) ?>
59            </td>
60            <td>
61                <strong><?php echo $tpl->getLang('state') ?>:</strong>
62                <?php echo $tpl->getLang('state_' . $tpl->get('thread')->state) ?>
63            </td>
64        </tr>
65
66        <tr>
67            <td>
68                <strong><?php echo $tpl->getLang('totalcost') ?>:</strong>
69                <?php if ($tpl->get('thread')->task_sum_cost != ''): ?>
70                    <?php echo $tpl->get('thread')->task_sum_cost ?>
71                <?php else: ?>
72                    <em>---</em>
73                <?php endif ?>
74            </td>
75            <td>
76                <strong><?php echo $tpl->getLang('coordinator') ?>:</strong>
77                <?php echo $tpl->user_name($tpl->get('thread')->coordinator) ?>
78            </td>
79        </tr>
80    </table>
81<?php endif ?>
82
83
84