iVersionId); if(!($_SESSION['current']->hasAppVersionModifyPermission($oVersion))) util_show_error_page("Insufficient privileges."); if(($aClean['sSub'] == 'Submit') || ($aClean['sSub'] == 'Save') || ($aClean['sSub'] == 'Reject') || ($aClean['sSub'] == 'Delete')) { if(is_numeric($aClean['iTestingId'])) { $oTest = new testData($aClean['iTestingId']); $oTest->GetOutputEditorValues(); if($aClean['sSub'] == 'Submit') // submit the testing results { $oTest->update(true); $oTest->unQueue(); } else if($aClean['sSub'] == 'Save') // save the testing results { $oTest->update(); } else if($aClean['sSub'] == 'Reject') // reject testing results { $oTest->update(true); $oTest->Reject(); } else if($aClean['sSub'] == 'Delete') // delete testing results { $oTest->delete(); } redirect($_SERVER['PHP_SELF']); } } if(is_numeric($aClean['iTestingId'])) { $oTest = new testData($aClean['iTestingId']); } $oVersion = new Version($oTest->iVersionId); $oApp = new application($oVersion->iAppId); $sVersionInfo = $oApp->sName." ".$oVersion->sName; if ($aClean['sSub'] == 'view') { switch($oTest->sQueued) { case "true": apidb_header("Edit new testing results for ".$sVersionInfo); break; case "rejected": apidb_header("Edit rejected testing results for ".$sVersionInfo); break; case "false": apidb_header("Edit testing results for ".$sVersionInfo); break; } echo '