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'] = ""; } ?>