if(@$_REQUEST['action']=="getpdf") { mysql_connect("localhost","root",""); mysql_select_db("cdcol"); include ('class.ezpdf.php'); $pdf = new Cezpdf(); $pdf->selectFont('/opt/lampp/lib/fonts/Helvetica.afm'); $pdf->ezText('CD Collection',14); $pdf->ezText('© 2002-2009 Kai Seidler, oswald@apachefriends.org, GPL',10); $pdf->ezText('',12); $result=mysql_query("SELECT id,titel,interpret,jahr FROM cds ORDER BY interpret;"); $i=0; while( $row=mysql_fetch_array($result) ) { $data[$i]=array('interpret'=>$row['interpret'],'titel'=>$row['titel'],'jahr'=>$row['jahr']); $i++; } $pdf->ezTable($data,"","",array('width'=>500)); $pdf->ezStream(); 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 " | ".htmlspecialchars($row['interpret'])." | "; echo "".htmlspecialchars($row['titel'])." | "; echo "".htmlspecialchars($row['jahr'])." | "; echo "[".$TEXT['cds-button1']."] | "; echo ""; echo " |
"; echo " |