Beispiel #1
0
        }
        return $arr_cu;
    }
    function get_max_month($date)
    {
        list($taon, $buwan, $araw) = explode('-', $date);
        $max_date = date("n", mktime(0, 0, 0, $buwan, $araw, $taon));
        //get the unix timestamp then return month without trailing 0
        return $max_date;
    }
    function Footer()
    {
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        //Page number
        $this->Cell(0, 10, $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->AliasNbPages();
$pdf->SetFont('Arial', '', 10);
$pdf->AddPage();
$fp_rec = $pdf->show_fp_summary();
//$pdf->AddPage();
if ($_GET["type"] == 'html') {
    $html_tab->create_table($_SESSION["w"], $_SESSION["header"], $fp_rec);
} else {
    //$pdf->show_fp_summary();
    $pdf->Output();
}
    function compute_ccdev_rate($target, $actual)
    {
        if ($target == 0) {
            return 0;
        } else {
            return round($actual / $target * 100, 0);
        }
    }
}
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->AliasNbPages();
$pdf->SetFont('Arial', '', 10);
$pdf->AddPage();
$_SESSION["arr_px_labels"] = array('epi' => array());
$ccdev_rec = $pdf->show_ccdev_summary();
$arr_csv = array();
foreach ($ccdev_rec as $key => $value) {
    //if(($key==7) || ($key>=13 && $key<=18)): //this will ignore the rows for hepa at birth, rota1, rota2, penta 1,penta 2 and penta 3
    //else:
    array_push($arr_csv, $value);
    //endif;
}
if ($_GET["type"] == 'html') {
    $html_tab->create_table($_SESSION["w"], $_SESSION["header"], $ccdev_rec, $_SESSION["w2"], $_SESSION["subheader"]);
} elseif ($_GET["type"] == 'csv') {
    $csv_creator->create_csv($_SESSION["ques"], $arr_csv, 'csv');
} elseif ($_GET["type"] == 'efhsis') {
    $csv_creator->create_csv($_SESSION["ques"], $arr_csv, 'efhsis');
} else {
    $pdf->Output();
}
Beispiel #3
0
		$email_list = fopen("../../site/email_list.txt","r");
		
		while(!feof($email_list)){
			$email_receiver = fgets($email_list,4096);
			$message = ob_get_clean();
			
			$sent_mail = mail($email_receiver,$subj,$message,$headers);
		}

		echo $sent_mail?"Mail sent!":"Mail failed"; */
/*	endif;
	
//	print_r($_SESSION);
	

else:
	$pdf->Output();
endif; */
$_SESSION["arr_px_labels"] = array('mc' => array());
$mc_content = $pdf->show_mc_summary();
if ($_GET["type"] == 'html') {
    $html_tab->create_table($_SESSION["w"], $_SESSION["header"], $mc_content);
} elseif ($_GET["type"] == 'csv') {
    $arr_csv = array();
    //
    $csv_creator->create_csv($_SESSION["ques"], $mc_content, 'csv');
} elseif ($_GET["type"] == 'efhsis') {
    $csv_creator->create_csv($_SESSION["ques"], $mc_content, 'efhsis');
} else {
    $pdf->Output();
}
Beispiel #4
0
                return '';
            }
        }
    }
    function Footer()
    {
        //Position at 1.5 cm from bottom
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        //Page number
        $this->Cell(0, 10, $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->AliasNbPages();
$pdf->SetFont('Arial', '', 10);
$pdf->AddPage();
if ($_GET["type"] == 'consult') {
    //$philhealth_records = $pdf->show_philhealth_list();
    $pdf->show_philhealth_consults();
} else {
    //$philhealth_records = $pdf->show_philhealth_list();
    $pdf->show_philhealth_list();
}
if ($_GET["type"] == 'html') {
    //echo "<font color='red'>alisonalisonalisonalisonalisonalisonalisonalisonalisonalisonalisonalisonalison";
    $html_tab->create_table($_SESSION["w"], $_SESSION["header"], $philhealth_records);
} else {
    $pdf->Output();
}
Beispiel #5
0
            //echo $brgy_id.'/'.$fecalysis.'/'.$urinalysis.'/'.$hematology.'/'.$sputum.'/'.$gt.'<br>';
            array_push($arr_lab_record, $arr_lab);
        }
        return $arr_lab_record;
    }
    function Footer()
    {
        //Position at 1.5 cm from bottom
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        //Page number
        $this->Cell(0, 10, $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->AliasNbPages();
$pdf->SetFont('Arial', '', 10);
$pdf->AddPage();
if ($_GET["type"] == 'masterlist') {
    $pdf->show_lab_masterlist();
} elseif ($_GET["type"] == 'service') {
    $pdf->show_lab_service();
} else {
    $pdf->show_lab_masterlist();
}
if ($_GET["type"] == 'html') {
    $html_tab->create_table($_SESSION["w"], $_SESSION["header"], $arr_lab_record);
} else {
    $pdf->Output();
}
            $q_brgy = mysql_query("SELECT barangay_id FROM m_lib_barangay ORDER by barangay_id ASC") or die("Cannot query 252" . mysql_error());
            while (list($brgy_id) = mysql_fetch_array($q_brgy)) {
                array_push($arr_brgy, $brgy_id);
            }
        } else {
            $arr_brgy = $_SESSION[brgy];
        }
        $str_brgy = implode(',', $arr_brgy);
        return $str_brgy;
    }
    function Footer()
    {
        $this->SetY(-15);
        //Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        //Page number
        $this->Cell(0, 10, $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->AliasNbPages();
$pdf->SetFont('Arial', '', 10);
$pdf->AddPage();
$demog_records = $pdf->show_demographic_profile();
//$pdf->AddPage();
//$pdf->show_fp_summary();
if ($_GET["type"] == 'html') {
    $html_tab->create_table($_SESSION["w"], $_SESSION["header"], $demog_records);
} else {
    $pdf->Output();
}
Beispiel #7
0
        //Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        //Page number
        $this->Cell(0, 10, $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
$pdf = new PDF('L', 'mm', 'Legal');
$pdf->AliasNbPages();
$pdf->SetFont('Arial', '', 13);
$pdf->AddPage();
//$_SESSION["arr_px_labels"] = array('natality'=>array());
$natality_content = $pdf->show_natality();
if ($_GET["type"] == 'html') {
    if ($_SESSION[ques] >= 120 && $_SESSION[ques] <= 123) {
        //natality livebirth questions
        $html_tab->create_table($_SESSION["w2"], $_SESSION["header2"], $natality_content);
        //livebirth
    } elseif ($_SESSION[ques] >= 124 && $_SESSION[ques] <= 127) {
        $html_tab->create_table($_SESSION["w"], $_SESSION["header"], $natality_content);
        //deliveries
    } else {
    }
} elseif ($_GET["type"] == 'csv') {
    print_r($natality_content);
    if ($_SESSION[ques] >= 120 && $_SESSION[ques] <= 123) {
        //natality livebirth questions
        //	$html_tab->create_table($_SESSION["w2"],$_SESSION["header2"],$natality_content); //livebirth
    } elseif ($_SESSION[ques] >= 124 && $_SESSION[ques] <= 127) {
        //	$html_tab->create_table($_SESSION["w"],$_SESSION["header"],$natality_content); //deliveries
    } else {
    }