classID = $classID; $this->cellID = $cellID; $this->cellData = $cellData; $this->isTrigger = $isTrigger; } }; if ($_SERVER[REQUEST_METHOD] == "POST") { $cells = array(); $formID = 0; $guid = ""; $resolve = $_GET['resolve']; $theToken = $_POST['token']; //error_log("print_r = ". print_r($_POST, true)); foreach (array_keys($_POST) as $key) { $cellData = explode(":", $key); if (count($cellData) == 2) { $cells[] = new Cell((int)$cellData[0], (int)$cellData[1], $_POST[$key]); } else if ($key == "submitTrigger") { $cellData = explode(":", $_POST[$key]); $cells[] = new Cell((int)$cellData[0], (int)$cellData[1], "", true); } else if ($key == "formID") { $formID = $_POST[$key]; } else if ($key == "guid") { $guid = $_POST[$key]; } else if ($key == "token") { // Don't need to do anything with this token here. continue; } else { error_log("Unexpected post parameter: " . $key); continue; } } // No need to get the token again from this call the one we passed in should not change on us. $theHTML = submit_ticket_response($user, $guid, (int)$formID, count($cells), $cells, $theToken); if( $theHTML == "" ) { error_log("=-- We got an End_of_sequence back"); echo ""; } } else { $guid = $_GET['guid']; $resolve = $_GET['resolve']; $showClosedTickets = $_GET[showClosedTickets]; if( !$resolve ) { $theTicket = get_ras_ticket($user, $guid); $l = print_r($theTicket, TRUE); error_log( "theTicket = ". $l); } else { $rasResult = open_ras_ticket($user, $guid); $theToken = $rasResult->token; $theHTML = $rasResult->html; error_log( "Token = ". $theToken ); if( $theHTML == "" ) { error_log("--=-=-=-=-=-=-=-=-=-=-=-=-=-- We got the end of sequence back"); echo ""; } } } ?> Ticket Details"; else echo "Ticket Resolve"; ?>
causecode, $theTicket->name ); $l = "\n". "\n" . "\n" . "\n". "\n" . "\n" . "\n" . "\n" . "\n" . "\n" . "
Name: ". $name ."

Ticket Number: ". $theTicket->ticketNumber ."  State: ". $theTicket->state. "
Creation Date: ". $theTicket->createTime ."  ". $sPriority . ": ". $TicketPriority[$theTicket->priority]. "
Update Date: ". $theTicket->updateTime ." 

\n" . "
Description:
\n" . "
". $theTicket->description. "
\n" . ""; echo $l; //echo getObjData( $theTicket ); //include("ticketDetails_inc.htm"); $ticketDetails = get_ticket_details( $user, $guid ); // $l = print_r($ticketDetails, TRUE); // error_log( "ticketDetails = ". $l); // getObjData( $ticketDetails ); echo "
\n"; echo "\n"; echo "\n\n"; $cnt = count($ticketDetails); for( $i = 0; $i < $cnt; $i++ ) { $items = split(":", $ticketDetails[$i]); // $l = print_r($items, TRUE); // error_log( "items = ". $l); echo "\n"; echo "\n"; echo "\n"; } echo "
Technical Details
". $items[0] ." ". $items[1] ."
\n"; } else echo $theHTML; ?>
To request service from ADIC, go to www.adic.com/osr
To request service from Quantum, go to www.quantum.com/osr