PHP Classes

File: views/layouts/label_Micra106_12_95X150.php

Recommend this page to a friend!
  Classes of Uldis Nelsons   PHP Barcode and QRCode Reader and Generator   views/layouts/label_Micra106_12_95X150.php   Download  
File: views/layouts/label_Micra106_12_95X150.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Barcode and QRCode Reader and Generator
Generate barcodes and qrcodes for printing
Author: By
Last change:
Date: 3 years ago
Size: 896 bytes
 

Contents

Class file image Download
<?php

use yii\web\View;
Use
d3yii2\d3codes\assetbundles\NormalizeAsset;
NormalizeAsset::register($this);
/**
 * @var View $this
 * @var string $content
 */



$this->beginPage()
?><!DOCTYPE html>
    <head>
        <meta charset="utf-8">
    <style type="text/css">
        html {width: 570px;}
        @page {
            /* size: 5cm 5cm; */
            margin: 1mm 1mm 1mm 1mm;
        }
        @media print {
            body{
                width: 559px;
                text-align: center;
            }
        }
        body {
            padding: 20px;
            font-size: 20px;
            font-weight: bold;
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        }
    </style>
        <?php $this->head(); ?>
</head>
    <?php $this->beginBody() ?>
<body>
    <?=$content?>
<?php $this->endBody() ?>
</body>
</html>
<?php
$this
->endPage();