Page 1 of 1

POST VOUCHER TEMPLATES HERE

Posted: Sun Dec 09, 2007 2:16 pm
by airforce1
Lets all post our edited voucher templates here to help users without html knowledge


here's mine
<table style="color: black; font-size: 11px;" border="2" height="10">
<tr>
  <td colspan="2" bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">BIU Tech Airforce1 Wireless</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Time:</font></b></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"></font><b><font size="2" face="Arial">%u_limit_uptime%</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000">
  <font face="Arial" size="2"><b>Validity</b></font></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">%u_prep_time%</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Price:</font></b></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"></font><b><font size="2" face="Arial">%u_tot_price%</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Username:</font></b></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"></font><b><font size="2" face="Arial">%u_username%</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Password:</font></b></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"><font face="Arial"><b><font size="2">%u_password%</font></b></font></td>
  </tr>
</table>

Re: POST VOUCHER TEMPLATES HERE

Posted: Thu Dec 27, 2007 1:29 pm
by ashish
good one,
But it is coming one VOUCHER per page, I need it morethan one in one page.

Re: POST VOUCHER TEMPLATES HERE

Posted: Sat Jan 12, 2008 1:35 pm
by JP_Wireless
i have a similar script, it seems only MT administrator can set the number per page which is currently set to a maximum of three. i learnt the next Userman will do better on this issue. So let'u wait!

Re: POST VOUCHER TEMPLATES HERE

Posted: Wed Feb 06, 2008 12:17 am
by csickles
How about this one...
Prints on a thermal (POS) printer..

http://info.microage.com/Campaigns/MicroAge/hotspot.bmp


It is a bit rough here but it is an export.

The original prints clean..

NOTE: this is format generated by "BarTender Ver 8.0" from seagull scientiffic"..

I just build the SCV (add a group of users) and bartender picks up the file and prints the ticket.

It could be coded to look at ant of the fields and dirrect it to a speciffic printer....

Re: POST VOUCHER TEMPLATES HERE

Posted: Wed Feb 20, 2008 11:39 am
by overnet
Hello,
has anyone found an easy and chap thermal printer in order to print the voucher directly from the web page of a pc? (like zyxel or other)
The voucher are printable without any other program on the pc?
I mean, I wiil create a web page on the user manager web server (/hotspot or other of the MT machine) and print that from the pc of the hall of the Hotel.

Regards
Andrea

Re: POST VOUCHER TEMPLATES HERE

Posted: Thu Feb 28, 2008 6:46 pm
by Akangage
How about this one...
Prints on a thermal (POS) printer..
http://info.microage.com/Campaigns/MicroAge/hotspot.bmp

It is a bit rough here but it is an export.

The original prints clean..

NOTE: this is format generated by "BarTender Ver 8.0" from seagull scientiffic"..

I just build the SCV (add a group of users) and bartender picks up the file and prints the ticket.

It could be coded to look at ant of the fields and dirrect it to a speciffic printer....
Wow how could do that?????

Re: POST VOUCHER TEMPLATES HERE

Posted: Mon Mar 10, 2008 9:07 am
by sergejs
Airforce1 thank you so much for the topic !
We have created new wiki topic, where you are all welcome to post your Voucher examples.
http://wiki.mikrotik.com/wiki/User_Mana ... e#Examples

It would be great to see your nice Voucher Templates there.

Re: POST VOUCHER TEMPLATES HERE

Posted: Thu Mar 27, 2008 10:16 pm
by fbaffoni
This is intresting.

I am trying to insert a picture with the name of my company on the voucher, at first i did try with the Mikrotik logo, that comes in /hotspot/img/logobottom.png, and work perfectly!!
But at the time to put my own logo, don´t show it, even i try replacing that logo with anotherone of my own and the same dimensions, and still showing the mikrotik logo!!! i dont understund it!! (I REPLACE IT, and when i try to login my own logo appears there)
Then i tried changing the source of the file, and still not working.

