<? global $vis_language; ?>
<table width="100%" border="0"><tr><td><h1 class="vis_header_title"><? echo $ticket_details['ticket_hash']; ?></h1></td></tr>
    <tr><td><div class="vis_header_subline"><a href="?vis_module=ticket&vis_operation=ticket_details&ticket_id=<? echo $ticket_details['ticket_id']; ?>"><? echo $vis_language['TXTTICKETDETAILS']; ?></a> | <a href="?vis_module=ticket&vis_operation=ticket_reply&ticket_id=<? echo $ticket_details['ticket_id']; ?>"><? echo $vis_language['TXTREPLYTICKET']; ?></a> | <a href="?vis_module=ticket&vis_operation=ticket_edit&ticket_id=<?php echo $ticket_details['ticket_id']; ?>"><? echo $vis_language['TXTEDITTICKET']; ?></a><? if($custom_field_var!=-1) { ?> | <a href="?vis_module=ticket&vis_operation=ticket_feedback&ticket_id=<? echo $ticket_details['ticket_id']; ?>&department_id=<? echo $ticket_details['department_id']; ?>"><? echo $vis_language['TXTSENDFEEDBACK']; ?></a><? } ?></div></td></tr><? if(isset($operation['message']) && $operation['message']!='') {?>
    <tr><td><? echo $operation['message']; ?></td></tr><? } ?><tr><td>
        <div class="vis_content_window"><form name="vis_ticket_properties" method="post"><table width="100%" cellpadding="3" cellspacing="3">
            <tr><td><strong><? echo $vis_language['TXTTICKETTYPE']; ?></strong></td><td><strong><? echo $vis_language['TXTSTATUS']; ?></strong></td><td ><strong><? echo $vis_language['TXTPRIORITY']; ?></strong></td></tr>
            <tr><td><select name="vis_ticket_type" class="vis_input_small"><?php for($i=0;$i<count($type_list);$i++) {
            if($ticket_details['type_id'] == $type_list[$i]['type_id'])
                echo '<option value="'.$type_list[$i]['type_id'].'" selected="selected">'.$type_list[$i]['type_name'].'</option>';
            else
                echo '<option value="'.$type_list[$i]['type_id'].'">'.$type_list[$i]['type_name'].'</option>'; } ?></select></td>
            <td><select name="vis_ticket_status" class="vis_input_small"><?php for($i=0;$i<count($status_list);$i++) {
            if($ticket_details['status_id'] == $status_list[$i]['status_id'])
                echo '<option value="'.$status_list[$i]['status_id'].'" selected="selected">'.$status_list[$i]['status_name'].'</option>';
            else
                echo '<option value="'.$status_list[$i]['status_id'].'">'.$status_list[$i]['status_name'].'</option>'; } ?></select></td>
            <td><select name="vis_ticket_priority" class="vis_input_small"><?php for($i=0;$i<count($priority_list);$i++) {
            if($ticket_details['priority_id'] == $priority_list[$i]['priority_id'])
                echo '<option value="'.$priority_list[$i]['priority_id'].'" selected="selected">'.$priority_list[$i]['priority_name'].'</option>';
            else
                echo '<option value="'.$priority_list[$i]['priority_id'].'">'.$priority_list[$i]['priority_name'].'</option>'; } ?></select></td>
            </tr><tr>
                <td><input type="hidden" name="vis_ticket_id" id="vis_ticket_id" value="<?php echo $operation['ticket_id']; ?>" /><input type="hidden" name="vis_module" id="vis_module" value="ticket" /><input type="hidden" name="vis_operation" id="vis_operation" value="ticket_update" /><input class="vis_button" type="submit" value="<? echo $vis_language['TXTUPDATE']; ?>" /></td>
            </tr>
        </table></form><div class="vis_seprator"></div>
         <? if($custom_field_var != ''){ echo $custom_field_var; } ?>
        </div>
    </td></tr>

</table>

<? include_once(VIS_PATH_TEMPLATE.'ticket_post.php'); ?>