Upcoming Appearances
Here is a list of Margaret's upcoming appearances:
include("../mf_appglobals.php");
$fp = fopen ("$datadir/$scheduleFile", "r");
while ($data = fgetcsv ($fp, 2400, ",")) {
$did = $data[0];
$ids[$did] = $did;
$titles[$did] = $data[1];
$dates[$did] = $data[2];
$locations[$did] = $data[3];
$descriptions[$did] = $data[4];
$urls[$did] = $data[5];
}
fclose ($fp);
array_multisort($dates,SORT_ASC,$titles,$locations,$descriptions,$urls,$ids);
$bgColor = "C1B7E6";
$tbgColor = "FFE16C";
if (count($titles) % 2) $bgColor = "FFE16C";
if (count($titles)==1) $bgColor = "FFE16C";
$realCount = 0;
if (count($titles)) {
while (list($key, $value) = each ($titles)) {
if ($now>$dates[$key]) continue;
$realCount++;
$tmpDate = getDate($dates[$key]);
$tHour = $tmpDate[HOURS];
if ($tHour==0) {
$tHour=12;
$ampm = "am";
} elseif ($tHour>12) {
$tHour=$tHour-12;
$ampm = "pm";
} else {
$ampm = "am";
}
$tDate = $tmpDate[MONTH]." ".sprintf("%02d", $tmpDate[MDAY]).", ".$tmpDate[YEAR]." ".$tHour.":".sprintf("%02d", $tmpDate[MINUTES])." ".$ampm;
if ($bgColor == "FFE16C") {
$bgColor = "C1B7E6";
} else {
$bgColor = "FFE16C";
}
$Content .= "
\n";
if ($urls[$key]) {
if (substr($urls[$key],0,7)!="http://") $urls[$key]="http://".$urls[$key];
$Content .= "";
}
$Content .= "".$titles[$key]."";
if ($urls[$key]) $Content .= "\n";
if ($locations[$key]) $Content .= " ".$locations[$key];
$Content .= "\n ".$tDate;
if ($descriptions[$key]) $Content .= " ".$descriptions[$key]." \n | \n";
}
}
if ($realCount==0) {
$Content .= "There are no events scheduled at this time. Please check back for updates! | \n";
}
print $Content;
?>
|
© 2004 - 2009 Margaret Fox All Rights Reserved
• Site design by Elyseum
Portrait of Margaret Fox © jperlmanphotography.com
|
|
|