1510f3b21Sghi<a name="z<?php echo $task['id'] ?>"></a> 2510f3b21Sghi<div id="z<?php echo $task['id'] ?>" class="task 3510f3b21Sghi <?php 4510f3b21Sghi switch($task['state']) { 5510f3b21Sghi case $bezlang['task_opened']: 6510f3b21Sghi echo 'opened'; 7510f3b21Sghi break; 8510f3b21Sghi case $bezlang['task_done']: 9510f3b21Sghi echo 'closed'; 10510f3b21Sghi break; 11510f3b21Sghi case $bezlang['task_rejected']: 12510f3b21Sghi echo 'rejected'; 13510f3b21Sghi break; 14510f3b21Sghi } 15510f3b21Sghi ?>"> 16510f3b21Sghi 17510f3b21Sghi<div class="bez_timebox"> 18510f3b21Sghi <span><strong><?php echo $bezlang['open'] ?>:</strong> <?php echo $helper->time2date($task['date']) ?></span> 19510f3b21Sghi <?php if ($task['state'] != $bezlang['task_opened']): ?> 20510f3b21Sghi <span> 21510f3b21Sghi <strong><?php echo $task['state']?>:</strong> 22510f3b21Sghi <?php echo $helper->time2date($task['close_date']) ?> 23510f3b21Sghi </span> 24510f3b21Sghi <?php endif ?> 25510f3b21Sghi</div> 26510f3b21Sghi 27510f3b21Sghi<h2> 28*27712358Sghi <a href="?id=<?php echo $this->id('issue_task', 'id', $template['issue']['id'], 'tid', $task['id']) ?>"> 29*27712358Sghi #z<?php echo $task['id'] ?> 30*27712358Sghi </a> 31510f3b21Sghi <?php echo lcfirst($task['action']) ?> 32510f3b21Sghi (<?php echo lcfirst($task['state']) ?>) 33510f3b21Sghi</h2> 34510f3b21Sghi 35510f3b21Sghi<table> 36510f3b21Sghi<tr> 37*27712358Sghi <td> 38*27712358Sghi <strong><?php echo $bezlang['executor'] ?>:</strong> 39*27712358Sghi <?php echo $task['executor'] ?> 40*27712358Sghi </td> 41510f3b21Sghi 42510f3b21Sghi <?php if ($task['cost'] != 0): ?> 43*27712358Sghi <td> 44*27712358Sghi <strong><?php echo $bezlang['cost'] ?>:</strong> 45*27712358Sghi <?php echo $task['cost'] ?> 46*27712358Sghi </td> 47510f3b21Sghi <?php endif ?> 48510f3b21Sghi</tr> 49510f3b21Sghi</table> 50510f3b21Sghi 51510f3b21Sghi<?php echo $task['task'] ?> 52510f3b21Sghi 53510f3b21Sghi<?php if ($task['rejected']): ?> 54510f3b21Sghi <h3><?php echo $bezlang['reason'] ?></h3> 55510f3b21Sghi <?php echo $task['reason'] ?> 56510f3b21Sghi<?php endif ?> 57510f3b21Sghi 58*27712358Sghi<div class="bez_buttons"> 59*27712358Sghi <a class="bds_inline_button" href=" 60510f3b21Sghi <?php echo $helper->mailto($task['executor_email'], 61510f3b21Sghi $bezlang['task'].': #'.$task['issue'].' '.$template['issue']['title'].' | #z'.$task['id'].' '.$task['action'], 62510f3b21Sghi $template['uri'].'#z'.$task['id']) ?>"> 63510f3b21Sghi ✉ <?php echo $bezlang['send_mail'] ?> 64510f3b21Sghi </a> 65*27712358Sghi <?php if ($template['issue'][raw_state] == 0 && 66*27712358Sghi ($task['executor_nick'] == $INFO['client'] || $helper->user_coordinator($template[issue][id]))): ?> 67*27712358Sghi <a class="bds_inline_button" 68*27712358Sghi href="?id=<?php echo $this->id('issue_show', $template['issue']['id'], 'edit', 'task', $task['id']) ?>#z_"> 69*27712358Sghi ✎ <?php echo $bezlang['edit'] ?> 70510f3b21Sghi </a> 71510f3b21Sghi <?php endif ?> 72*27712358Sghi</div> 73*27712358Sghi</div> 74*27712358Sghi 75