Пример #1
0
require_once '../include/header.php';
?>

     <?php 
$manchego = new \Kendo\Dataviz\UI\Barcode('manchego');
$manchego->value("2346722");
$manchego->width("200");
$manchego->height("100");
$manchego->type("ean8");
$mascarpone = new \Kendo\Dataviz\UI\Barcode('mascarpone');
$mascarpone->value("Mascarpone");
$mascarpone->type("code128");
$mascarpone->width("200");
$mascarpone->height("100");
$gudbrands = new \Kendo\Dataviz\UI\Barcode('gudbrands');
$gudbrands->value("CHEESE");
$gudbrands->type("code39");
$gudbrands->width("200");
$gudbrands->height("100");
?>

    <ul id="dairy">
        <li>
            <img src="../content/web/foods/200/12.jpg" alt="Queso Manchego La Pastora" />
            <?php 
echo $manchego->render();
?>
        </li>
        <li>
            <img src="../content/web/foods/200/32.jpg" alt="Mascarpone Fabioli" />
            <?php 
Пример #2
0
<?php

require_once '../lib/Kendo/Autoload.php';
require_once '../include/header.php';
?>

    <div id="example" class="k-content">

        <div class="demo-section">
            <?php 
$barcode = new \Kendo\Dataviz\UI\Barcode('barcode');
$barcode->value("1234567");
$barcode->type("ean8");
$barcode->background("transparent");
echo $barcode->render();
?>
        </div>
        <div class="configuration-horizontal">
            <div class="config-section">
                <ul class="options">
                    <li>
                        <label><input  id="value" class="k-textbox" value="1234567"/> Value </label>
                        <span id="validValue" class="k-widget k-tooltip k-tooltip-validation k-invalid-msg"></span>
                    </li>
                    <li><label><input  id="type" /> Encoding </label></li>
                    <li><label><input type="checkbox" id="text" checked="checked"/> Show Text </label></li>
                    <li><label><input type="checkbox" id="checksum" /> Show Checksum </label></li>
                </ul>
            </div>
        </div>