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


PHP PDF::Cell方法代码示例

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


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

示例1: getPDF

 public function getPDF()
 {
     /*$pdf = new PDF();
       $docentes = Docente::all();
       $columnas = ['NRO','CODIGO','APELLIDOS Y NOMBRES'];
       $pdf->SetFont('Arial','B',13);
       $pdf->AddPage();
       $pdf->Cell(80);
       $pdf->Cell(30,5,'Lista de Docentes',0,1,'C');
       $pdf->SetFont('Arial','B',9);
       $pdf->Ln(2);
       $pdf->SetFont('Arial','B',10);
       $pdf->docentes($columnas,$docentes);
       $cabe=['Content-Type' => 'application/pdf'];
       return Response::make($pdf->_checkoutput(),200,$cabe);*/
     $fpdf = new PDF();
     $docentes = Docente::all();
     $columnas = ['NRO', 'CODIGO', 'APELLIDOS Y NOMBRES'];
     $fpdf->AddPage();
     $fpdf->Cell(80);
     $fpdf->Cell(30, 5, 'Lista de Docentes', 0, 1, 'C');
     $fpdf->SetFont('Arial', 'B', 9);
     $fpdf->Ln(2);
     $fpdf->SetFont('Arial', 'B', 16);
     $fpdf->docentes($columnas, $docentes);
     $fpdf->Output();
     exit;
 }
开发者ID:nosiliw,项目名称:SCDW,代码行数:28,代码来源:ExpectadoresController.php

示例2: index

 public function index()
 {
     $pdf = new PDF();
     $pdf->AliasNbPages();
     $pdf->AddPage();
     $pdf->SetFont('Times', '', 12);
     for ($i = 1; $i <= 40; $i++) {
         $pdf->Cell(0, 10, 'Printing line number ' . $i, 0, 1);
     }
     $pdf->Output();
 }
开发者ID:iamonuwa,项目名称:ivote,代码行数:11,代码来源:Test.php

示例3: index

 function index()
 {
     // Instanciation of inherited class
     $pdf = new PDF();
     $pdf->AliasNbPages();
     $pdf->AddPage();
     $pdf->SetFont('Times', '', 12);
     for ($i = 1; $i <= 40; $i++) {
         $pdf->Cell(0, 10, 'Printing line number ' . $i, 0, 1);
     }
     $pdf->Output();
 }
开发者ID:akbarhakim29,项目名称:restclient,代码行数:12,代码来源:pdf.php

示例4: actionDownload

 public function actionDownload()
 {
     parent::actionDownload();
     $pdf = new PDF();
     $pdf->title = 'Material Stock Overview List';
     $pdf->AddPage('L');
     $pdf->setFont('Arial', 'B', 12);
     // definisi font
     $pdf->setFont('Arial', 'B', 8);
     // menuliskan tabel
     $header = array('No', 'ID', 'Material Name', 'Sloc', 'Qty', 'UOM', 'Prod Trans Type', 'Ref Source');
     $model = new Productstock('search');
     $dataprovider = $model->search();
     $dataprovider->pagination = false;
     $data = $dataprovider->getData();
     $cols = $dataprovider->getKeys();
     $dataku = array(count($data));
     //var_dump($dataku);
     $w = array(10, 15, 70, 30, 30, 30, 40, 30);
     $pdf->SetTableHeader();
     //Header
     for ($i = 0; $i < count($header); $i++) {
         $pdf->Cell($w[$i], 7, $header[$i], 1, 0, 'C', true);
     }
     $pdf->Ln();
     $pdf->SetTableData();
     //Data
     $fill = false;
     $i = 0;
     foreach ($data as $datas) {
         $i = $i + 1;
         $pdf->Cell($w[0], 6, $i, 'LR', 0, 'L', $fill);
         $pdf->Cell($w[1], 6, $datas['productstockid'], 'LR', 0, 'L', $fill);
         $pdf->Cell($w[2], 6, Product::model()->findbypk($datas['productid'])->productname, 'LR', 0, 'L', $fill);
         $pdf->Cell($w[3], 6, Sloc::model()->findbypk($datas['slocid'])->sloccode, 'LR', 0, 'L', $fill);
         $pdf->Cell($w[4], 6, $datas['qty'], 'LR', 0, 'L', $fill);
         $pdf->Cell($w[5], 6, Unitofmeasure::model()->findbypk($datas['unitofmeasureid'])->uomcode, 'LR', 0, 'L', $fill);
         $pdf->Cell($w[6], 6, Prodtranstype::model()->findbypk($datas['prodtranstypeid'])->description, 'LR', 0, 'L', $fill);
         $pdf->Cell($w[7], 6, $datas['refsource'], 'LR', 0, 'L', $fill);
         $pdf->Ln();
         $fill = !$fill;
     }
     $pdf->Cell(array_sum($w), 0, '', 'T');
     // me-render ke browser
     $pdf->Output('productstock.pdf', 'D');
 }
