transScript.php
// builds an HTML Cumulative College Report Document
builds an HTML Cumulative College Report Document
builds an HTML Cumulative College Report Document
public static function buildCumColRpt($dataobject, $query){
        $report_data = $dataobject->query($query);
        $report_raw = $report_data->fetchArray();
        $totalcreds = $report_raw["Total Credits"];
        $col1 = $report_raw["College [1]"];
        $deg1 = $report_raw["Degree [1]"];
        $maj1 = $report_raw["Major [1]"];
        $gpa1 =  $report_raw["GPA [1]"];
        $col2 =  $report_raw["College [2]"];
        $deg2 =  $report_raw["Degree [2]"];
        $maj2 =  $report_raw["Major [2]"];
        $gpa2 =  $report_raw["GPA [2]"];
        $report = new DOMDocument();
        $html = "<head><title>Cumulative College Report</title></head><center><strong>Cumulative College Report</strong></center><br><br><table style='width:100%'><tr><th>Total Credits</th><th>College [1]</th><th>Degree [1]</th><th>Major [1]</th><th>GPA [1]</th><th>College [2]</th><th>Degree [2]</th><th>Major [2]</th><th>GPA [2]</th></tr><hr><tr><td>$totalcreds</td><td>$col1</td><td>$deg1</td><td>$maj1</td><td>$gpa1</td><td>$col2</td><td>$maj2</td><td>$deg2</td><td>$gpa2</td></tr></table>";
        @$report->loadHTML($html);
        $report->saveHTMLFile('sysgens/cumColRpt.html');
    }
public static function buildCumColRpt ( $ dataobject , $ query ) { $ report_data = $ dataobject -> query ( $ query ) ; $ report_raw = $ report_data -> fetchArray ( ) ; $ totalcreds = $ report_raw [ " Total Credits " ] ; $ col1 = $ report_raw [ " College [1] " ] ; $ deg1 = $ report_raw [ " Degree [1] " ] ; $ maj1 = $ report_raw [ " Major [1] " ] ; $ gpa1 = $ report_raw [ " GPA [1] " ] ; $ col2 = $ report_raw [ " College [2] " ] ; $ deg2 = $ report_raw [ " Degree [2] " ] ; $ maj2 = $ report_raw [ " Major [2] " ] ; $ gpa2 = $ report_raw [ " GPA [2] " ] ; $ report = new DOMDocument ( ) ; $ html = " <head><title>Cumulative College Report</title></head><center><strong>Cumulative College Report</strong></center><br><br><table style='width:100%'><tr><th>Total Credits</th><th>College [1]</th><th>Degree [1]</th><th>Major [1]</th><th>GPA [1]</th><th>College [2]</th><th>Degree [2]</th><th>Major [2]</th><th>GPA [2]</th></tr><hr><tr><td> $ totalcreds </td><td> $ col1 </td><td> $ deg1 </td><td> $ maj1 </td><td> $ gpa1 </td><td> $ col2 </td><td> $ maj2 </td><td> $ deg2 </td><td> $ gpa2 </td></tr></table> " ; @ $ report -> loadHTML ( $ html ) ; $ report -> saveHTMLFile ( 'sysgens/cumColRpt.html' ) ; }
builds an HTML Cumulative College Report Document
builds an HTML Cumulative College Report Document