$ctte = array(“Budget and Taxation”=>”b”,
“Education, Health, and Environmental Affairs”=>”ehe”,
“Executive Nominations”=>”exn”,
“Finance”=>”fin”,
“Judicial Proceedings”=>”jpr”,
“Rules”=>”sru”,
“Appropriations”=>”app”,
“Economic Matters”=>”ecm”,
“Environment and Transportation”=>”env”,
“Health and Government Operations”=>”hgo”,
“Rules and Executive Nominations”=>”hru”,
“Judiciary”=>”jud”,
“Ways and Means”=>”w”);
$fname = WP_PLUGIN_DIR.”/mgaleg/hearings.txt”;
$myfile = fopen($fname, “r”) or die(“Unable to open file!”);
echo ‘
'."\n"; | |||
---|---|---|---|
echo "Bill | Name | Committee | Hearing\n"; |
while(! feof($myfile)) { | |||
$string = fgets($myfile); | |||
$bill = explode(";",$string, 5); | |||
$bill[1] = substr ($bill[1], 28); | |||
$bill[2] = substr ($bill[2], 1); | |||
$billnumber = ""."$bill[0]"; | |||
$committee = ""."$bill[2]"; | |||
echo "$billnumber | $bill[1] | $committee | $bill[3]\n"; |
} | |||
echo ' |
fclose($myfile); [/insert_php]