Example #1
0
            ?>
			<td align="left" valign="top" width="14%"
				class="<?php 
            echo $selected ? "BgcolorDull" : "BgcolorNormal";
            ?>
" nowrap="nowrap">
<?php 
            $event_count = 0;
            while (list($event_row_key, $event_row_value) = each($event_row_data[$count_date])) {
                if (strlen($event_row_value) > 1) {
                    $event_count++;
                    @(list($db_row_id, $row_span, $start_time, $end_time) = explode("|", $event_row_value));
                    // To Cater for the AM PM Hour display
                    if (DEFINE_AM_PM) {
                        $start_time = format_time_to_ampm($start_time);
                        $end_time = format_time_to_ampm($end_time);
                    }
                    // Use the $db_row_id to data seek to the data for this event.
                    $rv = wrap_db_data_seek($event_data, $db_row_id);
                    $this_event = wrap_db_fetch_array($event_data);
                    //is this user allowed to see the booking details?
                    if (!$_SESSION['SHOW_USER_DETAILS'] && $this_event['user_id'] != $currentUsersID) {
                        //user not allowed to see these details, overwrite the subject string
                        $this_event['subject'] = 'Booking Confirmed';
                    } else {
                        //add the booking option data into the event array
                        $this_event['booking_options'] = get_booking_options($this_event['event_id']);
                    }
                    $event_url = href_link(FILENAME_DETAILS_VIEW, 'event_id=' . $this_event['event_id'] . '&' . make_hidden_fields_workstring(array('date', 'view', 'loc')), 'NONSSL');
                    $over_text = 'Event ID#: ' . $this_event['event_id'] . '<br />Subject: ' . $this_event['subject'];
                    $numBookingOptions = count($this_event['booking_options']);
Example #2
0
    if (count($available_date_time_data) > 0 && count($available_date_time_data) < 50 && $show_available) {
        ?>
<strong>Available Time Slots:</strong><br />
<table cellspacing="1" cellpadding="0" border="0" width="1%">

<?php 
        reset($available_date_time_data);
        foreach ($available_date_time_data as $available_slot) {
            list($date, $time) = explode(" ", $available_slot);
            ?>
<tr><td align="left" valign="top" nowrap="nowrap" class="FontSoftSmall"><?php 
            echo short_date_format($date);
            ?>
 &nbsp; </td>
<td align="left" valign="top" nowrap="nowrap" class="FontSoftSmall"><?php 
            echo format_time_to_ampm($time);
            ?>
</td></tr>
<?php 
        }
        ?>
</table><br />
<?php 
    } elseif (count($available_date_time_data) > 0 && $show_available) {
        ?>
<strong>Available Time Slots:</strong>
<table cellspacing="1" cellpadding="0" border="0" width="1%">
<tr><td align="left" valign="top" nowrap="nowrap" class="FontSoftSmall">
<?php 
        echo count($available_date_time_data);
        ?>