1, "Sunday" => 2, "Monday" => 3, "Tuesday" => 4, "Wednesday" => 5, "Thursday" => 6, "Friday" => 7 ); $month = array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ); $year = array(); $today = getdate(); for ( $i = 2000; $i <= $today['year']; ++$i ) { $year[] = strval($i); } ?> "; else { echo "\n"; echo "\n"; } } } @mysqli_free_result($result); mysqli_close($link); ?>

"; $today = getdate(); $m = isset($_GET['m']) ? $_GET['m'] : $today['mon']; $d = isset($_GET['d']) ? $_GET['d'] : "1"; $y = isset($_GET['y']) ? $_GET['y'] : $today['year']; if ( $m == 2 ) { if ( $y % 4 == 0 ) $end = 29; else $end = 28; } else if ( $m <= 7 ) { if ( $m % 2 == 0 ) $end = 30; else $end = 31; } else if ( $m > 7 ) { if ( $m % 2 == 0 ) $end = 31; else $end = 30; } reset($month); $i = 0; if ( $by != "y" ) { echo "\n"; } if ( $by == "d" ) { echo "\n"; } echo "\n"; ?>

"; if ( $by == "d" ) echo ""; echo "By Day"; if ( $by == "d" ) echo ""; echo " | "; if ( $by == "m" ) echo ""; echo "By Month"; if ( $by == "m" ) echo ""; echo " | "; if ( $by == "y" ) echo ""; echo "By Year"; if ( $by == "y" ) echo ""; echo " | Add Event

"; ?>

No events for this date.

\n"; while ( $row = mysqli_fetch_object($result) ) { echo "

start_time); } echo "&y=$y&by=d&d="; if ( $by == "d" ) { echo $d; } else { echo date("j", $row->start_time); } echo "#$row->id>$row->title"; echo "  id>Delete | id>Edit"; if ( $by != "d" ) { $date = date("l, M j, Y g:i a", $row->start_time); echo "
Starts: $date "; $date = date("l, M j, Y g:i a", $row->end_time); echo "
Ends: $date"; } } if ( $by == "d" ) { mysqli_data_seek($result, 0); while ( $row = mysqli_fetch_object($result) ) { echo "

\n"; echo "

$row->title"; echo "

\n"; $date = getdate($row->start_time); echo "\n"; echo "\n"; echo ""; echo ""; echo ""; $date = getdate($row->end_time); echo "\n"; echo ""; $result1 = mysqli_query($link, "select * from event_locations where id = $row->location"); if ( !$result1 ) { $location = $location_name.", ".$location_street_address.", ".$location_city_state_zipcode."."; } else { $row1 = mysqli_fetch_object($result1); $location = $row1->name; if ($row->street_address != "") { $location .= ", ".$row1->street_address; } if ($row->city_state_zipcode != "") { $location .= ", ".$row1->city_state_zipcode; } } echo "\n"; echo "\n"; mysqli_free_result($result1); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo "

Start Time"; echo "

".date("l, M j, Y g:i a", $row->start_time); echo "

"; if ( strlen($row->thumbnail) > 0 ) echo "poster', 'posterWnd', 'resizable=yes, scrollbars=yes, width=620, height=790'); return false;\">Click to enlarge...

End Time

".date("l, M j, Y g:i a", $row->end_time); echo "

Location

$location\n"; echo "

Speaker(s)

$row->speaker

Details

$row->details

Contact

$row->contact
"; echo "