Geocachers of the Bay Area Home         Collage images except poppies © Lynn Murphy  
'name', 'text' => 'Event', 'sortable' => 'false'), array('name' => 'date', 'text' => 'Date', 'sortable' => 'false'), array('name' => 'time', 'text' => 'Time', 'sortable' => 'false'), array('name' => 'location', 'text' => 'Location', 'sortable' => 'false')); $table_count = count($ar_table); for ($x=0;$x<$table_count;$x++) { if (empty($ar_table[$x]['name'])) { unset($ar_table[$x]); continue; } $month = @$ar_table[$x]['month']; $day = @$ar_table[$x]['day']; $year = @$ar_table[$x]['year']; if (empty($month) || empty($year)) { unset($ar_table[$x]); continue; } $day_empty = false; if (empty($day)) { $day_empty = true; $day = 1; } $item_date = mktime(0, 0, 0, $month, $day, $year); $today = mktime(0, 0, 0, date("m"), date("d"), date("Y")); if ($item_date < $today) { unset($ar_table[$x]); continue; } if ($day_empty) { $ar_table[$x]['date'] = date("F Y", $item_date); } else { $ar_table[$x]['date'] = date("l, F j, Y", $item_date); } $ar_table[$x]['sort_date'] = $item_date; } $ar_table = array_values($ar_table); ?>

BADGES

BADGES logo The Bay Area Dining and Geocaching Enthusiasts Society

Meet, eat and discuss adventures and misadventures while Geocaching

For information on our group please see our Geocaching.com BADGES Profile. You can contact us via email at .

0) { echo "

Event Calendar

"; echo ""; echo ""; $url=$_SERVER['PHP_SELF']; // the links url is this page while (list ($key, $item) = each ($headers)) { /* if ($item['name'] == $sortKey) { $sortDirTemp=''; if ($sortDir=="SORT_DESC") { $sortImg = "desc_sort.gif"; $sortAlt = "Click to sort table by " . $item['text'] . " column in ascending order"; $sortDirTemp="SORT_ASC"; } else { $sortImg = "asc_sort.gif"; $sortAlt = "Click to sort table by " . $item['text'] . " column in descending order"; $sortDirTemp="SORT_DESC"; } echo ""; } else { */ if ($item['sortable'] == "true") { $sortAlt = "Click to sort table by " . $item['text'] . " column in ascending order"; echo ""; } else { echo ""; } // } } echo ""; foreach ($ar_table as $key => $row) { $column[$key] = $row['sort_date']; } $column = array_map('strtolower', $column); array_multisort($column, SORT_ASC, $ar_table); /* if ($sortDir == "SORT_DESC") { array_multisort($column, SORT_DESC, $ar_table); } else { array_multisort($column, SORT_ASC, $ar_table); } */ //print_r($ar_table); for ($x=0;$x"; echo ""; echo ""; echo ""; echo ""; echo ""; } echo "
"; echo ""; echo $item['text']; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo $item['text']; echo ""; echo ""; echo $item['text']; echo "
"; if (!empty($ar_table[$x]['link'])) { echo ""; echo @$ar_table[$x]['name']; echo ""; } else { echo @$ar_table[$x]['name']; } echo ""; if (!empty($ar_table[$x]['date'])) { echo @$ar_table[$x]['date']; } else { echo " "; } echo ""; if (!empty($ar_table[$x]['time'])) { echo @$ar_table[$x]['time']; } else { echo " "; } echo ""; if (!empty($ar_table[$x]['location'])) { echo @$ar_table[$x]['location']; } else { echo " "; } echo "
"; } ?>