当前位置: 首页>>代码示例>>PHP>>正文


PHP TCPDF2DBarcode::getBarcodeHTML方法代码示例

本文整理汇总了PHP中TCPDF2DBarcode::getBarcodeHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP TCPDF2DBarcode::getBarcodeHTML方法的具体用法?PHP TCPDF2DBarcode::getBarcodeHTML怎么用?PHP TCPDF2DBarcode::getBarcodeHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TCPDF2DBarcode的用法示例。


在下文中一共展示了TCPDF2DBarcode::getBarcodeHTML方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dirname

// TCPDF is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with TCPDF. If not, see <http://www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
//
// Description : Example for tcpdf_barcodes_2d.php class
//
// ============================================================+
/**
 * @file
 * Example for tcpdf_barcodes_2d.php class
 * 
 * @package com.tecnick.tcpdf
 * @author Nicola Asuni
 * @version 1.0.009
 */
// include 2D barcode class (search for installation path)
require_once dirname(__FILE__) . '/tcpdf_barcodes_2d_include.php';
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'QRCODE,H');
// output the barcode as HTML object
echo $barcodeobj->getBarcodeHTML(6, 6, 'black');
//============================================================+
// END OF FILE
//============================================================+
开发者ID:ashanrupasinghe,项目名称:2015-12-03-from_server_all_pdf_OK,代码行数:31,代码来源:example_2d_qrcode_html.php

示例2: json_encode

<?php

include_once 'jwt/vendor/autoload.php';
include_once 'TCPDF/tcpdf_barcodes_2d.php';
include_once 'uuid/vendor/autoload.php';
$signer = new \Lcobucci\JWT\Signer\Hmac\Sha512();
$token = (new Lcobucci\JWT\Builder())->setIssuer('http://example.com')->setAudience('http://example.org')->setId(\Ramsey\Uuid\Uuid::uuid4(), true)->setIssuedAt(time())->setNotBefore(time() + 60)->setExpiration(time() + 3600)->set('uid', array('user_select', 'user_delete'))->sign($signer, 'testing')->getToken();
// Retrieves the generated token
//echo $token; // The string representation of the object is a JWT string (pretty easy, right?)
$barcodeobj = new TCPDF2DBarcode((string) $token, 'QRCODE,H');
header('Content-Type:application/json');
echo json_encode(array('token' => (string) $token, 'link' => 'http://jwt.io#id_token=' . $token, 'barcode' => $barcodeobj->getBarcodeHTML(3, 3)));
开发者ID:piotrgolasz,项目名称:jwt,代码行数:12,代码来源:jwt_over_barcode.php

示例3: dirname

//
// TCPDF is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with TCPDF.  If not, see <http://www.gnu.org/licenses/>.
//
// See LICENSE.TXT file for more information.
// -------------------------------------------------------------------
//
// Description : Example for tcpdf_barcodes_2d.php class
//
//============================================================+
/**
 * @file
 * Example for tcpdf_barcodes_2d.php class
 * @package com.tecnick.tcpdf
 * @author Nicola Asuni
 * @version 1.0.009
 */
// include 2D barcode class (search for installation path)
require_once dirname(__FILE__) . '/tcpdf_barcodes_2d_include.php';
// set the barcode content and type
$barcodeobj = new TCPDF2DBarcode('http://www.tcpdf.org', 'PDF417');
// output the barcode as HTML object
echo $barcodeobj->getBarcodeHTML(4, 4, 'black');
//============================================================+
// END OF FILE
//============================================================+
开发者ID:RA2WP,项目名称:RA2WP,代码行数:31,代码来源:example_2d_pdf417_html.php

示例4: getAsHtml

 protected function getAsHtml($code, $type)
 {
     $barcode = new \TCPDF2DBarcode($code, $type);
     return $barcode->getBarcodeHTML(6, 6, 'black');
 }
开发者ID:martinlindhe,项目名称:core3,代码行数:5,代码来源:Barcode2D.php

示例5:

				user_verifycode=NULL
				WHERE user_id=' . $userid . '';
        if (!($ru = F_db_query($sqlu, $db))) {
            F_display_db_error(false);
        } else {
            F_print_error('MESSAGE', $l['m_user_registration_ok']);
            echo K_NEWLINE;
            echo '<div class="container">' . K_NEWLINE;
            if (K_OTP_LOGIN) {
                require_once '../../shared/tcpdf/tcpdf_barcodes_2d.php';
                $host = preg_replace('/[h][t][t][p][s]?[:][\\/][\\/]/', '', K_PATH_HOST);
                $qrcode = new TCPDF2DBarcode('otpauth://totp/' . $m['user_name'] . '@' . $host . '?secret=' . $m['user_otpkey'], 'QRCODE,H');
                echo '<p>' . $l['m_otp_qrcode'] . '</p>' . K_NEWLINE;
                echo '<h2>' . $m['user_otpkey'] . '</h2>' . K_NEWLINE;
                echo '<div style="margin:40px 40px 40px 40px;">' . K_NEWLINE;
                echo $qrcode->getBarcodeHTML(6, 6, 'black');
                echo '</div>' . K_NEWLINE;
            }
            echo '<p><strong><a href="index.php" title="' . $l['h_index'] . '">' . $l['h_index'] . ' &gt;</a></strong></p>' . K_NEWLINE;
            echo '</div>' . K_NEWLINE;
            require_once '../code/tce_page_footer.php';
            exit;
        }
    }
} else {
    F_display_db_error(false);
}
F_print_error('ERROR', 'USER VERIFICATION ERROR');
echo K_NEWLINE;
echo '<div class="container">' . K_NEWLINE;
echo '<strong><a href="index.php" title="' . $l['h_index'] . '">' . $l['h_index'] . ' &gt;</a></strong>' . K_NEWLINE;
开发者ID:jayadevn,项目名称:RackMap,代码行数:31,代码来源:tce_user_verification.php


注:本文中的TCPDF2DBarcode::getBarcodeHTML方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。