Ejemplo n.º 1
0
<?php

$data = new dbClass();
$fdate = new dateClass();
/*$firstName = $_POST[firstName];
  $lastName = $_POST[lastName];
   */
if (@isset($_REQUEST[member_status])) {
    @($status = $_REQUEST[member_status]);
    $memberstatus = $data->GetArrData($status);
} else {
    $memberstatus = "'3'";
}
if (@isset($_REQUEST[discharge])) {
    @($discharge = $_REQUEST[discharge]);
} else {
    $discharge = "N";
}
$countmember = $data->GetStringData("select count(distinct p.person_id) as cc\r\n                    from person p\r\n                    join clinicmember c on c.hn=p.patient_hn\r\n                    join clinic_member_status cs on cs.clinic_member_status_id=c.clinic_member_status_id\r\n                    where c.clinic='" . $_REQUEST['clinic'] . "' and c.clinic_member_status_id in ({$memberstatus}) and c.discharge='" . $discharge . "' ");
?>








<form id='fdmlist' name='fdmlist' method="POST" action="#"> 
    <input name="clinic" type="hidden" value="<?php 
echo $_REQUEST['clinic'];