libs; $fullSlots = $counts->media_count; $totalSlots = $counts->slot_count; $unassignedSlots = $counts->unassigned_slot_count; $licensedSlots = $counts->licensed_slot_count; $unlicensedSlots = $counts->unlicensed_slot_count; $emptySlots = $totalSlots - $fullSlots - $unassignedSlots; // initialize variables $numRows = 0; $TicketPriority = array( "Unspecified", "Low", "High", "Urgent" ); $TicketType = array( "Unspecified", "Interactive Diagnostics Required", "FRU Replacement Required", "Corrective Action Required", "Warning" ); $sortCriteria = new SortCriteria(); $sortCriteria->sortColumn = TICKET_SORT_DEFAULT; $sortCriteria->ascending = false; $stateView = "Open"; if ($_SERVER[REQUEST_METHOD] == "POST") { $sortCriteria->sortColumn = TICKET_SORT_DEFAULT; $sortCriteria->ascending = false; $displayMessage = $_REQUEST["Message"]; $returnMessage = $_REQUEST["returnMessage"]; $stateView = $_REQUEST['stateView']; $errorCode = $_REQUEST["errorCode"]; } $subsystem = "all"; $state = 4; // 1=UnOpen 2=Open 3=Closed 4=All(Open and Unopend) if ($stateView == "All") { $showClosed = true; } else if ($stateView == "Closed") { $showClosed = true; $state = 3; } else { $showClosed = false; $state = 4; } $tickets = get_ras_tickets($user, $sortCriteria, $state, $subsystem, $showClosed); $numTickets = count($tickets); // get the counts needed to display the main table $numRows = count($tickets); // determine the attributes for the div that handles displaying and scrolling // for the main data table if ($numRows > MAX_ROWS) { // make the table scrollable $divAttributes['divClass'] = "table-scroll"; $divAttributes['thClass'] = "table-noscroll"; $divAttributes['divHeight'] = MAX_SIZE_DRIVE_LIST; } else { // no scrolling needed $divAttributes['divClass'] = ""; $divAttributes['thClass'] = ""; $divAttributes['divHeight'] = ""; } ?>
View Operator Interventions Ticket Details |
if ($theTicket->state != "Closed") { ?> | } ?> |
|