include("schedulelist.php");
$slots = array("10-12 / top 20",
"10-12 / olr","10-12 / live shows",
"10-12 / sworn to the dark",
"10-12 / monday night strike",
"10-12 / all stars",
"10-12", "10-11:30", "10-12:30", "11:30-1", "12-2:30", "12-2",
"12-2 / top 20",
"12:30-3",
"12-3", "12-5", "12:30-2:30", "1-2:30", "2-3:30", "2-5", "2:30-5", "3-5", "3:30-5");
$slot_text= array("10-12 / top 20" => "ten pm / top 20",
"10-12 / live shows" => "ten pm / live shows",
"10-12 / monday night strike" => "ten pm / strike",
"10-12" => "ten pm", "10-11:30" => "ten pm",
"10-12:30" => "ten pm",
"10-12 / sworn to the dark" => "ten pm / sworn to the dark",
"11:30-1" => "eleven thirty",
"12-2 / top 20" => "midnight / top 20" ,
"12-2:30" => "midnight",
"12-2" => "midnight",
"10-12 / top 20" => "ten pm / top 20",
"midnight", "12-2" => "midnight",
"12:30-2:30" => "twelve thirty",
"12:30-3" => "twelve thirty",
"12-3" => "midnight",
"12-5" => "midnight",
"1-2:30" => "one am",
"10-12 / olr" => "ten / our little rendezvous",
"10-12 / all stars" => "ten / all stars",
"2-3:30" => "two", "2-5" => "two", "3-5" => "three", "3:30-5" => "three-thirty", "2:30-5" => "two-thirty"
);
function print_day($day) {
global $schedule, $slots, $slot_text;
print("" . strtolower($day) . "
");
foreach ($slots as $slot) {
$name= $schedule[$day][$slot];
if($name) {
$text= $slot_text[$slot];
print("${text}: ${name}
");
}
}
}
?>