This is the html code of my last test.
<td width="29%"><img src="/hotspot/logobottom.png" alt="" title="" /></a></td>
<td align="right" width="26%">
How could i change the picture?.

Thank you.

Re: POST VOUCHER TEMPLATES HERE

Posted: Fri Sep 09, 2011 4:08 pm
by murray654
Hi

I need to print users uptime limit on the voucher.

This constant (found in wiki) does not work: %u_limitUptime% (the text is not replaced when generating vouchers)

How do I print the uptime limit?

Thanks in advance.

Oh, my version of routeros is 4.17 and my router is RB750

Cheers,

Murray

Re: POST VOUCHER TEMPLATES HERE

Posted: Fri Sep 09, 2011 4:14 pm
by murray654
Hi

I need to print users uptime limit on the voucher.

This constant (found in wiki) does not work: %u_limitUptime% (the text is not replaced when generating vouchers)

How do I print the uptime limit?

Thanks in advance.

Oh, my version of routeros is 4.17 and my router is RB750

Cheers,

Murray
OK I got it %u_limitUptime% is wrong - %u_limit_uptime% is right - Wiki is useful, but its got mistakes...

Re: POST VOUCHER TEMPLATES HERE

Posted: Sat Sep 10, 2011 12:07 pm
by aacable

Re: POST VOUCHER TEMPLATES HERE

Posted: Mon Feb 11, 2013 11:01 pm
by adeelkml

Re: POST VOUCHER TEMPLATES HERE

Posted: Sun Sep 07, 2014 2:52 am
by kangndo
Try this one too
.

Row:
<table style="display: inline-block; width: 250px; border: 1px solid #ccc; line-height: 110%; font-family: arial; font-size: 12px; margin: 1px;">
<tbody>
<tr>
<td style="text-align: center; color: red; font-size: 13px; border-bottom: 1px #ccc solid;"><b>KANGNDO HOTSPOT VOUCHER</b></td>
</tr>
<tr>
<td>
<table style=" text-align: center; width: 240px; background-color: #fff; line-height: 110%; font-size: 11px;">
<tbody>
<tr style="background-color: #eee;">
<td style="background-color: #fff; width: 33%"><b>PAKET</b></td>
<td style="width: 33%">Speed</td>
<td style="width: 33%">Data</td>
</tr>
<tr>
<td ><b>%u_actualProfileName%</b></td>
<td>Up to 1Mbps</td>
<td>%u_limitDownload%</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table style=" text-align: center; width: 240px; background-color: #fff; line-height: 110%; font-size: 11px;">
<tbody>
<tr style="background-color: #eee;">
<td style="width: 33%">Time</td>
<td style="width: 33%">Validity</td>
<td style="width: 33%">Price</td>
</tr>
<tr>
<td>%u_limitUptime%</td>
<td>%u_timeLeft%</td>
<td>Rp %u_moneyPaid%</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>
<table style=" text-align: center; width: 240px; background-color: #fff; line-height: 110%; font-size: 12px; border-top: 1px solid #ccc;">
<tbody>
<tr style="color: red; font-size: 11px;">
<td style="width: 50%">Username</td>
<td>Password</td>
</tr>
<tr style="background-color: #fff;">
<td style="color: #888; border: 1px #ccc solid;">%u_username%</td>
<td style="color: #888; border: 1px #ccc solid;">%u_password%</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="text-align: center; font-size:11px;">Call: 082 324 660 655</td>
</tr>
</tbody>
</table>
Screenshot:
Image
voucher template by kangndo http://kangndo.com/2014/09/07/mikrotik- ... -template/

Regards
Kangndo

Re: POST VOUCHER TEMPLATES HERE

Posted: Fri Nov 14, 2014 3:53 pm
by kangndo

Re: POST VOUCHER TEMPLATES HERE

Posted: Tue Dec 16, 2014 2:30 pm
by usmany
Thank you all

Re: POST VOUCHER TEMPLATES HERE

