コード例 #1
0
     $my = $pdf->getLastH();
 }
 if ($tc[dp_Classification] == '1') {
     $pdf->MultiCell($tw[$i++], 0, $f['class'], 0, 'L', 0, 0, '', '', true);
 }
 if ($pdf->getLastH() > $my) {
     $my = $pdf->getLastH();
 }
 if ($tc[dp_Isbn] == '1') {
     $pdf->MultiCell($tw[$i++], 0, $f['isbn'], 0, 'L', 0, 0, '', '', true);
 }
 if ($pdf->getLastH() > $my) {
     $my = $pdf->getLastH();
 }
 if ($tc[dp_Releasedate] == '1') {
     $pdf->MultiCell($tw[$i++], 0, fhtgl($f['releasedate']), 0, 'L', 0, 0, '', '', true);
 }
 if ($pdf->getLastH() > $my) {
     $my = $pdf->getLastH();
 }
 if ($tc[dp_Available] == '1') {
     $nbook = dbSRow("book", "W/`catalog`='" . $f['dcid'] . "'");
     $abook = 0;
     if ($nbook > 0) {
         $abook = dbSRow("book", "W/`catalog`='" . $f['dcid'] . "' AND `available`='Y'");
         $av = $abook . " of " . $nbook;
     } else {
         $av = "N/A";
     }
     $pdf->MultiCell($tw[$i++], 0, $av, 0, 'C', 0, 0, '', '', true);
 }
コード例 #2
0
                         if ($r['jenis'] == JT_CALONSISWA) {
                             $cl = '#00c804';
                         } else {
                             if ($r['jenis'] == JT_UMUM) {
                                 $cl = '#008aff';
                             } else {
                                 $cl = '';
                             }
                         }
                     }
                 }
             }
         }
     }
 }
 $xtable->td(fhtgl($r['tanggal']), 80);
 $xtable->td('<b><span style="color:' . $cl . '">' . $r['nomer'] . '<br/><span style="color:#444">' . jt_jenisbukti($r['jenis']) . '</span>' . ($r['nobukti'] == '' ? '' : '<br/><span style="color:#444">' . $r['nobukti'] . '</span>') . '</span></b>', 120);
 $xtable->td(nl2br($r['uraian']), $ct_jurnaldetil == 1 ? 300 : '', '', 'id="xtd_urai' . $row . '"');
 $xtable->td(fRp($r['nominal']), 100, 'r', 'id="xtd_nom' . $row . '" style="display:' . ($ct_jurnaldetil == 1 ? 'none' : '') . '"');
 $t1 = mysql_query("SELECT keu_jurnal.debet,keu_jurnal.kredit,keu_rekening.kode as koderek,keu_rekening.nama as nrek FROM keu_jurnal LEFT JOIN keu_rekening ON keu_rekening.replid=keu_jurnal.rek WHERE keu_jurnal.transaksi='" . $r['replid'] . "' ORDER BY keu_jurnal.replid");
 if (mysql_num_rows($t1) > 0) {
     $s = '<div style="background:#fff"><table class="xtable_norm" cellspacing="0" cellpadding="4px" width="100%">';
     while ($r1 = mysql_fetch_array($t1)) {
         $s .= '<tr><td>' . $r1['nrek'] . '</td><td width="40px" align="center">' . $r1['koderek'] . '</td><td width="100px" align="right">' . fRp($r1['debet']) . '</td><td width="100px" align="right">' . fRp($r1['kredit']) . '</td></tr>';
     }
     $s .= '</table></div>';
 } else {
     $s = '';
 }
 $xtable->td($s, '', '', 'id="xtd_jd' . $row . '" style="display:' . ($ct_jurnaldetil == 1 ? '' : 'none') . '"');
 $s = '<button class="btn" title="Cetak bukti transaksi" onclick="transaksi_print(\'' . $r['nomer'] . '\')"><div class="bi_prib">&nbsp;</div></button>';
コード例 #3
0
         $pdf->MultiCell($dcPageW, 0, "Job History: N/A", 0, 'L', 0, 1, '', '', true);
         $pdf->Ln();
     } else {
         $pdf->SetFont('dejavusans', 'B', 9, '', true);
         $pdf->MultiCell($dcPageW, 0, "Job History", 0, 'L', 0, 1, '', '', true);
         $pdf->SetFont('dejavusans', '', 9, '', true);
         dc_YDown(1);
         $th = array('Company Name', 'Company Address', 'Period', 'Posiiton', 'Salary');
         $tw = array(0, 50, 30, 30, 20);
         $pdf->setCellPaddings(0.5, 0.5, 0.5, 0.5);
         dc_tableHead($th, $tw);
         while ($f = dbFA($q)) {
             $i = 0;
             $pdf->MultiCell($tw[$i++], 0, $f['name'], 0, 'L', 0, 0, '', '', true);
             $pdf->MultiCell($tw[$i++], 0, $f['address'], 0, 'L', 0, 0, '', '', true);
             $pdf->MultiCell($tw[$i++], 0, fhtgl($f['date1']) . ' - ' . fhtgl($f['date2']), 0, 'L', 0, 0, '', '', true);
             $pdf->MultiCell($tw[$i++], 0, $f['position'], 0, 'L', 0, 0, '', '', true);
             $pdf->MultiCell($tw[$i++], 0, $f['salary'], 0, 'L', 0, 0, '', '', true);
             $pdf->Ln();
         }
         $pdf->setCellPaddings(0, 0, 0, 0);
         $pdf->Ln();
     }
 }
 if ($dps[dp_Selfdescription]) {
     // Self Description
     $pdf->SetFont('dejavusans', 'B', 9, '', true);
     $pdf->MultiCell($dcPageW, 0, "Self Description", 0, 'L', 0, 1, '', '', true);
     $pdf->SetFont('dejavusans', '', 9, '', true);
     dc_LineBar('', '', 1);
     $f = dbSFAx("*", "emp_desc", "W/empid='{$dcid}'");