Bug #69600 [NEW]: Problem print out table view
| From: | erik at bbk dot go dot id | Date: | Fri, 08 May 2015 05:44:01 +0000 |
| Subject: | Bug #69600 [NEW]: Problem print out table view | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-192568@lists.php.net to get a copy of this message | ||
From: erik at bbk dot go dot id
Operating system: ubuntu
PHP version: 5.5.24
Package: Output Control
Bug Type: Bug
Bug description:Problem print out table view
Description:
------------
html>
<head>
<base href="<?=base_url();?>" />
<!--<link rel="stylesheet" type="text/css"
href="css/print3.css"
media="screen, projection" />-->
</head>
<body onLoad="window.print()" style="background-color:#FFF"
style="font-family:Verdana, Geneva, sans-serif">
<div>
<table border="0" cellpadding="0" cellspacing="0"
width="100%">
<tr>
<td width="125"><font size="2"></td>
<td width="5"><font size="1"></td>
<td colspan="2" align=right><font size="2">
Bandung, <?=tgl_indo(date($tgl_invoice));?></td>
</tr>
<tr>
<td width="125" align=left colspan="4">Kepada
Yth.</td>
</tr>
<tr>
<td width="125" align=left
colspan="4"><?=$nama_customer?></b></td>
</tr>
<tr>
<td width="125" align=left colspan="4">di</td>
</tr>
<tr>
<td width="125" align=left
colspan="4"> <?=$kota?></b></td>
</tr>
<tr>
<td colspan="4"
height="80"><?=$this->judul;?></td>
</tr>
<tr>
<td colspan="4" height="80">Invoice ke :
<?=$invoice_ke?></br>No. Order : <?=$no_order?></td>
</tr>
</table>
</div>
<div>
<? $buffer='';
if($result){
$buffer=$this->load->view('cetak/print_view_detail_invoice.php','',true);
$buffer = str_replace('border="0"','border="1"',$buffer);
$buffer =
str_replace('class="c-table-xa"','style="font-weight:bold;
background-color:#aaa;"',$buffer);
$buffer =
strip_tags($buffer,"<table><tr><td><p><h1><h2><h3><b><div><li>");
echo $buffer;
}
?>
</div>
<div>
<table width="100%" border="0" >
<tr>
<td align="center" style="padding-top:15px">
<div>
<? $buffer='';
if($resultbiaya_lain){
$buffer = $this->load->view('cetak/print_view_biaya_lain.php');
$buffer = str_replace('border="0"','border="1"',$buffer);
$buffer =
str_replace('class="c-table-xa"','style="font-weight:bold;
background-color:#aaa;"',$buffer);
$buffer =
strip_tags($buffer,"<table><tr><td><p><h1><h2><h3><b><div><li>");
echo $buffer;
}
?>
</div>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td width="100" valign="top" class="input-text-1"
style="padding-left:10px; text-align:right;
vertical-align:text-top">
<div>Discount : <b><?=formatRupiah($discount);?></b></div>
<div>Ppn 10% : <b><?=formatRupiah($ppn);?></b></div>
<div style="text-align:right">Jumlah Total :
<b><?=formatRupiah($harga_total);?></b> </div><br>
</td>
</tr>
<tr>
<td width="100" valign="top" class="input-text-1"
style="padding-left:10px; text-align:right;
vertical-align:text-top">
<div>Jumlah Bayar :
<b><?=formatRupiah($jumlah_bayar);?></b></div>
<div>Sisa Bayar :
<b><?=formatRupiah($sisa_bayar);?></b></div><br>
</td>
</tr>
<tr>
<td>
<div><font>Keterangan :<br><br>
1. Pembayaran dapat ditransfer ke Bank BNI 46 Cabang A. Yani
Bandung dengan No. Rek. 0021753620 a.n BPn 022 Balai Besar Keramik<br>
2. Pembayaran melalui transfer bank, agar mencantumkan Nama
Perusahaan dan No.Order, dengan jumlah bersih sesuai tagihan diluar
biaya administrasi bank.<br>
3. Bukti Setoran agar difax ke (022) 7205322 atau e-mail:
bendahara_pnbp@keramik.go.id / bbkpnbp@gmail.com<br>
</div>
</td>
</tr>
</div>
<div>
<table width="100%" border="0" style=" border:none;">
</br></br>
<tr>
</tr>
<tr>
<td align="center" width="33"></td>
<td width="33"></td>
<td align="center" width="33">Ka. Subag Keuangan</td>
<!--<td align="center" width="33">Bendahara Penerimaan
PNBP</td>-->
</tr>
<tr>
<td align="center" width="33"></td>
<td width="33"></td>
<td align="center" width="33"><?=$nama_satker;?></td>
</tr>
<tr height="45">
<td width="33"></td>
<td width="33"></td>
<td width="33"></td>
</tr>
<tr>
<td align="center" width="33"></td>
<td width="33"></td>
<td align="center" width="33">Dwi
Ariyani<br>(198308132008032001)</td>
<!--<td align="center"
width="33">(<?=$nama_pembuat_invoice;?>)</br><?=$nip_pembuat_invoice;?></td>-->
</tr>
</table>
</div>
</body>
</html>
Test script:
---------------
View bug in attachment
Expected result:
----------------
position table is strange in php 5.5
--
Edit bug report at https://bugs.php.net/bug.php?id=69600&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69600&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69600&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69600&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69600&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69600&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69600&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69600&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69600&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69600&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69600&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69600&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69600&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69600&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69600&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69600&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69600&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69600&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69600&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69600&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69600&r=mysqlcfg