Пример #1
0
include "../../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$itemNo = $_GET['itemNo'];
$countz = count($itemNo);
$ro = new database2();
$ro->coconutDesign();
$total = 0;
$discount = 0;
echo "<center>";
$ro->coconutFormStart("get", "http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/individualPayment/paidItems.php");
$ro->coconutHidden("registrationNo", $registrationNo);
$ro->coconutHidden("username", $username);
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("");
$ro->coconutTableHeader("Description");
$ro->coconutTableHeader("QTY;");
$ro->coconutTableHeader("Price");
$ro->coconutTableHeader("Discount");
$ro->coconutTableHeader("Total");
$ro->coconutTableRowStop();
for ($x = 0; $x < $countz; $x++) {
    $ro->coconutTableRowStart();
    $ro->coconutTableData("<input type='checkbox' name='itemNo[]' value='" . $itemNo[$x] . "' checked>");
    $ro->coconutTableData($ro->doubleSelectNow("patientCharges", "description", "itemNo", $itemNo[$x], "registrationNo", $registrationNo));
    $ro->coconutTableData($ro->doubleSelectNow("patientCharges", "quantity", "itemNo", $itemNo[$x], "registrationNo", $registrationNo));
    $ro->coconutTableData($ro->doubleSelectNow("patientCharges", "sellingPrice", "itemNo", $itemNo[$x], "registrationNo", $registrationNo));
    $ro->coconutTableData($ro->doubleSelectNow("patientCharges", "discount", "itemNo", $itemNo[$x], "registrationNo", $registrationNo));
    $ro->coconutTableData($ro->doubleSelectNow("patientCharges", "cashUnpaid", "itemNo", $itemNo[$x], "registrationNo", $registrationNo));
    $discount += $ro->doubleSelectNow("patientCharges", "discount", "itemNo", $itemNo[$x], "registrationNo", $registrationNo);
Пример #2
0
<?php

include "../../myDatabase2.php";
$username = $_GET['username'];
$ro = new database2();
echo "<center><br>";
$ro->coconutFormStart("post", "create_ipd_census.php");
$ro->coconutHidden("username", $username);
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("Room");
$ro->coconutTableHeader("Reg#");
$ro->coconutTableHeader("Patient");
$ro->coconutTableHeader("Admitted");
$ro->coconutTableHeader("Company");
$ro->coconutTableHeader("Cash");
$ro->coconutTableHeader("PhilHealth");
$ro->coconutTableHeader("Company");
$ro->coconutTableRowStop();
$ro->currentAdmitted("3rd floor");
$ro->currentAdmitted("2nd floor");
$ro->coconutTableStop();
echo "<Br>";
if ($ro->selectNow("ipdCensus", "id", "date", date("Y-m-d")) != "") {
    //dont show button
} else {
    $ro->coconutButton("Create Inpatient Census");
}
$ro->coconutFormStop();
Пример #3
0
<?php

include "../../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$ro = new database2();
$ro->coconutDesign();
//echo "<a href='http://".$ro->getMyUrl()."/COCONUT/Laboratory/laboratoryNote.php?username=$username'>Send Laboratory Note</a>";
echo "<center><br><br>";
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("Lab Test");
$ro->coconutTableHeader("Date");
$ro->coconutTableHeader("");
$ro->coconutTableHeader("");
$ro->coconutTableRowStop();
$ro->getLabTest_done($registrationNo, $username);
$ro->radioResult_onPatient($registrationNo, $username);
$ro->coconutTableStop();
Пример #4
0
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
$ro = new database2();
$totalz = 0;
echo "<Center><font size=4><B>{$description}</b></font><br><font size=2>({$monthWord} {$year})</font> <br>";
echo "<Br><font color=red>Consumed by Patient</font>";
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("Date");
$ro->coconutTableHeader("Quantity");
$ro->coconutTableRowStop();
for ($x = 1; $x < 32; $x++) {
    if ($x < 10) {
        $ro->coconutTableRowStart();
        $ro->coconutTableData($monthWord . " {$x}," . $year);
        $ro->coconutTableData($ro->getFastMovingChart($month, "0" . $x, $year, $description, "All", $inventoryCode));
        $totalz += $ro->getFastMovingChart($month, "0" . $x, $year, $description, "All", $inventoryCode);
        $ro->coconutTableRowStop();
    } else {
        $ro->coconutTableRowStart();
        $ro->coconutTableData($monthWord . " {$x}," . $year);
        $ro->coconutTableData($ro->getFastMovingChart($month, $x, $year, $description, "All", $inventoryCode));
        $totalz += $ro->getFastMovingChart($month, $x, $year, $description, "All", $inventoryCode);
        $ro->coconutTableRowStop();
Пример #5
0
float: left;
width: 30%;
margin:30px;
}
.rightcol {
float: left;
width: 60%;
}        
</style>

<?php 
echo "<center><font size=4>Cash and Charge for Medicine and Supplies</font>";
echo "<Br>" . $from . " to " . $to . "</center>";
echo "<table border=1 cellspacing=0 class='leftcol'>";
$ro->coconutTableRowStart();
$ro->coconutTableHeader("Date");
$ro->coconutTableHeader("Particulars");
$ro->coconutTableHeader("Cash");
$ro->coconutTableRowStart();
echo "<tr>";
echo "<td>&nbsp;</tD>";
echo "<td align='center'>&nbsp;<b>MEDICINE</b></td>";
echo "<td>&nbsp;</td>";
echo "</tr>";
$ro->cashANDcharge_paid($from, $to, "MEDICINE");
echo "<Tr>";
echo "<td>&nbsp;</td>";
echo "<td>&nbsp;<b>TOTAL</b></td>";
echo "<td>&nbsp;" . number_format($ro->cashANDcharge_paid_medicine(), 2) . "</td>";
echo "</tr>";
echo "<tr>";
Пример #6
0
include "../../../myDatabase2.php";
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$month1 = $_GET['month1'];
$day1 = $_GET['day1'];
$year1 = $_GET['year1'];
$show = $_GET['show'];
$username = $_GET['username'];
$ro = new database2();
echo "<font size=5>CASH COLLECTION</font>";
echo "<br>";
echo "<font size=3>{$month} {$day}, {$year} - {$month1} {$day1}, {$year1}</font>";
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("&nbsp;");
$ro->coconutTableHeader("Patient");
$ro->coconutTableHeader("LABORATORY");
$ro->coconutTableHeader("RADIOLOGY");
$ro->coconutTableHeader("MEDICINE");
$ro->coconutTableHeader("SUPPLIES");
$ro->coconutTableHeader("BLOODBANK");
$ro->coconutTableHeader("NBS");
$ro->coconutTableHeader("MISCLLANEOUS");
$ro->coconutTableHeader("NURSING CARE");
$ro->coconutTableHeader("ECG");
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$ro->coconutTableData("&nbsp;");
$ro->coconutTableData("&nbsp;");
$ro->coconutTableData("&nbsp;");
Пример #7
0
<?php

include "../../myDatabase2.php";
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$month1 = $_GET['month1'];
$day1 = $_GET['day1'];
$year1 = $_GET['year1'];
$ro = new database2();
echo "<br><Br>";
echo "<center><font size=5>PhilHealth Receivable for PHARMACY</font></center>";
echo "<center><font size=3>( {$month} {$day}, {$year} - {$month1} {$day1}, {$year1} )</font></center>";
echo "<Br>";
echo "<center>";
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("Discharged");
$ro->coconutTableHeader("Patient");
$ro->coconutTableHeader("MEDICINE");
$ro->coconutTableHeader("SUPPLIES");
$ro->coconutTableRowStop();
$ro->discharged_name($month, $day, $year, $month1, $day1, $year1);
$ro->coconutTableRowStart();
$ro->coconutTableData("<b>TOTAL</b>");
$ro->coconutTableData("");
$ro->coconutTableData("&nbsp;<B>" . number_format($ro->discharged_name_medicine(), 2) . "</b>");
$ro->coconutTableData("&nbsp;<B>" . number_format($ro->discharged_name_supplies(), 2) . "</b>");
$ro->coconutTableRowStop();
$ro->coconutTableStop();