} } else { if ($numSelectedOptions < $_SESSION['MINIMUM_USER_BOOKING_OPIONS']) { $page_error_message = "Please select a minimum of " . $_SESSION['MINIMUM_USER_BOOKING_OPIONS'] . " booking options."; } } //check the users allowed booking limit. If it is > 0 (0 being unlimited) check that this is within limit: if (!$ignoreRules) { if ($user_info['max_bookings'] != '' && $user_info['max_bookings'] > 0) { // Check how many upcoming bookings the user already has reserved in the system $user_events_result = get_user_events($bookingForUsername, true); while ($user_events_row = wrap_db_fetch_array($user_events_result)) { //echo '<pre>' ; //print_r( $user_events_row ) ; //echo '</pre>' ; $display_dates_and_time_ranges = get_event_dates_and_time_ranges($user_events_row['event_id'], $user_events_row['location']); if (count($display_dates_and_time_ranges) > 0) { reset($display_dates_and_time_ranges); foreach ($display_dates_and_time_ranges as $display_date_and_time) { list($date, $time_range) = explode(" ", $display_date_and_time); list($from_time, $to_time) = explode("-", $time_range); $time_slots = get_times_in_range($from_time, $to_time, DISPLAY_TIME_INTERVAL); if (count($time_slots) > 1) { $trash = array_pop($time_slots); } foreach ($time_slots as $time_slot) { //make sure the dates and times are today (now) or later (ie. not in the past) list($year, $month, $day) = explode("-", $date); list($hour, $min, $sec) = explode(":", $time); // Hack for Warning: mktime() expects parameter 1 to be long, string given $hour = (int) $hour;
} ?> </table><br /> <?php } do_html_right_nav_bar_bottom(200); } } else { ?> <?php //do not display this table on the right when in print view if (!$_GET['print_view']) { // RIGHT BAR SCHEDULE SECTION - REGULAR if ($_REQUEST['event_id'] > 0) { $display_dates_and_time_ranges = get_event_dates_and_time_ranges($event['event_id'], $event['location']); do_html_right_nav_bar_top(200); ?> <strong>Booked Dates<br />and Time Ranges:</strong><br /><br /> <?php if (count($display_dates_and_time_ranges) > 0) { ?> <table cellspacing="1" cellpadding="0" border="0"> <?php reset($display_dates_and_time_ranges); foreach ($display_dates_and_time_ranges as $display_date_and_time) { list($date, $time_range) = explode(" ", $display_date_and_time); list($from_time, $to_time) = explode("-", $time_range); ?> <tr><td align="left" valign="top" nowrap="nowrap" class="FontSoftSmall"><?php echo short_date_format($date);