Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

<?

php
if(substr($validity,-1) == "d"){
$validity = "AKTIF:".substr($validity,0,-1)."HARI";
}else if(substr($validity,-1) == "h"){
$validity = "AKTIF:".substr($validity,0,-1)."JAM";}
if(substr($timelimit,-1) == "d" & strlen($timelimit) >3){
$timelimit = "Durasi:".((substr($timelimit,0,-1)*7) + substr($timelimit,
2,1))."HARI";
}else if(substr($timelimit,-1) == "d"){
$timelimit = "Durasi:".substr($timelimit,0,-1)."HARI";
}else if(substr($timelimit,-1) == "h"){
$timelimit = "Durasi:".substr($timelimit,0,-1)."JAM";
}else if(substr($timelimit,-1) == "w"){
$timelimit = "Durasi:".(substr($timelimit,0,-1)*7)."HARI";}

if($getprice == "3000"){ $net = "border:none; width: 350px; height:200px;


background: url('../img/net3rb.png') no-repeat; background-size:contain;";}
elseif($getprice == "1000"){ $net = "border:none; width: 350px; height:200px;
background: url('../img/net1rb.png') no-repeat; background-size:contain;";}
elseif($getprice == "2000"){ $net = "border:none; width: 350px; height:200px;
background: url('../img/net2rb.png') no-repeat; background-size:contain;";}
elseif($getprice == "3000"){ $net = "border:none; width: 350px; height:200px;
background: url('../img/net3rb.png') no-repeat; background-size:contain;";}
elseif($getprice == "5000"){ $net = "border:none; width: 350px; height:200px;
background: url('../img/net5rb.png') no-repeat; background-size:contain;";}
elseif($getprice == "20000"){ $net = "border:none; width: 350px; height:200px;
background: url('../img/net20rb.png') no-repeat; background-size:contain;";}
elseif($getprice == "50000"){ $net = "border:none; width: 350px; height:200px;
background: url('../img/net30rb.png') no-repeat; background-size:contain;";}
else{ $net = "border:none; width: 350px; height:200px; background:
url('../img/net3rb.png') no-repeat; background-size:contain;";}
?>
<style>
.qrcode{
height:85px;
width:85px;}
</style>
<tr>
<td style="color:#666;border-collapse: collapse;" valign="top">
<table class="voucher" style="border:none; width: 350px; height:200px; background:
<?php echo $net ?> no-repeat; background-size:contain;">
<tbody>
<tr>
<td style="width:118px"valign="top" >
<div style="clear:both;color:red;margin-top:152px;margin-bottom:10px;">
<?php if($v_opsi=='up'){ ?>
<?php }else{ ?>
<div style=" margin-left:26px; ;font-weight:bold;font-size:15px;"><?php echo
$username;?></div>
<?php } ?>
</div>
<div style=" margin-left:27px; ;font-weight:bold;font-size:9px;color:#fff;"><?php
echo $validity;?></div>
</td>
<td style="width:100px;text-align:left;">
<td>
<div style="margin-bottom: 10px; margin-left:55px;margin-top:10px; ">
</div>
<div style=" margin-top:78px; margin-left:98px;"><?= $qrcode ?></div>
<!-- NUM -->
<div style="margin-bottom: 10px; margin-left:204px;margin-top:5px;color:#fff;font-
size:10px;padding:0px;"><?php echo " [$num]";?></div>
<!-- NUM -->
</td>
</tr>
</tbody>
</table>
</td>
</tr>

You might also like