本文整理匯總了PHP中database4::patient_with_transaction_balance方法的典型用法代碼示例。如果您正苦於以下問題:PHP database4::patient_with_transaction_balance方法的具體用法?PHP database4::patient_with_transaction_balance怎麽用?PHP database4::patient_with_transaction_balance使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類database4
的用法示例。
在下文中一共展示了database4::patient_with_transaction_balance方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<tr>
<th>Reg#</th>
<th>In</th>
<th>Out</th>
<th>Balance</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
foreach ($ro4->registration_details_registrationNo() as $registrationNo) {
?>
<tr>
<?php
if ($ro4->patient_with_transaction_balance($registrationNo) > 0) {
?>
<td><?php
echo $registrationNo;
?>
</td>
<td><?php
echo $ro4->formatDate($ro->selectNow("registrationDetails", "dateRegistered", "registrationNo", $registrationNo));
?>
</td>
<td><?php
echo $ro4->formatDate($ro->selectNow("registrationDetails", "dateUnregistered", "registrationNo", $registrationNo));
?>
</td>
<td><?php
echo $ro4->patient_with_transaction_balance($registrationNo);
示例2:
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<!--morning-->
<?php
for ($a = 0, $b = 0, $c = 0, $d = 0, $e = 0; $a < $countFN_moring, $b < $countLN_morning, $c < $countReg_morning, $d < $countPXComp_morning, $e < $countPX_morning; $a++, $b++, $c++, $d++, $e++) {
?>
<tr>
<?php
$total_morning += $ro->patient_with_transaction_total($registrationNo_morning[$c]);
?>
<?php
$balance_morning += $ro->patient_with_transaction_balance($registrationNo_morning[$c]);
?>
<?php
$discount_morning += $ro->patient_with_transaction_discount($registrationNo_morning[$c]);
?>
<?php
$card_morning += $ro->patient_with_transaction_company($registrationNo_morning[$c]);
?>
<?php
$cash_morning += $ro->patient_with_transaction_cash($registrationNo_morning[$c]);
?>
<?php
$creditCard_morning += $ro->patient_with_transaction_creditCard($registrationNo_morning[$c]);
?>
<td><?php