开发者ID:bylinggha,项目名称:Capella-ERP-Indonesia,代码行数:46,代码来源:ProductstockController.php

示例5: testpdf

 function testpdf()
 {
     $this->load->library('fpdf');
     $this->fpdf->FPDF('P', 'cm', 'A4');
     $this->fpdf->AddPage();
     //$this->fpdf->SetFont('Arial','',10);
     $this->fpdf->setFont('Arial', 'B', 9);
     $teks = "Ini hasil Laporan PDF menggunakan Library FPDF di CodeIgniter";
     $this->fpdf->Cell(3, 0.5, $teks, 1, '0', 'L', true);
     //	$this->fpdf->setFont('Arial','B',7);
     $this->fpdf->Text(8, 1.9, 'Jl.Zambrud I No.35 Sumur Batu - Jakarta Pusat');
     $this->fpdf->Line(15.6, 2.1, 5, 2.1);
     $this->fpdf->Text(8, 1.9, 'Jl.Zambrud I No.35 Sumur Batu - Jakarta Pusat');
     //$this->fpdf->Ln();
     $this->fpdf->Output();
     $this->load->library('pdf');
     $pdf = new PDF();
     $pdf->SetMargins(1, 1);
     $pdf->AddPage();
     $pdf->SetFont('Arial', 'B', 14);
     $pdf->Cell(0, 0.5, 'Hellol Ci', 0, 1, 'C');
     $pdf->Output();
     /*
     	$this->load->library('fpdf');
     	$this->fpdf->FPDF('P','cm','A4');
     	$this->fpdf->Ln();
     	$this->fpdf->setFont('Arial','B',9);
     	$this->fpdf->Text(7.5,1,"DAFTAR PENJUALAN BULAN ");
     	$this->fpdf->setFont('Arial','B',9);
     	$this->fpdf->Text(8.3,1.5,'KOMUNITAS MUSISI INDONESIA');
     	$this->fpdf->setFont('Arial','B',7);
     	$this->fpdf->Text(8,1.9,'Jl.Zambrud I No.35 Sumur Batu - Jakarta Pusat');
     	 
     	$this->fpdf->Line(15.6,2.1,5,2.1);             
     	$this->fpdf->ln(1.6);
     	$this->fpdf->ln(0.3);
     	$this->fpdf->Output(); 
     */
 }
开发者ID:rasyid46,项目名称:ci_crud,代码行数:39,代码来源:chart.php

示例6: relatorioDisciplinasPorCurso

 function relatorioDisciplinasPorCurso($id)
 {
     $pdf = new PDF("P", "pt", "A4");
     $pdf->AddPage();
     $pdf->SetFont('Arial', 'B', 16);
     $polo = new Polo();
     $polo->setId($id);
     $polo = $polo->getById();
     $pdf->Cell(40, 10, $polo->getNome());
     $cabeçalhoTabela = array('Disciplina', 'Nome Tutor', 'Sobrenome Tutor');
     $curso = new Curso();
     $cursos = $curso->read();
     foreach ($cursos as $curso) {
         if ($curso->getPolo()->getId() != $id) {
             continue;
         }
         $pdf->setVendedor($curso->getNome() . " - " . $curso->getTipo()['descricao']);
         $pdf->AddPage();
         $disciplinaDao = new DisciplinaDao();
         $array = $disciplinaDao->listDisciplinasTutoresByCurso($curso);
         $pdf->BasicTable($cabeçalhoTabela, $array);
     }
     $pdf->Output();
 }
开发者ID:RaelCappra,项目名称:SisTutor,代码行数:24,代码来源:DisciplinaController.php

