Exemplo n.º 1
0
             list($hr,$min)=explode(':',$info['time']);
             echo Misc::timeDropdown($hr,$min,'time');
         ?>
         &nbsp;<font class="error">&nbsp;<?=$errors['duedate']?>&nbsp;<?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 >&mdash; System Default &mdash;</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>
         &nbsp;<font class="error">&nbsp;<?=$errors['priorityId']?></font>
     </td>
 </tr>
 <?php
 if($thisstaff->canAssignTickets()) { ?>
 <tr>
     <td width="160">Assign To:</td>
     <td>
Exemplo n.º 2
0
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">&nbsp;<?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);
    }
    ?>