1<table>
2<tr>
3    <th><?php echo $tpl->getLang('id') ?></th>
4    <th><?php echo $tpl->getLang('state') ?></th>
5    <th><?php echo $tpl->getLang('description') ?></th>
6    <th><?php echo $tpl->getLang('executor') ?></th>
7    <th><?php echo $tpl->getLang('plan') ?></th>
8    <th><?php echo $tpl->getLang('cost') ?></th>
9    <th><?php echo $tpl->getLang('closed') ?></th>
10</tr>
11<?php foreach($tpl->get('tasks') as $task): ?>
12    <tr>
13        <td>
14            <a href="<?php echo $tpl->url('task', 'tid', $task->id) ?>">
15                #z<?php echo $task->id ?>
16            </a>
17        </td>
18        <td><?php echo lcfirst($tpl->getLang('task_' . $task->state)) ?></td>
19        <td>
20            <?php echo $task->content_html ?>
21            <?php if($task->task_comment_content_html != ''): ?>
22                <hr />
23                <?php echo $task->task_comment_content_html ?>
24            <?php endif ?>
25        </td>
26        <td><?php echo $tpl->user_name($task->assignee) ?></td>
27        <td><?php echo $task->plan_date ?></td>
28        <td>
29            <?php if ($task->cost == ''): ?>
30                <em>---</em>
31            <?php else: ?>
32                <?php echo $task->cost ?>
33            <?php endif ?>
34        </td>
35        <td>
36            <?php if ($task->state == 'opened'): ?>
37                <em>---</em>
38            <?php else: ?>
39                <?php echo $tpl->date($task->close_date) ?>
40            <?php endif ?>
41        </td>
42    </tr>
43<?php endforeach ?>
44</table>
45