classID = $classID;
$this->cellID = $cellID;
$this->cellData = $cellData;
$this->isTrigger = $isTrigger;
}
};
if ($_SERVER[REQUEST_METHOD] == "POST")
{
$cells = array();
$formID = 0;
$guid = "";
$i = 0;
$theToken = $_REQUEST['token'];
$operation = $_REQUEST['operation'];
foreach (array_keys($_POST) as $key)
{
$cellData = explode(":", $key);
error_log($key." = ".$_REQUEST[$key]);
$i++;
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
{
error_log("Unexpected post parameter: " . $param);
continue;
}
}
error_log('token is '.$theToken.'operation is '.$operation);
set_ras_token_in_use($user, $theToken, true);
$theWizard = ibm_submit_ticket_response($user, $guid, (int)$formID, count($cells), $cells, $theToken);
if ($operation == "continue")
{
$theHTML = $theWizard->body;
$theTitle = $theWizard->title;
}
$theNavigationButtons = $theWizard->navigation;
if( $theHTML == "" )
{
error_log("=-- We got an End_of_sequence back");
}
}
?>
Operator Interventions Ticket Resolve
if ($theHTML == "")
{
set_ras_token_in_use($user, $theToken, false);
}
if ($operation != "continue")
{
?>
if ($operation == "close")
{
?>
Operation Complete: |
Close Operator Intervention |
|
|
Please wait for the next page to load... |
|
|
}
else
{
?>
Operation Complete: |
Exit from Operator Intervention |
|
|
Please wait for the next page to load... |
|
|
}
}
else
{
?>
}
?>