示例7: PDF

}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('work | eventos');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Relação de Momentos de Repertório');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
//Títulos das colunas
$pdf->SetFont('Arial', 'B', 10);
//Define a cor RGB do fundo da celula
$pdf->SetFillColor(178, 178, 178);
//Faz a célula ser preenchida. Isso é feito setando 1 após a expressao de alinhamento
$pdf->Cell(0, 6, 'Descrição do Momento de Repertório', 1, 0, 'L', 1);
$pdf->SetX(170);
$pdf->Cell(0, 6, 'Ativo');
//Monta as linhas com os dados da query
$pdf->SetFont('Arial', '', 10);
while ($dados = mysql_fetch_array($sql)) {
    switch ($dados[ativo]) {
        case 0:
            $ativo = "Inativo";
            break;
        case 1:
            $ativo = "Ativo";
            break;
    }
    $pdf->ln();
    $pdf->Cell(0, 5, $dados['nome']);
开发者ID:workcrm,项目名称:consoli,代码行数:31,代码来源:CategoriaRepertorioRelatorioPDF.php

示例8: setLGUinfo

>> SEE: function setLGUinfo (line # 22)
$pdf->setLGUinfo($getlgu[0],$getprov[0],$resulta[2]);
===========================================================*/
$pdf->setLGUinfo($getprov[0], $getlgu[0], $resulta[2]);
$pdf->setYears($dateprev, $datenext, $datenextnext);
$pdf->AddPage();
$pdf->AliasNbPages();
$getnat = @mysql_query("select * from ebpls_buss_nature");
$Y_Label_position = 50;
$Y_Table_Position = 55;
//header
$dateprinted = date('Y-m-d');
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position);
$pdf->SetX(5);
$pdf->Cell(340, 5, $dateprinted, 0, 1, 'R');
$pdf->SetFont('Arial', 'B', 6);
$pdf->SetY($Y_Label_position + 10);
$pdf->SetX(5);
$pdf->Cell(100, 10, 'LINE OF BUSINESS', 1, 0, 'C');
$pdf->SetX(105);
$pdf->Cell(60, 5, $dateprev, 1, 0, 'C');
$pdf->SetX(165);
$pdf->Cell(60, 5, $datenext, 1, 0, 'C');
$pdf->SetX(225);
$pdf->Cell(60, 5, $datenextnext, 1, 0, 'C');
$pdf->SetY($Y_Label_position + 15);
$pdf->SetX(5);
$pdf->Cell(100, 5, '', 0, 0, 'C');
$pdf->SetX(105);
$pdf->Cell(30, 5, 'New', 1, 0, 'C');
开发者ID:laiello,项目名称:ebpls,代码行数:31,代码来源:ebpls_comparative_business.php

示例9: while

     while ($rData = mysql_fetch_assoc($qData)) {
         $data = '';
         $sDatabatch = "select distinct tanggaltanam,supplerid,jenisbibit,tanggalproduksi from " . $dbname . ".bibitan_batch where batch='" . $rData['batch'] . "' ";
         $qDataBatch = mysql_query($sDatabatch) or die(mysql_error($sDatabatch));
         $rDataBatch = mysql_fetch_assoc($qDataBatch);
         $thnData = substr($rDataBatch['tanggaltanam'], 0, 4);
         $starttime = strtotime($rDataBatch['tanggaltanam']);
         //time();// tanggal sekarang
         $endtime = strtotime($tglSkrng);
         //tanggal pembuatan dokumen
         $timediffSecond = abs($endtime - $starttime);
         $base_year = min(date("Y", $thnData), date("Y", $thnSkrng));
         $diff = mktime(0, 0, $timediffSecond, 1, 1, $base_year);
         $jmlHari = date("j", $diff) - 1;
         $no += 1;
         $pdf->Cell(3 / 100 * $width, $height, $no, 1, 0, 'C', 1);
         $pdf->Cell(8 / 100 * $width, $height, $rData['batch'], 1, 0, 'C', 1);
         $pdf->Cell(17 / 100 * $width, $height, $optNm[$rData['kodeorg']], 1, 0, 'C', 1);
         $pdf->Cell(8 / 100 * $width, $height, number_format($rData['jumlah'], 0), 1, 0, 'R', 1);
         $pdf->Cell(11 / 100 * $width, $height, $rDataBatch['jenisbibit'], 1, 0, 'C', 1);
         $pdf->Cell(8 / 100 * $width, $height, tanggalnormal($rDataBatch['tanggaltanam']), 1, 0, 'C', 1);
         $pdf->Cell(8 / 100 * $width, $height, $jmlHari, 1, 1, 'C', 1);
         $total += $rData['jumlah'];
     }
     $pdf->Cell(28 / 100 * $width, $height, $_SESSION['lang']['total'], 1, 0, 'C', 1);
     $pdf->Cell(8 / 100 * $width, $height, number_format($total), 1, 0, 'R', 1);
     $pdf->Cell(27 / 100 * $width, $height, "", 1, 1, 'R', 1);
     $pdf->Output();
     break;
 case 'excel':
     $tab = "\n            <table>\n            <tr><td colspan=7 align=center>" . $_SESSION['lang']['laporanStockBIbit'] . "</td></tr>\n            <tr><td colspan=7></td><td></td></tr>\n            </table>\n            <table cellpadding=1 cellspacing=1 border=1 class=sortable>\n            <thead>\n            <tr class=rowheader>\n            <td bgcolor=#DEDEDE align=center>" . substr($_SESSION['lang']['nomor'], 0, 2) . "</td>\n            <td bgcolor=#DEDEDE align=center>" . $_SESSION['lang']['batch'] . "</td>\n            <td bgcolor=#DEDEDE align=center>" . $_SESSION['lang']['kodeorg'] . "</td>\n            <td bgcolor=#DEDEDE align=center>" . $_SESSION['lang']['saldo'] . "</td>\n            <td bgcolor=#DEDEDE align=center>" . $_SESSION['lang']['jenisbibit'] . "</td>\n            <td bgcolor=#DEDEDE align=center>" . $_SESSION['lang']['tgltanam'] . "</td>   \n            <td bgcolor=#DEDEDE align=center>" . $_SESSION['lang']['umur'] . " " . substr($_SESSION['lang']['afkirbibit'], 5) . "</td>\n            </tr>\n            </thead><tbody id=containDataStock>";
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:bibit_2_slave_keluar_masuk.php

示例10: Footer

        // Logo
        $this->Image('logo_pb.png', 10, 8, 33);
        // Arial bold 15
        $this->SetFont('Arial', 'B', 15);
        // Movernos a la derecha
        $this->Cell(80);
        // Título
        $this->Cell(30, 10, 'Title', 1, 0, 'C');
        // Salto de línea
        $this->Ln(20);
    }
    // Pie de página
    function Footer()
    {
        // Posición: a 1,5 cm del final
        $this->SetY(-15);
        // Arial italic 8
        $this->SetFont('Arial', 'I', 8);
        // Número de página
        $this->Cell(0, 10, 'Page ' . $this->PageNo() . '/{nb}', 0, 0, 'C');
    }
}
// Creación del objeto de la clase heredada
$pdf = new PDF();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont('Times', '', 12);
for ($i = 1; $i <= 40; $i++) {
    $pdf->Cell(0, 10, 'Imprimiendo línea número ' . $i, 0, 1);
}
$pdf->Output();
开发者ID:joshluq,项目名称:sysexcel,代码行数:31,代码来源:tuto2.php

