| Server IP : 103.48.194.25 / Your IP : 216.73.216.74 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hocthongminh.net-bk/public_html/site/components/sanpham/views/ |
Upload File : |
<table width="100%" border="0" cellspacing="0" cellpadding="5" style="width:750px; margin:15px auto; border:1px solid #CCC; padding:0">
<tr>
<th scope="col" colspan="3" style="background:#4360C2; color:#FFF; padding:15px"><h1>Đơn đặt hàng mới</h1></th>
</tr>
<tr>
<td style="width:20px"> </td>
<td scope="col">Bạn vừa nhận được đơn hàng từ <?=$cusname?>. Đơn hàng như sau:</td>
<td style="width:20px"> </td>
</tr>
<tr>
<td> </td>
<td><h2><a href="#" target="_blank">Đơn hàng #<?=$cart_id?></a> (<?=date("d/m/Y H:i:s")?>)</h2></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="5" style="border:1px solid #CCC; padding:8px">
<tr>
<th width="47%" scope="col" style="text-align:left;border-bottom:1px solid #CCC;">Sản phẩm</th>
<th width="20%" scope="col" style="text-align:center; width:20%;border-bottom:1px solid #CCC;">Giá</th>
<th width="15%" scope="col" style="text-align:center; width:20%;border-bottom:1px solid #CCC;">Số lượng</th>
<th width="18%" scope="col" style="text-align:center; width:20%;border-bottom:1px solid #CCC;">Thành tiền</th>
</tr>
<?php
$total = 0;
$subtotal = 0;
if($ses_product){
foreach ($ses_product as $item) :
$subtotal = (int) $item->quantity * $item->price ;
$total = (int) $total + $subtotal ;
?>
<tr>
<td style="text-align:left;border-bottom:1px solid #CCC;"><?=$item->name?></td>
<td style="text-align:right;border-bottom:1px solid #CCC;"><?=pricevn($item->price)?></td>
<td style="text-align:center;border-bottom:1px solid #CCC;"><?=$item->quantity?></td>
<td style="text-align:right;border-bottom:1px solid #CCC;"><?=pricevn($subtotal)?></td>
</tr>
<?php
endforeach;
}
?>
<!--<tr>
<td> </td>
<td> </td>
<th style="text-align:right">Thành tiền</th>
<td style="text-align:right; font-size:16px; font-weight:bold; color:#F00"><?//=pricevn($totalprice)?></td>
</tr>-->
<tr>
<td> </td>
<td> </td>
<th style="text-align:right">Tổng cộng</th>
<td style="text-align:right; font-size:16px; font-weight:bold; color:#F00"><?=pricevn($total)?></td>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td style="padding:8px"><h2>Thông tin người mua hàng:</h2></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td style="padding:8px">
<b><?=$cusname?></b><br>
<?=$address?><br>
<?=$phone?><br>
<?=$email?><br>
</td>
<td> </td>
</tr>
</table>