1e8827d73SSzymon Olewniczak<?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?> 2e8fc7594Sghi<h1> 3e8827d73SSzymon Olewniczak <?php echo $tpl->getLang('8d_report') ?> 4e8fc7594Sghi <span id="bez_8d_send_button">[<a href=" 5e8827d73SSzymon Olewniczak <?php echo $tpl->mailto('', 6e8827d73SSzymon Olewniczak $tpl->getLang('8d_report').': #'.$tpl->get('thread')->id.' '.$tpl->get('thread')->title, 7e8827d73SSzymon Olewniczak $tpl->url()) ?>"> 8e8827d73SSzymon Olewniczak ✉ <?php echo $tpl->getLang('send_mail') ?> 9e8fc7594Sghi </a>]</span> 10e8fc7594Sghi</h1> 11f2f5b3feSghi 12f2f5b3feSghi<table> 13f2f5b3feSghi<tr> 14f2f5b3feSghi <td> 1538ce6055Sghi <strong> 16e8827d73SSzymon Olewniczak <a href="<?php echo $tpl->url('thread', 'id', $tpl->get('thread')->id) ?>"> 17e8827d73SSzymon Olewniczak #<?php echo $tpl->get('thread')->id ?> 1838ce6055Sghi </a> 1938ce6055Sghi </strong> 20e8827d73SSzymon Olewniczak <?php if (!empty($tpl->get('thread')->label_name)): ?> 21e8827d73SSzymon Olewniczak <?php echo $tpl->get('thread')->label_name ?> 22e8827d73SSzymon Olewniczak <?php else: ?> 23e8827d73SSzymon Olewniczak <i style="color: #777"><?php echo $tpl->getLang('issue_type_no_specified') ?></i> 24e8827d73SSzymon Olewniczak <?php endif ?> 25f2f5b3feSghi </td> 26f2f5b3feSghi 27f2f5b3feSghi <td> 28e8827d73SSzymon Olewniczak <strong><?php echo $tpl->getLang('open_date') ?>:</strong> 29*ff14b107SSzymon Olewniczak <?php echo $tpl->date($tpl->get('thread')->create_date) ?> 30f2f5b3feSghi </td> 31f2f5b3feSghi</tr> 32f2f5b3feSghi 33f2f5b3feSghi <tr> 349fbfe943Sghi <td colspan="2"> 35e8827d73SSzymon Olewniczak <strong><?php echo $tpl->getLang('title') ?>:</strong> 36e8827d73SSzymon Olewniczak <?php echo $tpl->get('thread')->title ?> 37f2f5b3feSghi </td> 38f2f5b3feSghi</tr> 39f2f5b3feSghi</table> 40e2b0e8caSSzymon Olewniczak<?php $D = 1 ?> 41e8827d73SSzymon Olewniczak<h2><?php echo $D++ ?>D - <?php echo $tpl->getLang('1d') ?></h2> 4266b54849Sghi<ul> 43e8827d73SSzymon Olewniczak <?php foreach($tpl->get('thread')->get_participants() as $participant): ?> 44e8827d73SSzymon Olewniczak <li><?php echo $tpl->user_name($participant['user_id']) ?></li> 4566b54849Sghi <?php endforeach ?> 4666b54849Sghi</ul> 47f2f5b3feSghi 48e8827d73SSzymon Olewniczak<h2><?php echo $D++ ?>D - <?php echo $tpl->getLang('2d') ?></h2> 49e8827d73SSzymon Olewniczak<?php echo $tpl->get('thread')->content_html ?> 50f2f5b3feSghi 51e8827d73SSzymon Olewniczak<?php if (count($tpl->get('8d_tasks')['correction']) > 0): ?> 52e8827d73SSzymon Olewniczak <h2><?php echo $D++ ?>D - <?php echo $tpl->getLang('3d') ?></h2> 53e8827d73SSzymon Olewniczak <?php $tpl->set('tasks', $tpl->get('8d_tasks')['correction']) ?> 5444189046SSzymon Olewniczak <?php include '8d_tasks.php' ?> 55e2b0e8caSSzymon Olewniczak<?php endif ?> 56683e6b20Sghi 57e8827d73SSzymon Olewniczak<?php if (count($tpl->get('causes_real')) > 0): ?> 58e8827d73SSzymon Olewniczak <h2><?php echo $D++ ?>D - <?php echo $tpl->getLang('4d') ?></h2> 59e8827d73SSzymon Olewniczak <?php $tpl->set('causes', $tpl->get('causes_real')) ?> 6044189046SSzymon Olewniczak <?php include '8d_causes.php' ?> 61e2b0e8caSSzymon Olewniczak<?php endif ?> 6238ce6055Sghi 63e8827d73SSzymon Olewniczak<?php if (count($tpl->get('8d_tasks')['corrective']) > 0): ?> 64e8827d73SSzymon Olewniczak <h2><?php echo $D++ ?>D - <?php echo $tpl->getLang('5d') ?></h2> 65e8827d73SSzymon Olewniczak <?php $tpl->set('tasks', $tpl->get('8d_tasks')['corrective']) ?> 6644189046SSzymon Olewniczak <?php include '8d_tasks.php' ?> 67e2b0e8caSSzymon Olewniczak<?php endif ?> 68f2f5b3feSghi 69e8827d73SSzymon Olewniczak<?php if (count($tpl->get('causes_potential')) > 0): ?> 70e8827d73SSzymon Olewniczak <h2><?php echo $D++ ?>D - <?php echo $tpl->getLang('6d') ?></h2> 71e8827d73SSzymon Olewniczak <?php $tpl->set('causes', $tpl->get('causes_potential')) ?> 7244189046SSzymon Olewniczak <?php include '8d_causes.php' ?> 73e2b0e8caSSzymon Olewniczak<?php endif ?> 74f2f5b3feSghi 75e8827d73SSzymon Olewniczak<?php if (count($tpl->get('8d_tasks')['preventive']) > 0): ?> 76e8827d73SSzymon Olewniczak <h2><?php echo $D++ ?>D - <?php echo $tpl->getLang('7d') ?></h2> 77e8827d73SSzymon Olewniczak <?php $tpl->set('tasks', $tpl->get('8d_tasks')['preventive']) ?> 7844189046SSzymon Olewniczak <?php include '8d_tasks.php' ?> 79e2b0e8caSSzymon Olewniczak<?php endif ?> 800e31399aSSzymon Olewniczak 81e2b0e8caSSzymon Olewniczak 82e8827d73SSzymon Olewniczak<?php if ($tpl->get('thread')->state != 'opened'): ?> 83e8827d73SSzymon Olewniczak <h2><?php echo $D++ ?>D - <?php echo $tpl->getLang('8d') ?></h2> 84e8827d73SSzymon Olewniczak <?php echo $tpl->get('thread')->closing_comment() ?> 85f2f5b3feSghi <table> 86f2f5b3feSghi <tr> 87f2f5b3feSghi <td> 88e8827d73SSzymon Olewniczak <strong><?php echo $tpl->getLang('true_date') ?>:</strong> 89*ff14b107SSzymon Olewniczak <?php echo $tpl->date($tpl->get('thread')->close_date) ?> 90f2f5b3feSghi </td> 91f2f5b3feSghi <td> 92e8827d73SSzymon Olewniczak <strong><?php echo $tpl->getLang('state') ?>:</strong> 93e8827d73SSzymon Olewniczak <?php echo $tpl->getLang('state_' . $tpl->get('thread')->state) ?> 94f2f5b3feSghi </td> 95f2f5b3feSghi </tr> 96f2f5b3feSghi 97f2f5b3feSghi <tr> 98f2f5b3feSghi <td> 99e8827d73SSzymon Olewniczak <strong><?php echo $tpl->getLang('totalcost') ?>:</strong> 100e8827d73SSzymon Olewniczak <?php if ($tpl->get('thread')->task_sum_cost != ''): ?> 101e8827d73SSzymon Olewniczak <?php echo $tpl->get('thread')->task_sum_cost ?> 10244189046SSzymon Olewniczak <?php else: ?> 10344189046SSzymon Olewniczak <em>---</em> 10444189046SSzymon Olewniczak <?php endif ?> 105f2f5b3feSghi </td> 106f2f5b3feSghi <td> 107e8827d73SSzymon Olewniczak <strong><?php echo $tpl->getLang('coordinator') ?>:</strong> 108e8827d73SSzymon Olewniczak <?php echo $tpl->user_name($tpl->get('thread')->coordinator) ?> 109f2f5b3feSghi </td> 110f2f5b3feSghi </tr> 111f2f5b3feSghi </table> 11244189046SSzymon Olewniczak<?php endif ?> 11344189046SSzymon Olewniczak 11444189046SSzymon Olewniczak 115