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


PHP TCPDFBarcode::getBarcodeHTML方法代码示例

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


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

示例1: getBarcode

function getBarcode($sample)
{
    require "../tcpdf/tcpdf_barcodes_1d.php";
    if (!$sample) {
        echo "";
    } else {
        $barcodeobj = new TCPDFBarcode($sample, 'C128');
        echo $barcodeobj->getBarcodeHTML(2, 30, 'black');
    }
}
开发者ID:syafiqazwan,项目名称:pharmaco,代码行数:10,代码来源:lab_config1.php

示例2: recu

 /**
  * Impression d'un recu grace a l'operation caisse idcaisse
  * Afficher avant de proposer une impression
  * @param type $idcaisse
  */
 public function recu($idcaisse)
 {
     if (!isAuth(522)) {
         return;
     }
     $this->view->clientsJS("caisse" . DS . "recu");
     $view = new View();
     $operation = $this->Caisse->get($idcaisse);
     $view->Assign("operation", $operation);
     $this->loadBarcode(BARCODE_1);
     $barcodeobj = new TCPDFBarcode($operation['REFCAISSE'], 'C128A');
     $view->Assign("barcode", $barcodeobj->getBarcodeHTML(1, 35, 'black'));
     $personnel = $this->Personnel->getBy(["USER" => $this->session->iduser]);
     if (!empty($operation['PERCUPAR'])) {
         $percepteur = $this->Personnel->get($operation['PERCUPAR']);
         $view->Assign("percepteur", $percepteur);
     }
     if (!empty($operation['IMPRIMERPAR'])) {
         $imprimeur = $this->Personnel->get($operation['IMPRIMERPAR']);
     } else {
         $imprimeur = $personnel;
     }
     $percepteur = $this->Personnel->get($operation['PERCUPAR']);
     $view->Assign("percepteur", $percepteur);
     $enregistreur = $this->Personnel->get($operation['ENREGISTRERPAR']);
     $view->Assign("enregistreur", $enregistreur);
     $view->Assign("imprimeur", $imprimeur);
     $view->Assign("estDirectrice", $this->session->idprofile === DIRECTOR_PROFILE ? true : false);
     $classe = $this->Eleve->getClasse($operation['ELEVE'], $this->session->anneeacademique);
     $view->Assign("classe", $classe);
     $montantapayer = $this->Frais->getClasseTotalFrais($classe['IDCLASSE']);
     $view->Assign("montantapayer", $montantapayer);
     $montantpayer = $this->Caisse->getMontantPayer($operation['ELEVE']);
     $view->Assign("montantpayer", $montantpayer);
     $content = $view->Render("caisse" . DS . "recu", false);
     $this->Assign("content", $content);
 }
开发者ID:jpainam,项目名称:cosba,代码行数:42,代码来源:caisseController.php

示例3: getBarCodeHTML

 public function getBarCodeHTML()
 {
     $barcode = new TCPDFBarcode("E:{$this->id}", 'C128');
     return $barcode->getBarcodeHTML(1, 8);
 }
开发者ID:openeyes,项目名称:openeyes,代码行数:5,代码来源:Event.php

示例4: 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_1d.php class
//
//============================================================+
/**
 * @file
 * Example for tcpdf_barcodes_1d.php class
 * @package com.tecnick.tcpdf
 * @author Nicola Asuni
 * @version 1.0.000
 */
// include 1D barcode class
require_once dirname(__FILE__) . '/../../tcpdf_barcodes_1d.php';
// set the barcode content and type
$barcodeobj = new TCPDFBarcode('http://www.tcpdf.org', 'C128');
// output the barcode as HTML object
echo $barcodeobj->getBarcodeHTML(2, 30, 'black');
//============================================================+
// END OF FILE
//============================================================+
开发者ID:myindexlike,项目名称:MODX.snippets,代码行数:31,代码来源:example_1d_html.php

示例5: getHtml

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


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