本文整理汇总了PHP中database4::count_charges方法的典型用法代码示例。如果您正苦于以下问题:PHP database4::count_charges方法的具体用法?PHP database4::count_charges怎么用?PHP database4::count_charges使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database4
的用法示例。
在下文中一共展示了database4::count_charges方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: 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", "specialRates", "chargesCode", $chargesCode);
$census = $ro4->count_charges($chargesCode, $date1, $date2, "specialRates_ipd");
//if( $census > 0 ) {
echo $census . "-" . number_format($price * $census, 2);
//}else {
//echo " - ";
//}
示例2: database
<?php
include "../../../myDatabase.php";
include "../../../myDatabase4.php";
$chargesCode = $_POST['chargesCode'];
$date1 = $_POST['date1'];
$date2 = $_POST['date2'];
$ro = new database();
$ro4 = new database4();
$opdPrice = $ro->selectNow("availableCharges", "OPD", "chargesCode", $chargesCode);
$censusOPD = $ro4->count_charges($chargesCode, $date1, $date2, "OPD");
$opdTotal = $opdPrice * $censusOPD;
$hmoPrice = $ro->selectNow("availableCharges", "HMO", "chargesCode", $chargesCode);
$censusHMO = $ro4->count_charges($chargesCode, $date1, $date2, "HMO");
$hmoTotal = $hmoPrice * $censusHMO;
$specialRates_opdPrice = $ro->selectNow("availableCharges", "specialRates", "chargesCode", $chargesCode);
$censusSpecialRates_opd = $ro4->count_charges($chargesCode, $date1, $date2, "specialRates_opd");
$specialRatesTotal_opd = $specialRates_opdPrice * $censusSpecialRates_opd;
$ipdPrice = $ro->selectNow("availableCharges", "WARD", "chargesCode", $chargesCode);
$censusIPD = $ro4->count_charges($chargesCode, $date1, $date2, "IPD");
$ipdTotal = $ipdPrice * $censusIPD;
$specialRates_ipdPrice = $ro->selectNow("availableCharges", "specialRates", "chargesCode", $chargesCode);
$censusSpecialRates_ipd = $ro4->count_charges($chargesCode, $date1, $date2, "specialRates_ipd");
$specialRatesTotal_ipd = $specialRates_ipdPrice * $censusSpecialRates_ipd;
$totalCensus = $censusOPD + $censusHMO + $censusIPD + $censusSpecialRates_opd + $censusSpecialRates_ipd;
$totalAmount = $opdTotal + $hmoTotal + $ipdTotal + $specialRatesTotal_opd + $specialRatesTotal_ipd;
//if( $totalCensus > 0 ) {
echo $totalCensus . "-" . number_format($totalAmount, 2);
//}else {
//echo " - ";
//}