示例11: while

$pdf->SetX(5);
$pdf->SetFont('Amble-Regular', '', 9);
$total = 0;
$sub = 0;
$repetido = 0;
$contador = 0;
$consulta = pg_query("select id_cliente,identificacion,nombres_cli,telefono,direccion_cli from clientes");
while ($row = pg_fetch_row($consulta)) {
    $repetido = 0;
    $total = 0;
    $sql1 = pg_query("select id_factura_venta,num_factura,num_autorizacion,fecha_autorizacion,fecha_caducidad FROM factura_venta where id_cliente='{$row['0']}' and estado='Activo' and fecha_caducidad between '{$fecha}' and '{$_GET['fin']}'");
    if (pg_num_rows($sql1)) {
        if ($repetido == 0) {
            $pdf->SetX(1);
            $pdf->SetFillColor(221, 221, 221);
            $pdf->Cell(80, 6, utf8_decode('RUC/CI: ' . $row[1]), 1, 0, 'L', 1);
            $pdf->Cell(125, 6, utf8_decode('NOMBRE: ' . $row[2]), 1, 1, 'L', 1);
            $pdf->SetX(1);
            $pdf->Cell(80, 6, utf8_decode('TELF.: ' . $row[3]), 1, 0, 'L', 1);
            $pdf->Cell(125, 6, utf8_decode('DIRECCIÓN:  ' . $row[4]), 1, 1, 'L', 1);
            $pdf->Ln(2);
            $pdf->SetX(1);
            $pdf->Cell(40, 6, utf8_decode("Nro Factura"), 1, 0, 'C', 0);
            $pdf->Cell(35, 6, utf8_decode("Tipo Documento"), 1, 0, 'C', 0);
            $pdf->Cell(50, 6, utf8_decode("Nro. Autorización"), 1, 0, 'C', 0);
            $pdf->Cell(40, 6, utf8_decode("Fecha Autorización"), 1, 0, 'C', 0);
            $pdf->Cell(40, 6, utf8_decode("Fecha caducidad"), 1, 1, 'C', 0);
            $repetido = 1;
        }
        while ($row1 = pg_fetch_row($sql1)) {
            $pdf->SetX(1);
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:reporte_autorizacion_caducidad.php

示例12: PDF

        $this->Cell(0, 3, 'Emitido por: ' . $usuarioNome);
    }
}
//Instancia a classe gerador de pdf
$pdf = new PDF();
//Define os atributos de propriedade do arquivo PDF
$pdf->SetCreator('edinger@bol.com.br');
$pdf->SetAuthor($usuarioNome . " - " . $empresaNome);
$pdf->SetTitle('Detalhamento do cliente');
$pdf->SetSubject('Relatório gerado automaticamente pelo sistema');
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetY(25);
$pdf->SetFont('Arial', 'B', 10);
$pdf->SetFillColor(178, 178, 178);
$pdf->Cell(0, 6, 'Detalhamento do Cliente', 1, 0, 'C', 1);
//Nova Linha
$pdf->ln();
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Tipo Cliente:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(39);
$pdf->Cell(0, 6, $conta_descricao, 0, 0, 'L');
$pdf->SetX(57);
$pdf->SetFont('Arial', 'B', 9);
$pdf->Cell(0, 6, 'Nome/Razão Social:', 1, 0, 'L');
$pdf->SetFont('Arial', 'I', 9);
$pdf->SetX(88);
$pdf->Cell(0, 6, $dados_conta['nome'], 0, 0, 'L');
$pdf->Image($conta_figura, 35, 32, 4, 4);
//Nova Linha
开发者ID:workcrm,项目名称:consoli,代码行数:31,代码来源:ClienteDetalheRelatorioPDF.php

示例13: die

     $rNm = mysql_fetch_assoc($qNm);
     $nm = $rNm['namaorganisasi'];
     $kd = $rData['kodeorg'];
     if (empty($nm)) {
         $sNm = "select namasupplier from " . $dbname . ".log_5supplier where kodetimbangan='" . $rData['kodecustomer'] . "'";
         $qNm = mysql_query($sNm) or die(mysql_error());
         $rNm = mysql_fetch_assoc($qNm);
         $nm = $rNamaSupp[$rData['kodecustomer']]['namasupplier'];
     }
 } else {
     $nm = $rNamaSupp[$rData['kodecustomer']]['namasupplier'];
 }
 $no += 1;
 $pdf->SetFont('Arial', '', 6);
 $brtNormal = $rData['netto'] - $rData['kgpotsortasi'];
 $pdf->Cell(3 / 100 * $width, $height, $no, 1, 0, 'C', 1);
 $pdf->Cell(8 / 100 * $width, $height, tanggalnormal($rData['tanggal']), 1, 0, 'C', 1);
 $pdf->Cell(15 / 100 * $width, $height, $nm, 1, 0, 'L', 1);
 $pdf->Cell(7 / 100 * $width, $height, $rData['notransaksi'], 1, 0, 'L', 1);
 $pdf->Cell(9 / 100 * $width, $height, $rData['nokendaraan'], 1, 0, 'L', 1);
 $pdf->Cell(8 / 100 * $width, $height, number_format($rData['netto']), 1, 0, 'R', 1);
 $pdf->Cell(8 / 100 * $width, $height, number_format($rData['kgpotsortasi']), 1, 0, 'R', 1);
 $pdf->Cell(8 / 100 * $width, $height, number_format($brtNormal), 1, 0, 'R', 1);
 $pdf->SetFont('Arial', '', 5);
 $pdf->Cell(7 / 100 * $width, $height, $rData['supir'], 1, 0, 'L', 1);
 $pdf->SetFont('Arial', '', 6);
 setIt($kamusharga[$rData['millcode']][$rData['tanggal']][$rData['kodecustomer']][$rData['kriteriabuah']], 0);
 $harga = $brtNormal * $kamusharga[$rData['millcode']][$rData['tanggal']][$rData['kodecustomer']][$rData['kriteriabuah']];
 //                        if($tipeIntex==0)$pdf->Cell(10/100*$width,$height,number_format($harga),1,0,'R',1); else
 $pdf->Cell(15 / 100 * $width, $height, $rData['nospb'], 1, 0, 'L', 1);
 $pdf->Cell(8 / 100 * $width, $height, number_format($rData['jjg'], 2), 1, 0, 'R', 1);
