
<?php
date_default_timezone_set('Asia/Ho_Chi_Minh');
function compact_string($string, $length=5, $replace) {
        $compact = substr($string,  0, $length );
        $compact = $compact.$replace;
        return $compact;
    }
?>
<center>
<table class="table table-bordered blueTable">
	<thead>
		<tr style="background: -webkit-gradient(linear, 0% 0%, 100% 0%, from(#ff8000), to(#ff8000));border:solid 1px #000000;color:#fff;">
		  <th scope="col">ID Game</th>
		  <th scope="col">Serial</th>
		  <th scope="col">Thẻ</th>
		  <th scope="col">Trạng Thái</th>
		  <th scope="col">Thời Gian</th>
		</tr>
	</thead> 

<tbody>
<td><?php echo compact_string(mt_rand(123456789, 999999999), 6, '******');?></td></td>
<td>1000<?php echo mt_rand(123456789, 999999999);?></td>
<td>Viettel</td>
<td><font color="green">Nạp thành công Mệnh giá 50.000Đ Nhận 1.190KC.</font></td>
<td><?php echo date('d/m/Y -  H:i:s', time() - 2);?></td>
</tbody>	

<tbody>
<td><?php echo compact_string(mt_rand(123456789, 999999999), 6, '******');?></td></td>
<td>1000<?php echo mt_rand(123456789, 999999999);?></td>
<td>Viettel</td>
<td><font color="green">Nạp thành công Mệnh giá 300.000Đ Nhận 9.500KC.</font></td>
<td><?php echo date('d/m/Y -  H:i:s', time() - 6);?></td>
</tbody>	

<tbody>
<td><?php echo compact_string(mt_rand(123456789, 999999999), 6, '******');?></td>
<td>1000<?php echo mt_rand(123456789, 999999999);?></td>
<td>Viettel</td>
<td><font color="green">Nạp thành công Mệnh giá 300.000Đ Nhận 9.500KC.</font></td>
<td><?php echo date('d/m/Y -  H:i:s', time() - 9);?></td>
</tbody>	

<tbody>
<td><?php echo compact_string(mt_rand(123456789, 999999999), 6, '******');?></td></td>
<td>1000<?php echo mt_rand(123456789, 999999999);?></td>
<td>Viettel</td>
<td><font color="green">Nạp thành công Mệnh giá 1.000.000Đ Nhận 50.000KC.</font></td>
<td><?php echo date('d/m/Y -  H:i:s', time() - 13);?></td>
</tbody>	

<tbody>
<td><?php echo compact_string(mt_rand(123456789, 999999999), 6, '******');?></td></td>
<td>1000<?php echo mt_rand(123456789, 999999999);?></td>
<td>Viettel</td>
<td><font color="green">Nạp thành công Mệnh giá 1.000.000Đ Nhận 50.000KC.</font></td>
<td><?php echo date('d/m/Y -  H:i:s', time() - 17);?></td>
</tbody>	

<tbody>
<td><?php echo compact_string(mt_rand(123456789, 999999999), 6, '******');?></td></td>
<td>1000<?php echo mt_rand(123456789, 999999999);?></td>
<td>Viettel</td>
<td><font color="green">Nạp thành công Mệnh giá 1.000.000Đ Nhận 50.000KC.</font></td>
<td><?php echo date('d/m/Y -  H:i:s', time() - 21);?></td>
</tbody>	

<tbody>
<td><?php echo compact_string(mt_rand(123456789, 999999999), 6, '******');?></td></td>
<td>1000<?php echo mt_rand(123456789, 999999999);?></td>
<td>Viettel</td>
<td><font color="green">Nạp thành công Mệnh giá 1.000.000Đ Nhận 50.000KC.</font></td>
<td><?php echo date('d/m/Y -  H:i:s', time() - 25);?></td>
</tbody>	

<tbody>
<td><?php echo compact_string(mt_rand(123456789, 999999999), 6, '******');?></td></td>
<td>1000<?php echo mt_rand(123456789, 999999999);?></td>
<td>Viettel</td>
<td><font color="green">Nạp thành công Mệnh giá 50.000Đ Nhận 1.190KC.</font></td>
<td><?php echo date('d/m/Y -  H:i:s', time() - 28);?></td>
</tbody>	

<tbody>
<td><?php echo compact_string(mt_rand(123456789, 999999999), 6, '******');?></td></td>
<td>1000<?php echo mt_rand(123456789, 999999999);?></td>
<td>Viettel</td>
<td><font color="green">Nạp thành công Mệnh giá 100.000Đ Nhận 3.020KC.</font></td>
<td><?php echo date('d/m/Y -  H:i:s', time() - 31);?></td>
</tbody>	

</table>
	</center>	
