本文整理汇总了PHP中database2类的典型用法代码示例。如果您正苦于以下问题:PHP database2类的具体用法?PHP database2怎么用?PHP database2使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了database2类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: database2
<?php
include "../../../myDatabase2.php";
$description = $_GET['description'];
$ro = new database2();
$ro->deptInventory($description, "LABORATORY");
示例2: database2
<?php
include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$targetAmount = $_GET['targetAmount'];
$ro = new database2();
$itemz = preg_split("/\\_/", $ro->getMaximumTotal_rBanny($registrationNo, "Room and Board"));
$ro->getPatientChargesToEdit($itemz[1]);
if ($ro->getTotal("cashUnpaid", "Room And Board", $registrationNo) > 0) {
echo "<br><Br><br><br><br>";
echo "<font color=red>R-Banny is now Calculating Room</font><br>";
echo "Total: " . $itemz[0];
echo "<br>";
echo "Item#: " . $itemz[1];
if ($targetAmount >= $itemz[0]) {
$ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", "0");
$ro->editNow("patientCharges", "itemNo", $itemz[1], "Company", "0");
$ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $itemz[0]);
} else {
//echo "<br><Br><br><br><font color=blue size=5>R-Banny is Having a trouble in Computation</font>";
$newCash = $itemz[0] - $targetAmount;
$newPHIC = $ro->selectNow("patientCharges", "total", "itemNo", $itemz[1]) - $newCash;
$ro->editNow("patientCharges", "itemNo", $itemz[1], "cashUnpaid", $newCash);
$ro->editNow("patientCharges", "itemNo", $itemz[1], "Company", "0");
$ro->editNow("patientCharges", "itemNo", $itemz[1], "phic", $newPHIC);
}
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/rBanny/consumedRoom.php?registrationNo={$registrationNo}&targetAmount={$targetAmount}");
} else {
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/rBanny/consumedMeds.php?registrationNo={$registrationNo}&targetAmount={$targetAmount}");
}
示例3: database2
<?php
include "../myDatabase2.php";
$username = $_GET['username'];
$datez = $_GET['datez'];
$from = $_GET['from'];
$ro = new database2();
//echo "<font size=2>Date </font> <font size=2 color=red>".$datez."</font>";
echo "<form method='get' action='/COCONUT/opdRegistration.php'>";
$ro->coconutHidden("from", $from);
echo "<input type='text' style='border:1px solid #ff0000;' name='datez' value='{$datez}'>";
echo "</form>";
$ro->getPatientForReg($datez, $username);
示例4: database2
<?php
include "../../../myDatabase2.php";
$inventoryCode = $_GET['inventoryCode'];
$department = $_GET['department'];
$description = $_GET['description'];
$date = $_GET['date'];
$time = $_GET['time'];
$username = $_GET['username'];
$ro = new database2();
$ro->coconutDesign();
echo "<br><br><br><br><center><font size=2 color=red>{$description}</font></center>";
$ro->coconutFormStart("get", "http://" . $ro->getMyUrl() . "/COCONUT/inventory/department/inventoryLog.php");
$ro->coconutHidden("inventoryCode", $inventoryCode);
$ro->coconutHidden("department", $department);
$ro->coconutHidden("description", $description);
$ro->coconutHidden("date", $date);
$ro->coconutHidden("time", $time);
$ro->coconutHidden("username", $username);
$ro->coconutBoxStart("500", "85");
echo "<br>";
echo "<table border=0>";
echo "<Tr>";
echo "<td>QTY: </td>";
echo "<td>";
$ro->coconutTextBox_short("qty", "1");
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
$ro->coconutButton("Proceed");
示例5: count
<?php
include "../../../myDatabase2.php";
$itemNo = $_GET['itemNo'];
$countItem = count($itemNo);
$registrationNo = $_GET['registrationNo'];
$mode = $_GET['mode'];
$ro = new database2();
if ($mode == "cash2company1") {
for ($x = 0; $x < $countItem; $x++) {
$ro->getPatientChargesToEdit($itemNo[$x]);
$totalTransfer = $ro->selectNow("patientCharges", "company1", "itemNo", $itemNo[$x]) + $ro->patientCharges_cashUnpaid();
$ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "company1", $totalTransfer);
$ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "cashUnpaid", 0);
}
} else {
if ($mode == "company1_to_cash") {
for ($x = 0; $x < $countItem; $x++) {
$ro->getPatientChargesToEdit($itemNo[$x]);
$totalTransfer = $ro->selectNow("patientCharges", "company1", "itemNo", $itemNo[$x]) + $ro->patientCharges_cashUnpaid();
$ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "cashUnpaid", $totalTransfer);
$ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "company1", 0);
}
} else {
if ($mode == "company2company1") {
for ($x = 0; $x < $countItem; $x++) {
$ro->getPatientChargesToEdit($itemNo[$x]);
$totalTransfer = $ro->selectNow("patientCharges", "company1", "itemNo", $itemNo[$x]) + $ro->patientCharges_company();
$ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "company1", $totalTransfer);
$ro->EditNow("patientCharges", "itemNo", $itemNo[$x], "company", 0);
}
示例6: database2
<?php
include "../../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$ro = new database2();
$ro->getPatientProfile($registrationNo);
?>
<script type="text/javascript">
function printF(printData)
{
var a = window.open ('', '',"status=1,scrollbars=1, width=auto,height=auto");
a.document.write(document.getElementById(printData).innerHTML.replace(/<a\/?[^>]+>/gi, ''));
a.document.close();
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>
<div id="printData">
<?php
echo "<Center><font size=3>" . $ro->getReportInformation("hmoSOA_name") . "</font></center>";
echo "<center><font size=2>" . $ro->getReportInformation("hmoSOA_address") . "</font></center>";
echo "<Br>\n<center><b><font size=2>STATEMENT OF ACTUAL CHARGES</font></b></center>\n";
示例7: database2
<?php
include "../../myDatabase2.php";
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$ro = new database2();
$mydate = $year . "-" . $month . "-" . $day;
$ro->showIssuedRequest($mydate);
示例8: database2
<?php
include "../../../myDatabase2.php";
$ro = new database2();
$ro->coconutDesign();
echo "<br><br>";
$ro->coconutFormStart("get", "labCensus.php");
$ro->coconutBoxStart("500", "160");
echo "<br>";
echo "<table border=0>";
echo "Year-Month-Day";
echo "<tr>";
echo "<td>From</td>";
echo "<td>";
$ro->coconutComboBoxStart_short("fromYear");
for ($x = date("Y"); $x > 2000; $x--) {
echo "<option value={$x}>{$x}</option>";
}
$ro->coconutBoxStop();
echo "</td>";
echo "<td>";
$ro->coconutComboBoxStart_short("fromMonth");
for ($x = 1; $x <= 12; $x++) {
if ($x < 10) {
echo "<option value=0{$x}>0{$x}</option>";
} else {
echo "<option value={$x}>{$x}</option>";
}
}
$ro->coconutBoxStop();
echo "</td>";
示例9: database2
include "../../myDatabase2.php";
$itemNo = $_GET['itemNo'];
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$fromTime_hour = $_GET['fromTime_hour'];
$fromTime_minutes = $_GET['fromTime_minutes'];
$fromTime_seconds = $_GET['fromTime_seconds'];
$toTime_hour = $_GET['toTime_hour'];
$toTime_minutes = $_GET['toTime_minutes'];
$toTime_seconds = $_GET['toTime_seconds'];
$username = $_GET['username'];
$registrationNo = $_GET['registrationNo'];
$shift = $_GET['shift'];
$ro = new database2();
$ro->coconutDesign();
?>
<script type="text/javascript" src="http://<?php
echo $ro->getMyUrl();
?>
/jquery1.11.1.js"></script>
<?php
$patno = $ro->selectNow("registrationDetails", "patientNo", "registrationNo", $registrationNo);
echo strtoupper($ro->selectNow("patientRecord", "lastName", "patientNo", $patno)) . ", " . strtoupper($ro->selectNow("patientRecord", "firstName", "patientNo", $patno));
echo "<br><br>";
$ro->coconutFormStart("get", "editChargesCashier1.php");
$ro->coconutHidden("itemNo", $itemNo);
示例10: database2
<?php
include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$itemNo = $_GET['itemNo'];
$description = $_GET['description'];
$quantity = $_GET['quantity'];
$username = $_GET['username'];
$show = $_GET['show'];
$desc = $_GET['desc'];
$ro = new database2();
/*
if( ($ro->getTitle($itemNo) == "MEDICINE" || $ro->getTitle($itemNo) == "SUPPLIES") && $ro->selectNow("registeredUser","module","username",$username) != "PHARMACY" ) {
echo "<br><Br><Br><font color=red>PHARMACY NA LANG MAG RERETURN.
<bR>
NAHIYA AKO SAYO EH BKA BUSY KA. =)</font>";
*/
//}else {
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/verifyDelete_redirect.php?registrationNo={$registrationNo}&itemNo={$itemNo}&description={$description}&quantity={$quantity}&username={$username}&show={$show}&desc={$desc}");
//}
示例11: database2
include "../myDatabase2.php";
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$fromTime_hour = $_GET['fromTime_hour'];
$fromTime_minutes = $_GET['fromTime_minutes'];
$fromTime_seconds = $_GET['fromTime_seconds'];
$toTime_hour = $_GET['toTime_hour'];
$toTime_minutes = $_GET['toTime_minutes'];
$toTime_seconds = $_GET['toTime_seconds'];
$module = $_GET['module'];
$username = $_GET['username'];
$branch = $_GET['branch'];
$myDate = $year . "-" . $month . "-" . $day;
$ro = new database2();
echo "<html>";
echo "<head>";
echo "<script src='http://" . $ro->getMyUrl() . "/jquery.js'></script>";
echo "<script>";
?>
function playBuzzer(){
$("body").append("<embed src='doorbell.wav' autostart='true' loop='false' width='2' height='0'></embed>");
}
var aSound = document.createElement('audio');
aSound.setAttribute('src', 'doorbell.wav');
<?php
if ($module == "PHARMACY") {
$tag = "MEDICINE";
示例12: database2
<?php
include "../../myDatabase2.php";
$inventoryCode = $_GET['inventoryCode'];
$ro = new database2();
echo "<br><bR><br><br>";
echo "<center>";
echo "<table border=1 cellpadding=1 cellspacing=0>";
echo "<Tr>";
echo "<th> Description </th>";
echo "<th> Beginning QTY </th>";
echo "<th> Remaining QTY </th>";
echo "<th> Dispensed QTY </th>";
echo "</tr>";
echo "<tr>";
echo "<td> " . $ro->selectNow("inventory", "description", "inventoryCode", $inventoryCode) . "</tD>";
echo "<td> " . ($ro->selectNow("inventory", "quantity", "inventoryCode", $inventoryCode) + $ro->getQTY_dispensed($inventoryCode)) . "</tD>";
echo "<td> " . $ro->selectNow("inventory", "quantity", "inventoryCode", $inventoryCode) . "</tD>";
echo "<td> " . $ro->getQTY_dispensed($inventoryCode) . "</tD>";
echo "</tr>";
echo "</table>";
echo "</center>";
示例13: database2
<?php
include "../../../myDatabase2.php";
$registrationNo = $_POST['registrationNo'];
$itemNo = $_POST['itemNo'];
$subjective = $_POST['subjective'];
$objective = $_POST['objectives'];
$assessment = $_POST['assessment'];
$ro = new database2();
$ro->getBatchNo();
$myFile = $ro->getReportInformation("homeRoot") . "/COCONUT/trackingNo/batchNo.dat";
$fh = fopen($myFile, 'r');
$batchNo = fread($fh, 100);
fclose($fh);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/android/doctor/mobileAddCharges.php?batchNo={$batchNo}®istrationNo={$registrationNo}&itemNo={$itemNo}&subjective={$subjective}&objective={$objective}&assessment={$assessment}&username=ricky");
示例14: database2
<?php
include "../../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$package = $_GET['package'];
$ro = new database2();
$ro->editNow("registrationDetails", "registrationNo", $registrationNo, "prePackage", $package);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientProfile_handler.php?registrationNo={$registrationNo}&username={$username}");
示例15: database2
$dateRegistered = $_GET['dateRegistered'];
$attendingDoctor = $_GET['attendingDoctor'];
$admittingDoctor = $_GET['admittingDoctor'];
$diet = $_GET['diet'];
$pulse = $_GET['pulse'];
$respiratory = $_GET['respiratory'];
$from = $_GET['from'];
$infectionControl = $_GET['infectionControl'];
$service = $_GET['service'];
$serviceOthers = $_GET['serviceOthers'];
if ($service == 'Others') {
$newservice = "Others-" . $serviceOthers;
} else {
$newservice = $service;
}
$ro = new database2();
?>
<link rel="stylesheet" type="text/css" href="http://<?php
echo $ro->getMyUrl();
?>
/COCONUT/flow/rickyCSS1.css" />
<script type='text/javascript'>
$("#breadcrumbs a").hover(
function () {
$(this).addClass("hover").children().addClass("hover");
$(this).parent().prev().find("span.arrow:first").addClass("pre_hover");
},
function () {
$(this).removeClass("hover").children().removeClass("hover");