1c9044e56Sghi<div id="bez_issue_filter" class="bds_block"> 2c9044e56Sghi<form action="<?php echo $template['uri'] ?>?id=bez:tasks" method="POST"> 3c9044e56Sghi<fieldset class="bds_form"> 4c9044e56Sghi<label><?php echo $bezlang['class'] ?>: 5c9044e56Sghi <select name="action"> 6c9044e56Sghi <option <?php if ($value['action'] == '-all') echo 'selected' ?> 7c9044e56Sghi value="-all">--- <?php echo $bezlang['all'] ?> ---</option> 8c9044e56Sghi <?php foreach ($template['actions'] as $key => $name): ?> 9c9044e56Sghi <option <?php if ($value['action'] == (string)$key) echo 'selected' ?> 10c9044e56Sghi value="<?php echo $key ?>"><?php echo $name ?></option> 11c9044e56Sghi <?php endforeach ?> 12c9044e56Sghi </select> 13c9044e56Sghi</label> 14c9044e56Sghi 15c9044e56Sghi<label><?php echo $bezlang['state'] ?>: 16c9044e56Sghi <select name="state"> 17c9044e56Sghi <option <?php if ($value['state'] == '-all') echo 'selected' ?> 18c9044e56Sghi value="-all">--- <?php echo $bezlang['all'] ?> ---</option> 19c9044e56Sghi <?php foreach ($template['states'] as $key => $name): ?> 20c9044e56Sghi <option <?php if ($value['state'] == (string)$key) echo 'selected' ?> 21c9044e56Sghi value="<?php echo $key ?>"><?php echo $name ?></option> 22c9044e56Sghi <?php endforeach ?> 23c9044e56Sghi </select> 24c9044e56Sghi</label> 25c9044e56Sghi 26c9044e56Sghi<label><?php echo $bezlang['executor'] ?>: 27c9044e56Sghi <select name="executor"> 28c9044e56Sghi <option <?php if ($value['executor'] == '-all') echo 'selected' ?> 29c9044e56Sghi value="-all">--- <?php echo $bezlang['all'] ?> ---</option> 30c9044e56Sghi <?php foreach ($template['executors'] as $nick => $name): ?> 31c9044e56Sghi <option <?php if ($value['executor'] == $nick) echo 'selected' ?> 32c9044e56Sghi value="<?php echo $nick ?>"><?php echo $name ?></option> 33c9044e56Sghi <?php endforeach ?> 34c9044e56Sghi </select> 35c9044e56Sghi</label> 36c9044e56Sghi 37c9044e56Sghi<label><?php echo $bezlang['year'] ?>: 38c9044e56Sghi <select name="year"> 39c9044e56Sghi <option <?php if ($value['year'] == '-all') echo 'selected' ?> 40c9044e56Sghi value="-all">--- <?php echo $bezlang['all'] ?> ---</option> 41c9044e56Sghi <?php foreach ($template['years'] as $year): ?> 42c9044e56Sghi <option <?php if ($value['year'] == $year) echo 'selected' ?> 43c9044e56Sghi value="<?php echo $year ?>"><?php echo $year ?></option> 44c9044e56Sghi <?php endforeach ?> 45c9044e56Sghi </select> 46c9044e56Sghi</label> 47c9044e56Sghi<label><input type="submit" value="<?php echo $bezlang['filter'] ?>" /> 48c9044e56Sghi</fieldset> 49c9044e56Sghi</form> 50c9044e56Sghi</div> 51c9044e56Sghi 52*bb615297Sghi<table class="bez bez_sumarise"> 53c9044e56Sghi<tr> 54c9044e56Sghi <th><?php echo $bezlang['id'] ?></th> 55c9044e56Sghi <th><?php echo $bezlang['class'] ?></th> 56c9044e56Sghi <th><?php echo $bezlang['state'] ?></th> 57c9044e56Sghi <th><?php echo $bezlang['executor'] ?></th> 58c9044e56Sghi <th><?php echo $bezlang['cost'] ?></th> 59c9044e56Sghi <th><?php echo $bezlang['date'] ?></th> 60c9044e56Sghi <th><?php echo $bezlang['closed'] ?></th> 61c9044e56Sghi</tr> 62c9044e56Sghi<?php foreach ($template['tasks'] as $task): ?> 63c9044e56Sghi <tr class="pr<?php echo $task['priority'] ?>"> 64c9044e56Sghi <td><?php echo $helper->html_task_link($task['issue'], $task['id']) ?></td> 65c9044e56Sghi <td><?php echo $task['action'] ?></td> 66c9044e56Sghi <td><?php echo $task['state'] ?></td> 67c9044e56Sghi <td><?php echo $task['executor'] ?></td> 68c9044e56Sghi <td> 69c9044e56Sghi <?php if ($task['cost'] == ''): ?> 70c9044e56Sghi <em><?php echo $bezlang['ns'] ?></em> 71c9044e56Sghi <?php else: ?> 72c9044e56Sghi <?php echo $task['cost'] ?> 73c9044e56Sghi <?php endif ?> 74c9044e56Sghi </td> 75c9044e56Sghi <td><?php echo $helper->string_time_to_now($task['date']) ?></td> 76c9044e56Sghi <td> 77c9044e56Sghi <?php if ($task['state'] == $bezlang['task_opened']): ?> 78c9044e56Sghi <em><?php echo $bezlang['ns'] ?></em> 79c9044e56Sghi <?php else: ?> 80c9044e56Sghi <?php echo $helper->string_time_to_now($task['close_date']) ?> 81c9044e56Sghi <?php endif ?> 82c9044e56Sghi </td> 83c9044e56Sghi </tr> 84c9044e56Sghi <?php endforeach ?> 85*bb615297Sghi <tr> 86*bb615297Sghi <th><?php echo $bezlang['report_total'] ?></th> 87*bb615297Sghi <td colspan="6"><?php echo count($template['tasks']) ?></td> 88*bb615297Sghi </tr> 89c9044e56Sghi</table> 90c9044e56Sghi 91c9044e56Sghi</div> 92