| # | "); echo("Inst. Type | ");
echo("Institution | "); echo("AY".$acadyr1." | "); echo("AY".$acadyr2." | "); echo("AY".$acadyr3." | "); echo("AY".$acadyr4." | "); echo("AY".$acadyr5." | "); echo("3-Year Avg. | "); echo("2-Year Avg. | "); echo("Change | "); echo("||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CR | "); echo("NC | "); echo("Both | "); echo("CR | "); echo("NC | "); echo("Both | "); echo("CR | "); echo("NC | "); echo("Both | "); echo("CR | "); echo("NC | "); echo("Both | "); echo("CR | "); echo("NC | "); echo("Both | "); echo("||||||
| ".$n++." | "); echo("".$inst_type." | "); echo("".odbc_result($resultX, "school_abbr")." | "); $hrs1 = 0; $hrs1a = 0; $hrs1b = 0; $hrs2 = 0; $hrs2a = 0; $hrs2b = 0; $hrs3 = 0; $hrs3a = 0; $hrs3b = 0; $hrs4 = 0; $hrs4a = 0; $hrs4b = 0; $hrs5 = 0; $hrs5a = 0; $hrs5b = 0; $hrs_sum = 0; // year 1 $query1a = "SELECT SUM(w.enrollment * w.cr_hrs * 15) AS hrs1a FROM workforce_table w WHERE w.fice_code = '".$fice_code."' AND w.academic_year = '".$acadyr1."' AND w.cr_hrs > '0' ;"; //echo("".number_format($hrs1a,0)." | "); echo("".number_format($hrs1b,0)." | "); $hrs1 = $hrs1a + $hrs1b; echo("".number_format($hrs1,0)." | "); $hrs1_total = $hrs1_total + $hrs1; // year 2 $query2a = "SELECT SUM(w.enrollment * w.cr_hrs * 15) AS hrs2a FROM workforce_table w WHERE w.fice_code = '".$fice_code."' AND w.academic_year = '".$acadyr2."' AND w.cr_hrs > '0' ;"; //echo("".number_format($hrs2a,0)." | "); echo("".number_format($hrs2b,0)." | "); $hrs2 = $hrs2a + $hrs2b; echo("".number_format($hrs2,0)." | "); $hrs2_total = $hrs2_total + $hrs2; // year 3 $query3a = "SELECT SUM(w.enrollment * w.cr_hrs * 15) AS hrs3a FROM workforce_table w WHERE w.fice_code = '".$fice_code."' AND w.academic_year = '".$acadyr3."' AND w.cr_hrs > '0' ;"; //echo("".number_format($hrs3a,0)." | "); echo("".number_format($hrs3b,0)." | "); $hrs3 = $hrs3a + $hrs3b; echo("".number_format($hrs3,0)." | "); $hrs3_total = $hrs3_total + $hrs3; // year 4 $query4a = "SELECT SUM(w.enrollment * w.cr_hrs * 15) AS hrs4a FROM workforce_table w WHERE w.fice_code = '".$fice_code."' AND w.academic_year = '".$acadyr4."' AND w.cr_hrs > '0' ;"; //echo("".number_format($hrs4a,0)." | "); echo("".number_format($hrs4b,0)." | "); $hrs4 = $hrs4a + $hrs4b; echo("".number_format($hrs4,0)." | "); $hrs4_total = $hrs4_total + $hrs4; // year 5 $query5a = "SELECT SUM(w.enrollment * w.cr_hrs * 15) AS hrs5a FROM workforce_table w WHERE w.fice_code = '".$fice_code."' AND w.academic_year = '".$acadyr5."' AND w.cr_hrs > '0' ;"; //echo("".number_format($hrs5a,0)." | "); echo("".number_format($hrs5b,0)." | "); $hrs5 = $hrs5a + $hrs5b; echo("".number_format($hrs5,0)." | "); $hrs5_total = $hrs5_total + $hrs5; $hrs_avg3 = ($hrs1 + $hrs2 + $hrs3) / 3; $hrs_avg2 = ($hrs4 + $hrs5) / 2; echo("".number_format($hrs_avg3,0)." | "); echo("".number_format($hrs_avg2,0)." | "); $change = (($hrs_avg2 - $hrs_avg3) * 100) / $hrs_avg3; echo("".number_format($change,1)."% | "); echo("
| Grand Total | "); echo("".number_format($hrs1a_total,0)." | "); echo("".number_format($hrs1b_total,0)." | "); echo("".number_format($hrs1_total,0)." | "); echo("".number_format($hrs2a_total,0)." | "); echo("".number_format($hrs2b_total,0)." | "); echo("".number_format($hrs2_total,0)." | "); echo("".number_format($hrs3a_total,0)." | "); echo("".number_format($hrs3b_total,0)." | "); echo("".number_format($hrs3_total,0)." | "); echo("".number_format($hrs4a_total,0)." | "); echo("".number_format($hrs4b_total,0)." | "); echo("".number_format($hrs4_total,0)." | "); echo("".number_format($hrs5a_total,0)." | "); echo("".number_format($hrs5b_total,0)." | "); echo("".number_format($hrs5_total,0)." | "); echo("|||||
NOTES: (1) All credit courses were counted and each credit hour multiplied by 15
to produce training hours.
(2) Non-credit CEUs were only counted if the credit hours
was zero or null. Non-credit CEUs were muliplied by 10 to produce training hours.