コード例 #1
0
    echo '<tr><td>';
    echo '<a class="thickbox" href="' . $launchUrl . '" >Launch</a>';
    echo '</td><td>';
    echo $result->getRegistrationId();
    echo '</td><td>';
    echo $result->getCourseId();
    echo '</td><td>';
    $regResults = $regService->GetRegistrationResult($result->getRegistrationId(), 0, 'xml');
    //echo $regResults;
    $xmlResults = simplexml_load_string($regResults);
    echo $xmlResults->registrationreport->complete;
    echo '</td><td>';
    echo $xmlResults->registrationreport->success;
    echo '</td><td>';
    echo $xmlResults->registrationreport->totaltime;
    echo '</td><td>';
    echo $xmlResults->registrationreport->score;
    echo '</td><td>';
    echo '<a href="LaunchHistorySample.php?regid=' . $result->getRegistrationId() . '">Launch History</a>';
    echo '</td></tr>';
}
echo '</table><br/><br/>';
$reportService = $ScormService->getReportingService();
$repAuth = $reportService->GetReportageAuth("freenav", true);
$reportageUrl = $reportService->GetReportageServiceUrl() . "Reportage/reportage.php?appId=" . $AppId . "&courseId=" . $courseid;
$reportUrl = $reportService->GetReportUrl($repAuth, $reportageUrl);
echo '<h3><a href="' . $reportUrl . '">Go to reportage for this course.</a></h3>';
?>
</body>
</html>