本文整理汇总了PHP中Cezpdf::ezSetDy方法的典型用法代码示例。如果您正苦于以下问题:PHP Cezpdf::ezSetDy方法的具体用法?PHP Cezpdf::ezSetDy怎么用?PHP Cezpdf::ezSetDy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cezpdf
的用法示例。
在下文中一共展示了Cezpdf::ezSetDy方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bukti
public function bukti($a)
{
$pdfku = new Cezpdf("A5", 'landscape');
//595.28,841.29
$pdfku->addInfo('Title', 'List Barang');
$pdfku->ezSetCmMargins("3", "3", "3", "3");
$barang = $this->barang->detail_peminjaman($a);
$pdfku->ezSetY(100);
$pdfku->ezSetDy(230);
//$pdfku->addJpegFromFile("icon.jpg",20,300,-1);
$pdfku->addText(120, $pdfku->y + 30, 18, "Bukti Peminjaman Inventaris Laboratorium");
$pdfku->addText(160, $pdfku->y + 10, 15, "Komputasi Berbasis Jaringan (KBJ)");
$cols_db = array('id_barang' => 'ID Barang', 'nama_barang' => 'Nama Barang');
$option_db = array('showHeadings' => 2, 'shaded' => 0, 'xPos' => 'center', 'xOrientation' => 'center', 'fontSize' => 12, 'cols' => array('id_barang' => array('justification' => 'center', 'width' => '120'), 'nama_barang' => array('justification' => 'center', 'width' => '120')));
$pdfku->ezTable($barang, $cols_db, '', $option_db);
$pdfku->addText(100, $pdfku->y - 40, 12, "Mengetahui ");
$pdfku->addText(90, $pdfku->y - 60, 12, "Administrator Lab");
$pdfku->addText(400, $pdfku->y - 60, 12, "Kepala Laboratorium");
$pdfku->addText(80, $pdfku->y - 130, 10, "__________________");
$pdfku->addText(400, $pdfku->y - 130, 10, "__________________");
$pdfku->ezStream();
}
示例2: array
$pdf->selectFont('./fonts/Helvetica.afm');
$pdf->openHere("Fit");
// Image
#ezImage(image,[padding],[width],[resize],[justification],[array border]);
#$pdf->addPngFromFile($pathvars["fileroot"]."/images/net/wappen.png",20,780,70);
#$pdf->addPngFromFile($pathvars["fileroot"]."/images/net/auge.png",500,780,70);
$pdf->addPngFromFile($pathvars["fileroot"] . "/images/net/kleines-wappen.png", 30, 780, 46);
$pdf->addPngFromFile($pathvars["fileroot"] . "/images/net/auge.png", 300, 780, 70);
// eine linie
$pdf->line(20, 770, 560, 770);
$pdf->addText(120, 790, '20', '<b>Vermessungsamt</b>');
$pdf->addText(380, 790, '20', '<i>Friedberg</i>');
// seiten nummern
$pdf->ezStartPageNumbers(300, 20, 12, '', '', 1);
// hier geht es los
$pdf->ezSetDy(-60);
// spaltenweise ausgabe an
$pdf->ezColumnsStart(array("num" => 2, "gap" => 20));
// wichtig: damit der die ausgabe am spaltenbeginn steht
#$pdf->ezSetDy(10);
// Textblock
#$pdf->ezText($text,10,array( "justification" => "full" )); // "leading"=>20, "spacing"=>1
// Tabellen
$data = array(array('num' => 1, 'name' => 'gandalf', 'type' => 'wizard'), array('num' => 2, 'name' => 'bilbo', 'type' => 'hobbit', 'url' => 'http://www.ros.co. nz/pdf/'), array('num' => 3, 'name' => 'frodo', 'type' => 'hobbit'), array('num' => 4, 'name' => 'saruman', 'type' => 'bad dude', 'url' => 'http://sourceforge.net/projects/pdf-php'), array('num' => 5, 'name' => 'sauron', 'type' => 'really bad dude'));
for ($i = 0; $i <= 20; $i++) {
$pdf->ezTable($data, '', '', array("fontSize" => 9, "width" => 260));
}
// umbruch
$pdf->ezSetDy(-10);
// Textblock
#$pdf->ezText($text,10,array( "justification" => "full" )); // "leading"=>20, "spacing"=>1
示例3: alert
$ls_cant_mes);
}
if($lb_valido==false) // Existe algún error ó no hay registros
{
print("<script language=JavaScript>");
print(" alert('No hay nada que Reportar');");
print(" close();");
print("</script>");
}
else // Imprimimos el reporte
{
error_reporting(E_ALL);
set_time_limit(1800);
$io_pdf=new Cezpdf('LEGAL','landscape'); // Instancia de la clase PDF
$io_pdf->selectFont('../../shared/ezpdf/fonts/Helvetica.afm'); // Seleccionamos el tipo de letra
$io_pdf->ezSetDy(0.5);
$io_pdf->ezSetCmMargins(7.08,3,3,3); // Configuración de los margenes en centímetros
uf_print_encabezado_pagina($ls_titulo,$io_pdf); // Imprimimos el encabezado de la página
$io_pdf->ezStartPageNumbers(980,40,10,'','',1); // Insertar el número de página
$ld_total_monto_programado=0;
$ld_total_monto_programado_acumulado=0;
$ld_total_monto_ejecutado=0;
$ld_total_monto_ejecutado_acumulado=0;
$ld_total_variacion_absoluta=0;
$ld_total_porcentaje_variacion=0;
$ld_total_variacion_absoluta_acumulada=0;
$ld_total_porcentaje_variacion_acumulada=0;
$ld_total_reprog_proxima=0;
$li_total=$io_report->dts_reporte->getRowCount("sc_cuenta");
for($z=1;$z<=$li_total;$z++)
{
示例4: pdfoutput__make_pdf_calendar
function pdfoutput__make_pdf_calendar($displayfrom = 0, $wholeyear = false, $admin = false, $forward = 0, $file = false)
{
global $settings, $lang;
if ($displayfrom == 0) {
$displayfrom = time();
}
// prepare pdf
include_once '../tagsets/class.ezpdf.php';
$pdf = new Cezpdf('a4');
$pdf->selectFont('../tagsets/fonts/Times-Roman.afm');
$fontsize = $settings['calendar_pdf_table_fontsize'] ? $settings['calendar_pdf_table_fontsize'] : 8;
$titlefontsize = $settings['calendar_pdf_title_fontsize'] ? $settings['calendar_pdf_title_fontsize'] : 12;
//start building calendar
$displayfrom_lower = $displayfrom;
$displayfrom_upper = date__skip_months($forward, $displayfrom_lower);
if ($wholeyear) {
$displayfrom_upper = mktime(0, 0, 0, 1, 1, date('Y', $displayfrom) + 1);
}
$results = calendar__get_events($admin, $displayfrom_lower, $displayfrom_upper, false, true);
$month_names = explode(",", $lang['month_names']);
//loop through each month
for ($itime = $displayfrom_lower; $itime <= $displayfrom_upper; $itime = date__skip_months(1, $itime)) {
$year = date("Y", $itime);
$month = date("m", $itime);
$weeks = days_in_month($month, $year);
$table_title = $month_names[$month - 1] . ' ' . $year;
$table_headings = array();
$calendar__weekdays = explode(",", $lang['format_datetime_weekday_abbr']);
for ($i3 = 1; $i3 <= 7; ++$i3) {
if (!isset($lang['format_datetime_firstdayofweek_0:Su_1:Mo']) || !$lang['format_datetime_firstdayofweek_0:Su_1:Mo']) {
$wdindex = $i3 - 2;
if ($wdindex < 0) {
$wdindex = 6;
}
} else {
$wdindex = $i3 - 1;
}
$table_headings[$i3] = $calendar__weekdays[$wdindex];
}
$table_data = array();
for ($i2 = 1; $i2 <= count($weeks); ++$i2) {
$las1 = array();
$las2 = array();
for ($i3 = 1; $i3 <= 7; ++$i3) {
if (!isset($weeks[$i2][$i3])) {
$las1[$i3] = "";
$las2[$i3] = "";
} else {
$las1[$i3] = $weeks[$i2][$i3];
$las2[$i3] = "";
//the date is the key of the $results array for easy searching
$today = $year * 10000 + $month * 100 + $weeks[$i2][$i3];
if (isset($results[$today])) {
foreach ($results[$today] as $item) {
$las2[$i3] .= $item['display_time'];
$las2[$i3] .= "\n" . "<i>" . $item['location'] . "</i>\n";
if ($admin || $settings['public_calendar_hide_exp_name'] != 'y') {
$las2[$i3] .= '<b>' . $item['title'] . '</b>';
} else {
$las2[$i3] .= '<b>' . $lang['calendar_experiment_session'] . '</b>';
}
$las2[$i3] .= "\n";
if ($admin) {
$las2[$i3] .= experiment__list_experimenters($item['experimenters'], false, true) . "\n";
}
if ($item['type'] == "experiment_session") {
if ($admin) {
$las2[$i3] .= $item['participants_registered'] . " (" . $item['participants_needed'] . "," . $item['participants_reserve'] . ")";
} else {
$las2[$i3] .= $statusdata[$item['status']]['message'];
}
}
$las2[$i3] .= "\n\n";
}
}
}
}
$table_data[] = $las1;
$table_data[] = $las2;
}
$y = $pdf->ezTable($table_data, $table_headings, $table_title, array('gridlines' => 31, 'showHeadings' => 1, 'shaded' => 2, 'shadeCol' => array(1, 1, 1), 'shadeCol2' => array(0.9, 0.9, 1), 'fontSize' => $fontsize, 'titleFontSize' => $titlefontsize, 'rowGap' => 1, 'colGap' => 3, 'innerLineThickness' => 0.5, 'outerLineThickness' => 1, 'maxWidth' => 500, 'width' => 500, 'protectRows' => 2));
$pdf->ezSetDy(-20);
}
if ($file) {
$pdffilecode = $pdf->output();
return $pdffilecode;
//$fname ="/apache/orsee/admin/pdfdir/test.pdf";
//$fp = fopen($fname,'w');
//fwrite($fp,$pdffilecode);
//fclose($fp);
//echo '<A HREF="pdfdir/test.pdf" target="_blank">pdf file</A><BR><BR>';
//$pdfcode = str_replace("\n","\n<br>",htmlspecialchars($pdfcode));
//echo trim($pdfcode);
} else {
$pdf->ezStream(array('Content-Disposition' => 'calendar.pdf', 'Accept-Ranges' => 0, 'compress' => 1));
}
}
示例5: kontenrahmen
function ihr_pdf_einzeln(Cezpdf &$pdf, $p_id)
{
$this->get_hga_profil_infos($p_id);
$this->p_ihr_gk_id;
$kk = new kontenrahmen();
$kontenrahmen_id = $kk->get_kontenrahmen('Geldkonto', $this->p_ihr_gk_id);
$bb = new buchen();
$kontostand11 = $bb->kontostand_tagesgenau_bis($this->p_ihr_gk_id, "01.01.{$this->p_jahr}");
if (!$kontostand11) {
$kontostand11 = $this->get_kontostand_manuell($this->p_ihr_gk_id, $this->p_jahr . "-01-01");
}
$kontostand11_a = nummer_punkt2komma_t($kontostand11);
$ze = 0;
$tab_arr[$ze]['TEXT'] = "I. Anfangsbestand 01.01.{$this->p_jahr}";
$tab_arr[$ze]['SOLL'] = "{$kontostand11_a} € ";
$tab_arr[$ze]['IST'] = "{$kontostand11_a} € ";
$ze++;
$soll_summe_wp = $this->get_soll_betrag_wp(6040, $this->p_wplan_id);
$soll_summe_wp_a = nummer_punkt2komma_t($soll_summe_wp);
$tab_arr[$ze]['TEXT'] = "II. Soll-Zuführung zur Rücklage laut WP";
$tab_arr[$ze]['SOLL'] = "";
$tab_arr[$ze]['IST'] = "{$soll_summe_wp_a} € ";
$ze++;
$iii_arr[] = $this->III_tab_anzeigen_pdf($p_id);
if (is_array($iii_arr)) {
$iii_arr = $iii_arr[0];
for ($a = 0; $a < sizeof($iii_arr); $a++) {
$text3 = $iii_arr[$a]['TEXT'];
$ist3 = $iii_arr[$a]['IST'];
$tab_arr[$ze]['TEXT'] = $text3;
$tab_arr[$ze]['IST'] = $ist3;
$ze++;
}
}
$soll_endbestand = $kontostand11 + $soll_summe_wp;
$soll_endbestand_a = nummer_punkt2komma_t($soll_endbestand);
$tab_arr[$ze]['TEXT'] = "IV. Soll-Endbestand 31.12.{$this->p_jahr}";
$tab_arr[$ze]['SOLL'] = "";
$tab_arr[$ze]['IST'] = "{$soll_endbestand_a} € ";
$n_jahr = $this->p_jahr + 1;
$kontostand11 = $bb->kontostand_tagesgenau_bis($this->p_ihr_gk_id, "01.01.{$n_jahr}");
if (!$kontostand11) {
$kontostand11 = $this->get_kontostand_manuell($this->p_ihr_gk_id, $this->p_jahr . "-12-31");
}
$kontostand11_a = nummer_punkt2komma_t($kontostand11);
$ze++;
$tab_arr[$ze]['TEXT'] = "V. Endbestand 31.12.{$this->p_jahr}";
$tab_arr[$ze]['SOLL'] = "";
$tab_arr[$ze]['IST'] = "{$kontostand11_a} € ";
$this->footer_zahlungshinweis = $bpdf->zahlungshinweis;
$pdf->setColor(0.6, 0.6, 0.6);
$pdf->filledRectangle(50, 690, 500, 15);
$pdf->setColor(0, 0, 0);
$pdf->ezSety(720);
// $pdf->ezSetY(650);
$datum = date("d.m.Y");
$p = new partners();
$p->get_partner_info($_SESSION['partner_id']);
$pdf->ezText("{$p->partner_ort}, den {$datum}", 10, array('justification' => 'right'));
$pdf->ezSetY(705);
$o = new objekt();
$o->get_objekt_infos($this->p_objekt_id);
$pdf->ezText(" <b>Entwicklung der Instandhaltungsrücklage {$this->p_jahr} | OBJEKT: {$o->objekt_kurzname}</b>", 10, array('justification' => 'full'));
$pdf->ezSetDy(-15);
$pdf->ezStopPageNumbers();
// seitennummerirung beenden
$p = new partners();
$p->get_partner_info($_SESSION['partner_id']);
$cols = array('TEXT' => "", 'IST' => "IST-BETRAG");
$pdf->ezTable($tab_arr, $cols, "", array('rowGap' => 1.5, 'showLines' => 1, 'showHeadings' => 1, 'shaded' => 1, 'shadeCol' => array(0.9, 0.9, 0.9), 'titleFontSize' => 7, 'fontSize' => 10, 'xPos' => 'left', 'xOrientation' => 'right', 'width' => 500, 'cols' => array('TEXT' => array('justification' => 'left'), 'SOLL' => array('justification' => 'right', 'width' => 100), 'IST' => array('justification' => 'right', 'width' => 100))));
$this->get_hga_profil_infos($p_id);
$d = new detail();
$anteile_g = $d->finde_detail_inhalt('OBJEKT', $this->p_objekt_id, 'Gesamtanteile');
$einheiten_arr = $this->einheiten_weg_tabelle_arr($this->p_objekt_id);
$anz_einheiten = count($einheiten_arr);
$anz_konten = count($tab_arr);
$gkkk = new geldkonto_info();
$gkkk->geld_konto_details($this->p_ihr_gk_id);
$datum_heute = date("d.m.Y");
$kontostand_aktuell = nummer_punkt2komma_t($bb->kontostand_tagesgenau_bis($this->p_ihr_gk_id, "{$datum_heute}"));
for ($a = 0; $a < $anz_einheiten; $a++) {
$pdf->ezNewPage();
$e_kn = $einheiten_arr[$a]['EINHEIT_KURZNAME'];
$einheit_id = $einheiten_arr[$a]['EINHEIT_ID'];
$einheit_anteile = $d->finde_detail_inhalt('EINHEIT', $einheit_id, 'WEG-Anteile');
$pdf->setColor(0.6, 0.6, 0.6);
$pdf->filledRectangle(50, 690, 500, 15);
$pdf->setColor(0, 0, 0);
$pdf->ezSety(720);
$pdf->ezText("{$p->partner_ort}, den {$datum}", 10, array('justification' => 'right'));
$pdf->ezSetDy(-2);
$pdf->ezText("<b> Anteil in der Instandhaltungsrücklage für {$e_kn} | OBJEKT: {$o->objekt_kurzname} {$this->p_jahr}</b>", 10, array('justification' => 'full'));
$pdf->ezSetDy(-10);
$pdf->ezText("<b>Geldkontobezeichnung:</b> {$gkkk->geldkonto_bez}", 9);
$pdf->ezText("<b>Geldinstitut:</b> {$gkkk->kredit_institut}", 9);
$pdf->ezText("<b>IBAN:</b> {$gkkk->IBAN1}", 9);
$pdf->ezText("<b>BIC:</b> {$gkkk->BIC}", 9);
for ($b = 0; $b < $anz_konten; $b++) {
$tab_arr_e[$b]['TEXT'] = $tab_arr[$b]['TEXT'];
$tab_arr_e[$b]['IST'] = $tab_arr[$b]['IST'];
//.........这里部分代码省略.........
示例6: creaPDF
//.........这里部分代码省略.........
if ($emisordomicilioNode->getAttribute('localidad') != "") {
$emisor .= "\n" . utf8_decode($emisordomicilioNode->getAttribute('localidad'));
}
if ($emisordomicilioNode->getAttribute('municipio') != "") {
$emisor .= "\n" . utf8_decode($emisordomicilioNode->getAttribute('municipio'));
}
if ($emisordomicilioNode->getAttribute('estado') != "") {
$emisor .= ", " . utf8_decode($emisordomicilioNode->getAttribute('estado'));
}
if ($emisordomicilioNode->getAttribute('codigoPostal') != "") {
$emisor .= "\nCP " . utf8_decode($emisordomicilioNode->getAttribute('codigoPostal'));
}
$emisor .= " " . utf8_decode($emisordomicilioNode->getAttribute('pais'));
$sucursal = "";
if ($row_sucursal['sucursal'] != "Principal_") {
$sucursal = "Sucursal " . utf8_decode($row_sucursal['sucursal']) . "\n";
$sucursal .= utf8_decode($expedidoNode->getAttribute('calle') . " " . $expedidoNode->getAttribute('noExterior') . " " . $expedidoNode->getAttribute('noInterior')) . "\n";
$sucursal .= utf8_decode($expedidoNode->getAttribute('colonia')) . "\n";
$sucursal .= utf8_decode($expedidoNode->getAttribute('municipio')) . ", " . utf8_decode($expedidoNode->getAttribute('estado')) . "\n";
$sucursal .= "CP " . utf8_decode($expedidoNode->getAttribute('codigoPostal')) . " " . utf8_decode($expedidoNode->getAttribute('pais'));
}
////////// i. Nombre del emisor
$tableData = array(array("dato" => "<b>Obintel S.A. de C.V.</b>"));
$colOptions = array("dato" => array('justification' => 'left', 'width' => 200));
$options = array('showLines' => 0, 'showHeadings' => 0, 'shaded' => 0, 'shadeCol' => array(1, 1, 1), 'fontSize' => 9, 'textCol' => array(0, 0, 0), 'rowGap' => 0, 'colGap' => 0, 'xPos' => 240, 'xOrientation' => 'right', 'width' => 200, 'cols' => $colOptions, 'innerLineThickness' => 0.3, 'outerLineThickness' => 0.3);
// Dibuja la tabla nombre del emisor
$pdf->ezSetY(714);
$pdf->ezTable($tableData, $colNames, "", $options);
////////// i. Datos del emisor y de la sucursal
$tableData = array(array("emisor" => $emisor, "espacio" => "", "sucursal" => $sucursal));
$colOptions = array("emisor" => array('justification' => 'left', 'width' => 205), "espacio" => array('justification' => 'left', 'width' => 10), "sucursal" => array('justification' => 'left', 'width' => 120));
$options = array('showLines' => 0, 'showHeadings' => 0, 'shaded' => 0, 'shadeCol' => array(1, 1, 1), 'fontSize' => 7, 'textCol' => array(0, 0, 0), 'rowGap' => 0, 'colGap' => 0, 'xPos' => 240, 'xOrientation' => 'right', 'width' => 335, 'cols' => $colOptions, 'innerLineThickness' => 0.3, 'outerLineThickness' => 0.3);
// Dibuja la tabla
$pdf->ezSetDy(-6);
$pdf->ezTable($tableData, "", "", $options);
////////// i. Datos del documento
$foliodocto = rellena("0", 6, $comprobanteNode->getAttribute('folio'));
$seriedocto = $comprobanteNode->getAttribute('serie');
if (!empty($seriedocto)) {
$foliodocto = $seriedocto . "-" . rellena("0", 6, $comprobanteNode->getAttribute('folio'));
}
$fechastr = $comprobanteNode->getAttribute('fecha');
$fechatok = explode("T", $fechastr);
$toksf = explode("-", $fechatok[0]);
$fechastr = $toksf[2] . "-" . $toksf[1] . "-" . $toksf[0] . " " . $fechatok[1];
$ncert = $comprobanteNode->getAttribute('noCertificado');
$aprob = $comprobanteNode->getAttribute('anoAprobacion') . "-" . $comprobanteNode->getAttribute('noAprobacion');
$tableData = array(array("dato" => "<b>" . $tipoDocto . "</b>"), array("dato" => "<b>" . $foliodocto . "</b>"), array("dato" => "Fecha"), array("dato" => $fechastr), array("dato" => "Certificado"), array("dato" => $ncert), array("dato" => "Año y No. Aprobación"), array("dato" => $aprob));
$colOptions = array("dato" => array('justification' => 'left', 'width' => 120));
$options = array('showLines' => 1, 'showHeadings' => 0, 'shaded' => 2, 'shadeCol' => array(1, 1, 1), 'shadeCol2' => array(0.9, 0.9, 0.9), 'fontSize' => 7, 'textCol' => array(1, 1, 1), 'rowGap' => 2, 'colGap' => 5, 'xPos' => 455, 'xOrientation' => 'right', 'width' => 120, 'cols' => $colOptions, 'innerLineThickness' => 0.3, 'outerLineThickness' => 0.3);
// Dibuja la tabla datos del documento
//$pdf->ezSetDy(-12);
$pdf->ezTable($tableData, "", "", $options);
////////// i. Datos del cliente
$tableData = array(array("dato" => "<b>Cliente</b>"), array("dato" => utf8_decode($receptorNode->getAttribute('nombre'))), array("dato" => utf8_decode($receptorNode->getAttribute('rfc'))), array("dato" => utf8_decode($receptordomicilioNode->getAttribute('calle')) . " " . utf8_decode($receptordomicilioNode->getAttribute('noExterior')) . " " . utf8_decode($receptordomicilioNode->getAttribute('noInterior')) . " " . utf8_decode($receptordomicilioNode->getAttribute('colonia'))), array("dato" => utf8_decode($receptordomicilioNode->getAttribute('municipio')) . ", " . utf8_decode($receptordomicilioNode->getAttribute('estado'))), array("dato" => utf8_decode($receptordomicilioNode->getAttribute('estado'))), array("dato" => utf8_decode($receptordomicilioNode->getAttribute('codigoPostal'))));
$colOptions = array("dato" => array('justification' => 'left', 'width' => 410));
$options = array('showLines' => 1, 'showHeadings' => 0, 'shaded' => 1, 'shadeCol' => array(0.9, 0.9, 0.9), 'fontSize' => 7, 'textCol' => array(0, 0, 0), 'rowGap' => 2, 'colGap' => 5, 'xPos' => 35, 'xOrientation' => 'right', 'width' => 410, 'cols' => $colOptions, 'innerLineThickness' => 0.3, 'outerLineThickness' => 0.3);
// Dibuja la tabla datos del cliente
$pdf->ezSetDy(84);
$pdf->ezTable($tableData, "", "", $options);
$actualY = $pdf->y;
$pdf->setColor(0, 0, 0);
$pdf->filledRectangle(30, $actualY - 30, 540, 18);
$pdf->ezSetY($actualY - 15);
$pdf->setColor(1, 1, 1);
$pdf->ezText("<b>Cant</b>", 7, array('left' => 18, 'justification' => 'left'));
示例7: date
// ##überschrift##############################
$heute = date("Y-m-d");
$heute_deutsch = $buchung->date_mysql2german($heute);
// ##erste seite
$pdf = new Cezpdf('a4', 'portrait');
$pdf->ezSetCmMargins(4.3, 0, 1.5, 2.5);
$berlus_schrift = 'Times-Roman.afm';
$text_schrift = 'Helvetica.afm';
// links,
$pdf->addJpegFromFile('includes/logos/Slogo_78_31.jpg', 190, 730, 200, 80);
$pdf->setLineStyle(0.5);
// line(x1,y1,x2,y2) /links anfang hoehe weite hoehe
$pdf->line(42, 722, 550, 722);
$pdf->selectFont($berlus_schrift);
$pdf->ezText("BERLUS HAUSVERWALTUNG * Fontanestr. 1 * 14193 Berlin", 7);
$pdf->ezSetDy(-20);
$pdf->selectFont($berlus_schrift);
$pdf->addText(400, 680, 10, 'Telefon (030) 89784477');
$pdf->addText(400, 665, 10, 'Telefax (030) 89784479');
$pdf->addText(400, 650, 10, 'Email: info@berlus.de');
$pdf->addText(400, 635, 10, '<c:uline><b>Sprechzeiten</b></c:uline>');
$pdf->addText(400, 620, 10, 'Dienstag:');
$pdf->addText(455, 620, 10, '9:00-12:00');
$pdf->addText(400, 605, 10, 'Donnerstag:');
$pdf->addText(450, 605, 10, '14:00-17:00');
$pdf->addText(400, 590, 10, '<c:uline><b>Internet</b></c:uline>');
$pdf->addText(400, 575, 10, 'Berlus.de');
$pdf->addText(400, 560, 10, 'Hausverwaltung-Forum.de');
$pdf->addText(400, 545, 10, 'Hausverwaltung-Magazin.de');
// echo "<p class=\"ueberschrift_mietkonto\"><b>Mietkonto Einheit: $einheit_kurzname</b> Anschrift: $einheit_info->haus_strasse $einheit_info->haus_nummer $einheit_info->haus_plz $einheit_info->haus_stadt</p>";
// ####Ausgabe von Personendaten####################
示例8: ezSetDy
public function ezSetDy($dy, $mod = '')
{
parent::ezSetDy($dy, $mod);
return $this->y;
}
示例9: explode
//.........这里部分代码省略.........
$ergebnis = $g_beteiligung + $summe_nebenkosten_jahr;
// $ergebnis = $summe_nebenkosten_jahr- substr($g_beteiligung,1);
if ($ergebnis < 0) {
$txt = 'Nachzahlung';
$ergebnis_a = substr($ergebnis, 1);
}
if ($ergebnis > 0) {
$txt = 'Guthaben';
$ergebnis_a = $ergebnis;
}
if ($ergebnis == null) {
$txt = 'Ergebnis';
$ergebnis_a = $ergebnis;
}
$tab[$b + 3]['KOSTENART'] = "<b>{$txt}</b>";
$tab[$b + 3]['BET_G'] = '<b>' . nummer_punkt2komma($ergebnis_a) . '</b>';
$pdf->ezNewPage();
$pdf->ezStopPageNumbers();
// seitennummerirung beenden
/*
* $this->wirt_ges_qm = $wirt->g_qm;
* $this->wirt_g_qm_gewerbe = $wirt->g_qm_gewerbe;
* $this->wirt_g_qm_wohnen = $this->wirt_ges_qm - $this->wirt_g_qm_gewerbe;
*/
// $cols1 = array('KOSTENART'=>"Betriebskostenart","KOSTEN_GESAMT"=>"Kosten gesamt $QM_G_OBJEKT m²",'KOSTEN_GEWERBE'=>"Gewerbeanteil $QM_G_GEWERBE m²",'KOSTEN_WOHNRAUM'=>"Wohnanteil $QM_G m²");
// $cols1 = array('KOSTENART'=>"Betriebskostenart","KOSTEN_GESAMT"=>"Kosten gesamt $this->wirt_ges_qm_a m²",'KOSTEN_GEWERBE'=>"Gewerbeanteil $this->wirt_g_qm_gewerbe_a m²",'KOSTEN_WOHNRAUM'=>"Wohnanteil $this->wirt_g_qm_wohnen_a m²");
$cols1 = array('KOSTENART' => "Betriebskostenart", "KOSTEN_GESAMT" => "Kosten gesamt", 'KOSTEN_GEWERBE' => "Gewerbeanteil {$this->wirt_g_qm_gewerbe_a} m²", 'KOSTEN_WOHNRAUM' => "Wohnanteil {$this->wirt_g_qm_wohnen_a} m²");
// $i=$pdf->ezStartPageNumbers(545,728,6,'','Seite {PAGENUM} von {TOTALPAGENUM}',1);
$p = new partners();
$p->get_partner_info($_SESSION[partner_id]);
$pdf->addText(480, 697, 8, "{$p->partner_ort}, {$this->bk_berechnungs_datum_d}");
// $zeitraum = "01.09.2011 - 31.12.2011";
$pdf->ezText('<b>Betriebskostenabrechnung für den Zeitraum: ' . $zeitraum . '</b>', 8);
$pdf->ezSetDy(-15);
$pdf->ezText("<b>{$this->bk_bezeichnung}</b>", 8);
$pdf->ezText("Wirtschaftseinheit: {$this->bk_kos_bez} ", 8);
$pdf->ezText('Mieternummer: ' . $mieternummer . " - {$einheit_typ}", 8);
$pdf->ezText('Mieter: ' . $empf, 8);
$pdf->ezSetDy(-20);
/* Ergebnis in die �bersichtstabelle */
$pdf->ergebnis_tab["{$mieternummer} - {$empf}"]['ERGEBNIS'] = $ergebnis;
$pdf->ergebnis_tab["{$mieternummer} - {$empf}"]['SUMME_NK'] = $summe_nebenkosten_jahr;
$pdf->ezTable($kontroll_tab_druck, $cols1, "Aufteilung Gewerbe- / Wohnfläche", array('showHeadings' => 1, 'shaded' => 1, 'titleFontSize' => 7, 'fontSize' => 7, 'xPos' => 55, 'xOrientation' => 'right', 'width' => 500, 'cols' => array('KOSTENART' => array('justification' => 'left'), 'KOSTEN_GESAMT' => array('justification' => 'right'), 'KOSTEN_GEWERBE' => array('justification' => 'right'), 'KOSTEN_WOHNRAUM' => array('justification' => 'right'))));
$pdf->ezSetDy(-20);
$pdf->ezTable($tab, $cols, "{$label}", array('showHeadings' => 1, 'shaded' => 1, 'titleFontSize' => 8, 'fontSize' => 7, 'xPos' => 55, 'xOrientation' => 'right', 'width' => 500, 'cols' => array('KOSTENART' => array('justification' => 'left'), 'G_BETRAG' => array('justification' => 'right', 'width' => 60), 'G_HNDL' => array('justification' => 'right', 'width' => 60), 'ANTEIL' => array('justification' => 'right', 'width' => 40), 'UMLAGE' => array('justification' => 'right', 'width' => 45), 'G_KOS_BEZ' => array('justification' => 'right', 'width' => 45), 'G_KEY' => array('justification' => 'right', 'width' => 55), 'QM_ME' => array('justification' => 'right', 'width' => 50), 'BET_G' => array('justification' => 'right', 'width' => 45), 'BET_HNDL' => array('justification' => 'right', 'width' => 65))));
// $pdf->ezStopPageNumbers(1,1,$i); // ENDE BERECHNUNGSSEITEN
if ($empf_kos_typ == 'MIETVERTRAG') {
$mz = new miete();
$mk = new mietkonto();
$monat = date("m");
$jahr = date("Y");
$ber_datum_arr = explode('-', $this->bk_berechnungs_datum);
$ver_datum_arr = explode('-', $this->bk_verrechnungs_datum);
$monat_b = $ber_datum_arr[1];
$jahr_b = $ber_datum_arr[0];
$monat_v = $ver_datum_arr[1];
$jahr_v = $ver_datum_arr[0];
$mk->kaltmiete_monatlich_ink_vz($empf_kos_id, $monat_b, $jahr_b);
$mk->ausgangs_kaltmiete_a = nummer_punkt2komma($mk->ausgangs_kaltmiete);
// $mk->heizkosten_monatlich($empf_kos_id,$monat,$jahr);
// $mk->betriebskosten_monatlich($empf_kos_id,$monat,$jahr);
// $mk->nebenkosten_monatlich($empf_kos_id,$monat,$jahr);
$anp_tab[0]['KOSTENKAT'] = 'Miete kalt';
$anp_tab[0]['AKTUELL'] = "{$mk->ausgangs_kaltmiete_a} €";
$anp_tab[0]['ANPASSUNG'] = '--';
$mk1 = new mietkonto();
示例10: explode
if ($key == "abinteressen") {
$int = explode(";", $data[$key]);
foreach ($int as $value) {
$komma = ", ";
if ($interessen == "") {
$komma = "";
}
$interessen .= $komma . $value;
}
$table[$i][] = $interessen;
} else {
$table[$i][] = $data[$key];
}
}
// hauptteil ausgeben
$pdf->ezSetDy(123);
$pdf->ezText($header_allgemein, 11);
$pdf->ezSetDy(-10);
$lage = $pdf->ezTable($table, '', '', array("showLines" => 0, "showHeadings" => 0, "shaded" => 0, "fontSize" => 11, "xPos" => 'left', "xOrientation" => 'right', "width" => 450, "cols" => $col_width_allg, "protectRows" => 2));
$pdf->line($links, $lage - 30, $rechts + 117, $lage - 30);
// amtsleiter oder private angaben ausgeben
if (is_array($al_or_priv)) {
$pdf->ezSetDy(-60);
$pdf->ezText($theader, 11);
$pdf->ezSetDy(-10);
$lage = $pdf->ezTable($al_or_priv, '', '', array("showLines" => 0, "showHeadings" => 0, "shaded" => 0, "fontSize" => 11, "xPos" => 'left', "xOrientation" => 'right', "maxWidth" => 528, "maxWidth" => 450, "cols" => $col_width_priv, "protectRows" => 2));
}
// redaktion oder ansprechpartner ausgeben
if (is_array($red_or_ans)) {
$pdf->ezSetDy($abstand);
$pdf->ezText($aheader, 11);
示例11: creaPDF
//.........这里部分代码省略.........
////////// i. Nombre del emisor
$colNames = array();
$tableData = array(array("dato" => $emisor1));
$colOptions = array("dato" => array('justification' => 'left', 'width' => 200));
$options = array('showLines' => 0, 'showHeadings' => 0, 'shaded' => 0, 'shadeCol' => array(1, 1, 1), 'fontSize' => 9, 'textCol' => array(0, 0, 0), 'rowGap' => 0, 'colGap' => 0, 'xPos' => 200, 'xOrientation' => 'right', 'width' => 200, 'cols' => $colOptions, 'innerLineThickness' => 0.3, 'outerLineThickness' => 0.3);
// Dibuja la tabla nombre del emisor
$pdf->ezSetY(765);
$pdf->ezTable($tableData, $colNames, "", $options);
////////// i. Datos del emisor y de la sucursal
$tableData = array(array("emisor" => $emisor, "espacio" => "", "sucursal" => $sucursal));
$colOptions = array("emisor" => array('justification' => 'left', 'width' => 150), "espacio" => array('justification' => 'left', 'width' => 3), "sucursal" => array('justification' => 'left', 'width' => 100));
$options = array('showLines' => 0, 'showHeadings' => 0, 'shaded' => 0, 'shadeCol' => array(1, 1, 1), 'fontSize' => 7, 'textCol' => array(0, 0, 0), 'rowGap' => 0, 'colGap' => 0, 'xPos' => 190, 'xOrientation' => 'right', 'width' => 335, 'cols' => $colOptions, 'innerLineThickness' => 0.3, 'outerLineThickness' => 0.3);
// Dibuja la tabla
$pdf->ezTable($tableData, "", "", $options);
////////// i. Datos del documento
$foliodocto = rellena("0", 6, $comprobanteNode['folio']);
$seriedocto = $comprobanteNode['serie'];
if (!empty($seriedocto)) {
$foliodocto = $seriedocto . "-" . rellena("0", 6, $comprobanteNode['folio']);
}
$fechastr = $comprobanteNode['fecha'];
$fechatok = explode("T", $fechastr);
$toksf = explode("-", $fechatok[0]);
$fechastr = $toksf[2] . "-" . $toksf[1] . "-" . $toksf[0] . " " . $fechatok[1];
$fechastrcfdi = $row_factura['FechaTimbrado'];
$ncert = $comprobanteNode['noCertificado'];
$aprob = $row_factura['noCertificadoSAT'];
//chs
$tableData = array(array("dato" => "<b>" . $tipoDocto1 . $tipoDocto2 . $tipoDocto3 . "</b>"), array("dato" => "<b>" . $foliodocto . "</b>"), array("dato" => "FECHA DE EMISION"), array("dato" => $fechastr), array("dato" => "LUGAR DE EXPEDICION"), array("dato" => utf8_decode($info_xtra->LugarExpedicion)), array("dato" => "FECHA DE CERTIFICACION"), array("dato" => $fechastrcfdi), array("dato" => "No. de Serie del Certificado del Emisor"), array("dato" => $ncert), array("dato" => "No. de Serie del Certificado del SAT"), array("dato" => $aprob), array("dato" => "Folio Fiscal"), array("dato" => $row_factura['uuid']));
$colOptions = array("dato" => array('justification' => 'left', 'width' => 120));
/*JASR*/
$options = array('showLines' => 1, 'showHeadings' => 0, 'shaded' => 2, 'shadeCol' => array(1, 1, 1), 'shadeCol2' => array(0.9, 0.9, 0.9), 'fontSize' => 7, 'textCol' => array(1, 1, 1), 'rowGap' => 2, 'colGap' => 5, 'xPos' => 455, 'xOrientation' => 'right', 'width' => 120, 'cols' => $colOptions, 'innerLineThickness' => 0.3, 'outerLineThickness' => 0.3);
// Dibuja la tabla datos del documento
$pdf->ezSetDy(70);
$pdf->ezTable($tableData, "", "", $options);
////////// i. Datos del cliente
$noInterior = isset($receptordomicilioNode['noInterior']) ? utf8_decode($receptordomicilioNode['noInterior']) : "";
$municipio = isset($receptordomicilioNode['municipio']) ? $receptordomicilioNode['municipio'] : "";
$localidadCliente = isset($receptordomicilioNode['localidad']) ? utf8_decode($receptordomicilioNode['localidad']) : "";
$tableData1 = array(array("cliente" => "<b>Cliente</b>"), array("cliente" => utf8_decode($receptorNode['nombre'])), array("cliente" => "RFC: " . utf8_decode($receptorNode['rfc'])), array("cliente" => utf8_decode($receptordomicilioNode['calle']) . " " . utf8_decode($receptordomicilioNode['noExterior']) . " {$noInterior} "), array("cliente" => utf8_decode($receptordomicilioNode['colonia']) . " " . $localidadCliente), array("cliente" => utf8_decode($municipio) . ", " . utf8_decode($receptordomicilioNode['estado']) . " " . utf8_decode($receptordomicilioNode['codigoPostal']) . " \n" . utf8_decode($receptordomicilioNode['pais'])), array("cliente" => utf8_decode("Atención: " . $info_xtra->Receptor->contacto . " Cliente: " . $info_xtra->Receptor->noCliente)), array("cliente" => utf8_decode("Tel: " . $info_xtra->Receptor->telefono)));
$formaDePago = isset($comprobanteNode['formaDePago']) ? $comprobanteNode['formaDePago'] : "PAGO EN UNA SOLA EXHIBICION";
$metodoPago = isset($comprobanteNode['metodoDePago']) ? $comprobanteNode['metodoDePago'] : "No Identificado";
$numeroCuentaPago = isset($comprobanteNode['NumCtaPago']) ? $comprobanteNode['NumCtaPago'] : "No Identificado";
$tableData2 = array(array("expedido" => "Expedido en: " . utf8_decode($info_xtra->LugarExpedicion)), array("expedido" => "Forma de Pago: " . utf8_decode($formaDePago)), array("expedido" => "Metodo de Pago: " . utf8_decode($metodoPago)), array("expedido" => "No. de Cuenta: " . utf8_decode($numeroCuentaPago)), array("expedido" => "Condiciones de Pago: " . utf8_decode($comprobanteNode['condicionesDePago'])), array("expedido" => "Regimen Fiscal: " . utf8_decode(preg_replace("/Ii/", "II", ucwords(strtolower($regimenFiscal))))), array("expedido" => "Tipo de Cambio: " . $comprobanteNode['TipoCambio'] . " Moneda: " . $comprobanteNode['Moneda']), array("expedido" => "Elaboro: " . utf8_decode($info_xtra->Vendedor)), array("expedido" => utf8_decode("Póliza: " . $info_xtra->NumeroPoliza . " SAP No: " . $info_xtra->NumeroPedido)));
$tableData = array();
$aux = count($tableData1) >= count($tableData2) ? $tableData1 : $tableData2;
$cont = 0;
foreach ($aux as $arr) {
array_push($tableData, array("cliente" => $tableData1[$cont]["cliente"], "expedido" => $tableData2[$cont]["expedido"]));
$cont++;
}
$colNames = array("cliente" => "", "expedido" => "");
$colOptions = array("cliente" => array('justification' => 'left', 'width' => 205), "expedido" => array('justification' => 'left', 'width' => 205));
$options = array('showLines' => 1, 'showHeadings' => 0, 'shaded' => 1, 'shadeCol' => array(0.9, 0.9, 0.9), 'fontSize' => 7, 'textCol' => array(0, 0, 0), 'rowGap' => 2, 'colGap' => 5, 'xPos' => 35, 'xOrientation' => 'right', 'width' => 410, 'cols' => $colOptions, 'innerLineThickness' => 0.3, 'outerLineThickness' => 0.3);
$pdf->ezSetDy(125);
$pdf->ezTable($tableData, $colNames, "", $options);
//encabezado
//error_log(print_r($info_xtra,true));
$tableData = array(array("dato" => utf8_decode($info_xtra->Consumo->NotaEncabezado)));
$colOptions = array("dato" => array('justification' => 'left', 'width' => 540));
$options = array('showLines' => 1, 'showHeadings' => 0, 'shaded' => 0, 'shadeCol' => array(0.9, 0.9, 0.9), 'fontSize' => 7, 'textCol' => array(0, 0, 0), 'rowGap' => 5, 'colGap' => 5, 'xPos' => 35, 'xOrientation' => 'right', 'width' => 120, 'cols' => $colOptions, 'innerLineThickness' => 0.3, 'outerLineThickness' => 0.3);
$pdf->ezSetDy(-10);
$pdf->ezTable($tableData, "", "", $options);
$actualY = $pdf->y;
$pdf->setColor(0, 0, 0);
$pdf->filledRectangle(30, $actualY - 30, 540, 18);
示例12: mietvertraege
function pdf_einauszugsbestaetigung(Cezpdf $pdf, $mv_id, $einzug = 0)
{
$pdf->ezSetMargins(135, 70, 50, 50);
$mv = new mietvertraege();
$mv->get_mietvertrag_infos_aktuell($mv_id);
$oo = new objekt();
$oo->get_objekt_infos($mv->objekt_id);
if ($mv->anzahl_personen > 1) {
$ist_sind = 'sind';
} else {
$ist_sind = 'ist';
}
if ($einzug == '0') {
$pdf->ezText("<b>Einzugsbestätigung</b>", 18, array('justification' => 'left'));
$pdf->ezText("{$mv->einheit_kurzname}", 10, array('justification' => 'right'));
} else {
$pdf->ezText("<b>Auszugsbestätigung</b>", 18, array('justification' => 'left'));
$pdf->ezText("{$mv->einheit_kurzname}", 10, array('justification' => 'right'));
}
$pdf->ezText("<b>Wohnungsgeberbescheinigung gemäß § 19 des Bundesmeldegesetzes (BMG)</b>", 11, array('justification' => 'left'));
$pdf->ezSetDy(-35);
// Abstand
$pdf->ezText("Hiermit bestätige(n) ich/wir als Wohnungsgeber/Vermieter, dass", 10);
$pdf->ezSetDy(-15);
// Abstand
$pdf->ezText("{$mv->personen_name_string_u}", 10);
$pdf->ezSetDy(-15);
// Abstand
if ($einzug == '0') {
$pdf->ezText("in die von mir/uns vermietete Wohnung", 10);
} else {
$pdf->ezText("aus der von mir/uns vermieteten Wohnung", 10);
}
$pdf->ezSetDy(-15);
// Abstand
$pdf->ezText("unter der Anschrift: {$mv->haus_strasse} {$mv->haus_nr}, {$mv->haus_plz} {$mv->haus_stadt} (Wohnlage:</b> {$mv->einheit_lage})", 10);
$pdf->ezSetDy(-15);
// Abstand
if ($einzug == '0') {
$pdf->ezText("am _______________________ eingezogen {$ist_sind}.", 10);
} else {
$pdf->ezText("am _______________________ ausgezogen {$ist_sind}.", 10);
}
$pdf->ezSetDy(-20);
// Abstand
if (empty($oo->objekt_eigentuemer)) {
$pdf->ezSetDy(-30);
// Abstand
$this->kasten($pdf, 1, 50, 10, 10);
$pdf->addText(70, $pdf->y + 1, 10, 'Der Wohnungsgeber/Vermieter ist gleichzeitig <b>Eigentümer</b> der Wohnung oder');
$pdf->ezSetDy(-20);
// Abstand
$this->kasten($pdf, 1, 50, 10, 10);
$pdf->addText(70, $pdf->y + 1, 10, "Der Wohnungsgeber/Vermieter ist <b>nicht</b> Eigentümer der Wohnung");
$pdf->ezSetDy(-15);
// Abstand
$pdf->ezSetDy(-25);
// Abstand
$pdf->line(50, $pdf->y, 550, $pdf->y);
$pdf->ezSetDy(-25);
// Abstand
$pdf->line(50, $pdf->y, 550, $pdf->y);
} else {
$this->kasten($pdf, 1, 50, 10, 10);
$pdf->addText(50, $pdf->y + 2, 10, 'X');
$pdf->addText(70, $pdf->y + 1, 10, "Der Wohnungsgeber ist <b>nicht</b> Eigentümer der Wohnung");
$pdf->ezSetDy(-15);
// Abstand
$pdf->ezText("Name und Anschrift des <b>Eigentümers</b> lauten:", 10);
$pdf->ezText("{$oo->objekt_eigentuemer}", 10);
$pp = new partners();
$pp->get_partner_info($oo->objekt_eigentuemer_id);
$pdf->ezText("{$pp->partner_strasse} {$pp->partner_hausnr}, {$pp->partner_plz} {$pp->partner_ort}", 10);
}
$pdf->ezSetDy(-25);
// Abstand
$pdf->ezText("Ich bestätige mit meiner Unterschrift den Ein- bzw. Auszug der oben genannten Person(en) in die näher bezeichnete Wohnung und dass ich als Wohnungsgeber oder als beauftragte Person diese Bescheinigung ausstellen darf. Ich habe davon Kenntnis genommen, da ich ordnungswidrig handele, wenn ich hierzu nicht berechtigt bin und dass es verboten ist, eine Wohnanschrift für eine Anmeldung eines Wohnsitzes einem Dritten anzubieten oder zur Verfügung zu stellen, obwohl ein tatsächlicher Bezug der Wohnung durch einen Dritten weder stattfindet noch beabsichtigt ist. Ein Verstoß gegen das Verbot stellt auch einen Ordnungswidrigkeit dar.", 8);
/* Footer */
$pdf->ezSetDy(-25);
// Abstand
$pdf->ezText("{$mv->haus_stadt}, __________________", 9, array('justification' => 'left'));
$pdf->ezSetDy(-7);
// Abstand
$pdf->addText(125, $pdf->y, 6, "Datum");
$pdf->ezSetDy(-30);
// Abstand
$pdf->ezText("____________________________________________", 9, array('justification' => 'left'));
$pdf->ezSetDy(-8);
// Abstand
$pdf->addText(57, $pdf->y, 6, "Unterschrift des Wohnungsgebers/Vermieters oder der beauftragten Person");
$pdf->ezSetDy(-15);
// Abstand
}
示例13: array
<?php
include_once ABSPATH . "includes/php-pdf/class.ezpdf.php";
$cols = array('jenis' => 'Jenis', 'tanggal' => 'Tanggal', 'perihal' => 'perihal', 'kode' => 'Kode', 'tahun' => 'Tahun');
$options = array('shaded' => 1, 'width' => 500, 'fontSize' => 8, 'titleFontSize' => 10);
$data = array();
while ($row = $rs->FetchNextObject()) {
$data[] = array('jenis' => $row->JENIS, 'tanggal' => formatDate2($row->TANGGAL), 'perihal' => $row->PERIHAL, 'kode' => $row->KODE, 'tahun' => $row->TAHUN);
}
$pdf = new Cezpdf('a4', 'potrait');
$pdf->selectFont('includes/php-pdf/fonts/Helvetica.afm');
$pdf->ezText('<b>Sample Report</b>', 14, array('justification' => 'center'));
$pdf->ezSetDy(-20);
$pdf->ezTable($data, $cols, '', $options);
$pdf->ezStream();
示例14: separacion
function separacion($espacio = 6)
{
$this->pdf->ezSetDy(-$espacio, 'makeSpace');
}
示例15: kontenrahmen
function kontobuchungen_pdf($geldkonto_id, $kostenkonto, $jahr, $monat)
{
if ($monat == '') {
$result = mysql_query("SELECT DATUM, BETRAG, VERWENDUNGSZWECK FROM GELD_KONTO_BUCHUNGEN WHERE GELDKONTO_ID='{$geldkonto_id}' && KONTENRAHMEN_KONTO = '{$kostenkonto}' && ( DATE_FORMAT( DATUM, '%Y' ) = '{$jahr}') && AKTUELL='1' ORDER BY GELD_KONTO_BUCHUNGEN_ID DESC");
} else {
$result = mysql_query("SELECT DATUM, BETRAG, VERWENDUNGSZWECK FROM GELD_KONTO_BUCHUNGEN WHERE GELDKONTO_ID='{$geldkonto_id}' && KONTENRAHMEN_KONTO = '{$kostenkonto}' && ( DATE_FORMAT( DATUM, '%Y-%m' ) = '{$jahr}-{$monat}') && AKTUELL='1' ORDER BY GELD_KONTO_BUCHUNGEN_ID DESC");
}
$numrows = mysql_numrows($result);
if ($numrows > 0) {
$k = new kontenrahmen();
$k->konto_informationen($kostenkonto);
/* PDF */
//include_once ('pdfclass/class.ezpdf.php');
$pdf = new Cezpdf('a4', 'portrait');
$pdf->ezSetCmMargins(4.5, 2.5, 2.5, 2.5);
$berlus_schrift = './fonts/Times-Roman.afm';
$text_schrift = './fonts/Arial.afm';
$pdf->addJpegFromFile('includes/logos/hv_logo198_80.jpg', 450, 780, 100, 42);
$pdf->setLineStyle(0.5);
$pdf->selectFont($berlus_schrift);
$pdf->addText(42, 743, 6, "BERLUS HAUSVERWALTUNG - Fontanestr. 1 - 14193 Berlin");
$pdf->line(42, 750, 550, 750);
$seite = $pdf->ezGetCurrentPageNumber();
$alle_seiten = $pdf->ezPageCount;
$pdf->addText(70, 780, 12, "Kostenkonto {$kostenkonto}");
while ($row = mysql_fetch_assoc($result)) {
$datum = date_mysql2german($row[DATUM]);
$betrag = nummer_punkt2komma($row[BETRAG]);
$vzweck = $this->umlaute_anpassen(ltrim(rtrim($row[VERWENDUNGSZWECK])));
$this->summe_kontobuchungen_jahr($geldkonto_id, $kostenkonto, $jahr);
echo "<tr></td><td>{$datum}</td><td>{$erfass_nr}</td><td>{$betrag}</td><td>{$b_id}</td><td>{$vzweck}</td></tr><br>";
$pdf->ezText("{$datum}", 10, array('left' => '0'));
if (strlen($vzweck) > '60') {
$pdf->ezText("{$vzweck}", 10, array('left' => '60'));
// $pdf->ezSetDy(-12); //abstand
} else {
$pdf->ezText("{$vzweck}", 10, array('left' => '60'));
}
$pdf->ezText("{$betrag}", 10, array('left' => '430'));
$pdf->ezSetDy(-12);
// abstand
}
$content = $pdf->output();
$dateiname_org = 'Kontenbericht';
$dateiname = $this->save_file($dateiname_org, 'Monatsbericht_Konten', $geldkonto_id, $content, $monat, $jahr);
// weiterleiten($dateiname);
$download_link = "<h3><a href=\"{$dateiname}\">Monatsbericht {$geldkonto_id} für {$monat}/{$jahr} HIER</a></h3>";
echo $download_link;
} else {
// echo "Geldkonto $geldkonto_id - Kostenkonto $kostenkonto leer<br>";
}
}