Lines Matching refs:tpl

1 <?php /* @var \dokuwiki\plugin\bez\meta\Tpl $tpl */ ?>
3 <?php if (!$tpl->get('no_filters', false)): ?>
5 <?php if ($tpl->factory('task')->permission() >= BEZ_TABLE_PERMISSION_INSERT): ?>
6 <a href="<?php echo $tpl->url('task_form') ?>" class="bez_start_button" id="bez_report_task_button">
7 <?php echo $tpl->getLang('add_task') ?>
14 <form action="<?php echo $tpl->url('tasks') ?>" method="POST">
17 <label><?php echo $tpl->getLang('reporter') ?>:
19 <option <?php if ($tpl->value('original_poster') == '-all') echo 'selected' ?>
20 value="-all">--- <?php echo $tpl->getLang('all') ?> ---</option>
21 <optgroup label="<?php echo $tpl->getLang('users') ?>">
22 <?php foreach ($tpl->get('users') as $nick => $name): ?>
23 <option <?php if ($tpl->value('original_poster') == $nick) echo 'selected' ?>
27 <optgroup label="<?php echo $tpl->getLang('groups') ?>">
28 <?php foreach ($tpl->get('groups') as $name): ?>
30 <option <?php if ($tpl->value('original_poster') == $group) echo 'selected' ?>
37 <label><?php echo $tpl->getLang('class') ?>:
39 <option <?php if ($tpl->value('type') == '-all') echo 'selected' ?>
40 value="-all">--- <?php echo $tpl->getLang('all') ?> ---</option>
42 <option <?php if ($tpl->value('type') == $type) echo 'selected' ?>
43 value="<?php echo $type ?>"><?php echo $tpl->getLang('task_type_' . $type) ?></option>
48 <label><?php echo $tpl->getLang('state') ?>:
50 <option <?php if ($tpl->value('state') == '-all') echo 'selected' ?>
51 value="-all">--- <?php echo $tpl->getLang('all') ?> ---</option>
53 <option <?php if ($tpl->value('state') == $state) echo 'selected' ?>
54 value="<?php echo $state ?>"><?php echo lcfirst($tpl->getLang('task_' . $state)) ?></option>
59 <label><?php echo $tpl->getLang('task_type') ?>:
61 <option <?php if ($tpl->value('task_program_id') == '-all') echo 'selected' ?>
62 value="-all">--- <?php echo $tpl->getLang('all') ?> ---</option>
63 <option <?php if ($tpl->value('task_program_id') == '-none') echo 'selected' ?>
64 value="-none">-- <?php echo $tpl->getLang('none') ?> --</option>
65 <?php foreach ($tpl->get('task_programs') as $task_program): ?>
66 <option <?php if ($tpl->value('task_program_id') == $task_program->id) echo 'selected' ?>
72 <label><?php echo $tpl->getLang('executor') ?>:
74 <option <?php if ($tpl->value('assignee') == '-all') echo 'selected' ?>
75 value="-all">--- <?php echo $tpl->getLang('all') ?> ---</option>
76 <optgroup label="<?php echo $tpl->getLang('users') ?>">
77 <?php foreach ($tpl->get('users') as $nick => $name): ?>
78 <option <?php if ($tpl->value('assignee') == $nick) echo 'selected' ?>
82 <optgroup label="<?php echo $tpl->getLang('groups') ?>">
83 <?php foreach ($tpl->get('groups') as $name): ?>
85 <option <?php if ($tpl->value('assignee') == $group) echo 'selected' ?>
93 <label><?php echo $tpl->getLang('description') ?>:
94 <input name="content" value="<?php echo $tpl->value('content') ?>" />
101 <option <?php if ($tpl->value('date_type') == 'plan_date') echo 'selected' ?>
102 value="plan_date"><?php echo $tpl->getLang('plan_date') ?></option>
103 <option <?php if ($tpl->value('date_type') == 'create_date') echo 'selected' ?>
104 value="create_date"><?php echo $tpl->getLang('open_date') ?></option>
105 <option <?php if ($tpl->value('date_type') == 'close_date') echo 'selected' ?>
106 value="close_date"><?php echo $tpl->getLang('close_date') ?></option>
109 <label><?php echo $tpl->getLang('month') ?>:
111 <option <?php if ($tpl->value('month') == '-all') echo 'selected' ?>
112 value="-all">--- <?php echo $tpl->getLang('all') ?> ---</option>
113 <?php foreach ($tpl->get('months') as $nr => $month): ?>
114 <option <?php if ($tpl->value('month') == $nr) echo 'selected' ?>
115 value="<?php echo $nr ?>"><?php echo $tpl->getLang($month) ?></option>
119 <label><?php echo $tpl->getLang('year') ?>:
121 <option <?php if ($tpl->value('year') == '-all') echo 'selected' ?>
122 value="-all">--- <?php echo $tpl->getLang('all') ?> ---</option>
123 <?php foreach ($tpl->get('years') as $year): ?>
124 <option <?php if ($tpl->value('year') == $year) echo 'selected' ?>
129 <label><button name="action" value="filter" type="submit"><?php echo $tpl->getLang('filter') ?></button></label>
136 <?php if ($tpl->user_acl_level() >= BEZ_AUTH_ADMIN): ?>
137 <form action="<?php echo $tpl->url('tasks') ?>" method="post">
139 <button type="submit" name="action" value="bulk_delete"><?= $tpl->getLang('delete_selected') ?></button>
140 <label><?= $tpl->getLang('move_to') ?>:</label>
142 <?php foreach ($tpl->get('task_programs') as $task_program): ?>
146 <button type="submit" name="action" value="bulk_move"><?= $tpl->getLang('button_move') ?></button>
151 <?php if ($tpl->user_acl_level() >= BEZ_AUTH_ADMIN): ?>
154 <th><?php echo $tpl->getLang('id') ?></th>
155 <th><?php echo $tpl->getLang('state') ?></th>
156 <th><?php echo $tpl->getLang('task_type') ?></th>
157 <th><?php echo $tpl->getLang('description') ?></th>
159 <th><?php echo $tpl->getLang('executor') ?></th>
160 <th><?php echo $tpl->getLang('plan') ?></th>
161 <th><?php echo $tpl->getLang('cost') ?></th>
163 <th><?php echo $tpl->getLang('closed') ?></th>
164 <th><?php echo $tpl->getLang('hours_no') ?></th>
170 <?php foreach ($tpl->get('tasks') as $task): ?>
174 <?php $hours = $tpl->date_diff_hours($task->start_time, $task->finish_time) ?>
175 <?php $total_hours += $tpl->time_to_float($hours) ?>
177 <?php if ($tpl->user_acl_level() >= BEZ_AUTH_ADMIN): ?>
181 <a href="<?php echo $tpl->url('task', 'tid', $task->id) ?>">
190 <?php echo lcfirst($tpl->getLang('task_' . $task->state)) ?>
192 (<?php echo lcfirst($tpl->getLang('task_outdated')) ?>)
208 <td><?php echo $tpl->user_name($task->assignee) ?></td>
213 (<?php echo $tpl->date_diff_days($task->plan_date) ?>)
232 <?php echo $tpl->date($task->close_date) ?>
250 <th><?php echo $tpl->getLang('report_total') ?></th>
251 <?php $colspan = $tpl->user_acl_level() >= BEZ_AUTH_ADMIN ? 6 : 5 ?>
254 <td colspan="1"><?php echo $tpl->float_to_time($total_hours) ?></td>
257 <?php if ($tpl->user_acl_level() >= BEZ_AUTH_ADMIN): ?>