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