PluginProbe
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin / 2.4.4
PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin v2.4.4
trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.1 All 71 releases
pdf-print / mpdf / qrcode / index.php

index.php in PDF & Print by BestWebSoft – WordPress Posts and Pages PDF Generator Plugin 2.4.4, at mpdf/qrcode/index.php

69 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $msg = isset($_GET['msg']) ? $_GET['msg'] : '';
3 if (!$msg) $msg = "Le site du spipu\r\nhttp://spipu.net/";
4
5 $err = isset($_GET['err']) ? $_GET['err'] : '';
6 if (!in_array($err, array('L', 'M', 'Q', 'H'))) $err = 'L';
7
8 require_once('qrcode.class.php');
9 ?>
10 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
11 <html>
12 <head>
13 <title>Spipu Qrcode <?php echo __CLASS_QRCODE__; ?></title>
14 <meta name="Title" content="Spipu - Qrcode <?php echo __CLASS_QRCODE__; ?>" >
15 <meta name="Description" content="Spipu - Qrcode <?php echo __CLASS_QRCODE__; ?>" >
16 <meta name="Keywords" content="spipu">
17 <meta name="Author" content="spipu" >
18 <meta name="Reply-to" content="webmaster@spipu.net" >
19 <meta name="Copyright" content="(c)2009 Spipu" >
20 <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" >
21 <style type="text/css">
22 <!--
23 table.qr
24 {
25 border-collapse: collapse;
26 border: solid 1px black;
27 table-layout: fixed;
28 }
29
30 table.qr td
31 {
32 width: 5px;
33 height: 5px;
34 font-size: 2px;
35 }
36
37 table.qr td.on
38 {
39 background: #000000;
40 }
41 -->
42 </style>
43 </head>
44 <body>
45 <center>
46 <form method="GET" action="">
47 <textarea name="msg" cols="40" rows="7"><?php echo htmlentities($msg); ?></textarea><br>
48 Correction d'erreur :
49 <select name="err">
50 <option value="L" <?php echo $err=='L' ? 'selected' : ''; ?>>L</option>
51 <option value="M" <?php echo $err=='M' ? 'selected' : ''; ?>>M</option>
52 <option value="Q" <?php echo $err=='Q' ? 'selected' : ''; ?>>Q</option>
53 <option value="H" <?php echo $err=='H' ? 'selected' : ''; ?>>H</option>
54 </select> |
55 <input type="submit" value="Afficher">
56 </form>
57 <hr>
58 Génération d'un tableau HTML :<br>
59 <?php
60 $qrcode = new QRcode(utf8_encode($msg), $err);
61 $qrcode->displayHTML();
62 ?>
63 <br>
64 Génération d'une image PNG : <br>
65 <img src="./image.php?msg=<?php echo urlencode($msg); ?>&amp;err=<?php echo urlencode($err); ?>" alt="generation qr-code" style="border: solid 1px black;">
66 </center>
67 </body>
68 </html>
69