Posted: Sun Jun 19, 2016 7:10 pm
by mazbhenks
This is my voucher template. Just copy-paste if you like it.
Image

Printed Version:
Image

Template (User Manager)
Header:
<!DOCTYPE html> <html> <head>   <title>Voucher Hotspot</title>   <link rel="stylesheet" href="http://mazbhenks.com/dock/hotspot/voucher/bootstrap.min.css">   <link rel="stylesheet" href="http://mazbhenks.com/dock/hotspot/voucher/style.css">   <link rel="stylesheet" href="http://mazbhenks.com/dock/hotspot/voucher/mbr-additional.css"> </head>  <body> <section id="form1-5"> <div class="col-sm-4"> 
Row:
<div class="col-sm-1 col-sm-offset-0" style="background-image: url(http://mazbhenks.com/dock/hotspot/voucher/bg.jpg);background-size: 250px 415px;"> <div class="mbr-header--center mbr-header--std-padding"> <h2 class="mbr-header__text">Voucher WiFi</h2> <h2 class="mbr-header__text" style="font-family:Courier New;">10.000</h2> <h3 class="mbr-header__text" style="font-size:1em;">%u_actualProfileName%</h3> <h3 class="mbr-header__text" style="font-size:0.7em;">SSID: Hotspot Pro.NET</h3> </div> <form> <table class="userpass"><tr><td align="center">USERNAME | PASSWORD</td></tr><tr><td> <input type="text" class="form-control" style="text-align: center;" value="%u_username% | %u_password%" /></td></tr></table> </form> <div class="mbr-header--center  mbr-header--std-padding"> <br/> <h3 class="mbr-header__text" style="font-size:1em;">Login:</h3> <h3 class="mbr-header__text" style="font-size:0.7em;">http://hotspot.pro.net</h3> </div> </div>
Footer:
</div> </section>  </body> </html>
Break:
<p class="noprint" style="font-size: 10px">   ................ page break ................ </p> <p class="pagebreak">&nbsp;</p>

Re: POST VOUCHER TEMPLATES HERE

Posted: Wed Jun 22, 2016 5:15 pm
by xigm8
Hi Mazbhenks

I like your template & thanks for post. please correct the printing problems 1) the background pic and urser & password is out of position when rinting

Re: POST VOUCHER TEMPLATES HERE

Posted: Sat Jul 02, 2016 8:43 am
by mazbhenks
on your browser, click File --> Page Setup and Check "Print Background (colors & images)"

Re: POST VOUCHER TEMPLATES HERE

Posted: Tue Dec 05, 2017 9:04 am
by ambrosemtk
[q[/quote]
Lets all post our edited voucher templates here to help users without html knowledge


here's mine
add "display:inline-table" on the style tag
<table style="color: black; font-size: 11px;" border="2" height="10">
<tr>
  <td colspan="2" bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">BIU Tech Airforce1 Wireless</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Time:</font></b></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"></font><b><font size="2" face="Arial">%u_limit_uptime%</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000">
  <font face="Arial" size="2"><b>Validity</b></font></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">%u_prep_time%</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Price:</font></b></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"></font><b><font size="2" face="Arial">%u_tot_price%</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Username:</font></b></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"></font><b><font size="2" face="Arial">%u_username%</font></b></td>
</tr>
<tr>
  <td bordercolorlight="#000000" bordercolordark="#000000"><b><font size="2" face="Arial">Password:</font></b></td>
  <td bordercolorlight="#000000" bordercolordark="#000000"><font face="Arial"><b><font size="2">%u_password%</font></b></font></td>
  </tr>
</table>

Re: POST VOUCHER TEMPLATES HERE

Posted: Mon Jul 29, 2019 11:25 pm
by ronylove
Excellent post.
I would like to ask you a huge favor, and the truth is that I could not find an answer.
I would like to be able to obtain the personal data of the people who register.
In other words, you can print the name and surname and if you can mail it.

Thank you