<?php session_start(); ob_start(); require './fpdf/fpdf.php'; require '../layout/class.html_builder.php'; $db_conn = mysql_connect("localhost", "{$_SESSION['dbuser']}", "{$_SESSION['dbpass']}"); mysql_select_db($_SESSION[dbname]); $html_tab = new html_builder(); 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; for ($i = 0; $i < count($data); $i++) { $nb = max($nb, $this->NbLines($this->widths[$i], $data[$i])); }
<?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;
<?php session_start(); ob_start(); require './fpdf/fpdf.php'; require '../layout/class.html_builder.php'; $db_conn = mysql_connect("localhost", "{$_SESSION['dbuser']}", "{$_SESSION['dbpass']}"); mysql_select_db($_SESSION[dbname]); $html_tab = new html_builder(); class PDF extends FPDF { 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; for ($i = 0; $i < count($data); $i++) { $nb = max($nb, $this->NbLines($this->widths[$i], $data[$i])); } $h = 5 * $nb; //Issue a page break first if needed $this->CheckPageBreak($h);
<?php //Alison Perez <*****@*****.**>, natality (livebirth) report , January - Feb 1 2012 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;