?>
        <?php 
            if ($chk_show_details) {
                # lets show the detail lines
                $i = '0';
                $k = '0';
                for ($x = 1; $x <= $last_seq; $x++) {
                    ?>
	    <tr valign='top' class="detail" >
	      <td colspan="6" class="detail" align='left'>
          
            <?php 
                    # get the verbiage for the status code
                    $track_stat = $tracker_elements[$i][status];
                    # Get Interval alert time and status color.
                    $colorevents = collectApptStatusSettings($track_stat);
                    $alert_time = '0';
                    $alert_color = $colorevents['color'];
                    $alert_time = $colorevents['time_alert'];
                    if (is_checkin($track_stat) || is_checkout($track_stat)) {
                        #bold the check in and check out times in this block.
                        ?>
 
            <td class="detail"><b>
            <?php 
                    } else {
                        ?>
            
            <td class="detail">
            <?php 
                    }
Exemple #2
0
 }
 $ptname = $appointment['lname'] . ', ' . $appointment['fname'] . ' ' . $appointment['mname'];
 $appt_enc = $appointment['encounter'];
 $appt_eid = !empty($appointment['eid']) ? $appointment['eid'] : $appointment['pc_eid'];
 $appt_pid = !empty($appointment['pid']) ? $appointment['pid'] : $appointment['pc_pid'];
 if ($appt_pid == 0) {
     continue;
 }
 // skip when $appt_pid = 0, since this means it is not a patient specific appt slot
 $status = !empty($appointment['status']) ? $appointment['status'] : $appointment['pc_apptstatus'];
 $appt_room = !empty($appointment['room']) ? $appointment['room'] : $appointment['pc_room'];
 $appt_time = !empty($appointment['appttime']) ? $appointment['appttime'] : $appointment['pc_startTime'];
 $tracker_id = $appointment['id'];
 $newarrive = collect_checkin($tracker_id);
 $newend = collect_checkout($tracker_id);
 $colorevents = collectApptStatusSettings($status);
 $bgcolor = $colorevents['color'];
 $statalert = $colorevents['time_alert'];
 # process the time to allow items with a check out status to be displayed
 if (is_checkout($status) && $GLOBALS['checkout_roll_off'] > 0) {
     $to_time = strtotime($newend);
     $from_time = strtotime($datetime);
     $display_check_out = round(abs($from_time - $to_time) / 60, 0);
     if ($display_check_out >= $GLOBALS['checkout_roll_off']) {
         continue;
     }
 }
 ?>
     <tr bgcolor='<?php 
 echo $bgcolor;
 ?>