Beispiel #1
0
    $readable = 'N';
    $showtype = 'N';
    $color = '#000000';
    $bgcolor = '#FFFFFF';
    $zoom = 1;
    extract($_GET);
    // ***** Cr�ation de l'objet
    $objCode = new pi_barcode();
    $type = strtoupper($type);
    // ***** Hauteur / Largeur
    if (isset($height) || isset($width)) {
        $objCode->setSize($height, $width);
    }
    // ***** Autres arguments
    if ($readable == 'N') {
        $objCode->setText('');
    }
    if ($showtype == 'N') {
        $objCode->hideCodeType();
    }
    if ($color) {
        if ($bgcolor) {
            $objCode->setColors($color, $bgcolor);
        } else {
            $objCode->setColors($color);
        }
    }
    $objCode->setType($type);
    $objCode->setCode($code);
    $objCode->showBarcodeImage();
}