示例#1
0
<?php

//Table Base Classs
require_once "class.fpdf_table.php";
//Class Extention for header and footer
require_once "header_footer.inc";
//Table Defintion File
require_once "table_def.inc";
$bg_color1 = array(234, 255, 218);
$bg_color2 = array(165, 250, 220);
$bg_color3 = array(255, 252, 249);
$pdf = new pdf_usage();
$pdf->Open();
$pdf->SetAutoPageBreak(true, 20);
$pdf->SetMargins(20, 20, 20);
$pdf->AddPage('L', 'a4');
$pdf->AliasNbPages();
$columns = 5;
//five columns
//$pdf->SetStyle("p","times","",10,"130,0,30");
//$pdf->SetStyle("t1","arial","",10,"0,151,200");
//$pdf->SetStyle("size","times","BI",13,"0,0,120");
$ttxt1 = "<size>Tag-Based MultiCell Table</size>\nCreated by <t1 href='mailto:andy@interpid.eu'>Bintintan Andrei, Interpid Team</t1>";
$ttxt2 = "<p>The cells in the table are fully functional <t1>Tag Based Multicells components</t1>. The description and usage of these components can be found <t1>here</t1>.</p>";
//Initialize the table class
$pdf->tbInitialize($columns, true, true);
//set the Table Type
$pdf->tbSetTableType($table_default_table_type);
//Table Header
for ($i = 0; $i < $columns; $i++) {
    $header_type[$i] = $table_default_header_type;