Exemple #1
0
      <td><?php 
echo $ro->getPatientRecord_gender();
?>
</td>
      <td><b>Request Date:</b> </td>
      <td><?php 
//echo $ro->patientCharges_dateCharge();
?>
</td>
    </tr>
    <tr>
      <td><b>Specimen:</b></td>
      <td>Stool</td>
      <td><b>Company:</b></td>
      <td><?php 
echo $ro->getRegistrationDetails_company();
?>
</td>
      <td><b>Time:</b></td>
      <td><?php 
//echo $ro->patientCharges_timeCharge();
?>
</td>
    </tr>
    <tr>
      <td><b>Physician:</b></td>
      <td></tD>
    </tr>
  </table>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size=5><b>Fecalysis</b></font>
  <table width="380" border="1" cellspacing="1" cellpadding="1">
Exemple #2
0
echo "<br><br>";
echo "<table border=0>";
echo "<tr>";
echo "<td><font class='labelz'><b>Name:</b></font></td><td><font size=2>" . $ro->getPatientRecord_completeName() . "</font></td>";
echo "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>";
echo "<Td><font class='labelz'><b>Registration#:</b></font></td>";
echo "<td><font size=2>" . $ro->getRegistrationDetails_registrationNo() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<Td><font class='labelz'><B>Age:</b></td>";
echo "<Td><font size=2>" . $ro->getPatientRecord_age() . " yrs Old</font></td>";
echo "<Td>&nbsp;</td>";
echo "<td><font class='labelz'><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Senior:</b></font></td>";
echo "<td><font size=2>" . $ro->getPatientRecord_senior() . "</font></td>";
echo "</tr>";
echo "<tr>";
echo "<Td><font class='labelz'><b>Company:</b></font></td>";
echo "<td><font size=2>" . $ro->getRegistrationDetails_company() . "</font></tD>";
echo "</tr>";
//if($ro->getRegistrationDetails_type() == "IPD") {
$ro->chargesForSOA_ipd($registrationNo, "pharmacy", $category, "");
//}else {
//$ro->chargesForSOA($registrationNo,"Category",$category,"");
//}
echo "</table>";
echo "</center>";
echo "<br><Br><Br>";
echo "Medicine:&nbsp;" . number_format($ro->getTotal("total", "MEDICINE", $registrationNo), 2);
echo "<br>";
echo "Supplies:&nbsp;" . number_format($ro->getTotal("total", "SUPPLIES", $registrationNo), 2);
echo "</div>";
echo "";
echo "<font size=5><b>" . $ro->getReportInformation("hmoSOA_name") . "</b></font>";
echo "<br><font size=2>" . $ro->getReportInformation("hmoSOA_address") . "</font>";
echo "<br><br><center>";
echo "<table>";
echo "<tr>";
echo "<td>" . $ro->coconutText("Name") . ":&nbsp;</td><td>&nbsp;" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>";
echo "<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>" . $ro->coconutText("Reg#") . "</td><td>&nbsp;{$registrationNo}</td>";
echo "</tr>";
echo "<tr>";
echo "<Td>" . $ro->coconutText("PHIC") . ":&nbsp;</td><td>&nbsp;" . $ro->getPatientRecord_phic() . "</td>";
echo "<td>&nbsp;</td>";
echo "<td>CaseType:</td><TD>" . $ro->getRegistrationDetails_caseType() . "</tD>";
echo "</tr>";
echo "<tr>";
echo "<Td>" . $ro->coconutText("Company") . ":&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_company() . "</td>";
echo "<td>&nbsp;</tD>";
echo "<Td>" . $ro->coconutText("Fx Diagnosis:") . ":&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_finalDiagnosis() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<Td>" . $ro->coconutText("Admitted") . ":&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_dateRegistered() . "</td>";
echo "<td>&nbsp;</td>";
echo "<Td>" . $ro->coconutText("Discharged") . ":&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_dateUnregistered() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<Td>" . $ro->coconutText("Age") . "</tD><td>&nbsp;" . $ro->getPatientRecord_age() . "</tD>";
echo "<tD>&nbsp;</tD>";
echo "<Td>" . $ro->coconutText("Room:") . "</tD><td>" . $ro->getRegistrationDetails_room() . "</tD>";
echo "</tr>";
echo "<tr>";
echo "<td>" . $ro->coconutText("Att.Doctor") . "</tD><td>&nbsp;<font size=2>" . $ro->getAttendingDoc($registrationNo, "Attending") . "</font></td>";
$room = preg_split("/\\_/", $ro->getRegistrationDetails_room());
echo "<br>";
if ($ro->getRegistrationDetails_dateUnregistered() == "") {
    echo "<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/discharged.php?registrationNo={$registrationNo}&protoType=Discharged'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/unlock.jpeg'></a>&nbsp;&nbsp;<font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font><br>";
} else {
    echo "<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/discharged.php?registrationNo={$registrationNo}&protoType=Undischarged'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/locked1.jpeg'></a>&nbsp;&nbsp;<font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font><br>";
}
echo "<font class='informationLabel'>Patient No:</font>&nbsp;" . $ro->getRegistrationDetails_patientNo();
echo "<br><font class='informationLabel'>Registration No:</font>&nbsp;" . $ro->getRegistrationDetails_registrationNo();
echo "<br><font class='informationLabel'>Age:</font>&nbsp;" . $ro->getPatientRecord_age();
echo "<br><font class='informationLabel'>Civil Status:</font>&nbsp;" . $ro->getPatientRecord_civilStatus();
echo "<br><font class='informationLabel'>Birth Date:</font>&nbsp;" . $ro->getPatientRecord_Birthdate();
echo "<br><font class='informationLabel'>Contact No#:</font>&nbsp;" . $ro->getPatientRecord_contactNo();
echo "<br><font class='informationLabel'>Senior:</font>&nbsp;" . $ro->getPatientRecord_senior();
echo "<br><font class='informationLabel'>PhilHealth:</font>&nbsp;" . $ro->getPatientRecord_phic();
echo "<br><font class='informationLabel'>Company:</font>&nbsp;" . $ro->getRegistrationDetails_company();
echo "<br><font class='informationLabel'>Time Registered:</font>&nbsp;" . $ro->getRegistrationDetails_timeRegistered();
echo "<br><font class='informationLabel'>Date Registered:</font>&nbsp;" . $ro->getRegistrationDetails_dateRegistered();
echo "<br><font class='informationLabel'>Branch Registered:</font>&nbsp;" . $ro->getRegistrationDetails_branch();
echo "<br><font class='informationLabel'>Room:</font>&nbsp;" . $room[0];
echo "<br><font class='informationLabel'>Address:</font>&nbsp;" . $ro->getPatientRecord_address();
echo "<br><font class='informationLabel'>Registered By:</font>&nbsp;" . $ro->getRegistrationDetails_registeredBy();
if ($ro->getRegistrationDetails_dateUnregistered() != "") {
    echo "<br><font class='informationLabel'>Time Discharged:</font>&nbsp;" . $ro->getRegistrationDetails_timeUnregistered();
    echo "<br><font class='informationLabel'>Discharged:</font>&nbsp;" . $ro->getRegistrationDetails_dateUnregistered();
} else {
    echo "";
}
echo "<br><br><font size=2 color=red><b>VITAL SIGN</b></font>";
echo "<br><font class='informationLabel'>Height:</font>&nbsp;" . $ro->getRegistrationDetails_height();
echo "<br><font class='informationLabel'>Weight:</font>&nbsp;" . $ro->getRegistrationDetails_weight();
echo "PHIC Consumed&nbsp;" . number_format($ro->getTotal("phic", "MEDICINE", $registrationNo), 2);
// kunin ang phic n meds
echo "<Br>";
echo "PHIC Limit&nbsp;" . $ro->getPHIClimit_medicine();
//allowed Limit ng PHIC pra sa meds
echo "<Br>";
$kunin_ang_sobra = $ro->getTotal("phic", "MEDICINE", $registrationNo) - $ro->getPHIClimit_medicine();
$binawas_ang_sobra = $ro->getHighestCharges("MEDICINE", "phic", $registrationNo) - $kunin_ang_sobra;
if ($ro->getTotal("phic", "MEDICINE", $registrationNo) > $ro->getPHIClimit_medicine() && ($ro->getPatientRecord_phic() == "YES" || $ro->getPatientRecord_phic() == "yes")) {
    //ckech kung mas mataas ang credit kaysa sa allowed limit
    echo "<br>Sobra&nbsp;" . number_format($kunin_ang_sobra, 2);
    echo "<br>Total:&nbsp;" . ($ro->getTotal("phic", "MEDICINE", $registrationNo) - $kunin_ang_sobra);
    echo "<br>Total:&nbsp;" . $binawas_ang_sobra;
    //bbwasan ang charges n may pnka mataas na selling price.. ang ibbwas ay ang sobra sa allowed limit ng PHIC meds
    $ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "phic", $registrationNo), "phic", $binawas_ang_sobra);
    if ($ro->getRegistrationDetails_company() != "") {
        //ito ung LLipat ang bayad sa hmo
        if ($ro->getRegistrationDetails_limitHMO() > $ro->getTotal("company", "", $registrationNo)) {
            echo "hello";
        } else {
            $ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "phic", $registrationNo), "company", $kunin_ang_sobra);
        }
    } else {
        if ($ro->getRegistrationDetails_company() == "") {
            //kung walang hmo sa cash n iLLgay
            $ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "phic", $registrationNo), "cashUnpaid", $kunin_ang_sobra);
        } else {
        }
    }
} else {
    if ($ro->getRegistrationDetails_company() != "" && $ro->getTotal("phic", "MEDICINE", $registrationNo) >= $ro->getPHIClimit_medicine()) {
Exemple #6
0
}
if ($ro->getPatientRecord_senior() == "YES") {
    echo "<tr>";
    echo "<td>Senior ID#:</td>";
    echo "<td>";
    $ro->coconutTextBox("seniorNo", $ro->selectNow("registrationDetails", "seniorID", "registrationNo", $registrationNo));
    echo "</td>";
    echo "</tr>";
} else {
    $ro->coconutHidden("seniorNo", "");
}
echo "<tr>";
echo "<td>Company&nbsp;</td>";
if ($ro->selectNow("registeredUser", "module", "username", $username) == "ADMIN" || $ro->selectNow("registeredUser", "module", "username", $username) == "BILLING" || $ro->selectNow("registeredUser", "module", "username", $username) == "CASHIER" || $ro->selectNow("registeredUser", "module", "username", $username) == "PHILHEALTH" || $ro->selectNow("registeredUser", "module", "username", $username) == "ADMITTING") {
    echo "<td>\n<select name='company' class='comboBox'>";
    echo "<option>" . $ro->getRegistrationDetails_company() . "</option>";
    echo "<option value=''>&nbsp;</option>";
    $ro->getAllCompany();
    echo "</select></td>";
} else {
    echo "\n<td>\n<span class='Arial10RedBold'>Only Admin, Billing, Cashier, PhilHealth, Admitting accounts can change this.</span><br>\n<select name='company' class='comboBox'>\n<option>" . $ro->getRegistrationDetails_company() . "</option>\n</select></td>\n";
}
echo "</tr>";
echo "<tr>";
echo "<td>&nbsp;</td>";
if ($ro->selectNow("registeredUser", "module", "username", $username) == "ADMIN" || $ro->selectNow("registeredUser", "module", "username", $username) == "BILLING" || $ro->selectNow("registeredUser", "module", "username", $username) == "CASHIER" || $ro->selectNow("registeredUser", "module", "username", $username) == "PHILHEALTH" || $ro->selectNow("registeredUser", "module", "username", $username) == "ADMITTING") {
    echo "<td><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/additionalCompany/addCompany.php?registrationNo={$registrationNo}&username={$username}' style='text-decoration:none;'><font color=red>Add Another Company</font></a></td>";
} else {
    echo "<td></td>\n";
}
echo "</tr>";
	a.focus();
	a.print();
	a.close();
}
</script>
<a href='#' onClick="printF('printData')" style="text-decoration:none;"><?php 
    echo $ro->coconutImages("printer.jpeg");
    ?>
 <font color=red>Print</font></a><Br><Br>
