Ben aşağıdaki fatura gibi bir form var
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
dir="<?php echo $direction; ?>"
lang="<?php echo $lang; ?>"
xml:lang="<?php echo $lang; ?>">
<head> <title><?php echo $title;
?></title> <link rel="stylesheet"
type="text/css" href="theme/<?php echo
$template;
?>/stylesheet/stylesheet.css" />
<style type="text/css"> body {
background: #FFFFFF; } </style>
</head> <body>
<div style="page-break-after: always;
"> <table width="100%"> <tr>
<td width="auto" align="left"><a href="<?php echo $url_logo; ?>"
title="<?php echo $_name; ?>"><?php
echo "<img src=".$logo." alt=\"Logo
Store\" style=\"border: none;\" />";
?></a></td>
<td width="*" valign="middle"><h1><?php echo
$heading_title; ?></h1></td> </tr>
</table><div class="line"></div>
<div class="div_">
<table width="100%">
<tr>
<td>
<?php echo $_address; ?><br />
<?php if ($telephone) { ?>
<?php echo $store_telephone; ?><br />
<?php } ?>
<?php echo $_email; ?><br /> </td>
<td align="right" valign="top"> <table>
<?php if ($invoice_id) { ?>
<tr>
<td><b><?php echo $txt_invoice_id; ?></b></td>
<td>: <?php echo $invoice_id; ?></td>
</tr>
<?php } ?> <?php if ($historys) { ?> <?php foreach ($historys as $history) { ?
<tr>
<td><b><?php echo $column_date_added; ?></b></td>
<td>: <?php echo $history['date_added']; ?></td>
</tr>
<tr>
<td><b><?php echo $column_status; ?></b></td>
<td>: <?php echo $history['status']; ?></td>
</tr> <?php } ?> <?php } ?>
<tr>
<td><b><?php echo $txt_order_id; ?></b></td>
<td>: <?php echo $order_id; ?></td>
</tr> <?php if ($shipping_method) { ?>
<tr>
<td><b><?php echo $txt_shipping_method; ?></b></td>
<td>: <?php echo $shipping_method; ?></td>
</tr> <?php } ?>
<tr>
<td><b><?php echo $txt_payment_method; ?></b></td>
<td>: <?php echo $payment_method; ?></td>
</tr>
</table>
</td>
</tr>
</table> </div> </div> </body> </html>
invoice form in access through http://www.mysite.com/index.php?print=page/invoice&id=952 and invoice extension is .tpl
Ben FPDF (http://www.fpdf.org/) kullanarak çalıştı, ancak başarısız oldu, ve FPDF css eşleşmiyor görünüyor ettik, sonra ben (http://www.tcpdf.org) dan ilişkin TCPDF kullanmaya çalıştı http://www.tcpdf.org/examples/example_054.phps ama php kodu ile görebilir yalnızca hata vardır: örneğin, <?php echo $history['status']; ?>
Herkes zaten deneyime sahip ya da biraz problem var mı? Burada paylaşmak, ya da aynı örnek var lütfen? şimdiden teşekkürler