list($hr,$min)=explode(':',$info['time']); echo Misc::timeDropdown($hr,$min,'time'); ?> <font class="error"> <?=$errors['duedate']?> <?php echo $errors['time']; ?></font> <em>Time is based on your time zone (GM <?php echo $thisstaff->getTZoffset(); ?>)</em> </td> </tr> <tr> <td width="160"> Priority: </td> <td> <select name="priorityId"> <option value="0" selected >— System Default —</option> <?php if($priorities=Priority::getPriorities()) { foreach($priorities as $id =>$name) { echo sprintf('<option value="%d" %s>%s</option>', $id, ($info['priorityId']==$id)?'selected="selected"':'',$name); } } ?> </select> <font class="error"> <?=$errors['priorityId']?></font> </td> </tr> <?php if($thisstaff->canAssignTickets()) { ?> <tr> <td width="160">Assign To:</td> <td>
if ($cfg->allowOnlineAttachments() && !$cfg->allowAttachmentsOnlogin() || $cfg->allowAttachmentsOnlogin() && ($thisclient && $thisclient->isValid())) { ?> <div> <label for="attachments">Attachments:</label> <span id="uploads"></span> <input type="file" class="multifile" name="attachments[]" id="attachments" size="30" value="" /> <font class="error"> <?php echo $errors['attachments']; ?> </font> </div> <?php } ?> <?php if ($cfg->allowPriorityChange() && ($priorities = Priority::getPriorities())) { ?> <div> <label for="priority">Ticket Priority:</label> <select id="priority" name="priorityId"> <?php if (!$info['priorityId']) { $info['priorityId'] = $cfg->getDefaultPriorityId(); } //System default. foreach ($priorities as $id => $name) { echo sprintf('<option value="%d" %s>%s</option>', $id, $info['priorityId'] == $id ? 'selected="selected"' : '', $name); } ?>