if($_REQUEST['action']=="getpdf") { mysql_connect("localhost","root",""); mysql_select_db("cdcol"); include ('fpdf.php'); $pdf =& new FPDF(); $pdf->AddPage(); $pdf->SetFont('Helvetica','',14); $pdf->Write(5, 'CD Collection'); $pdf->Ln(); $pdf->SetFontSize(10); $pdf->Write(5, '© 2002/2003 Kai Seidler, oswald@apachefriends.org, GPL'); $pdf->Ln(); $pdf->Ln(5); $pdf->SetFont('Helvetica','B',10); $pdf->Cell(40,7,'interpret',1); $pdf->Cell(80,7,'titel',1); $pdf->Cell(40,7,'jahr',1); $pdf->Ln(); $pdf->SetFont('Helvetica','',10); $result=mysql_query("SELECT id,titel,interpret,jahr FROM cds ORDER BY interpret;"); while( $row=mysql_fetch_array($result) ) { $pdf->Cell(40,7,$row['interpret'],1); $pdf->Cell(80,7,$row['titel'],1); $pdf->Cell(40,7,$row['jahr'],1); $pdf->Ln(); } $pdf->Output(); exit; } ?> include("langsettings.php"); ?>
=$TEXT['cds-text2']?>
// Copyright (C) 2002/2003 Kai Seidler, oswald@apachefriends.org // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. if(!mysql_connect("localhost","root","")) { echo "
=$TEXT['cds-attrib1']?> |
=$TEXT['cds-attrib2']?> |
=$TEXT['cds-attrib3']?> |
=$TEXT['cds-attrib4']?> |
||
"; echo " | |||||
"; echo " | ".$row['interpret']." | "; echo "".$row['titel']." | "; echo "".$row['jahr']." | "; echo "[".$TEXT['cds-button1']."] | "; echo ""; echo " |
"; echo " |