本文整理汇总了PHP中Appointment::get_parient_id_for_bill方法的典型用法代码示例。如果您正苦于以下问题:PHP Appointment::get_parient_id_for_bill方法的具体用法?PHP Appointment::get_parient_id_for_bill怎么用?PHP Appointment::get_parient_id_for_bill使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Appointment
的用法示例。
在下文中一共展示了Appointment::get_parient_id_for_bill方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Appointment
<?php
//$value = array('RIPON','Amit','Touhid','Kafi');
//$s_value = array('RIPON','Touhid','Kafi');
//
//$t_value = in($value, $s_value);
////print_r($t_value);
//if($t_value == NULL){
// echo 'not found';
//}else{
// echo 'found';
//}
require_once './admin/classes/appointment.php';
$obj_appointment = new Appointment();
$doctor_id = 2;
//$patient_id_appointment = $obj_appointment->get_parient_id_for_appointment(2, '2015-09-07');
//$patient_id_bill = $obj_appointment->get_parient_id_for_bill($doctor_id, $get_date);
$patient_id_appointment = $obj_appointment->get_parient_id_for_appointment('R0179001');
$patient_id_bill = $obj_appointment->get_parient_id_for_bill($doctor_id, $patient_id_appointment, '2015-09-07');
//if ($target_array != NULL) {
示例2:
<td><?php
if ($row1['appointment_status'] == 0) {
echo '<b style="color: #ff0000">Pending</b> ' . '<a href="?option=change_appointment_status&id=' . $row1['appointment_id'] . '&rid=' . $row1['patient_reg_id'] . '" class="glyphicon glyphicon-link"></a>';
} else {
echo '<b style="color: #006600">Confirm</b>';
}
?>
</td>
<td>
<?php
if ($row1['appointment_status'] == 1) {
if ($row1['patient_reg_id'] == '0') {
echo '<b style="color: #ff0000">DUE</b>';
} else {
$patient_id_appointment = $obj_appointment->get_parient_id_for_appointment($row1['patient_reg_id']);
$patient_id_bill = $obj_appointment->get_parient_id_for_bill($doctor_id, $patient_id_appointment, $get_date);
if ($patient_id_bill != NULL) {
?>
<b style="color: #006600">PAID</b>
<?php
} else {
?>
<b style="color: #ff0000">DUE</b>
<a href="?page=appointment_payment&id=<?php
echo $row1['patient_reg_id'];
?>
&did=<?php
echo $doctor_id;
?>
" class="glyphicon glyphicon-link"></a>
<?php