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</tr>
10<?php foreach($tpl->get('tasks') as $task): ?>
11    <tr>
12        <td>
13            <a href="<?php echo $tpl->url('task', 'tid', $task->id) ?>">
14                #z<?php echo $task->id ?>
15            </a>
16        </td>
17        <td><?php echo lcfirst($tpl->getLang('task_' . $task->state)) ?></td>
18        <td>
19            <?php echo $task->content_html ?>
20        </td>
21        <td><?php echo $tpl->user_name($task->assignee) ?></td>
22        <td><?php echo $task->plan_date ?></td>
23        <td>
24            <?php if ($task->cost == ''): ?>
25                <em>---</em>
26            <?php else: ?>
27                <?php echo $task->cost ?>
28            <?php endif ?>
29        </td>
30    </tr>
31<?php endforeach ?>
32</table>
33