<tr bgcolor='<?php echo $bgcolor; ?> '> <td class="detail"> <?php echo $docname == $lastdocname ? "" : $docname; ?> </td> <td class="detail"><?php echo oeFormatShortDate($appointment['pc_eventDate']); ?> </td> <td class="detail"><?php echo oeFormatTime($appointment['pc_startTime']); ?> </td> <td class="detail"> <?php echo $appointment['fname'] . " " . $appointment['lname']; ?> </td> <td class="detail"> <?php echo $appointment['pubpid']; ?> </td> <td class="detail"> <?php echo $appointment['phone_home'];
$i++; } } ?> </td> </tr> <?php } else { # this section is for the drug screen report ?> <td class="detail"> <?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"> <?php echo text($appointment['fname'] . " " . $appointment['lname']) ?> </td> <td class="detail"> <?php echo text($appointment['pubpid']) ?></td> <td class="detail" align = > <?php if ($appointment['random_drug_test'] == '1') { echo xlt('Yes'); } else { echo xlt('No'); }?></td> <?php if ($chk_show_completed_drug_screens) { ?> <td class="detail"> <?php if ($appointment['drug_screen_completed'] == '1') { echo xlt('Yes'); } else { echo xlt('No'); }?></td> <?php } else { ?> <td class="detail"> </td> <?php } ?>
# this section is for the drug screen report ?> <td class="detail"> <?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"> <?php echo text($appointment['fname'] . " " . $appointment['lname']); ?> </td> <td class="detail"> <?php echo text($appointment['pubpid']); ?> </td> <td class="detail" align = > <?php if ($appointment['random_drug_test'] == '1') {
$to_time = strtotime(date("Y-m-d H:i:s")); } $timecheck2 = round(abs($to_time - $from_time) / 60, 0); if (strtotime($newarrive) != '' && $timecheck2 >= 1) { echo text($timecheck2 . ' ' . ($timecheck2 >= 2 ? xl('minutes') : xl('minute'))); } # end total time in practice ?> <?php echo text($appointment['pc_time']); ?> </td> <td class="detail" align="center"> <?php if (strtotime($newend) != '') { echo oeFormatTime($newend); } ?> </td> <td class="detail" align="center"> <?php echo text($appointment['user']); ?> </td> <?php if ($GLOBALS['drug_screen']) { ?> <?php if (strtotime($newarrive) != '') { ?> <td class="detail" align="center">