<?php 
    echo "<div id='printData'>";
    echo "Reg#:&nbsp;" . $registrationNo . "&nbsp;&nbsp;&nbsp;&nbsp;Batch#:&nbsp;" . $dispensedNo;
    echo "<br>";
    echo "Name:&nbsp;" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName();
    echo "<br>";
    echo "PHIC:" . $ro->getPatientRecord_phic() . " + " . $ro->getRegistrationDetails_company();
    echo "<br>";
    echo "Date" . date("M d, Y") . " @ " . $ro->getSynapseTime();
    echo "<Br>";
    echo "Room:" . $ro->getRegistrationDetails_room();
    echo "<br>";
    echo "Pharmacy:" . $username;
    echo "<br>";
    echo "Doctor:" . $ro->getAttendingDoc($registrationNo, "Attending");
    echo "<table border=1 cellpadding=1 cellspacing=1>";
    echo "<tr>";
    echo "<th>Particulars</th>";
    echo "<th>QTY</th>";
    echo "</tr>";
    for ($x = 0, $z = 0; $x < $disp, $z < $countz; $x++, $z++) {
        echo "<Tr>";
     $ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/availableCharges/quantityMisc.php?status={$status}&registrationNo={$registrationNo}&chargesCode={$chargesCode}&description={$description}&sellingPrice={$sellingPrice}&discount={$discount}&timeCharge={$timeCharge}&room={$room}&chargeBy={$chargeBy}&service={$service}&title={$title}&paidVia={$paidVia}&cashPaid={$cashPaid}&batchNo={$batchNo}&username={$username}&inventoryFrom={$inventoryFrom}");
 } else {
     $dateCharge = date("M_d_Y");
     if ($title == "PROFESSIONAL FEE") {
         $price = preg_split("/\\//", $sellingPrice);
         $currentTotal = $quantity * $price[0];
     } else {
         $currentTotal = $quantity * $sellingPrice;
     }
     $totalDiscount = $quantity * $discount;
     $grandTotal = $currentTotal - $totalDiscount;
     $ro->getPatientProfile($registrationNo);
     $ro->getPHIClimit_setter($ro->getRegistrationDetails_caseType());
     $currentSupplies = $ro->getCurrentPHIC_check($registrationNo, "SUPPLIES") - $ro->getPHIClimit_supplies();
     $currentMedicine = $ro->getCurrentPHIC_check($registrationNo, "MEDICINE") - $ro->getPHIClimit_medicine();
     if ($ro->getPatientRecord_phic() == "YES" && $ro->getRegistrationDetails_company() == "" && $ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes") {
         //for phic
         if ($title != "MEDICINE" && $currentSupplies < 0) {
             $ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, 0, $grandTotal, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room);
         } else {
             if ($title != "MEDICINE" && $currentSupplies >= 0) {
                 $ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, $grandTotal, 0, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room);
             } else {
                 if ($title == "MEDICINE" && $currentMedicine < 1 && $ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes") {
                     $ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, 0, $grandTotal, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room);
                 } else {
                     if ($title == "MEDICINE" && $currentMedicine > 0 && $ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes") {
                         $ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, $grandTotal, 0, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room);
                     } else {
                         echo "";
                     }
Exemple #9
0
     $initial = "";
 }
 echo "<table border=0>";
 echo "<tr>";
 echo "<td>&nbsp;</td><td><font class='labelz' color=black><b>{$description}</b></font></td>";
 echo "</tr>";
 echo "<tr>";
 echo "<td><font class='labelz'>Service</font></td><td><input type=text class='txtBox' name='service' value='" . $service . "    " . $initial . "'></td>";
 echo "</tr>";
 echo "<tr>";
 //echo "<td><font class='labelz'>Rate / PF Share</font></td><td><input type=text name='sellingPrice' class='txtBox' value=".$ro->cashAmount()."/".$docShare."></td>";
 if ($ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo) == "IPD") {
     echo "<td><font class='labelz'>Rate / PF Share</font></td><td><input type=text name='sellingPrice' class='txtBox' value='1/1'></td>";
 } else {
     if ($service == "Consultation") {
         if ($ro->getRegistrationDetails_company() != "") {
             echo "<td><font class='labelz'>Rate / PF Share</font></td><td><input type=text name='sellingPrice' class='txtBox' value='300/300'></td>";
         } else {
             echo "<td><font class='labelz'>Rate / PF Share</font></td><td><input type=text name='sellingPrice' class='txtBox' value='1/1'></td>";
         }
     } else {
         echo "<td><font class='labelz'>Rate / PF Share</font></td><td><input type=text name='sellingPrice' class='txtBox' value='1/1'></td>";
     }
 }
 echo "</tr>";
 if ($discount == "Senior") {
     echo "<tr>";
     echo "<td><font class='labelz'>Discount</td><td><input type=text name='discount' class='txtBox' value='" . $ro->cashAmount() * $ro->percentage("senior") . "'></td>";
     echo "</tr>";
 } else {
     echo "";
    echo "</tr>";
    $pinNo = preg_split("/\\-/", $ro->getRegistrationDetails_PIN());
    //kkuning ung phic pin No
    echo "<tr>";
    echo "<td>PhilHealth PIN#:</td>";
    echo "<td>";
    $ro->coconutTextBox("pinNo", $ro->getRegistrationDetails_PIN());
    echo "</td>";
    echo "</tr>";
} else {
    $ro->coconutTextBox("pinNo");
}
echo "<tr>";
echo "<td>Company&nbsp;</td>";
echo "<td>\n<select name='company' class='comboBox'>";
echo "<option>" . $ro->getRegistrationDetails_company() . "</option>";
echo "<option value=''>&nbsp;</option>";
$ro->getAllCompany();
echo "</select></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Time Register&nbsp;</td>";
echo "<td><input type=text name='timeRegistered'class='shortField' value='" . $ro->getRegistrationDetails_timeRegistered() . "' readonly></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Date Register&nbsp;</td>";
echo "<td><input type=text name='dateRegistered'class='shortField' value='" . $ro->getRegistrationDetails_dateRegistered() . "' readonly ></td>";
echo "</tr>";
echo "<tr>";
echo "<td>Branch Register&nbsp;</td>";
echo "<td><select class='comboBox' name='branchRegistered'>";
echo "<br>";
echo "<center><font size=4><b>" . $ro->getReportInformation("hmoSOA_name") . "</b></font>";
echo "<br><font size=2>" . $ro->getReportInformation("hmoSOA_address") . "</font>";
echo "<hr>";
echo "<table border=0>";
echo "<tr>";
echo "<td><font size=3>Reg#:</font></td><td><font size=3>" . $registrationNo . "</font></td>\n<td width='30%'>&nbsp;</td>\n<td><font size=3>Time Admitted:</font></td>\n<td><font size=2><input type=text style='border:0px solid #000' value='" . $ro->getRegistrationDetails_timeRegistered() . "' readonly></font></tD>\n";
echo "</tr>";
echo "<tr>";
echo "<td><font size=3>Patient:</font></tD><td><font size=3>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . "</font></tD>\n<td width='30%'>&nbsp;</td>\n<td><font size=3>Date Admitted:</font></td>\n<td><font size=3>" . $ro->getRegistrationDetails_dateRegistered() . "</font></tD>\n";
echo "</tR>";
echo "<tr>";
echo "<td><font size=3>Age:</font></td><td><font size=3>" . $ro->getPatientRecord_age() . "</font></tD>\n<td width='30%'>&nbsp;</td>\n<td><font size=3>Sex:</font></td><td><font size=3>" . $ro->getPatientRecord_gender() . "</font></tD>\n";
echo "</tr>";
echo "<tr>";
echo "<td><font size=3>Company:</font></tD><td><font size=3>" . $ro->getRegistrationDetails_company() . "</font></tD>\n<td width='30%'>&nbsp;</td>\n<td><font size=3>PhilHealth:</font></td><td><font size=3>" . $ro->getPatientRecord_phicType() . "</font></tD>\n";
echo "</tr>";
echo "<tr>";
echo "<td><font size=3>Height:</font></tD><td><font size=3>" . $ro->getRegistrationDetails_height() . "</font></tD>\n<td width='30%'>&nbsp;</td>\n<td><font size=3>Weight:</font></td><td><font size=3>" . $ro->getRegistrationDetails_weight() . "</font></tD>\n";
echo "</tr>";
echo "<tr>";
echo "<td><font size=3>Temperature:</font></tD><td><font size=3>" . $ro->getRegistrationDetails_temperature() . "</font></tD>\n<td width='30%'>&nbsp;</td>\n<td><font size=3>Blood Pressure:</font></td><tD><font size=3>" . $ro->getRegistrationDetails_bloodPressure() . "</font></tD>\n";
echo "</tr>";
echo "<tr>";
echo "<td><font size=3>Diagnosis:</font></tD><td><font size=3>" . $ro->getRegistrationDetails_IxDx() . "</font></tD>\n<td width='30%'>&nbsp;</td>\n<td><font size=3>Att. Physician:</font></td>\n<td>" . $ro->getAttendingDoc($registrationNo, "Attending") . "</tD>\n";
echo "</tr>";
echo "<tr>";
echo "<td><font size=3>Birthdate:</font></tD><td><font size=3>" . $ro->getPatientRecord_Birthdate() . "</font></tD>\n<td width='30%'>&nbsp;</td>\n<td><font size=3>Admitting Doc.:</font></td>\n<td>" . $ro->getAttendingDoc($registrationNo, "Admitting") . "</tD>\n";
echo "</tr>";
echo "<tr>";
echo "<td><font size=3>Admitted By:</font></tD><td><font size=2>" . $ro->getRegistrationDetails_registeredBy() . "</font></tD>\n<td width='30%'>&nbsp;</td>\n<td> <input type=checkbox checked><font size=3>HOUSE CASE</font> </tD><td>&nbsp;&nbsp;&nbsp; <input type=checkbox><font size=3>PRIVATE</font> </td>\n";
Exemple #12
0
} else {
    while ($afetch = mysql_fetch_array($asql)) {
        $dateCharge = $afetch['dateCharge'];
        $timeCharge = $afetch['timeCharge'];
        $chargeBy = $afetch['chargeBy'];
    }
}
$birthDatefmt = date("m/d/Y", strtotime($ro->getPatientRecord_birthDate()));
$birthDate = explode("/", $birthDatefmt);
$age = date("md", date("U", mktime(0, 0, 0, $birthDate[0], $birthDate[1], $birthDate[2]))) > date("md") ? date("Y") - $birthDate[2] - 1 : date("Y") - $birthDate[2];
if ($ro->getRegistrationDetails_room() == "") {
    $widthroom = "150";
} else {
    $widthroom = "auto";
}
if ($ro->getRegistrationDetails_company() == "") {
    $widthcom = "150";
} else {
    $widthcom = "auto";
}
echo "\n<div align='left'>\n  <table width='100%' border='0' cellpadding='0' cellspacing='0'>\n    <tr>\n      <td><table width='100%' border='0' cellpadding='0' cellspacing='0'>\n        <tr>\n          <td width='50%'><div align='left'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Patient ID</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='auto' class='table1Bottom'><div align='left' class='couriernew15blackbold'>" . $ro->getRegistrationDetails_patientNo() . "</div></td>\n            </tr>\n          </table></div></td>\n          <td width='50%'><div align='right'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Date-Time Printed</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='auto' class='table1Bottom'><div align='left' class='couriernew15blackbold'>" . date("m/d/Y H:i") . "</div></td>\n            </tr>\n          </table></div></td>\n        </tr>\n      </table></td>\n    </tr>\n    <tr>\n      <td height='6'></td>\n    </tr>\n    <tr>\n      <td><table width='100%' border='0' cellpadding='0' cellspacing='0'>\n        <tr>\n          <td width='auto'><div align='left'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Patient Name</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='auto' class='table1Bottom'><div align='left' class='couriernew15blackbold'>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . "</div></td>\n            </tr>\n          </table></div></td>\n          <td width='auto'><div align='right'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Date-Time Requested</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='auto' class='table1Bottom'><div align='left' class='couriernew15blackbold'>" . date("m/d/Y", strtotime($dateCharge)) . " " . date("H:i", strtotime($timeCharge)) . "</div></td>\n            </tr>\n          </table></div></td>\n        </tr>\n      </table></td>\n    </tr>\n    <tr>\n      <td height='6'></td>\n    </tr>\n    <tr>\n      <td><table width='100%' border='0' cellpadding='0' cellspacing='0'>\n        <tr>\n          <td width='auto'><div align='left'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Date Of Birth</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='auto' class='table1Bottom'><div align='left' class='couriernew15blackbold'>" . date("M d, Y", strtotime($ro->getPatientRecord_birthDate())) . "</div></td>\n            </tr>\n          </table></div></td>\n          <td width='auto'><div align='right'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Requested By</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='150' class='table1Bottom'><div align='left' class='couriernew15blackbold'>{$chargeBy}</div></td>\n            </tr>\n          </table></div></td>\n        </tr>\n      </table></td>\n    </tr>\n    <tr>\n      <td height='6'></td>\n    </tr>\n    <tr>\n      <td><table width='100%' border='0' cellpadding='0' cellspacing='0'>\n        <tr>\n          <td width='auto'><div align='left'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Age</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='30' class='table1Bottom'><div align='left' class='couriernew15blackbold'>{$age}</div></td>\n              <td width='10'></td>\n              <td width='auto'><div align='left' class='couriernew13black'>Gender</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='80' class='table1Bottom'><div align='left' class='couriernew15blackbold'>" . strtoupper($ro->getPatientRecord_Gender()) . "</div></td>\n            </tr>\n          </table></div></td>\n          <td width='auto'><div align='right'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Physician</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='auto' class='table1Bottom'><div align='left' class='couriernew15blackbold'>" . $ro->getAttendingDoc($registrationNo, "ATTENDING") . "</div></td>\n            </tr>\n          </table></div></td>\n        </tr>\n      </table></td>\n    </tr>\n    <tr>\n      <td height='6'></td>\n    </tr>\n    <tr>\n      <td><table width='100%' border='0' cellpadding='0' cellspacing='0'>\n        <tr>\n          <td width='auto'><div align='left'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Room</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='{$widthroom}' class='table1Bottom'><div align='left' class='couriernew15blackbold'>" . $ro->getRegistrationDetails_room() . "</div></td>\n            </tr>\n          </table></div></td>\n          <td width='auto'><div align='right'><table border='0' cellspacing='0' cellpadding='0'>\n            <tr>\n              <td width='auto'><div align='left' class='couriernew13black'>Company</div></td>\n              <td width='10'><div align='center' class='couriernew13black'>:</div></td>\n              <td width='{$widthcom}' class='table1Bottom'><div align='left' class='couriernew15blackbold'>" . $ro->getRegistrationDetails_company() . "</div></td>\n            </tr>\n          </table></div></td>\n        </tr>\n      </table></td>\n    </tr>\n    <tr>\n      <td height='20'></td>\n    </tr>\n    <tr>\n      <td><div align='left' class='couriernew15black'>REQUEST/S</div></td>\n    </tr>\n    <tr>\n      <td height='10'></td>\n    </tr>\n    <tr>\n      <td><table width='100%' border='0' cellpadding='0' cellspacing='0'>\n        <tr>\n          <td width='auto'><div align='left' class='couriernew12black'>DESCRIPTION</div></td>\n        </tr>\n";
$asql = mysql_query("SELECT description, timeCharge, remarks, chargeBy, status FROM patientCharges WHERE registrationNo = '{$registrationNo}' AND departmentStatus = '' AND title = 'LABORATORY' AND status NOT LIKE 'DELETED_%%%%%%' AND dateCharge='{$dateCharge}' ");
while ($afetch = mysql_fetch_array($asql)) {
    echo "\n        <tr>\n          <td><div align='left' class='couriernew16blackbold'>" . $afetch['description'] . "</div></td>\n        </tr>\n";
    if ($afetch['remarks'] != "") {
        echo "\n        <tr>\n          <td valign='top'><div align='left' class='couriernew12black'>(" . $afetch['remarks'] . ")</div></td>\n        </tr>\n";
    }
}
echo "\n      </table></td>\n    </tr>\n  </table></td>\n</div>\n";
?>
Exemple #13
0
if ($ro->getTotal("phic", "PROFESSIONAL FEE", $registrationNo) > 0) {
    $pf_phic += $ro->getPatient_phic();
} else {
}
if ($ro->getTotal("company", "PROFESSIONAL FEE", $registrationNo) > 0) {
    $pf_company += $ro->getPatient_company();
} else {
}
if ($ro->getTotal("cashUnpaid", "PROFESSIONAL FEE", $registrationNo) > 0) {
    $pf_cash += $ro->getPatient_cashUnpaid();
} else {
}
/*****************************************************/
/************* DISCOUNT ******************************/
$patientDiscount = 0;
if ($ro->getRegistrationDetails_discount() != "") {
    $patientDiscount = $ro->getRegistrationDetails_discount();
} else {
    $patientDiscount = "0.00";
}
/*****************************************************/
/***************** PAYMENT **************************/
$ro->getPaymentHistory_showUp_returnPaid_setter($registrationNo);
/****************************************************/
$gross = $hospitalBill_cash - $ro->getPaymentHistory_showUp_returnPaid();
$grandTotal = $gross - $ro->getRegistrationDetails_discount() + $pf_cash;
$content = "\n<div align='center' style='border:0px solid #000000; width:700px; height:auto;  border-color:black black black black;' >\n<font size=5><b>" . $ro->getReportInformation("hmoSOA_name") . "</b></font>\n<br><font size=2>" . $ro->getReportInformation("hmoSOA_address") . "</font>\n<br><br>\n</div>\n<table >\n<tr>\n<td><b>" . $ro->coconutText("Name") . ":</b>&nbsp;</td><td>&nbsp;" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>\n<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td>" . $ro->coconutText("Reg#") . "</td><td>&nbsp;{$registrationNo}</td>\n</tr>\n\n<tr>\n<Td><b>" . $ro->coconutText("PHIC") . ":</b>&nbsp;</td><td>&nbsp;" . $ro->getPatientRecord_phic() . "</td>\n<td>&nbsp;</td>\n<td><b>CaseType:</b></td><TD>" . $ro->getRegistrationDetails_caseType() . "</tD>\n</tr>\n\n<tr>\n<Td><b>" . $ro->coconutText("Company") . ":</b>&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_company() . "</td>\n<td>&nbsp;</tD>\n<Td><b>" . $ro->coconutText("Fx Diagnosis:") . ":</b>&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_finalDiagnosis() . "</td>\n</tr>\n\n<tr>\n<Td><b>" . $ro->coconutText("Admitted") . ":</b>&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_dateRegistered() . "</td>\n<td>&nbsp;</td>\n<Td><b>" . $ro->coconutText("Discharged") . ":</b>&nbsp;</td><td>&nbsp;" . $ro->getRegistrationDetails_dateUnregistered() . "</td>\n</tr>\n\n<tr>\n<Td><b>" . $ro->coconutText("Age") . ":</b></tD><td>&nbsp;" . $ro->getPatientRecord_age() . "</tD>\n<tD>&nbsp;</tD>\n<Td><b>" . $ro->coconutText("Room:") . "</b></tD><td>" . $ro->getRegistrationDetails_room() . "</tD>\n</tr>\n\n<tr>\n<td><b>" . $ro->coconutText("Att.Doctor") . ":</b></tD><td>&nbsp;<font size=2>" . $ro->getAttendingDoc($registrationNo, "Attending") . "</font></td>\n<td></td>\n<td><b>" . $ro->coconutText("Admitting Doc") . ":</b></td><tD>&nbsp;<font size=2>" . $ro->getAttendingDoc($registrationNo, "Admitting") . "</font></tD>\n</tr>\n</table>\n\n<table>\n<td><b>Address:</b>&nbsp;</tD>\n<tD>" . $ro->getPatientRecord_address() . "</tD>\n</table>\n\n<br><br>\n\n<table border=1 cellpadding=1 cellspacing=0>\n<tr>\n<th>&nbsp;Particular&nbsp;</th>\n<th>&nbsp;Actual&nbsp;</th>\n<th>&nbsp;PhilHealth&nbsp;</th>\n<th>&nbsp;Company&nbsp;</th>\n<th>&nbsp;Cash&nbsp;</th>\n</tr>\n\n<tr>\n<td>&nbsp;Medicine&nbsp;</td>\n<Td>&nbsp;{$medActual}</td>\n<td>&nbsp;{$medPHIC}</td>\n<td>&nbsp;{$medCompany}</td>\n<td>&nbsp;{$medCash}</td>\n</tr>\n\n\n<Tr>\n<td>&nbsp;Supplies</td>\n<td>&nbsp;{$supActual}</td>\n<td>&nbsp;{$supPHIC}</td>\n<td>&nbsp;{$supCompany}</td>\n<Td>&nbsp;{$supCash}</td>\n</tr>\n\n<Tr>\n<td>&nbsp;Laboratory</td>\n<td>&nbsp;{$labActual}</td>\n<td>&nbsp;{$labPHIC}</td>\n<td>&nbsp;{$labCompany}</td>\n<Td>&nbsp;{$labCash}</td>\n</tr>\n\n<Tr>\n<td>&nbsp;Radiology</td>\n<td>&nbsp;{$radActual}</td>\n<td>&nbsp;{$radPHIC}</td>\n<td>&nbsp;{$radCompany}</td>\n<Td>&nbsp;{$radCash}</td>\n</tr>\n\n<Tr>\n<td>&nbsp;Nursing Charges</td>\n<td>&nbsp;{$nsChargesActual}</td>\n<td>&nbsp;{$nsChargesPHIC}</td>\n<td>&nbsp;{$nsChargesCompany}</td>\n<Td>&nbsp;{$nsChargesCash}</td>\n</tr>\n\n<Tr>\n<td>&nbsp;Miscellaneous</td>\n<td>&nbsp;{$miscActual}</td>\n<td>&nbsp;{$miscPHIC}</td>\n<td>&nbsp;{$miscCompany}</td>\n<Td>&nbsp;{$miscCash}</td>\n</tr>\n\n<Tr>\n<td>&nbsp;Others</td>\n<td>&nbsp;{$othersActual}</td>\n<td>&nbsp;{$othersPHIC}</td>\n<td>&nbsp;{$othersCompany}</td>\n<Td>&nbsp;{$othersCash}</td>\n</tr>\n\n<Tr>\n<td>&nbsp;OR/DR/ER Fee</td>\n<td>&nbsp;{$orActual}</td>\n<td>&nbsp;{$orPHIC}</td>\n<td>&nbsp;{$orCompany}</td>\n<Td>&nbsp;{$orCash}</td>\n</tr>\n\n<Tr>\n<td>&nbsp;Rehab</td>\n<td>&nbsp;{$rehabActual}</td>\n<td>&nbsp;{$rehabPHIC}</td>\n<td>&nbsp;{$rehabCompany}</td>\n<Td>&nbsp;{$rehabCash}</td>\n</tr>\n\n<Tr>\n<td><font size=2>Room @ " . $ro->getQTY_room($registrationNo) . " day(s)</font> </td>\n<td>&nbsp;{$roomActual}</td>\n<td>&nbsp;{$roomPHIC}</td>\n<td>&nbsp;{$roomCompany}</td>\n<Td>&nbsp;{$roomCash}</td>\n</tr>\n\n<Tr>\n<td>&nbsp;<b>Hospital Bill</b></tD>\n<td>&nbsp;<b>" . number_format($hospitalBill_gt, 2) . "</b></tD>\n<td>&nbsp;<b>" . number_format($hospitalBill_phic, 2) . "</b></tD>\n<td>&nbsp;<b>" . number_format($hospitalBill_company, 2) . "</b></tD>\n<td>&nbsp;<b>" . number_format($hospitalBill_cash, 2) . "</b></tD>\n</tr>\n\n<Tr>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n</tr>\n\n<tr>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n</tr>\n\n" . $ro->getPatientDoc_soa2pdf($registrationNo) . "\n\n<tr>\n<td>&nbsp;<b>Professional Fee</b></tD>\n<td>&nbsp;<b>" . number_format($pf_gt, 2) . "</b></tD>\n<td>&nbsp;<b>" . number_format($pf_phic, 2) . "</b></tD>\n<td>&nbsp;<b>" . number_format($pf_company, 2) . "</b></tD>\n<td>&nbsp;<b>" . number_format($pf_cash, 2) . "</b></tD>\n</tr>\n\n\n<Tr>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n</tr>\n\n<tr>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n</tr>\n\n\n<tr>\n<td>&nbsp;<b>Total</b></tD>\n<td>&nbsp;<b>" . number_format($hospitalBill_gt + $pf_gt, 2) . "</b></tD>\n<td>&nbsp;<b>" . number_format($hospitalBill_phic + $pf_phic, 2) . "</b></tD>\n<td>&nbsp;<b>" . number_format($hospitalBill_company + $pf_company, 2) . "</b></tD>\n<td>&nbsp;<b>" . number_format($hospitalBill_cash + $pf_cash, 2) . "</b></tD>\n</tr>\n\n\n<tr>\n<td>&nbsp;<b>Discount</b></tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;<b>" . number_format($patientDiscount, 2) . "</b></tD>\n</tr>\n\n<tr>\n<td>&nbsp;<b>Grand Total</b></tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;<b>" . number_format($grandTotal, 2) . "</b></tD>\n</tr>\n\n<tr>\n<td>&nbsp;<b>Payments</b></tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;</tD>\n<td>&nbsp;<b>" . number_format($ro->getPaymentHistory_showUp_returnPaid(), 2) . "</b></tD>\n</tr>\n\n<tr>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n</tr>\n\n\n<tr>\n<td>&nbsp;<b>BALANCE</b></td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;<b> " . number_format($hospitalBill_cash + $pf_cash - $ro->getPaymentHistory_showUp_returnPaid(), 2) . " </b></td>\n</tr>\n\n</table>\n\n<br><br><br><br>\n<hr>\n<br><br>\n\n<Table>\n\n<td style='width:90%;'>\n<font size=2><u>MYNARD A. BAJO</u><Br><b>Billing Officer</b></font>\n</td>\n\n\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n\n\n\n\n\n<td>\n<font size=2><u>HAZEL S. CASTIGADOR</u><Br><b>Medical Clerk</b></font>\n</td>\n\n\n<tr>\n<td>&nbsp;</td>\n</tr>\n<tr>\n<td>&nbsp;</td>\n</tr>\n<tr>\n<td>&nbsp;</td>\n</tr>\n<tr>\n<td>&nbsp;</td>\n</tr>\n<tr>\n<td>&nbsp;</td>\n</tr>\n\n<tr>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n<td>&nbsp;</td>\n\n<tD>&nbsp;&nbsp;\n<font size=2>Certified Correct:<br></font>\n<br>\n<font size=2><u>MARIBETH B. SANDIG</u><Br><b>Hospital Administrator</b></font>\n</tD>\n</tr>\n</table>\n\n<br><br><br><br><br><br><br>\n\n\n\n\n\n";
$pdfFile = "/opt/lampp/htdocs/SOA_" . $ro->getPatientRecord_lastName() . "_" . $ro->getPatientRecord_firstName() . "-" . $registrationNo . ".pdf";
$html2pdf->WriteHTML($content);
$html2pdf->Output($pdfFile);
//echo "<table border=1>".$ro->getPatientDoc_soa2pdf($registrationNo)."</table>"
Exemple #14
0
    //echo "<input type=hidden name='service' value='$service'>";
    echo "<input type=hidden name='title' value='{$title}'>";
    echo "<input type=hidden name='paidVia' value='{$paidVia}'>";
    echo "<input type=hidden name='cashPaid' value='{$cashPaid}'>";
    echo "<input type=hidden name='batchNo' value='{$batchNo}'>";
    echo "<input type=hidden name='username' value='{$username}'>";
    echo "<input type=hidden name='quantity' value='{$quantity}'>";
    echo "<input type=hidden name='discount' value='{$discount}'>";
    echo "<input type=hidden name='room' value='{$room}'>";
    echo "<input type=hidden name='inventoryFrom' value='{$inventoryFrom}'>";
    echo "<table border=0>";
    echo "<tr>";
    echo "<td>&nbsp;</td><td><font class='labelz' color=black><b>{$description}</b></font></td>";
    echo "</tr>";
    echo "<tr>";
    echo "<td><font class='labelz'>Service</font></td><td><input type=text class='txtBox' name='service' value='{$service}'></td>";
    echo "</tr>";
    echo "<tr>";
    echo "<td><font class='labelz'>Rate / PF Share</font></td><td><input type=text class='txtBox' name='sellingPrice' value='" . $ro->getCompanyRate($ro->getRegistrationDetails_company(), $ro->companyRate()) . "/" . $companyDocShare . "'></td>";
    echo "</tr>";
    //echo "<br>&nbsp;<font class='labelz'>PF Share</font>&nbsp;<font class='labelz' color=red>".$companyDocShare."</font>";
    echo "<tr>";
    echo "<td>&nbsp;</td><td><input type=submit value='Proceed' style='border:1px solid #000; background-color:#3b5998; color:white'></td>";
    echo "</tr>";
    echo "</table>";
    echo "</form>";
}
// (paidVia == COMPANY)
?>

	a.print();
	a.close();
}
</script>
<a href='#' onClick="printF('printData')" style="text-decoration:none;"><?php 
    echo $ro->coconutImages("printer.jpeg");
    ?>
 <font color=red>Print</font></a><Br><Br>
