transScript.php
// builds and HTML Credit Breakdown Report
builds and HTML Credit Breakdown Report
builds and HTML Credit Breakdown Report
public static function buildCreditBreakdownRpt($dataobject, $query){
        $breakdown_data = $dataobject->query($query);
        $breakdown_raw = $breakdown_data->fetchArray();
        $vscredits = $breakdown_raw[0];
        $psucredits = $breakdown_raw[1];
        $transcredits = $breakdown_raw[2];
        $transto = $breakdown_raw[3];
        $transfrom = $breakdown_raw[4];
        $html = "<head><title>Credit Breakdown</title></head><center><strong>Credit Breakdown Report</strong></center><br><br><table style='width:100%'><tr><th>Credit Count :: VolState</th><th>Credit Count :: Penn State</th><th>Credit Count :: Transfer</th><th>Transferred To:</th><th>Transferred From:</th></tr><hr><tr><td>$vscredits</td><td>$psucredits</td><td>$transcredits</td><td>$transto</td><td>$transfrom</td></tr></table>";
        $report = new DOMDocument();
        @$report->loadHTML($html);
        $report->saveHTMLFile('sysgens/CredBreakdownRpt.html');
    }
public static function buildCreditBreakdownRpt ( $ dataobject , $ query ) { $ breakdown_data = $ dataobject -> query ( $ query ) ; $ breakdown_raw = $ breakdown_data -> fetchArray ( ) ; $ vscredits = $ breakdown_raw [ 0 ] ; $ psucredits = $ breakdown_raw [ 1 ] ; $ transcredits = $ breakdown_raw [ 2 ] ; $ transto = $ breakdown_raw [ 3 ] ; $ transfrom = $ breakdown_raw [ 4 ] ; $ html = " <head><title>Credit Breakdown</title></head><center><strong>Credit Breakdown Report</strong></center><br><br><table style='width:100%'><tr><th>Credit Count :: VolState</th><th>Credit Count :: Penn State</th><th>Credit Count :: Transfer</th><th>Transferred To:</th><th>Transferred From:</th></tr><hr><tr><td> $ vscredits </td><td> $ psucredits </td><td> $ transcredits </td><td> $ transto </td><td> $ transfrom </td></tr></table> " ; $ report = new DOMDocument ( ) ; @ $ report -> loadHTML ( $ html ) ; $ report -> saveHTMLFile ( 'sysgens/CredBreakdownRpt.html' ) ; }
builds and HTML Credit Breakdown Report
builds and HTML Credit Breakdown Report