本文整理汇总了PHP中database4类的典型用法代码示例。如果您正苦于以下问题:PHP database4类的具体用法?PHP database4怎么用?PHP database4使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了database4类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: database
<?php
include "../../myDatabase.php";
include "../../myDatabase4.php";
$ro = new database();
$ro4 = new database4();
$ro4->ending_inventory_list();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="../../jquery-2.1.4.min.js"></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<script src="../../bootstrap-3.3.6/js/bootstrap.js"></script>
<script>
$(document).ready(function(){
$("#medicineBtn").click(function(){
window.location = "inventory-ending-comparison-medicine.php";
});
});
</script>
</head>
<body>
<div class="container">
<h3>Ending Inventory Supplies</h3>
<div class="btn-group">
<button id="medicineBtn" type="button" class="btn btn-default">Medicine</button>
示例2: database
<?php
require_once "../authentication.php";
include "../../myDatabase.php";
include "../../myDatabase4.php";
$inventoryLocation = $_POST['inventoryLocation'];
$batchNo = $_POST['batchNo'];
$registrationNo = $_POST['registrationNo'];
$pharmacyClass = "";
$nursingClass = "";
$orClass = "";
$erClass = "";
$ro = new database();
$ro4 = new database4();
$ro4->charges_cart($batchNo, $registrationNo);
if ($inventoryLocation == "PHARMACY") {
$pharmacyClass = "btn btn-success";
} else {
$pharmacyClass = "btn btn-default";
}
if ($inventoryLocation == "NURSING") {
$nursingClass = "btn btn-success";
} else {
$nursingClass = "btn btn-default";
}
if ($inventoryLocation == "OR") {
$orClass = "btn btn-success";
} else {
$orClass = "btn btn-default";
}
if ($inventoryLocation == "E.R") {
示例3: database
<?php
require_once "../authentication.php";
include "../../myDatabase.php";
include "../../myDatabase4.php";
$desc = $_POST['desc'];
$inventoryLocation = $_POST['inventoryLocation'];
$batchNo = $_POST['batchNo'];
$registrationNo = $_POST['registrationNo'];
$ro = new database();
$ro4 = new database4();
$ro4->search_inventory($desc, $inventoryLocation);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="../js/open.js"></script>
<script src="../js/jquery.jstepper.min.js"></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<script>
$(document).ready(function(){
<?php
foreach ($ro4->search_inventory_inventoryCode() as $inventoryCode) {
?>
var qty = "<?php
示例4: database
<?php
include "../../myDatabase.php";
include "../../myDatabase4.php";
?>
<?php
$date1 = $_GET['date1'];
$date2 = $_GET['date2'];
$phicTotal = 0;
$ro = new database();
$ro4 = new database4();
$ro4->inpatient_discharged($date1, $date2);
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<script src="../../jquery-2.1.4.min.js"></script>
<script src="../js/jquery-ui.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<link rel="stylesheet" href="../js/jquery-ui.css"></link>
<link rel="stylesheet" href="../js/jquery-ui.theme.min.css"></link>
<script>
$(document).ready(function(){
$(".date").datepicker({
dateFormat:'yy-mm-dd',
});
示例5: database
<?php
include "../../../myDatabase.php";
include "../../../myDatabase4.php";
$chargesCode = $_POST['chargesCode'];
$date1 = $_POST['date1'];
$date2 = $_POST['date2'];
$ro = new database();
$ro4 = new database4();
$price = $ro->selectNow("availableCharges", "WARD", "chargesCode", $chargesCode);
$census = $ro4->count_charges($chargesCode, $date1, $date2, "IPD");
//if( $census > 0 ) {
echo $census . "-" . number_format($price * $census, 2);
//}else {
//echo " - ";
//}
示例6: database3
<?php
include "../../myDatabase3.php";
include "../../myDatabase4.php";
$date1 = $_GET['date1'];
$date2 = $_GET['date2'];
$totalCr = 0;
?>
<?php
$ro3 = new database3();
$ro4 = new database4();
?>
<?php
$ro3->creditCardPatient($date1, $date2);
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<script src="../../jquery-2.1.4.min.js"></script>
<script src="../js/jquery-ui.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<link rel="stylesheet" href="../js/jquery-ui.css"></link>
<link rel="stylesheet" href="../js/jquery-ui.theme.min.css"></link>
示例7: database
<?php
require_once "../authentication.php";
include "../../myDatabase.php";
include "../../myDatabase4.php";
$ro = new database();
$ro4 = new database4();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Emergency Room</title>
<script src="../js/jquery-2.1.4.min.js"></script>
<script src="../js/jquery-ui.min.js"></script>
<script src="../js/jquery.fixedMenu.js"></script>
<script src="../js/open.js"></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<link rel="stylesheet" href="../../Registration/menu/fixedMenu_style1.css"></link>
<link rel="stylesheet" href="../myCSS/jquery-ui.css"></link>
<link rel="stylesheet" href="../myCSS/breadcrumb.css"></link>
<script>
$(document).ready(function(){
$(".menu").fixedMenu();
$("#searchPx").click(function(){
var data = {
username:'<?php
echo $ro->selectNow('registeredUser', 'username', 'employeeID', $_SESSION['employeeID']);
示例8: session_start
<?php
include "../../myDatabase4.php";
include "../../myDatabase.php";
session_start();
$ro = new database4();
$ro1 = new database();
$ro->inventory_list("medicine");
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="../../jquery-2.1.4.min.js"></script>
<script src="../js/jquery-ui.min.js"></script>
<script src="../js/jquery.tooltipster.min.js"></script>
<script src="../../bootstrap-3.3.6/js/bootstrap.js"></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<link rel="stylesheet" href="../js/jquery-ui.css"></link>
<link rel="stylesheet" href="../js/jquery-ui.theme.min.css"></link>
<link rel="stylesheet" href="../myCSS/tooltipster.css"></link>
<link rel="stylesheet" href="../myCSS/tooltipster-noir.css"></link>
<script>
$(document).ready(function(){
<?php
foreach ($ro->inventory_list_inventoryCode() as $inventoryCode) {
?>
示例9: date
<?php
if (isset($_POST['year'])) {
$year = $_POST['year'];
} else {
$year = date("Y");
}
?>
<?php
$wordMonth = array("01" => "January", "02" => "February", "03" => "March", "04" => "April", "05" => "May", "06" => "June", "07" => "July", "08" => "August", "09" => "September", "10" => "October", "11" => "November", "12" => "December");
?>
<?php
$ro = new database();
$ro4 = new database4();
?>
<?php
$balanceTotal = 0;
?>
<?php
$ro4->inpatient_discharged($year . "-" . $month . "-01", $year . "-" . $month . "-31");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
示例10: database
<?php
include "../../myDatabase.php";
include "../../myDatabase4.php";
$title = $_GET['title'];
$ro = new database();
$ro4 = new database4();
$ro4->charges_list($title);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="../js/jquery-2.1.4.min.js"></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<script>
$(document).ready(function(){
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
if( isChrome == true ) {
$("#export").click(function(){
var data='<table>'+$("#chargesList").html().replace(/<a\/?[^>]+>/gi, '')+'</table>';
var reportName = '<?php
echo $title . ' [' . $ro4->formatDate(date('Y-m-d')) . ']';
?>
';
$('body').prepend("<form method='post' action='../../export-to-excel/exporttoexcel.php' style='display:none' id='ReportTableData'><input type='text' name='tableData' value='"+data+"' ><input type='text' name='reportName' value='"+reportName+"'></form>");
$('#ReportTableData').submit().remove();
return false;
示例11: database
<?php
require_once "../authentication.php";
include "../../myDatabase.php";
include "../../myDatabase4.php";
$invoiceNo = $_POST['invoiceNo'];
$supplier = $_POST['supplier'];
$terms = $_POST['terms'];
$date = $_POST['date'];
$ro = new database();
$ro4 = new database4();
$purchaseDate = date("Ymd");
$counterDate = $ro->selectNow("counters", "counterDate", "id", "1");
$counter01 = $ro->selectNow("counters", "counter01", "id", "1");
if ($purchaseDate != $counterDate) {
$ro->editNow("counters", "id", "1", "counterDate", $purchaseDate);
$ro->editNow("counters", "id", "1", "counter01", "0");
} else {
$newCounter01 = $counter01 + 1;
$ro->editNow("counters", "counterdate", $purchaseDate, "counter01", $newCounter01);
}
if ($counter01 < 10) {
$sino = date("Ymd") . "000" . $counter01;
} else {
if ($counter01 > 9 && $counter01 < 100) {
$sino = date("Ymd") . "00" . $counter01;
} else {
if ($counter01 > 99 && $counter01 < 1000) {
$sino = date("Ymd") . "0" . $counter01;
} else {
$sino = date("Ymd") . $counter01;
示例12: database2
$opd_medicine = $_POST['opd_medicine'];
$opd_supplies = $_POST['opd_supplies'];
$opd_spyrometry = $_POST['opd_spyrometry'];
$opd_derma = $_POST['opd_derma'];
$opd_others = $_POST['opd_others'];
$opd_OR = $_POST['opd_OR'];
$opd_PT = $_POST['opd_PT'];
$opd_OT = $_POST['opd_OT'];
$opd_ST = $_POST['opd_ST'];
$opd_cardiacMonitor = $_POST['opd_cardiacMonitor'];
$opd_PF_payable = $_POST['opd_PF_payable'];
$opd_misc = $_POST['opd_misc'];
$opd_OT_payables = $_POST['opd_OT_payables'];
$opd_ST_payables = $_POST['opd_ST_payables'];
$ro2 = new database2();
$ro4 = new database4();
$lab;
$labTotal = 0;
$xray;
$xrayTotal = 0;
$utz;
$utzTotal = 0;
$ctscan;
$ctscanTotal = 0;
$ecg;
$ecgTotal = 0;
$erfee;
$erfeeTotal = 0;
$or;
$orTotal = 0;
$misc;
示例13: database
<?php
include "../../myDatabase.php";
include "../../myDatabase4.php";
$ro = new database();
$ro4 = new database4();
$ro4->inventory_list("supplies");
?>
<!doctype html>
<html>
<head>
<title>Movement</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="../../jquery-2.1.4.min.js"></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<script src="../../bootstrap-3.3.6/js/bootstrap.js"></script>
<script>
$(document).ready(function() {
$("#medicineBtn").click(function(){
window.location = "movement-medicine.php";
//console.log("123");
});
});
</script>
</head>
<body>
<div class="container">
<div class="row">
示例14: database4
<?php
include "../../myDatabase4.php";
include "../../myDatabase.php";
$ro = new database4();
$ro1 = new database();
$reportDate;
if (isset($_POST["date"])) {
$reportDate = $_POST["date"];
} else {
$reportDate = date("Y-m-d");
}
?>
<!doctype html>
<html>
<head>
<title>HMO SHIFTING</title>
<script language="javascript" src="../js/jquery-2.1.4.min.js"></script>
<script langugae="javascript" src="../js/jquery-ui.min.js"></script>
<script language="javascript" src="../../bootstrap-3.3.6/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<link rel="stylesheet" href="../js/jquery-ui.css"></link>
<link rel="stylesheet" href="../js/jquery-ui.theme.min.css"></link>
<style>
#patientName {
text-decoration: none;
color:black;
}
</style>
<script>
$(document).ready(function() {
示例15: database
<?php
include "../../myDatabase.php";
include "../../myDatabase4.php";
$inventoryType = $_GET['inventoryType'];
$year = "2016";
$totalItems = 0;
$firstQuarterTotal = 0;
$secondQuarterTotal = 0;
$thirdQuarterTotal = 0;
$fourthQuarterTotal = 0;
//$inventoryType = "medicine"
$ro = new database();
$ro4 = new database4();
$ro4->stock_card_list($inventoryType);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="../../jquery-2.1.4.min.js"></script>
<script src="../js/jquery.tooltipster.min.js"></script>
<link rel="stylesheet" href="../../bootstrap-3.3.6/css/bootstrap.css"></link>
<script src="../../bootstrap-3.3.6/js/bootstrap.js"></script>
<link rel="stylesheet" href="../myCSS/tooltipster.css"></link>
<link rel="stylesheet" href="../myCSS/tooltipster-noir.css"></link>
<script>