echo $pI["opdnum"]; ?> </div> <div class="nameHolder"><?php echo $pI["lastname"]; ?> , <?php echo $pI["firstname"]; ?> <?php echo $pI["middlename"]; ?> </div> <div class="roomHolder"> <?php $bed = getBedPt($pt["rid"], $pt["pid"]); if (empty($bed)) { echo 'The patient still waiting for a bed to occupy.'; } else { foreach ($bed as $bd) { echo $bd["bednumber"]; } } ?> </div> <?php $drName = getDocProf($did); if (empty($drName)) { ?> <div class="drHolder">Still waiting for a doctor</div> <?php
$pid = $r["pid"]; $dateofvisit = date('F d, Y', strtotime($r["dateofvisit"])); $age = $r["age"]; $timein = $r["timein"]; $timeout = $r["timeout"]; $bp = $r["bp"]; $cr = $r["cr"]; $rr = $r["rr"]; $temp = $r["temp"]; $weight = $r["weight"]; $complaint = $r["complaint"]; $remarks = $r["remarks"]; $foradmission = $r["foradmission"]; } } $bedPt = getBedPt($rid, $pid); if (empty($bedPt)) { $bednum = 'The patient still waiting for a bed to occupy.'; } else { foreach ($bedPt as $bd) { $bednum = $bd["bednumber"]; $dateoccupied = date('F d, Y', strtotime($bd["dateadmitted"])); $roomtype = $bd["roomtype"]; $roomno = $bd["roomno"]; } } $msg = ""; if (isset($_GET["ntf"])) { $ntf = $_GET["ntf"]; switch ($ntf) { case 'uphxsuccess':