Price Adaptive Classic
Default 190pxWarna dasar otomatis berubah mengikuti nominal harga voucher (getsprice).
Lihat Kode Template
<?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 ($getsprice == "1000") { $color = "#FF1493"; }
elseif ($getsprice == "2000") { $color = "#8B008B"; }
elseif ($getsprice == "3000") { $color = "#666666"; }
elseif ($getsprice == "5000") { $color = "#FF4500"; }
elseif ($getsprice == "10000") { $color = "#E65100"; }
elseif ($getsprice == "15000") { $color = "#228B22"; }
elseif ($getsprice == "20000") { $color = "#008000"; }
elseif ($getsprice == "30000") { $color = "#FF00FF"; }
elseif ($getsprice == "60000") { $color = "#E60C00"; }
elseif ($getsprice == "70000") { $color = "#FF0000"; }
else { $color = "#BA68C8"; }
?>
<!--mks-mulai-->
<table style="display:inline-block;width:190px;border:1px solid <?= $color; ?>;border-radius:11px;overflow:hidden;margin:2px;background:#fdfdff;color:#1f2432;position:relative;">
<tr>
<td style="padding:7px;">
<div style="position:relative;overflow:hidden;border-radius:8px;background:linear-gradient(120deg,<?= $color; ?>,#1f2937);padding:6px;color:#fff;">
<div style="position:absolute;right:-18px;top:-18px;width:54px;height:54px;border-radius:999px;background:rgba(255,255,255,.24);"></div>
<div style="display:flex;justify-content:space-between;align-items:center;position:relative;">
<img src="<?= $logo; ?>" style="height:26px;width:26px;border-radius:6px;background:rgba(255,255,255,.2);padding:2px;">
<div style="font:800 14px/1.1 Tahoma;text-align:right;"><?= $price; ?></div>
</div>
</div>
<div style="margin-top:6px;border:1px dashed <?= $color; ?>;border-radius:8px;padding:5px;text-align:center;">
<div style="font:800 14px/1.2 Tahoma;color:#121826;"><?= $username; ?></div>
<div style="font:700 11px/1.2 Tahoma;color:#2b3b55;"><?= $password; ?></div>
</div>
<div style="font:700 9px/1.35 Tahoma;margin-top:5px;color:#1f2432;">
<?= $validity; ?><br>
<?= $timelimit; ?><br>
<?= $datalimit; ?>
</div>
<div style="display:flex;justify-content:space-between;align-items:center;margin-top:6px;">
<span style="font:700 9px/1.2 Tahoma;">Login: <?= $dnsname; ?></span>
<div style="width:34px;height:34px;"><?= $qrcode; ?></div>
</div>
<div style="margin-top:6px;background:<?= $color; ?>;color:#fff;font:700 9px/1.2 Tahoma;padding:3px 5px;border-radius:6px;">
PROFILE <?= $profile; ?> | No. <?= $num; ?>
</div>
</td>
</tr>
</table>
<!--mks-akhir-->