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 ($helper->user_coordinator($template[issue][id])): ?> 16 <?php if (isset($nparams[tid])): ?> 17 <div class="row"> 18 <label for="id"><?php echo $bezlang['id'] ?>:</label> 19 <span><strong>#z<?php echo $nparams[tid] ?></strong></span> 20 </div> 21 <?php endif ?> 22 <div class="row"> 23 <label for="executor"><?php echo $bezlang['executor'] ?>:</label> 24 <span> 25 <select name="executor" id="executor"> 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 <strong> 37 <?php if (!isset($template[cause])): ?> 38 <?php echo $bezlang['correction'] ?> 39 <?php elseif ($template[cause][potential] == 0): ?> 40 <?php echo $bezlang['corrective_action'] ?> 41 <?php else: ?> 42 <?php echo $bezlang['preventive_action'] ?> 43 <?php endif ?> 44 </strong> 45 </span> 46 </div> 47 48 <div class="row"> 49 <label for="task"><?php echo $bezlang['description'] ?>:</label> 50 <span><textarea name="task" id="task"><?php echo $value['task'] ?></textarea></span> 51 </div> 52 53 <div class="row"> 54 <label for="cost"><?php echo $bezlang['cost'] ?>:</label> 55 <span><input name="cost" id="cost" value="<?php echo $value['cost'] ?>"></span> 56 </div> 57 <?php endif ?> 58 <?php if (strstr($nparams['task_action'], 'update')): ?> 59 <div class="row"> 60 <label for="task_state"><?php echo $bezlang['task_state'] ?>:</label> 61 <span> 62 <select name="state" id="task_state"> 63 <?php foreach ($template['task_states'] as $code => $name): ?> 64 <option <?php if ($value['state'] == $code) echo 'selected' ?> 65 value="<?php echo $code?>"><?php echo $name ?></option> 66 <?php endforeach ?> 67 </select> 68 </span> 69 </div> 70 <div class="row"> 71 <label for="reason"><?php echo $bezlang['reason'] ?>:</label> 72 <span><textarea name="reason" id="reason"><?php echo $value['reason'] ?></textarea></span> 73 </div> 74 <?php endif ?> 75 </fieldset> 76 <input type="submit" value="<?php echo $template['task_button'] ?>"> 77 <a href="?id=<?php echo $this->id('issue_show', $template['issue']['id']) ?>" 78 class="bez_delete_button bez_link_button"> 79 <?php echo $bezlang['cancel'] ?> 80 </a> 81 82 </form> 83 <?php endif ?> 84 <a name="z_"></a> 85 </div> 86</div> 87 88