error_log("Loading ticketWin.htm...........");
include('common_user_inc.htm');
class Cell
{
var $classID;
var $cellID;
var $cellData;
var $isTrigger;
function Cell($classID, $cellID, $cellData, $isTrigger=false)
{
$this->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 "";
}
}
}
?>
if( !$resolve )
echo "Ticket Details";
else
echo "Ticket Resolve";
?>
|
if( $Brand == "adic" )
{
?>
To request service from ADIC, go to www.adic.com/osr
|
}
else if( $Brand == "quantum" )
{
?>
To request service from Quantum, go to www.quantum.com/osr
|
}
?>