當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。