开发者ID:halimc17,项目名称:magsys,代码行数:31,代码来源:pabrik_slave_2penerimaantbs.php

示例14: switch

/*
 * 22/08/2009 00:53:38 CEST Claudio Giordano
 *
 * Dettaglio tabella:
 */
foreach ($Risultati as $key => $field) {
    if ($field['n_protocollo'] == "") {
        $Proto = "-";
    } else {
        $Proto = $field['n_protocollo'];
    }
    switch ($_GET['tipo']) {
        case "movimenti":
            //<!-- Intestazione movimento !-->
            $pdf->SetFont('Arial', 'B', 9);
            $pdf->Cell(45, 4, $field['id_piano_conti'] . " - " . Inverti_Data($field['data_reg']), 0, '', 'R');
            $pdf->Cell(100, 4, $Proto, 0);
            $pdf->Cell(30, 4, $field['cod_documento'], 0);
            $pdf->Cell(45, 4, Inverti_Data($field['data_doc']), 0);
            $pdf->Cell(45, 4, $field['tipo_doc'], 0);
            $pdf->Cell(25, 4, '', 0);
            $pdf->Ln();
            $pdf->SetFont('Arial', '', 9);
            //<!-- Dettaglio movimento !-->
            $DettaglioOp = GetRows("view_piano_conti", "id_piano_conti = '" . $field['id_piano_conti'] . "'", "", $db);
            foreach ($DettaglioOp as $key_dett => $field_dett) {
                $TotDare += $field_dett['importo_d'];
                $TotAvere += $field_dett['importo_a'];
                $pdf->Cell(45, 4, $bullet, 0, '', 'R');
                if ($field_dett['req_anag'] == 0) {
                    $Sottoconto = "(" . $field_dett['codice_sottoconto'] . ") " . $field_dett['ragione_sociale'];
开发者ID:clagiordano,项目名称:weblibs,代码行数:31,代码来源:frm_pdf_stato_conti.php

示例15: convertCurrency

            $row['amt'] = number_format($row['amt']);
            $data[] = $row;
        }
        $result->close();
        $pdf->AddCol('sno', '5%', 'S#', 'C');
        $pdf->AddCol('item', '50%', 'Item', 'L');
        $pdf->AddCol('pr_qty', '15%', 'Quantity', 'R');
        $pdf->AddCol('pr_rate', '15%', 'Rate', 'R');
        $pdf->AddCol('amt', '15%', 'Amount', 'R');
        $pdf->Table($data, $prop);
        $_cMargin = $pdf->cMargin;
        $pdf->cMargin = $prop['padding'];
        $pdf->SetFont($prop['thfont'][0], $prop['thfont'][1], $prop['thfont'][2]);
        $width = $pdf->w - $pdf->lMargin - $pdf->rMargin;
        $cellSize = 0.01 * $width;
        $pdf->Cell($cellSize * 45, 6, 'Total', 0, 0, 'C', false);
        $pdf->Cell($cellSize * 20, 6, number_format($total['qty']), 0, 0, 'R', false);
        $pdf->Cell($cellSize * 15, 6, '', 0, 0, 'L', false);
        $pdf->Cell($cellSize * 20, 6, number_format($total['amt']), 0, 0, 'R', false);
        $pdf->Ln();
        $pdf->Cell($cellSize * 100, 5, convertCurrency($total['amt'], getCurrencySymbol($_SESSION['company_id'])) . " only", 0, 0, 'L');
        $pdf->Ln();
        $pdf->cMargin = $_cMargin;
    }
    $mysqli->close();
    $pdf->Output("purchase_return.pdf", "D");
} else {
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
开发者ID:kashifnasim,项目名称:nexexcel,代码行数:31,代码来源:purchase_return.php


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