transScript.php
// builds an HTML Information Report for VolState
builds an HTML Information Report for VolState
builds an HTML Information Report for VolState
public static function buildPSUInfoRpt($dataobject, $query){
        $report_data = $dataobject->query($query);
        $report_raw = $report_data->fetchArray();
        $school = $report_raw[0];
        $id = $report_raw[1];
        $gpa = $report_raw[2];
        $deg = $report_raw[3];
        $dep = $report_raw[4];
        $maj = $report_raw[5];
        $html = "<head><title>Penn State University Information</title></head><center><strong>Pennsylvania State University Information</strong></center><br><br><table style='width:100%'><tr><th>College</th><th>College ID</th><th>Overall GPA</th><th>Degree</th><th>Department</th><th>Major</th></tr><hr><tr><td>$school</td><td>$id</td><td>$gpa</td><td>$deg</td><td>$dep</td><td>$maj</td></tr></table>";
        $report = new DOMDocument();
        @$report->loadHTML($html);
        $report->saveHTMLFile('sysgens/PSUInfo.html');
    }
public static function buildPSUInfoRpt ( $ dataobject , $ query ) { $ report_data = $ dataobject -> query ( $ query ) ; $ report_raw = $ report_data -> fetchArray ( ) ; $ school = $ report_raw [ 0 ] ; $ id = $ report_raw [ 1 ] ; $ gpa = $ report_raw [ 2 ] ; $ deg = $ report_raw [ 3 ] ; $ dep = $ report_raw [ 4 ] ; $ maj = $ report_raw [ 5 ] ; $ html = " <head><title>Penn State University Information</title></head><center><strong>Pennsylvania State University Information</strong></center><br><br><table style='width:100%'><tr><th>College</th><th>College ID</th><th>Overall GPA</th><th>Degree</th><th>Department</th><th>Major</th></tr><hr><tr><td> $ school </td><td> $ id </td><td> $ gpa </td><td> $ deg </td><td> $ dep </td><td> $ maj </td></tr></table> " ; $ report = new DOMDocument ( ) ; @ $ report -> loadHTML ( $ html ) ; $ report -> saveHTMLFile ( 'sysgens/PSUInfo.html' ) ; }
builds an HTML Information Report for VolState
builds an HTML Information Report for VolState