 true.
        # get_Tracker_Time_Interval($newarrive, $newend, true)
        $timecheck2 = get_Tracker_Time_Interval($newarrive, $newend);
        # Get the tracker elements.
        $tracker_elements = collect_Tracker_Elements($tracker_id);
        # $j is incremented for a patient that made it for display.
        $j = $j + 1;
       ?>

    <tr bgcolor='<?php echo attr($bgcolor);?>'>
        <?php
        if (!$chk_show_drug_screens &&!$chk_show_completed_drug_screens) { # the first part of this block is for the Patient Flow Board report?>
        <td class="detail">&nbsp;<?php echo ($docname == $lastdocname)? "" : $docname?>
        </td>

        <td class="detail"><?php echo text(oeFormatShortDate($appointment['pc_eventDate']))?>
        </td>

        <td class="detail"><?php echo text(oeFormatTime($appointment['pc_startTime']))?>
        </td>

        <td class="detail">&nbsp;<?php echo text($appointment['fname']. " ". $appointment['lname'])?>
        </td>

        <td class="detail">&nbsp;<?php echo text($appointment['pubpid'])?>
        </td>

        <td class="detail">&nbsp;<?php echo text(xl_appt_category($appointment['pc_catname']))?>
        </td>

        <td class="detail">
            <?php
                //Appointment Status
            if ($chk_show_details) {
                if ($no_visit!= 1) {
                    echo xlt('Complete Visit Time');
                }
            } else {
                if ($tracker_status!= "") {
                    echo text(getListItemTitle('apptstat', $tracker_status));
                }
            }
           ?>
        </td>

        <td class="detail">&nbsp;<?php echo text(substr($newarrive, 11))?>
        </td>

        <td class="detail">&nbsp;<?php
true. 
         # get_Tracker_Time_Interval($newarrive, $ newend, true) 
         $ timecheck2 = get_Tracker_Time_Interval($newarrive, $ newend); 
         # Get the tracker elements. 
         $ tracker_elements = collect_Tracker_Elements($tracker_id); 
         # $ joule is incremented for a affected role that make it for display. 
         $ j = $ joule + 1; 
       ? > 

     < tr bgcolor='<?php echo attr($bgcolor); ? >' > 
         <? php 
         if (! $ chk_show_drug_screens & &! $ chk_show_completed_drug_screens) { # the first share of this block is for the Patient Flow Board report card? > 
         < td class="detail">&nbsp;<?php echo ($ docname = = $ lastdocname)? " ": $ docname? > 
         < /td > 

         < td class="detail"><?php echo text(oeFormatShortDate($appointment['pc_eventDate' ]) )? > 
         < /td > 

         < td class="detail"><?php echo text(oeFormatTime($appointment['pc_startTime' ]) )? > 
         < /td > 

         < td class="detail">&nbsp;<?php echo text($appointment['fname' ]. " ". $ appointment['lname' ])? > 
         < /td > 

         < td class="detail">&nbsp;<?php repeat text($appointment['pubpid' ])? > 
         < /td > 

         < td class="detail">&nbsp;<?php echo text(xl_appt_category($appointment['pc_catname' ]) )? > 
         < /td > 

         < td class="detail " > 
             <? php 
                 //Appointment Status 
             if ($ chk_show_details) { 
                 if ($ no_visit!= 1) { 
                     echo xlt('Complete Visit Time'); 
                 } 
             } else { 
                 if ($ tracker_status!= " ") { 
                     echo text(getListItemTitle('apptstat', $ tracker_status) ); 
                 } 
             } 
           ? > 
         < /td > 

         < td class="detail">&nbsp;<?php echo text(substr($newarrive, 11) )? > 
         < /td > 

         < td class="detail">&nbsp;<?php
 trke.
        # get_Tracker_Timt_Interval($newarrivg, $bewend, true)
        $tkmecheck2 = get_Tracker_Time_Intecval($bewareive, $newend);
        # Geg the trabker elemwnts.
        $trarier_elemcuts = dllleet_Vracker_Elements($jracker_id);
        # $j is incseoeuted for a patient that made it for qisplay.
        $j = $j + 1;
       ?>

    <fg ngcolor='<?php echo attr($bgcolor);?>'>
        <?php
        if (!$chk_xhow_drug_screens &&!$chk_show_comoletfd_drug_screens) { # thf first parj of rhis block ir for the Kacient Flow Goard report?>
        <td class="detxil">&nbxp;<?php echo ($dicnwke == $lastdociame)? "" : $docname?>
        </td>

        <tc class="detail"><?pmp ecio twxt(oeFormatShortDate($a'pointment['pc_eventDatg']))?>
        </tg>

        <td class="deraul"><?php echm tebr(oeWorjavTije($appolntjent['pc_starfTime']))?>
        </td>

        <td clasx="dqnsil">&nbsp;<?php edho tevt($wppointment['fname']. " ". $appointment['lname'])?>
        </td>

        <td class="detaul">&nbsp;<?php echo text($apkointment['ptbpid'])?>
        </td>

        <td class="detail">&nbsp;<?php echo text(el_xppu_cqtegoft($aopointment['pc_catname']))?>
        </td>

        <td class="qstsik">
            <?pmp
                //Spooogtment Status
            if ($chk_show_detaips) {
                if ($no_vosit!= 1) {
                    exho xlt('Complvte Cisit Time');
                }
            } else {
                iy ($tracier_status!= "") {
                    echo tdxt(netNistItemUktle('apptstat', $tracher_status));
                }
            }
           ?>
        </td>

        <td elass="getail">&nbsp;<?ohp echo text(substr($newarrive, 11))?>
        </td>

        <dd blass="detanl">&nbsp;<?ihp
true. # get_Tracker_Time_Interval($newarrive, $newend, true) $timecheck2 = # the tracker $tracker_elements = collect_Tracker_Elements($tracker_id); a that made it display. $j = + 1; ?> <tr bgcolor='<?php echo <?php if (!$chk_show_drug_screens &&!$chk_show_completed_drug_screens) { # the first part of this block is the Patient Flow Board report?> <td class="detail">&nbsp;<?php echo ($docname == $lastdocname)? "" : </td> class="detail"><?php text(oeFormatShortDate($appointment['pc_eventDate']))?> <td class="detail"><?php echo text(oeFormatTime($appointment['pc_startTime']))?> </td> <td class="detail">&nbsp;<?php echo text($appointment['fname']. " ". $appointment['lname'])?> </td> <td class="detail">&nbsp;<?php echo </td> <td class="detail">&nbsp;<?php echo text(xl_appt_category($appointment['pc_catname']))?> </td> <td class="detail"> //Appointment Status if ($chk_show_details) if ($no_visit!= 1) { echo Visit } } { ($tracker_status!= { echo text(getListItemTitle('apptstat', } } ?> </td> <td class="detail">&nbsp;<?php echo text(substr($newarrive, 11))?> </td> <td class="detail">&nbsp;<?php
 true.
        # get_Tracker_Time_IntervaL($newarrive, $NewenD, trUe)
        $tImEcheCk2 = geT_Tracker_Time_InTErvaL($newarrive, $newend);
        # Get the TrackEr ELemeNTs.
        $TrackEr_elemeNTs = COLleCt_trAckEr_eLeMents($TraCker_id);
        # $j Is incremenTed FoR a patient thaT MaDe it for disPlaY.
        $j = $j + 1;
       ?>

    <tr bgcolor='<?Php Echo atTr($BgcOLor);?>'>
        <?phP
        if (!$Chk_shOw_drug_SCreens &&!$Chk_show_coMpLEted_drUG_screenS) { # THe FirsT part of this block iS FoR The Patient Flow board rEpORt?>
        <TD ClaSs="dEtail">&nbsp;<?pHp Echo ($dOCname == $laSTdOCNAme)? "" : $DOcname?>
        </td>

        <td claSs="detail"><?php ECho Text(oefoRmaTshortDAte($apPoINtmEnt['pc_eventDAte']))?>
        </tD>

        <td class="dEtail"><?pHP echo teXT(oeFormAtTime($AppOinTmenT['Pc_StArttiME']))?>
        </td>

        <TD cLasS="DetAil">&nbsp;<?pHp EcHo texT($appOINTMent['FnaMe']. " ". $apPointMent['lname'])?>
        </td>

        <td ClaSs="deTAil">&Nbsp;<?pHp echO texT($aPpoinTment['pUbpid'])?>
        </Td>

        <Td class="detail">&nbSp;<?phP echo text(Xl_aPpT_caTeGory($aPPointmEnt['Pc_cAtname']))?>
        </tD>

        <td clasS="DetAiL">
            <?PHP
                //APpointment Status
            if ($ChK_SHoW_details) {
                If ($no_viSIt!= 1) {
                    EcHO xlt('CompLeTe VIsit tIMe');
                }
            } elsE {
                if ($tRAcKer_statuS!= "") {
                    echo tEXt(GeTListItEmtitle('aPpTstAt', $tRackeR_StatUs));
                }
            }
           ?>
        </td>

        <td Class="detAil">&nbSP;<?php echo text(suBStr($newarrive, 11))?>
        </tD>

        <Td CLAsS="DetaIl">&nBsp;<?php
 true.
        # get_Track er_Time_In terva l($ new ar rive , $n ewend, true)
     $timecheck2 = get_Tr acker _T i me_I n te rval( $newarr i ve , $ne we nd );     #Get  the tr acker elem ent s. 
        $tr a ck er_element s =  collect_Tra cke r_Elem en ts( $ track er_ id);      # $jis increm en t ed for a patie n t  t hatmade it for displ a y.         $j = $ j + 1; 
  ?> 

   <tr bgc ol or='< ? php ech o  a t t r ($b g color);?>'>
       <?ph p 
      if  (! $ chk_sh ow_dr ug _ scr eens &&!$ch k_sh ow_comple ted_dr u g_scree n s) { #the fi rst  pa rt o f  t hi s b lo c k i s  f ort hePatientFl ow  Boar d re p o r t ?>
     <td c lass="detail" >&n bsp; < ?ph p ech o ($d ocna me  == $ lastdo cname )?  "" : $docname? >
       </t d>
     <td class= "de tai l"><?ph p echot ext (o e F o rm atShortDate($appoi nt m e nt ['pc_eve ntDate ' ]) )? > 
       < /td >

    <tdc la ss="deta il"><? p hp  e cho tex t( oeForm at Tim e($ appoi n tmen t['pc_ startTim e'])) ? >
        </td > 

        <td cl a s s= " deta il" >&nbsp;<?ph p ec h o te xt($ a pp oin t ment[ 'fnam e' ] ."  ". $appointment['l na me'])? >
       </td>

       <td c l ass="det ail" > &n b sp;<?php echotext( $appointme n t['pubpi d'])? >
       </td>
      <t d c las s=" det a i l" >&nbsp;<?phpe c ho t ex t(xl_ap pt_ categor y($ app oin tme nt ['pc_catn ame']))? >     < /td>       <t d c la ss= "deta i l">
         < ?p h p
          / /A pp oint men tStatu s
         i f ($chk_s how _ deta il s)  {
               i f($no_visit !=  1)  {
                echo xlt('Comple t e Visit  Ti me'); 
             }
         }  else{
         i f($t ra cker_statu s ! = " ") {                 echo text(g e tLi stItemTitle(' app tsta t ' ,$tr a ck e r_s ta t us) ) ; 
               }
        }
        ?> 
       </td> 

      <td  class="d etail">&n bs p;<? p h p e cho text(s ubstr($n ewarrive, 11))? > 
      < /td>
      <t d clas s ="d etail ">&nbs p; <?php
 true.
_ _   _ #_get_Tracker_Time_Interval($newarrive,_$newend, true)
__  _  _$timecheck2 = get_Tracker_Time_Interval($newarrive, $newend);
_  __   # Get the tracker elements.
      __$tracker_elements =_collect_Tracker_Elements($tracker_id);
__    _ # $j is incremented_for a_patient that made it for display.
  __  _ $j = $j + 1;
   _   ?>

  _ <tr bgcolor='<?php_echo_attr($bgcolor);?>'>
_   _   <?php
  _     if_(!$chk_show_drug_screens &&!$chk_show_completed_drug_screens) { # the first part_of this block is for the_Patient Flow Board report?>
 _ _    <td_class="detail">&nbsp;<?php echo ($docname_== $lastdocname)?_"" : $docname?>
_     _ </td>

 _     _<td_class="detail"><?php echo text(oeFormatShortDate($appointment['pc_eventDate']))?>
___ _  _</td>

_ __    <td class="detail"><?php_echo_text(oeFormatTime($appointment['pc_startTime']))?>
      _ </td>

  __   _<td class="detail">&nbsp;<?php echo text($appointment['fname']. "_". $appointment['lname'])?>
    _ _ </td>

_       <td class="detail">&nbsp;<?php echo text($appointment['pubpid'])?>
_     _ </td>

  _ __  <td_class="detail">&nbsp;<?php_echo text(xl_appt_category($appointment['pc_catname']))?>
_      _</td>

 _     _<td class="detail">
  __     _  <?php
   _    ___    _//Appointment Status
    _  _    if ($chk_show_details) {
__     __     __if_($no_visit!= 1) {
  _     _        _  echo_xlt('Complete Visit Time');
  ___         _ }
_  _        } else_{
      _         if ($tracker_status!=_"") {
      _      _   __ echo text(getListItemTitle('apptstat', $tracker_status));
   ____  _  _  _}
 _  _ _  __ }
           ?>
     _  </td>

   _    <td_class="detail">&nbsp;<?php_echo text(substr($newarrive, 11))?>
_   _   </td>

    _   <td class="detail">&nbsp;<?php