Advertisement
NaruKage

template.hotspot

Sep 19th, 2019
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.23 KB | None | 0 0
  1. <?php
  2. /*
  3. 1 lembar A4 total 30 voucher scale 85
  4. 1 lembar A4 total 52 voucher scale 65
  5. */
  6. if($validity == "4h"){ $aktif = "4 JAM";}
  7. elseif($validity == "12h"){ $aktif = "12 JAM";}
  8. elseif($validity == "21h"){ $aktif = "21 JAM";}
  9. elseif($validity == "1d9h"){ $aktif = "1 HARI 9 JAM";}
  10. elseif($validity == "2d"){ $aktif = "2 HARI";}
  11. elseif($validity == "2d18h"){ $aktif = "2 HARI 18 JAM";}
  12. elseif($validity == "3d15h"){ $aktif = "3 HARI 15 JAM";}
  13. elseif($validity == "4d15h"){ $aktif = "4 HARI 15 JAM";}
  14. elseif($validity == "5d18h"){ $aktif = "5 HARI 18 JAM";}
  15. elseif($validity == "7d"){ $aktif = "1 MINGGU";}
  16. elseif($validity == "1w"){ $aktif = "1 MINGGU";}
  17. elseif($validity == "14d12h"){ $aktif = "14 Hari 12 Jam";}
  18. elseif($validity == "2w12h"){ $aktif = "14 Hari 12 Jam";}
  19. elseif($validity == "30d"){ $aktif = "1 BULAN";}
  20. elseif($validity == "4w2d"){ $aktif = "1 BULAN";}
  21. else{ $aktif = "UNLIMITED";}
  22.  
  23. if($getprice == "500"){ $color = "#000000";}
  24. elseif($getprice == "1000"){ $color = "#01579B";}
  25. elseif($getprice == "1500"){ $color = "#8B008B";}
  26. elseif($getprice == "2000"){ $color = "#783417";}
  27. elseif($getprice == "3000"){ $color = "#E65100";}
  28. elseif($getprice == "3500"){ $color = "#228B22";}
  29. elseif($getprice == "4000"){ $color = "#008000";}
  30. elseif($getprice == "4500"){ $color = "#FF00FF";}
  31. elseif($getprice == "5000"){ $color = "#E60C00";}
  32. elseif($getprice == "10000"){ $color = "#4C9900";}
  33. elseif($getprice == "20000"){ $color = "#CF0000";}
  34. else{ $color = "#BA68C8";}
  35.  
  36. ?>
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. <table class="voucher" style="background-color: white; border: 2px solid <?php echo $color;?>; width:277px;">
  44. <tbody>
  45.  
  46. <tr>
  47. <td style="background-color:<?php echo $color;?>;" class="aktif" rowspan="5"><span><?php echo $aktif;?></span></td>
  48. <td class="gambar1"><a href="https://imgur.com/a/Es0wsKk"><img src="https://i.imgur.com/oRQ05VC.png" alt="hotspot" class="full"></a></td>
  49. <td rowspan="2" class="gambar2"><img src="https://i.imgur.com/hxokiJ1.png" alt="wifi" class="full"></td>
  50. <td style="background-color:<?php echo $color;?>;" class="harga" rowspan="5"><span><?php echo $price;?></span></td>
  51. </tr>
  52.  
  53. <tr>
  54. <td class="slogan">Solusi akses internet murah,<br>unlimited, dan sepuasnya</td>
  55. </tr>
  56.  
  57. <tr>
  58. <td colspan="2" style="font-weight: bold; font-size: 10px; color:#000000;">Kode voucher:<span id="num"><?php echo "$timelimit/$num";?></span></td>
  59. </tr>
  60.  
  61. <tr>
  62. <?php if($usermode == "vc"){?>
  63. <td style=" border: 2px solid <?php echo $color;?>;" colspan="2" class="pengguna1"><?php echo $username;?></td>
  64. <?php }elseif($usermode == "up"){?>
  65. <td style=" border: 2px solid <?php echo $color;?>;" colspan="2" class="pengguna2"><?php echo "User: ".$username."<br>Pass: ".$password;?></td>
  66. <?php }?>
  67. </tr>
  68.  
  69. <tr>
  70. <td colspan="2" style="font-size: 10px;">*) Semua huruf kecil <span id="num">WA: 082233859508</span></td>
  71. </tr>
  72.  
  73. </tbody>
  74. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement