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


PHP Cezpdf::ezText方法代码示例

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


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

示例1: printPDF

function printPDF($res, $res2, $data)
{
    $pdf = new Cezpdf("LETTER");
    $pdf->ezSetMargins(72, 30, 50, 30);
    $pdf->selectFont('Helvetica');
    $opts = array('justification' => "center");
    $pdf->ezText($res['facility_address'], "", $opts);
    $pdf->ezText("\n" . $res2['patient_name'] . "\n" . xl('Date of Birth') . ": " . $res2['patient_DOB'] . "\n" . $res2['patient_address']);
    $pdf->ezText("\n");
    $opts = array('maxWidth' => 550, 'fontSize' => 8);
    $pdf->ezTable($data, "", $title, $opts);
    $pdf->ezText("\n\n\n\n" . xl('Signature') . ":________________________________", "", array('justification' => 'right'));
    $pdf->ezStream();
}
开发者ID:juggernautsei,项目名称:openemr,代码行数:14,代码来源:shot_record.php

示例2: printPDF

function printPDF($res, $res2, $data)
{
    require_once $GLOBALS['fileroot'] . "/library/classes/class.ezpdf.php";
    $pdf = new Cezpdf("LETTER");
    $pdf->ezSetMargins(72, 30, 50, 30);
    $pdf->selectFont($GLOBALS['fileroot'] . "/library/fonts/Helvetica.afm");
    $opts = array('justification' => "center");
    $pdf->ezText($res['facility_address'], "", $opts);
    $pdf->ezText("\n" . $res2['patient_name'] . "\n" . xl('Date of Birth') . ": " . $res2['patient_DOB'] . "\n" . $res2['patient_address']);
    $pdf->ezText("\n");
    $opts = array('maxWidth' => 550, 'fontSize' => 8);
    $pdf->ezTable($data, "", $title, $opts);
    $pdf->ezText("\n\n\n\n" . xl('Signature') . ":________________________________", "", array('justification' => 'right'));
    $pdf->ezStream();
}
开发者ID:mi-squared,项目名称:openemr,代码行数:15,代码来源:shot_record.php

示例3: Cezpdf

 function generar_pdf()
 {
     require_once toba_dir() . '/php/3ros/ezpdf/class.ezpdf.php';
     $pdf = new Cezpdf();
     $pdf->selectFont(toba_dir() . '/php/3ros/ezpdf/fonts/Helvetica.afm');
     $pdf->ezText('Ejemplo Firma Digital. Tiene dos attachments XML', 14);
     //-- Cuadro con datos
     $opciones = array('splitRows' => 0, 'rowGap' => 1, 'showHeadings' => true, 'titleFontSize' => 9, 'fontSize' => 10, 'shadeCol' => array(0.9, 0.9, 0.9), 'outerLineThickness' => 0.7, 'innerLineThickness' => 0.7, 'xOrientation' => 'center', 'width' => 500);
     $this->s__datos_juegos = toba::db()->consultar("SELECT * from ref_juegos");
     $pdf->ezTable($this->s__datos_juegos, '', 'Juegos', $opciones);
     $this->s__datos_deportes = toba::db()->consultar("SELECT * from ref_deportes");
     $pdf->ezTable($this->s__datos_deportes, '', 'Deportes', $opciones);
     $tmp = $pdf->ezOutput(0);
     $this->s__pdf = array();
     $sesion = get_firmador()->generar_sesion();
     $this->s__pdf['path'] = toba::proyecto()->get_path_temp() . "/doc{$sesion}_sinfirma.pdf";
     if (!file_put_contents($this->s__pdf['path'], $tmp)) {
         throw new toba_error("Imposible escribir en '{$this->s__pdf['path']}'. Chequee permisos");
     }
 }
开发者ID:emma5021,项目名称:toba,代码行数:20,代码来源:ci_firma_digital.php

示例4: Cezpdf

 function saldenliste_mv_pdf($monat, $jahr)
 {
     ob_clean();
     // ausgabepuffer leeren
     /* PDF AUSGABE */
     //include_once ('pdfclass/class.ezpdf.php');
     $pdf = new Cezpdf('a4', 'portrait');
     $pdf->selectFont('Helvetica.afm');
     $pdf->ezSetCmMargins(4.5, 0, 0, 0);
     /* Kopfzeile */
     $pdf->addJpegFromFile('includes/logos/logo_hv_sw.jpg', 220, 750, 175, 100);
     $pdf->setLineStyle(0.5);
     $pdf->addText(86, 743, 6, "BERLUS HAUSVERWALTUNG * Fontanestr. 1 * 14193 Berlin * Inhaber Wolfgang Wehrheim * Telefon: 89784477 * Fax: 89784479 * Email: info@berlus.de");
     $pdf->line(42, 750, 550, 750);
     /* Footer */
     $pdf->line(42, 50, 550, 50);
     $pdf->addText(170, 42, 6, "BERLUS HAUSVERWALTUNG *  Fontanestr. 1 * 14193 Berlin * Inhaber Wolfgang Wehrheim");
     $pdf->addText(150, 35, 6, "Bankverbindung: Dresdner Bank Berlin * BLZ: 100  800  00 * Konto-Nr.: 05 804 000 00 * Steuernummer: 24/582/61188");
     $pdf->addInfo('Title', "Saldenliste {$objekt_name} {$monatname} {$jahr}");
     $pdf->addInfo('Author', $_SESSION[username]);
     $pdf->ezStartPageNumbers(550, 755, 7, '', "Seite {PAGENUM} von {TOTALPAGENUM}");
     // echo "Monatsbericht Mieter - Monatsbericht Kostenkonten<br>";
     // echo "<h3>Aktuelle Mieterstatistik mit ausgezogene Mieter<br></h3>";
     $s = new statistik();
     $jahr = $_REQUEST[jahr];
     if (empty($jahr)) {
         $jahr = date("Y");
     } else {
         if (strlen($jahr) < 4) {
             $jahr = date("Y");
         }
     }
     // $jahr_monat = date("Y-m");
     // $jahr = date("Y");
     $monat = $_REQUEST[monat];
     if (empty($monat)) {
         $monat = date("m");
     } else {
         if (strlen($monat) < 2) {
             $monat = '0' . $monat;
         }
     }
     // $monat = '04';
     $jahr_monat = $jahr . '-' . $monat;
     // $jahr_vormonat = mktime(0, 0, 0, date("m")-1, date("d"), date("Y"));
     // $jahr_vormonat = date("Y-m",$jahr_vormonat);
     $bg = new berlussimo_global();
     $link = "?daten=mietvertrag_raus&mietvertrag_raus=saldenliste";
     $bg->objekt_auswahl_liste($link);
     $bg->monate_jahres_links($jahr, $link);
     if (isset($_SESSION['objekt_id'])) {
         $objekt_id = $_SESSION['objekt_id'];
         $einheit_info = new einheit();
         $o = new objekt();
         $objekt_name = $o->get_objekt_name($objekt_id);
         $monatname = monat2name($monat);
         $pdf->addText(70, 755, 10, "Saldenliste {$objekt_name} {$monatname} {$jahr}");
         $pdf->ezSetDy(25);
         $pdf->ezSetCmMargins(3, 3, 3, 3);
         $text_options = array(left => 0, justification => 'left');
         $pdf->ezText("<b>Einheit</b>", 8, $text_options);
         $pdf->ezSetDy(9);
         $text_options = array(left => 100, justification => 'left');
         $pdf->ezText("<b>Mieter</b>", 8, $text_options);
         $pdf->ezSetDy(9);
         $text_options = array(left => 270, justification => 'left');
         $pdf->ezText("<b>Einzug</b>", 8, $text_options);
         $pdf->ezSetDy(9);
         $text_options = array(left => 320, justification => 'left');
         $pdf->ezText("<b>Auszug</b>", 8, $text_options);
         $pdf->ezSetDy(9);
         $text_options = array(right => 0, justification => 'right');
         $pdf->ezText("<b>SALDO EUR</b>", 8, $text_options);
         /* Aktuell bzw. gewünschten Monat berechnen */
         $ob = new objekt();
         $einheiten_array = $ob->einheiten_objekt_arr($objekt_id);
         // $einheiten_array = $s->vermietete_monat_jahr($jahr_monat,$objekt_id, '');
         /*
          * echo "<pre>";
          * print_r($einheiten_array);
          * echo "<h1> EINHEITEN: $anzahl_aktuell</h1>";
          * $mv_array = $einheit_info->get_mietvertrag_ids('7');
          * print_r($mv_array);
          */
         $summe_sv = 0;
         $summe_mieten = 0;
         $summe_umlagen = 0;
         $summe_akt_gsoll = 0;
         $summe_g_zahlungen = 0;
         $summe_saldo_neu = 0;
         $anzahl_aktuell = count($einheiten_array);
         $miete = new miete();
         $zeilen_pro_seite = 60;
         $aktuelle_zeile = 0;
         for ($i = 0; $i < $anzahl_aktuell; $i++) {
             $mv_array = $einheit_info->get_mietvertraege_bis("" . $einheiten_array[$i]['EINHEIT_ID'] . "", $jahr, $monat);
             $mv_anzahl = count($mv_array);
             if (is_array($mv_array)) {
                 for ($b = 0; $b < $mv_anzahl; $b++) {
                     $mv_id = $mv_array[$b]['MIETVERTRAG_ID'];
//.........这里部分代码省略.........
开发者ID:BerlusGmbH,项目名称:Berlussimo,代码行数:101,代码来源:class_mietvertrag.php

示例5: WHERE

    // Baca input tanggal yang dikirimkan user
    $mulai = $_POST[thn_mulai] . '-' . $_POST[bln_mulai] . '-' . $_POST[tgl_mulai];
    $selesai = $_POST[thn_selesai] . '-' . $_POST[bln_selesai] . '-' . $_POST[tgl_selesai];
    // Query untuk merelasikan kedua tabel di filter berdasarkan tanggal
    $sql = mysql_query("SELECT orders.id_orders as faktur,DATE_FORMAT(tgl_order, '%d-%m-%Y') as tanggal,\n                    nama_produk,jumlah,harga \n                    FROM orders, orders_detail, produk  \n                    WHERE (orders_detail.id_produk=produk.id_produk) \n                    AND (orders_detail.id_orders=orders.id_orders) \n                    AND (orders.status_order='Lunas') \n                    AND (orders.tgl_order BETWEEN '{$mulai}' AND '{$selesai}')");
    $jml = mysql_num_rows($sql);
    if ($jml > 0) {
        $i = 1;
        while ($r = mysql_fetch_array($sql)) {
            $quantityharga = rp($r[jumlah] * $r[harga]);
            $hargarp = rp($r[harga]);
            $faktur = $r[faktur];
            $data[$i] = array('<b>No</b>' => $i, '<b>Faktur</b>' => $faktur, '<b>Tanggal</b>' => $r[tanggal], '<b>Nama Produk</b>' => $r[nama_produk], '<b>Qty</b>' => $r[jumlah], '<b>Harga</b>' => $hargarp, '<b>Sub Total</b>' => $quantityharga);
            $total = $total + $r[jumlah] * $r[harga];
            $totqu = $totqu + $r[jumlah];
            $i++;
        }
        $pdf->ezTable($data, '', '', '');
        $tot = rp($total);
        $pdf->ezText("\n\nTotal keseluruhan : Rp. {$tot}");
        $pdf->ezText("\nJumlah yang terjual : {$jml} unit");
        $pdf->ezText("Jumlah keseluruhan yg terjual: {$totqu} unit");
        // Penomoran halaman
        $pdf->ezStartPageNumbers(320, 15, 8);
        $pdf->ezStream();
    } else {
        $m = $_POST[tgl_mulai] . '-' . $_POST[bln_mulai] . '-' . $_POST[thn_mulai];
        $s = $_POST[tgl_selesai] . '-' . $_POST[bln_selesai] . '-' . $_POST[thn_selesai];
        echo "Tidak ada transaksi/order pada Tanggal {$m} s/d {$s}";
    }
}
开发者ID:muhammadmizwar,项目名称:UAS,代码行数:31,代码来源:pdf_toko.php

示例6: Cezpdf

    $q->addWhere('project_id=' . (int) $project_id);
    $pname = 'Project: ' . $q->loadResult();
} else {
    $pname = $AppUI->_('All Projects');
}
if ($err = db_error()) {
    $AppUI->setMsg($err, UI_MSG_ERROR);
    $AppUI->redirect();
}
$font_dir = W2P_BASE_DIR . '/lib/ezpdf/fonts';
require $AppUI->getLibraryClass('ezpdf/class.ezpdf');
$pdf = new Cezpdf($paper = 'A4', $orientation = 'landscape');
$pdf->ezSetCmMargins(1, 2, 1.5, 1.5);
$pdf->selectFont($font_dir . '/Helvetica.afm');
if ($locale_char_set == 'utf-8' && function_exists('utf8_decode')) {
    $pdf->ezText(utf8_decode(w2PgetConfig('company_name')), 12);
} else {
    $pdf->ezText(w2PgetConfig('company_name'), 12);
}
$date = new CDate();
$pdf->ezText("\n" . $date->format($df), 8);
$next_week = new CDate($date);
$next_week->addSpan(new Date_Span(array(7, 0, 0, 0)));
$pdf->selectFont($font_dir . '/Helvetica-Bold.afm');
$pdf->ezText("\n" . $AppUI->_('Project Upcoming Task Report'), 12);
if ($locale_char_set == 'utf-8' && function_exists('utf8_decode')) {
    $pdf->ezText(utf8_decode($pname), 15);
} else {
    $pdf->ezText($pname, 15);
}
$pdf->ezText($AppUI->_('Tasks Due to be Completed By') . ' ' . $next_week->format($df), 10);
开发者ID:joly,项目名称:web2project,代码行数:31,代码来源:upcoming.php

示例7: Cezpdf

            ?>
        <script language='JavaScript'>
        var win = top.printLogPrint ? top : opener.top;
        win.printLogPrint(window);
        </script>
	</div>
        </body>
        </html>
<?php 
            exit;
        } else {
            //print letterhead to pdf
            $pdf = new Cezpdf();
            $pdf->selectFont('Times-Bold');
            $pdf->ezSetCmMargins(3, 1, 1, 1);
            $pdf->ezText($physician_name, 12);
            $pdf->ezText($practice_address, 12);
            $pdf->ezText($practice_city . ', ' . $practice_state . ' ' . $practice_zip, 12);
            $pdf->ezText($practice_phone . ' (' . xl('Voice') . ')', 12);
            $pdf->ezText($practice_phone . ' (' . xl('Fax') . ')', 12);
            $pdf->ezText('', 12);
            $pdf->ezText(date("l, F jS, Y"), 12);
            $pdf->ezText('', 12);
            $pdf->selectFont('Helvetica');
            $pdf->ezText($content, 10);
            $pdf->selectFont('Times-Bold');
            $pdf->ezText('', 12);
            $pdf->ezText('', 12);
            if ($_GET['signer'] == 'patient') {
                $pdf->ezText("__________________________________________________________________________________", 12);
                $pdf->ezText(xl("Print name, sign and date."), 12);
开发者ID:juggernautsei,项目名称:openemr,代码行数:31,代码来源:rx_print.php

示例8: array

$encbarcode = $root_path . 'cache/barcodes/en_' . $enc . '.png';
# Patch for empty file names 2004-05-2 EL
if (empty($encounter['photo_filename'])) {
    $idpic = $root_path . 'fotos/registration/_nothing_';
} else {
    $idpic = $root_path . 'fotos/registration/' . $encounter['photo_filename'];
}
if ($lang == 'ar' || $lang == 'fa') {
    // for arabic lang, added  by Waleed Fathalla at 06/03/2004
    # Load the page header #1
    require '../std_plates/pageheader1ar.php';
    # Load the patient data plate #1
    require '../std_plates/patientdata1ar.php';
    $data = NULL;
    # make empty line
    $y = $pdf->ezText("\n", 14);
    $data[] = array(ar2uni($LDPatientData));
    $pdf->ezTable($data, '', '', array('xPos' => 'left', 'xOrientation' => 'right', 'showLines' => 0, 'fontSize' => $report_titlesize, 'showHeadings' => 0, 'shaded' => 2, 'shadeCol2' => array(0.9, 0.9, 0.9), 'width' => 555, 'cols' => array(0 => array('justification' => 'right'))));
    # make empty line
    $y = $pdf->ezText("\n", 14);
    # reset
    $data = NULL;
    $data[] = array(formatDate2Local($encounter['encounter_date'], $date_format), ar2uni("{$LDAdmitDate} :"));
    $data[] = array(formatDate2Local($encounter['encounter_date'], $date_format, TRUE, TRUE), ar2uni("{$LDAdmitTime} :"));
    $data[] = array('');
    $data[] = array(ar2uni($encounter['title']), ar2uni("{$LDTitle} :"));
    $data[] = array($encounter['sex'], ar2uni("{$LDSex} :"));
    $data[] = array($encounter['blood_group'], ar2uni("{$LDBloodGroup} :"));
    $data[] = array(ar2uni($eclass), ar2uni("{$LDAdmitType} :"));
    if ($encounter['encounter_class_nr'] == 1) {
        $data[] = array(ar2uni($current_ward_name), ar2uni("{$LDWard} :"));
开发者ID:patmark,项目名称:care2x-tz,代码行数:31,代码来源:admitdata.php

示例9: date

$pdf->line(10, 50, 578, 50);
// Teks kiri bawah
$pdf->addText(30, 34, 8, 'Dicetak tgl:' . date('d-m-Y, H:i:s'));
$pdf->closeObject();
// Tampilkan object di semua halaman
$pdf->addObject($all, 'all');
// Koneksi ke database dan tampilkan datanya
include "../../../config/koneksi.php";
// Query untuk merelasikan kedua tabel
$nima = @$_POST['nim'];
$hts = substr(@$_POST['tahun'], 0, 4);
$ktr = @$_POST['semester'];
$hts = substr($_POST['tahun'], 0, 4);
$tampiljdwl = mysql_query("SELECT a.*,b.nmmatkul from jadwal a inner join matakuliah b on a.kdmatkul=b.kdmatkul AND a.tahun='{$hts}' order by a.hari desc");
$b = $_POST['tahun'] + 1;
$jml = mysql_num_rows($tampiljdwl);
if ($jml != 0) {
    $i = 1;
    while ($r = mysql_fetch_array($tampiljdwl)) {
        $data[$i] = array('<b>Tahun Ajaran</b>' => $r['tahun'], '<b>Kode-MK</b>' => $r['kdmatkul'], '<b>Nama-MK</b>' => $r['nmmatkul'], '<b>Kelas</b>' => $r['kdkelas'], '<b>Hari</b>' => $r['hari'], '<b>Jam Mulai</b>' => $r['jam_mulai'], '<b>Jam Selesai</b>' => $r['jam_selesai'], '<b>Kd.Dosen</b>' => $r['kode_dosen']);
        $ketua = $r['nmketua'];
        $i++;
    }
    $pdf->ezTable($data, '', '', '');
    $pdf->ezText("\n                                            Bandung," . date('d-m-Y'));
    // Penomoran halaman
    $pdf->ezStartPageNumbers(320, 15, 8);
    $pdf->ezStream();
} else {
    echo "Jadwal belum ada";
}
开发者ID:ahmadisurahman05,项目名称:PORTALAKADEMIK,代码行数:31,代码来源:cetakjadwal.php

示例10: Cezpdf

conectarse();
$pdf = new Cezpdf('a4');
$tmp = array('b' => 'Helvetica-Bold', 'i' => 'Helvetica-Oblique', 'bi' => 'Helvetica-BoldOblique', 'ib' => 'Helvetica-BoldOblique', 'bb' => 'Times-Roman');
$pdf->setFontFamily('helvetica', $tmp);
$pdf->selectFont('fonts/helvetica.afm');
$pdf->ezSetCmMargins(1, 1, 1.5, 1.5);
//Data loading
$sql = "select p.clave_producto,p.nombre_producto,prov.nombre,\n    p.cantidad_actual,p.status\n    from productos p\n    inner join proveedores prov on prov.clave_proveedor = p.proveedor \n    GROUP BY nombre \n    ORDER BY p.clave_producto ASC ";
$rs = mysql_query($sql);
if (mysql_num_rows($rs) > 0) {
    $ixx = 0;
    while ($datatmp = mysql_fetch_assoc($rs)) {
        $ixx = $ixx + 1;
        $data[] = array_merge($datatmp, array('clave_producto' => $ixx));
    }
}
$titles = array('clave_producto' => '<b>Id</b>', 'nombre_producto' => '<b>Nombre Producto</b>', 'nombre' => '<b>Proveedor</b>', 'cantidad_actual' => '<b>Cantidad Actual</b>', 'status' => '<b>Estado</b>');
$options = array('shadeCol' => array(0.9, 0.9, 0.9), 'xOrientation' => 'center', 'width' => 580, 'shadeHeadingCol' => array(0.6, 0.6, 0.5), 'justification' => 'center', 'cols' => array('clave_producto' => array('justification' => 'center'), 'nombre_producto' => array('justification' => 'center'), 'nombre' => array('justification' => 'center'), 'cantidad_actual' => array('justification' => 'center')));
$pdf->ezImage('../img/libro.jpg', 0, 60, 'none', 'left');
$pdf->line($pdf->ez['leftMargin'], $pdf->ez['bottomMargin'] + 10, $pdf->ez['pageWidth'] - $pdf->ez['rightMargin'], $pdf->ez['bottomMargin'] + 10);
//the bottom line
$pdf->addText(200, 790, 12, "<b>Distribuciones y Representaciones Arvizu </b>\n");
$pdf->addText(250, 770, 12, "<i>!Leer Aumenta el Saber! </i>\n");
$pdf->ezText("Estado de Productos\n", 16, array('left' => '200'));
$pdf->ezTable($data, $titles, '', $options);
$pdf->ezText("\n\n\n", 10);
$pdf->addText(50, 30, 8, "<b>Fecha: </b>\n" . date("d/m/Y"));
$pdf->ezStartPageNumbers($pdf->ez['pageWidth'] - ($pdf->ez['rightMargin'] - 10), $pdf->ez['bottomMargin'], 8, 'PAGINA', '{PAGENUM} de {TOTALPAGENUM}', 1);
$pdf->addText(50, 30, 10);
//bottom text
$pdf->ezStream();
开发者ID:blacks15,项目名称:proyecto-restaurant,代码行数:31,代码来源:rptestado_producto.php

示例11: Cezpdf

$f = mysql_fetch_object($r);
include 'class.ezpdf.php';
$pdf = new Cezpdf('LETTER', 'portrait');
#					 t, b, l, r
$pdf->ezSetMargins(50, 70, 50, 50);
#w = 612 h = 792
$pdf->setColor(0.16, 0.38, 0.61);
$pdf->selectFont('fonts/Helvetica.afm');
$img = ImageCreatefromjpeg('../img/logo.jpg');
$pdf->addImage($img, 50, 697, 47, 50);
$pdf->addText(110, 722, 24, '<b>Paqueteria y Mensajeria en Movimiento</b>');
$pdf->setColor(0.79, 0.67, 0.11);
$pdf->addText(110, 702, 16, '<b>Convenio de venta de guias</b>');
$pdf->line(50, 690, 560, 690);
$pdf->setColor(0.25, 0.25, 0.25);
$pdf->ezText("\n\n\n\n{$f->fechaactual}", 12, array('justification' => 'right'));
$pdf->setColor(0.79, 0.67, 0.11);
$pdf->ezText("<b>DATOS DEL CLIENTE</b>", 12, array('justification' => 'left'));
$pdf->setColor(0.25, 0.25, 0.25);
$pdf->ezText(strtoupper("<b> NOMBRE:</b> {$f->ncliente}"), 10, array('justification' => 'left'));
$pdf->ezText(strtoupper("<b> DIRECCION:</b> {$f->calle} NO. {$f->numero}.    <b>COL:</b> {$f->colonia}.    <b>CP:</b> {$f->cp}"), 10, array('justification' => 'left'));
$pdf->ezText(strtoupper("<b> CIUDAD:</b> {$f->poblacion}.    <b>ESTADO:</b> {$f->estado}.    <b>PAIS:</b> {$f->pais} "), 10, array('justification' => 'left'));
$pdf->ezText(strtoupper("<b> TELEFONO:</b> {$f->telefono}.    <b>CELULAR:</b> {$f->celular}."), 10, array('justification' => 'left'));
$pdf->ezText(strtoupper("<b> EMAIL:</b> {$f->email}"), 10, array('justification' => 'left'));
#$pdf->line(50,590,560,590);
$s = "SELECT (SELECT COUNT(*) FROM cconvenio_servicios WHERE idconvenio = '{$_GET['folio']}' AND tipo = 'CONVENIO') c1,\n\t(SELECT COUNT(*) FROM cconvenio_servicios_sucursales WHERE idconvenio = '{$_GET['folio']}' AND tipo = 'SUCONVENIO') c2,\n\t(SELECT COUNT(*) FROM cconvenio_servicios_sucursales WHERE idconvenio = '{$_GET['folio']}' AND tipo = 'SRCONVENIO') c3";
$rx = mysql_query($s, $l) or die($s);
$fx = mysql_fetch_object($rx);
if ($f->precioporkg == 1 || $f->precioporcaja == 1 || $f->descuentosobreflete == 1 || $fx->c1 > 0 || $fx->c2 > 0 || $fx->c3 > 0) {
    $pdf->setColor(0.79, 0.67, 0.1);
    $pdf->ezText("<b>\nDATOS DEL CONVENIO PARA GUIAS DE VENTANILLA</b>", 12, array('justification' => 'left'));
开发者ID:sigmadesarrollo,项目名称:logisoft,代码行数:31,代码来源:ejemplo.php

示例12: array

 $vaKepada[] = array("1" => "", "2" => "", "3" => "", "4" => "NIP", "5" => ":", "6" => $vaLeader['nip']);
 $vaKepada[] = array("1" => "", "2" => "", "3" => "", "4" => "Jabatan", "5" => ":", "6" => $vaLeader['jabatan']);
 foreach ($vaPengikut as $key => $vaData) {
     $vaPengikut_Gol = scSys::GetKeterangan("Title,Description", "Id = '{$vaData['golongan']}'", "sc_master");
     $vaKepada[] = array("1" => "", "2" => "", "3" => $nRow++ . ".", "4" => "Nama", "5" => ":", "6" => $vaData['nama']);
     $vaKepada[] = array("1" => "", "2" => "", "3" => "", "4" => "Pangkat / gol", "5" => ":", "6" => $vaPengikut_Gol['Description'] . " / " . $vaPengikut_Gol['Title']);
     $vaKepada[] = array("1" => "", "2" => "", "3" => "", "4" => "NIP", "5" => ":", "6" => $vaData['nip']);
     $vaKepada[] = array("1" => "", "2" => "", "3" => "", "4" => "Jabatan", "5" => ":", "6" => $vaData['jabatan']);
 }
 $vaUntuk = array();
 $vaUntuk[] = array("1" => "Untuk", "2" => ":", "3" => $dbRow['purpose']);
 $nFont = 11;
 $pdf = new Cezpdf("A4", "P", $vaOpt, '0');
 $pdf->ezImage(scSys::GetConfig("sc_header"), false, 100, 600);
 $pdf->ezTable($vaTable1, "", "", array("showLines" => 0, "showHeadings" => 0, "fontSize" => $nFont, "cols" => array("x" => array("width" => 60, "wrap" => 1), "1" => array("width" => 20, "wrap" => 1), "2" => array("width" => 2), "3" => array("width" => 18, "wrap" => 1))));
 $pdf->ezText("");
 $pdf->ezText("<u><b>PERINTAH PERJALANAN DINAS</b></u>", $nFont + 2, array("justification" => "center"));
 $pdf->ezText("(SPPD)", $nFont + 2, array("justification" => "center"));
 $pdf->ezText("");
 $pdf->ezTable($vaTable2, "", "", array("showLines" => 0, "showHeadings" => 0, "fontSize" => $nFont, "cols" => array("1" => array("width" => 4, "wrap" => 1), "2" => array("width" => 40, "wrap" => 1), "3" => array("width" => 56, "wrap" => 1))));
 $pdf->ezText("");
 $pdf->ezText("");
 $pdf->ezTable($vaTanggal, "", "", array("showLines" => 0, "showHeadings" => 0, "fontSize" => $nFont, "cols" => array("x" => array("width" => 50, "wrap" => 1), "1" => array("width" => 25, "wrap" => 1), "2" => array("width" => 2), "3" => array("width" => 23, "wrap" => 1))));
 $pdf->ezText("");
 $pdf->ezTable($vaTtd, "", "", array("showLines" => 0, "showHeadings" => 0, "fontSize" => $nFont, "cols" => array("x" => array("width" => 50, "wrap" => 1, "justification" => "center"), "1" => array("width" => 40, "wrap" => 1, "justification" => "center"))));
 $pdf->ezNewPage();
 $pdf->ezImage(scSys::GetConfig("sc_header"), false, 100, 600);
 $pdf->ezText("<u><b>SURAT PERINTAH TUGAS</b></u>", $nFont + 2, array("justification" => "center"));
 $pdf->ezText("NOMOR : ", $nFont + 2, array("justification" => "center"));
 $pdf->ezText("");
 $pdf->ezTable($vaDasar, "", "", array("showLines" => 0, "showHeadings" => 0, "fontSize" => $nFont, "cols" => array("1" => array("width" => 20, "wrap" => 1), "2" => array("width" => 2), "3" => array("wrap" => 1))));
开发者ID:risatya,项目名称:webapp_sppd,代码行数:31,代码来源:rptsppd.rpt.php

示例13: GradebookDataGenerator

    $allcat = $cats[0]->get_subcategories($stud_id, $course_code, $session_id);
    $alleval = $cats[0]->get_evaluations($stud_id, true);
    $alllink = $cats[0]->get_links($stud_id, true);
    if (isset($_GET['exportpdf'])) {
        $datagen = new GradebookDataGenerator($allcat, $alleval, $alllink);
        $header_names = array(get_lang('Name'), get_lang('Description'), get_lang('Weight'), get_lang('Date'), get_lang('Results'));
        $data_array = $datagen->get_data(GradebookDataGenerator::GDG_SORT_NAME, 0, null, true);
        $newarray = array();
        foreach ($data_array as $data) {
            $newarray[] = array_slice($data, 1);
        }
        $pdf = new Cezpdf();
        $pdf->selectFont(api_get_path(LIBRARY_PATH) . 'ezpdf/fonts/Courier.afm');
        $pdf->ezSetMargins(30, 30, 50, 30);
        $pdf->ezSetY(810);
        $pdf->ezText(get_lang('FlatView') . ' (' . api_convert_and_format_date(null, DATE_FORMAT_SHORT) . ' ' . api_convert_and_format_date(null, TIME_NO_SEC_FORMAT) . ')', 12, array('justification' => 'center'));
        $pdf->line(50, 790, 550, 790);
        $pdf->line(50, 40, 550, 40);
        $pdf->ezSetY(750);
        $pdf->ezTable($newarray, $header_names, '', array('showHeadings' => 1, 'shaded' => 1, 'showLines' => 1, 'rowGap' => 3, 'width' => 500));
        $pdf->ezStream();
        exit;
    }
} else {
    //Student view
    //in any other case (no search, no pdf), print the available gradebooks
    // Important note: loading a category will actually load the *contents* of
    // this category. This means that, to show the categories of a course,
    // we have to show the root category and show its subcategories that
    // are inside this course. This is done at the time of calling
    // $cats[0]->get_subcategories(), not at the time of doing Category::load()
开发者ID:jloguercio,项目名称:chamilo-lms,代码行数:31,代码来源:index.php

示例14: sum

$pdf->closeObject();
// Tampilkan object di semua halaman
$pdf->addObject($all, 'all');
// Baca input tanggal yang dikirimkan user
$mulai = $_GET[tgl1];
$selesai = $_GET[tgl2];
// Koneksi ke database dan tampilkan datanya
// Query untuk merelasikan kedua tabel di filter berdasarkan tanggal
$sql = mysql_query("select kd_penj.tanggal,kd_penj.kd_pjl,penjualan.id_product,barang.nama,\n                                           penjualan.harga,penjualan.jumlah,penjualan.subtotal\n                                           from penjualan,kd_penj,barang\n                                           where kd_penj.kd_pjl=penjualan.id_transaksi and barang.kode=penjualan.id_product and kd_penj.tanggal\n\t\t\t\t\t\t\t\t\t\t between '{$mulai}' and '{$selesai}'\n\t\t\t\t\t");
$sum = mysql_fetch_array(mysql_query("SELECT sum(total) as total from \n\t\tkd_penj where tanggal between '{$mulai}' and '{$selesai}'"));
$jml = mysql_num_rows($sql);
if ($jml > 0) {
    $i = 1;
    while ($r = mysql_fetch_array($sql)) {
        $hargarp = rp($r[4]);
        $subrp = rp($r[6]);
        $data[$i] = array('<b>No</b>' => $i, '<b>Tanggal</b>' => $r[0], '<b>Kode Transaksi</b>' => $r[1], '<b>Nama Barang</b>' => $r[3], '<b>Harga</b>' => $hargarp, '<b>Jumlah</b>' => $r[5], '<b>SubTotal</b>' => $subrp);
        $i++;
    }
    $pdf->ezTable($data, '', '', '');
    $tot = rp($sum[total]);
    $pdf->ezText("\n\nTotal keseluruhan : Rp. {$tot}");
    $pdf->ezText("Pencarian dari Tanggal {$mulai} s/d {$selesai}");
    // Penomoran halaman
    $pdf->ezStartPageNumbers(320, 15, 8);
    $pdf->ezStream();
} else {
    $m = $_POST[tgl_1] . '-' . $_POST[bln_1] . '-' . $_POST[thn_1];
    $s = $_POST[tgl_2] . '-' . $_POST[bln_2] . '-' . $_POST[thn_2];
    echo "<script>window.alert('Tidak ada laporan Penjualan pada Tanggal {$m} s/d {$s}');\n  window.location=('" . $uri . "/apotek/out.php')</script>";
}
开发者ID:bagustilas,项目名称:bigbookaccounting,代码行数:31,代码来源:lap_pnj_pdf.php

示例15: sprintf

        $stud_fn = $user['firstname'];
        $stud_ln = $user['lastname'];
        $certif_text = sprintf(get_lang('CertificateWCertifiesStudentXFinishedCourseYWithGradeZ'), $organization_name, $stud_fn . ' ' . $stud_ln, $category[0]->get_name(), $scorecourse_display);
        $certif_text = str_replace("\\n", "\n", $certif_text);
        $date = api_convert_and_format_date(null, DATE_FORMAT_SHORT);
        $pdf = new Cezpdf('a4', 'landscape');
        $pdf->selectFont(api_get_path(LIBRARY_PATH) . 'ezpdf/fonts/Courier.afm');
        $pdf->ezSetMargins(30, 30, 50, 50);
        //line Y coordinates in landscape mode are upside down (500 is on top, 10 is on the bottom)
        $pdf->line(50, 50, 790, 50);
        $pdf->line(50, 550, 790, 550);
        $pdf->ezSetY(450);
        //@todo replace image
        //$pdf->ezImage(api_get_path(SYS_CODE_PATH).'img/dokeos_logo_certif.png',1,400,'','center','');
        $pdf->ezSetY(480);
        $pdf->ezText($certif_text, 28, array('justification' => 'center'));
        //$pdf->ezSetY(750);
        $pdf->ezSetY(50);
        $pdf->ezText($date, 18, array('justification' => 'center'));
        $pdf->ezSetY(580);
        $pdf->ezText($organization_name, 22, array('justification' => 'left'));
        $pdf->ezSetY(580);
        $pdf->ezText($portal_name, 22, array('justification' => 'right'));
        $pdf->ezStream();
    }
    exit;
} else {
    $cats = Category::load($category);
    $stud_id = api_is_allowed_to_edit() ? null : api_get_user_id();
    $allcat = $cats[0]->get_subcategories($stud_id);
    $alleval = $cats[0]->get_evaluations($stud_id);
开发者ID:secuencia24,项目名称:chamilo-lms,代码行数:31,代码来源:gradebook.php


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