1<?php if ($template['issue'][raw_state] == 0 && 2 ($helper->user_coordinator($template[issue][id]) || isset($nparams[tid]))): ?> 3 <?php $issue = $template[issue] ?> 4 <?php include "issue_box.php" ?> 5 <br> 6 <?php if (isset($template[cause])): ?> 7 <?php $cause = $template[cause] ?> 8 <div class="bds_block" id="bez_causes"> 9 <?php include "cause.php" ?> 10 </div> 11 <?php endif ?> 12 <br> 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 <select name="state" id="task_state"> 66 <?php foreach ($template['task_states'] as $code => $name): ?> 67 <option <?php if ($value['state'] == $code) echo 'selected' ?> 68 value="<?php echo $code?>"><?php echo $name ?></option> 69 <?php endforeach ?> 70 </select> 71 </span> 72 </div> 73 <div class="row"> 74 <label for="reason"><?php echo $bezlang['reason'] ?>/<?php echo $bezlang[evaluation] ?>:</label> 75 <span><textarea name="reason" id="reason"><?php echo $value['reason'] ?></textarea></span> 76 </div> 77 <?php endif ?> 78 </fieldset> 79 <input type="submit" value="<?php echo $template['task_button'] ?>"> 80 <a href="?id=<?php echo $this->id('issue_task', 'id', $template['issue']['id'], 'tid', $nparams[tid]) ?>" 81 class="bez_delete_button bez_link_button"> 82 <?php echo $bezlang['cancel'] ?> 83 </a> 84 85 </form> 86 <?php endif ?> 87 <a name="z_"></a> 88 </div> 89</div> 90 91