																								<?php
if(substr($validity,-1) == "d"){
  $validity = "Masa aktif : ".substr($validity,0,-1)." hari";
}else if(substr($validity,-1) == "h"){
  $validity = "Masa 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 == "2000"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/3rb.png') no-repeat; background-size:contain;";}
if($getprice == "2009"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/9rb.png') no-repeat; background-size:contain;";}
if($getprice == "2006"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/6rb.png') no-repeat; background-size:contain;";}
if($getprice == "4000"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/5rb.png') no-repeat; background-size:contain;";}
if($getprice == "2004"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/4rb.png') no-repeat; background-size:contain;";}
if($getprice == "8000"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/10rb.png') no-repeat; background-size:contain;";}
if($getprice == "2001"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/1rb.png') no-repeat; background-size:contain;";}
if($getprice == "2002"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/2rb.png') no-repeat; background-size:contain;";}
if($getprice == "2007"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/7rb.png') no-repeat; background-size:contain;";}
if($getprice == "2008"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/8rb.png') no-repeat; background-size:contain;";}
if($getprice == "2011"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/11rb.png') no-repeat; background-size:contain;";}
if($getprice == "2015"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/13rb.png') no-repeat; background-size:contain;";}
if($getprice == "2003"){ $widi = "border:none; width: 350px; height:200px; background: url('../img/16rb.png') no-repeat; background-size:contain;";}



?>   
<style>
.qrcode{
height:85px;
width:85px;}
<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 $widi ?> no-repeat; background-size:contain;">
<tbody>
<tr>
<td style="width:118px"valign="top" >
<div style="clear:both;color:black;margin-top:76px;margin-bottom:10px;">
<?php if($v_opsi=='up'){ ?>
<?php }else{ ?>
<div style=" margin-left:28px; ;font-weight:bold;font-size:20px;"><?php echo $username;?></div>
<?php } ?>
</div>
<div style=" margin-left:35px; ;font-weight:bold;font-size:7px;color:#C71585;"><?php echo $validity;?></div>
</td>
<td style="width:100px;text-align:left;">
<td>
</div>
<div style=" margin-top:78px; margin-left:3px;"><?= $qrcode ?></div>
<!-- NUM -->
</td>
</tr>
</tbody>
</table>
</td>
</tr>       	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        	        