<?php 
    echo "<div id='printData'>";
    echo "\n<style type='text/css'>\n<!--\n.style1 {font-family: Arial;font-size: 16px;color: #000000;font-weight: bold;}\n.style2 {font-family: 'Times New Roman';font-size: 16px;color: #FF0000;font-weight: bold;}\n.style3 {text-decoration: none;font-family: Arial;font-size: 12px;color: #000000;font-weight: bold;}\n.style4 {font-family: Arial;font-size: 12px;color: #000000;font-weight: bold;}\n.style5 {font-family: Arial;font-size: 14px;color: #000000;}\n.style6 {font-family: Arial;font-size: 12px;color: #FFFFFF;}\n.style7 {font-family: Arial;font-size: 11px;color: #000000;}\n.style8 {font-family: Arial;font-size: 12px;color: #FFFFFF;font-weight: bold;}\n-->\n</style>\n";
    echo "<span class='style4'>Reg#:&nbsp;</span><span class='style5'>" . $registrationNo . "</span><span class='style4'>&nbsp;&nbsp;&nbsp;&nbsp;Batch#:&nbsp;</span><span class='style5'>" . $dispensedNo . "</span>";
    echo "<br>";
    echo "<span class='style4'>Name:&nbsp;</span><span class='style5'>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</span>";
    echo "<br>";
    echo "<span class='style4'>PHIC:&nbsp;</span><span class='style5'>" . $ro->getPatientRecord_phic() . " + " . $ro->getRegistrationDetails_company() . "</span>";
    echo "<br>";
    echo "<span class='style4'>Date:&nbsp;</span><span class='style5'>" . date("M d, Y") . " @ " . $ro->getSynapseTime() . "</span>";
    echo "<Br>";
    echo "<span class='style4'>Room:&nbsp;</span><span class='style5'>" . $ro->getRegistrationDetails_room() . "</span>";
    echo "<br>";
    echo "<span class='style4'>Pharmacy:&nbsp;</span><span class='style5'>" . $username . "</span>";
    echo "<br>";
    echo "<span class='style4'>Doctor:&nbsp;</span><span class='style5'>" . $ro->getAttendingDoc($registrationNo, "Attending") . "</span>";
    echo "<br /><br />";
    echo "<table border=1 bordercolor=black cellpadding=0 cellspacing=0>";
    echo "<tr>";
    echo "<td class='style4'>&nbsp;Particulars&nbsp;</td>";
    echo "<td class='style4'>&nbsp;QTY&nbsp;</td>";
    echo "</tr>";
    for ($x = 0, $z = 0; $x < $disp, $z < $countz; $x++, $z++) {