0% found this document useful (0 votes)
220 views2 pages

WiFi Voucher Template with QR Code

The document contains the code for generating a voucher or pass containing WiFi login credentials, including the username, password, QR code (if applicable), validity period, data limit, price, and note with the DNS name. Styling is defined for the table and elements like the logo, fields for the username and password, and a QR code image. The code generates the voucher based on parameters passed to it for the hotspot name, username, password, validity, limits, price and other values.

Uploaded by

Kma Kma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
220 views2 pages

WiFi Voucher Template with QR Code

The document contains the code for generating a voucher or pass containing WiFi login credentials, including the username, password, QR code (if applicable), validity period, data limit, price, and note with the DNS name. Styling is defined for the table and elements like the logo, fields for the username and password, and a QR code image. The code generates the voucher based on parameters passed to it for the hotspot name, username, password, validity, limits, price and other values.

Uploaded by

Kma Kma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

DNS Server 208.67.222.

222

<style>
.qrcode{
height:80px;
width:80px;
}
</style>

<table class="voucher" style=" width: 220px;">


<tbody>
<!-- Logo Hotspotname -->
<tr>
<td style="text-align: left; font-size: 14px; font-weight:bold; border-
bottom: 1px black solid;"><img src="<?= $logo; ?>" alt="logo"
style="height:30px;border:0;"> <?= $hotspotname; ?> <span id="num"><?= " [$num]";
?></span></td>
</tr>
<!-- / -->
<tr>
<td>
<table style=" text-align: center; width: 210px; font-size: 12px;">
<tbody>
<!-- Username Password QR -->
<tr>
<td>
<table style="width:100%;">
<!-- Username = Password -->
<?php if ($usermode == "vc") { ?>
<tr>
<td font-size: 12px;>Kode Voucher</td>
</tr>
<tr>
<td style="width:100%; border: 1px solid black; font-weight:bold; font-
size:16px;"><?= $username; ?></td>
</tr>
<!-- / -->
<!-- Username & Password -->
<?php
} elseif ($usermode == "up") { ?>
<!-- Check QR -->
<?php if ($qr == "yes") { ?>
<tr>
<td>Username</td>
</tr>
<tr>
<td style="border: 1px solid black; font-weight:bold;"><?= $username; ?
></td>
</tr>
<tr>
<td>Password</td>
</tr>
<tr>
<td style="border: 1px solid black; font-weight:bold;"><?= $password; ?
></td>
</tr>
<?php
} else { ?>
<tr>
<td style="width: 50%">Username</td>
<td >Password</td>
</tr>
<tr style="font-size: 14px;">
<td style="border: 1px solid black; font-weight:bold;"><?= $username; ?
></td>
<td style="border: 1px solid black; font-weight:bold;"><?= $password; ?
></td>
</tr>
<?php
}
} ?>
<!-- / -->
</table>
</td>
<!-- QR Code -->
<?php if ($qr == "yes") { ?>
<td>
<?= $qrcode ?>
</td>
<?php
} ?>
<!-- / -->
<tr>
<!-- Price -->
<td colspan="2" style="border-top: 1px solid black;font-weight:bold; font-
size:16px"><?= $validity; ?> <?= $timelimit; ?> <?= $datalimit; ?> <?= $price; ?
></td>
<!-- / -->
</tr>
<tr>
<!-- Note -->
<td colspan="2" style="font-weight:bold; font-size:12px">Login: http://<?=
$dnsname; ?></td>
<!-- / -->
</tr>
<!-- / -->
</tbody>
</table>
</td>
</tr>
</tbody>
</table>

You might also like