$d2[0] ) return 1; elseif($d1[0] < $d2[0]) return -1; elseif($d1[1] > $d2[1]) return 1; elseif($d1[1] < $d2[1]) return -1; elseif($d1[2] > $d2[2]) return 1; else return -1; } /* * get the current series based on today's date * The current series is defined as being the date * that is closest to the current date without being declared in the future * * return "series id" * */ function getCurrentSeries() { global $START_HOUR; $date = date("Y-m-d"); if(date("H") < $START_HOUR ) { $date = date("Y-m-d", mktime(0, 0, 0, date("m"), date("d")-1, date("Y"))); } $query = "SELECT * FROM lake_sunday ORDER BY date DESC"; $result = mysql_query($query); $series = ""; while($row = mysql_fetch_assoc($result)) { if(compareDate($date, $row["date"])) { $series = $row["name"]; break; } } return $series; } /* * Prints out the series Also calles the getNotesForSeries function * * @param "series id" * */ function getSeries($series) { $query = "SELECT * FROM lake_sunday WHERE `name` = '$series'"; $row = mysql_fetch_assoc(mysql_query($query)); ?>

<!--{cke_protected}{C}%3C!%2D%2D%3Fphp%20echo%20%24row%5B%22%20style%3D%22padding-left%3A10px%3Bfloat%3Aright%22%20php%3D%22%22%20echo%3D%22%22%20%2D%2D%3D%22%22%20%2F%3E%20%3C!%2D%2D%3Fphp%0A%20%20%20%20getNotesForSeries(%24series)%3B%0A%7D%0A%0A%2F*%0A%20*%20Prints%20out%20the%20notes%20for%20the%20series%0A%20*%20Each%20note%20will%20contain%20a%20link%20to%20the%20actual%20note%20page%20unless%0A%20*%20the%20date%20for%20the%20notes%20is%20in%20the%20future%0A%20*%0A%20*%20%40param%20%22series%20id%22%0A%20*%2F%0Afunction%20getNotesForSeries(%24series)%20%7B%0A%20%20%20%20global%20%24START_HOUR%3B%0A%20%20%20%20%24query%20%3D%20%22SELECT%20*%20FROM%20lake_sunday_notes%20WHERE%20series%20%3D%20'%24series'%20ORDER%20BY%20date%20ASC%22%3B%0A%20%20%20%20%24result%20%3D%20mysql_query(%24query)%3B%0A%20%20%20%20%3F%2D%2D%3E--></p><ul><!--{cke_protected}{C}%3C!%2D%2D%3Fphp%0A%0A%20%20%20%20%20%20%20%20%24date%20%3D%20date(%22Y-m-d%22)%3B%0A%20%20%20%20%20%20%20%20if(date(%22H%22)%20%3C%20%24START_HOUR%20)%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%24date%20%3D%20date(%22Y-m-d%22%2C%20mktime(0%2C%200%2C%200%2C%20date(%22m%22)%2C%20date(%22d%22)-1%2C%20date(%22Y%22)))%3B%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20while(%24row%20%3D%20mysql_fetch_assoc(%24result))%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%3F%2D%2D%3E--><li><!--{cke_protected}{C}%3C!%2D%2D%3Fphp%20if(compareDate(%24date%2C%20%24row%5B%22date%22%5D)%3D%3D1)%20%7B%20%3F%2D%2D%3E--><a href=

pdf download Download the Notes