1<?php if ($helper->user_coordinator($template['issue']['id']) && isset($nparams['tid'])): ?> 2 <?php $issue = $template['issue'] ?> 3 <?php include "issue_box.php" ?> 4 <br> 5 <?php if (isset($template['cause'])): ?> 6 <?php $cause = $template['cause'] ?> 7 <div class="bds_block" id="bez_causes"> 8 <?php include "cause.php" ?> 9 </div> 10 <br> 11 <?php endif ?> 12 13 <form class="bez_form bez_task_form" action="?id=<?php echo $template['task_action'] ?>" method="POST"> 14 <fieldset class="bds_form"> 15 <?php if (isset($nparams['tid'])): ?> 16 <div class="row"> 17 <label for="id"><?php echo $bezlang['id'] ?>:</label> 18 <span><strong>#z<?php echo $nparams['tid'] ?></strong></span> 19 </div> 20 <?php endif ?> 21 <?php if (!$helper->user_coordinator($template['issue']['id'])) $disabled = 'disabled' ?> 22 <div class="row"> 23 <label for="executor"><?php echo $bezlang['executor'] ?>:</label> 24 <span> 25 <select name="executor" id="executor" <?php echo $disabled ?>> 26 <?php foreach ($template['users'] as $nick => $name): ?> 27 <option <?php if ($value['executor'] == $nick) echo 'selected' ?> 28 value="<?php echo $nick ?>"><?php echo $name ?></option> 29 <?php endforeach ?> 30 </select> 31 </span> 32 </div> 33 <div class="row"> 34 <label for="action"><?php echo $bezlang['action'] ?>:</label> 35 <span> 36 37 <strong> 38 <?php if (!isset($template['cause'])): ?> 39 <?php echo $bezlang['correction'] ?> 40 <input type="hidden" name="action" value="0" /> 41 <?php elseif ($template['cause']['potential'] == 0): ?> 42 <?php echo $bezlang['corrective_action'] ?> 43 <input type="hidden" name="action" value="1" /> 44 <?php else: ?> 45 <?php echo $bezlang['preventive_action'] ?> 46 <input type="hidden" name="action" value="2" /> 47 <?php endif ?> 48 </strong> 49 </span> 50 </div> 51 52 <div class="row"> 53 <label for="task"><?php echo $bezlang['description'] ?>:</label> 54 <span><textarea name="task" id="task" <?php echo $disabled ?>><?php echo $value['task'] ?></textarea></span> 55 </div> 56 57 <div class="row"> 58 <label for="cost"><?php echo $bezlang['cost'] ?>:</label> 59 <span><input name="cost" id="cost" value="<?php echo $value['cost'] ?>" <?php echo $disabled ?>></span> 60 </div> 61 <?php if (isset($nparams['tid'])): ?> 62 <div class="row"> 63 <label for="task_state"><?php echo $bezlang['task_state'] ?>:</label> 64 <span> 65 <strong><?php echo $template['state'] ?></strong> 66 </span> 67 </div> 68 <?php if ($template['raw_state'] != 0): ?> 69 <div class="row"> 70 <label for="reason"> 71 <?php if ($template['raw_state'] == 1): ?> 72 <?php echo $bezlang['evaluation'] ?> 73 <?php else: ?> 74 <?php echo $bezlang['reason'] ?> 75 <?php endif ?> 76 </label> 77 <span><textarea name="reason" id="reason"><?php echo $value['reason'] ?></textarea></span> 78 </div> 79 <?php endif ?> 80 <?php endif ?> 81 </fieldset> 82 <input type="submit" value="<?php echo $template['task_button'] ?>"> 83 <a href="?id=<?php 84 if (isset($nparams[tid])) 85 echo $this->id('issue_task', 'id', $template['issue']['id'], 'tid', $nparams[tid]); 86 else 87 echo $this->id('issue_tasks', 'id', $template['issue']['id']); 88 ?>" 89 class="bez_delete_button bez_link_button"> 90 <?php echo $bezlang['cancel'] ?> 91 </a> 92 93 </form> 94 <?php endif ?> 95 <a name="z_"></a> 96 </div> 97</div> 98 99