當前位置: 首頁>>代碼示例>>PHP>>正文


PHP database1::coconutTableData方法代碼示例

本文整理匯總了PHP中database1::coconutTableData方法的典型用法代碼示例。如果您正苦於以下問題:PHP database1::coconutTableData方法的具體用法?PHP database1::coconutTableData怎麽用?PHP database1::coconutTableData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在database1的用法示例。


在下文中一共展示了database1::coconutTableData方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

<?php

include "../../../myDatabase1.php";
$registrationNo = $_GET['registrationNo'];
$ro = new database1();
//echo $registrationNo;
$ro->getPatientProfile($registrationNo);
$totalPHIC = $ro->getTotal("phic", "MEDICINE", $registrationNo) + $ro->getTotal("phic", "SUPPLIES", $registrationNo) + $ro->getTotal("phic", "LABORATORY", $registrationNo) + $ro->getTotal("phic", "RADIOLOGY", $registrationNo) + $ro->getTotal("phic", "ECG", $registrationNo) + $ro->getTotal("phic", "NURSING-CHARGES", $registrationNo) + $ro->getTotal("phic", "MISCELLANEOUS", $registrationNo) + $ro->getTotal("phic", "OTHERS", $registrationNo) + $ro->getTotal("phic", "OR/DR/ER FEE", $registrationNo) + $ro->getTotal("phic", "Room And Board", $registrationNo) + $ro->getTotal("phic", "PROFESSIONAL FEE", $registrationNo);
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("Category");
$ro->coconutTableHeader("PhilHealth");
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$ro->coconutTableData("MEDICINE");
$ro->coconutTableData(number_format($ro->getTotal("phic", "MEDICINE", $registrationNo), 2));
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$ro->coconutTableData("SUPPLIES");
$ro->coconutTableData(number_format($ro->getTotal("phic", "SUPPLIES", $registrationNo), 2));
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$ro->coconutTableData("LABORATORY");
$ro->coconutTableData(number_format($ro->getTotal("phic", "LABORATORY", $registrationNo), 2));
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$ro->coconutTableData("RADIOLOGY");
$ro->coconutTableData(number_format($ro->getTotal("phic", "RADIOLOGY", $registrationNo), 2));
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$ro->coconutTableData("ECG");
開發者ID:rickyx12,項目名稱:protacio,代碼行數:31,代碼來源:magicPackage_feb3.php

示例2:

<?php

include "../../myDatabase1.php";
$username = $_GET['username'];
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$dept = $_GET['dept'];
$ro = new database1();
echo "<br>";
echo "<Center>";
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("Patient");
$ro->coconutTableHeader("Description");
$ro->coconutTableHeader("Balance");
$ro->coconutTableHeader("PhilHealth");
$ro->coconutTableHeader("Company");
$ro->coconutTableRowStop();
$ro->getCollectionPerDept($username, $month, $day, $year, $dept);
$ro->getCollectionPerDept1($username, $month, $day, $year, $dept);
$ro->coconutTableRowStart();
$ro->coconutTableData("<b>Total</b>");
$ro->coconutTableData("");
$ro->coconutTableData(number_format($ro->getCollectionPerDept_total, 2));
$ro->coconutTableData(number_format($ro->getCollectionPerDept_phic, 2));
$ro->coconutTableData(number_format($ro->getCollectionPerDept_company, 2));
$ro->coconutTableRowStop();
$ro->coconutTableStop();
開發者ID:rickyx12,項目名稱:protacio,代碼行數:29,代碼來源:cashCollection.php

示例3:

echo "<center><font size=3>( {$month} {$year} )</font></center>";
echo "<center><br>";
echo "\n<style type='text/css'>\ntr:hover { background-color:yellow;color:black;}\n\na { text-decoration:none; color:black; }\n</style>";
$totalIncome = 0;
$totalExpenses = 0;
$ro->coconutTableStart();
$ro->coconutTableRowStart();
$ro->coconutTableHeader("Date");
$ro->coconutTableHeader("IPD");
$ro->coconutTableHeader("OPD");
$ro->coconutTableHeader("Income");
$ro->coconutTableHeader("Expenses");
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$firstDay = $ro->getPxRevenueDaily_ipd($month, "01", $year) + $ro->getPxRevenueDaily_opd($month, "01", $year);
$ro->coconutTableData("&nbsp;{$month} 1, {$year}&nbsp;");
$ro->coconutTableData(number_format($ro->getPxRevenueDaily_ipd($month, "01", $year), 2));
$ro->coconutTableData(number_format($ro->getPxRevenueDaily_opd($month, "01", $year), 2));
$ro->coconutTableData(number_format($firstDay, 2));
$ro->coconutTableData(number_format($ro->getMonthlyExpenses($month, "01", $year) * 1000, 2));
$totalIncome += $firstDay;
$totalExpenses += $ro->getMonthlyExpenses($month, "01", $year);
$ro->coconutTableRowStop();
$ro->coconutTableRowStart();
$secondDay = $ro->getPxRevenueDaily_ipd($month, "02", $year) + $ro->getPxRevenueDaily_opd($month, "02", $year);
$ro->coconutTableData("&nbsp;{$month} 2, {$year}&nbsp;");
$ro->coconutTableData(number_format($ro->getPxRevenueDaily_ipd($month, "02", $year), 2));
$ro->coconutTableData(number_format($ro->getPxRevenueDaily_opd($month, "02", $year), 2));
$ro->coconutTableData(number_format($secondDay, 2));
$ro->coconutTableData(number_format($ro->getMonthlyExpenses($month, "02", $year) * 1000, 2));
$totalIncome += $secondDay;
開發者ID:rickyx12,項目名稱:protacio,代碼行數:31,代碼來源:profitANDloss.php


注:本文中的database1::coconutTableData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。