Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- 1 lembar A4 total 30 voucher scale 85
- 1 lembar A4 total 52 voucher scale 65
- */
- if($validity == "4h"){ $aktif = "4 JAM";}
- elseif($validity == "12h"){ $aktif = "12 JAM";}
- elseif($validity == "21h"){ $aktif = "21 JAM";}
- elseif($validity == "1d9h"){ $aktif = "1 HARI 9 JAM";}
- elseif($validity == "2d"){ $aktif = "2 HARI";}
- elseif($validity == "2d18h"){ $aktif = "2 HARI 18 JAM";}
- elseif($validity == "3d15h"){ $aktif = "3 HARI 15 JAM";}
- elseif($validity == "4d15h"){ $aktif = "4 HARI 15 JAM";}
- elseif($validity == "5d18h"){ $aktif = "5 HARI 18 JAM";}
- elseif($validity == "7d"){ $aktif = "1 MINGGU";}
- elseif($validity == "1w"){ $aktif = "1 MINGGU";}
- elseif($validity == "14d12h"){ $aktif = "14 Hari 12 Jam";}
- elseif($validity == "2w12h"){ $aktif = "14 Hari 12 Jam";}
- elseif($validity == "30d"){ $aktif = "1 BULAN";}
- elseif($validity == "4w2d"){ $aktif = "1 BULAN";}
- else{ $aktif = "UNLIMITED";}
- if($getprice == "500"){ $color = "#000000";}
- elseif($getprice == "1000"){ $color = "#01579B";}
- elseif($getprice == "1500"){ $color = "#8B008B";}
- elseif($getprice == "2000"){ $color = "#783417";}
- elseif($getprice == "3000"){ $color = "#E65100";}
- elseif($getprice == "3500"){ $color = "#228B22";}
- elseif($getprice == "4000"){ $color = "#008000";}
- elseif($getprice == "4500"){ $color = "#FF00FF";}
- elseif($getprice == "5000"){ $color = "#E60C00";}
- elseif($getprice == "10000"){ $color = "#4C9900";}
- elseif($getprice == "20000"){ $color = "#CF0000";}
- else{ $color = "#BA68C8";}
- ?>
- <table class="voucher" style="background-color: white; border: 2px solid <?php echo $color;?>; width:277px;">
- <tbody>
- <tr>
- <td style="background-color:<?php echo $color;?>;" class="aktif" rowspan="5"><span><?php echo $aktif;?></span></td>
- <td class="gambar1"><a href="https://imgur.com/a/Es0wsKk"><img src="https://i.imgur.com/oRQ05VC.png" alt="hotspot" class="full"></a></td>
- <td rowspan="2" class="gambar2"><img src="https://i.imgur.com/hxokiJ1.png" alt="wifi" class="full"></td>
- <td style="background-color:<?php echo $color;?>;" class="harga" rowspan="5"><span><?php echo $price;?></span></td>
- </tr>
- <tr>
- <td class="slogan">Solusi akses internet murah,<br>unlimited, dan sepuasnya</td>
- </tr>
- <tr>
- <td colspan="2" style="font-weight: bold; font-size: 10px; color:#000000;">Kode voucher:<span id="num"><?php echo "$timelimit/$num";?></span></td>
- </tr>
- <tr>
- <?php if($usermode == "vc"){?>
- <td style=" border: 2px solid <?php echo $color;?>;" colspan="2" class="pengguna1"><?php echo $username;?></td>
- <?php }elseif($usermode == "up"){?>
- <td style=" border: 2px solid <?php echo $color;?>;" colspan="2" class="pengguna2"><?php echo "User: ".$username."<br>Pass: ".$password;?></td>
- <?php }?>
- </tr>
- <tr>
- <td colspan="2" style="font-size: 10px;">*) Semua huruf kecil <span id="num">WA: 082233859508</span></td>
- </tr>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement