UPDATED BY: Mark Santos UPDATE LOG: - ISSUES/BUGS : Adding Total Value at the bottom of the table - UPDATE LOCATION : show_morbidity - Added a for loop to get total for each item in array using array_sum and array_map to get total */ session_start(); ob_start(); require './fpdf/fpdf.php'; require '../layout/class.html_builder.php'; require '../scripts/class.csv_creator.php'; $db_conn = mysql_connect("localhost", "{$_SESSION['dbuser']}", "{$_SESSION['dbpass']}"); mysql_select_db($_SESSION[dbname]); $html_tab = new html_builder(); $csv_creator = new csv_creator(); class PDF extends FPDF { var $widths; var $aligns; var $page; function SetWidths($w) { //Set the array of column widths $this->widths = $w; } function SetAligns($a) { //Set the array of column alignments $this->aligns = $a; }
<?php //Alison O. Perez <*****@*****.**> session_start(); ob_start(); require './fpdf/fpdf.php'; require '../layout/class.html_builder.php'; require '../scripts/class.csv_creator.php'; $db_conn = mysql_connect("localhost", "{$_SESSION['dbuser']}", "{$_SESSION['dbpass']}"); mysql_select_db($_SESSION[dbname]); $html_tab = new html_builder(); $csv_creator = new csv_creator(); class PDF extends FPDF { var $widths; var $aligns; var $page; function SetWidths($w) { //Set the array of column widths $this->widths = $w; } function SetAligns($a) { //Set the array of column alignments $this->aligns = $a; } function Row($data) { //Calculate the height of the row $nb = 0;
DATE UPDATED : 3/6/2014 ---------------------------------------------------------- UPDATED BY : Mark Santos UPDATE LOG: - ISSUES/BUGS : Cannot Query per barangay - added m_patient_mc.patient_id=m_family_members.patient_id to establish connection between patient and address table */ session_start(); ob_start(); require './fpdf/fpdf.php'; require '../layout/class.html_builder.php'; require '../scripts/class.csv_creator.php'; $db_conn = mysql_connect("localhost", "{$_SESSION['dbuser']}", "{$_SESSION['dbpass']}"); mysql_select_db($_SESSION[dbname]); $html_tab = new html_builder(); $csv_creator = new csv_creator(); class PDF extends FPDF { var $widths; var $aligns; var $page; function SetWidths($w) { //Set the array of column widths $this->widths = $w; } function SetAligns($a) { //Set the array of column alignments $this->aligns = $a; }