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


PHP Pdf::SetTopMargin方法代码示例

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


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

示例1: index

    function index()
    {
        $this->load->library('Pdf');
        $userdata = $this->session->all_userdata();
        $data['email'] = $userdata['email'];
        $this->load->model('tenants_model');
        $data['tenant_detail'] = $this->tenants_model->get_unit($data['email']);
        $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
        $pdf->SetTitle('Rent Receipt');
        $pdf->SetHeaderMargin(30);
        $pdf->SetTopMargin(20);
        $pdf->setFooterMargin(20);
        $pdf->SetAutoPageBreak(true);
        $pdf->SetAuthor('Rentit Agency');
        $pdf->SetDisplayMode('real', 'default');
        $pdf->AddPage();
        $html = <<<EOD
<table cellspacing="3" cellpadding="6" border="">

 

\t\t  
\t\t  
EOD;
        $pdf->Ln();
        $html .= "<tr><td>";
        $html .= "<b>RENTIT AGENCY<br />RENT RECEIPT</b>";
        $html .= "</td><td>";
        $this->load->helper('date');
        $datestring = "%Y-%m-%d ";
        $date = mdate($datestring);
        $html .= "<b>Date Received: </b> {$date} <br />";
        $html .= "<br /><b>Received From: </b> ";
        $html .= $userdata['email'];
        '<br />';
        $html .= "<br /><br/><b>The sum of: </b> KeS ";
        $html .= $userdata['amount'];
        '<br />';
        $html .= "</td></tr>";
        $html .= "<tr><td colspan=2>";
        $html .= "<b>For Rent at:</b> ";
        $html .= $data['tenant_detail'][0]['block_name'];
        $html .= " house, ";
        $html .= $data['tenant_detail'][0]['unitname'];
        ',';
        $html .= "<br /><br /><b>Rent Period Starting</b>: ";
        $html .= $data['tenant_detail'][0]['occupation_date'];
        ',<br />';
        $html .= "<br /><br /><b>Received by: </b> Rentit Agency";
        $html .= "</td></tr>";
        $html .= "</table>";
        $pdf->writeHTML($html, true, false, false, false, '');
        ob_clean();
        $pdf->Output('Receipt.pdf', 'I');
    }
开发者ID:FaithMaina,项目名称:Rentit,代码行数:55,代码来源:receipt.php

示例2: print_brgy_leaders

 public function print_brgy_leaders($voter_data = array(), $data = array())
 {
     $this->load->library('pdf');
     $pdf = new Pdf('L', 'mm', 'LETTER', true, 'UTF-8', false);
     $pdf->SetTitle('My Title');
     $pdf->SetHeaderMargin(30);
     $pdf->SetTopMargin(20);
     $pdf->setFooterMargin(10);
     $pdf->SetAutoPageBreak(true, 15);
     $pdf->SetAuthor('Author');
     $pdf->AddPage('L', 'LEGAL');
     $pdf->setY(30);
     $html = '';
     $html .= '<div style="text-align: center;"><b>Brgy Leaders</b> for<br/><b>' . $data['brgy'] . '</b></div>';
     $html .= '<br/>';
     $html .= '<br/>';
     $html .= '<table style="border: 1px solid #000;border-collapse: collapse;" border="1" cellspacing="0" cellpadding="1">';
     $html .= '<thead>';
     $html .= '<tr style="background-color: #a8a8a8;">';
     $html .= '<th align="center" width="5%"></th>';
     $html .= '<th align="center" width="45%"><b>Voter\'s Name</b></th>';
     $html .= '<th align="center" width="30%"><b>Precinct No</b></th>';
     $html .= '<th align="center" width="20%"><b>Type</b></th>';
     $html .= '</tr>';
     $html .= '</thead>';
     if (count($voter_data) > 0) {
         $x = 1;
         foreach ($voter_data as $type => $val) {
             for ($ctr = 0; $ctr < count($val); $ctr++) {
                 $html .= '<tr nobr="true">';
                 $html .= '<td align="center" width="5%">' . $x . '.</td>';
                 $html .= '<td width="45%"> &nbsp;&nbsp;&nbsp;' . $val[$ctr]['full_name'] . '</td>';
                 $html .= '<td width="30%"> &nbsp;&nbsp;&nbsp;' . $val[$ctr]['precinct_no'] . '</td>';
                 $html .= '<td width="20%"> &nbsp;&nbsp;&nbsp;' . $val[$ctr]['type'] . '</td>';
                 $html .= '</tr>';
                 $x++;
             }
         }
     } else {
         $html .= '<tr>';
         $html .= '<td align="center" width="100%">No record found..</td>';
         $html .= '</tr>';
     }
     $html .= '</table>';
     $pdf->writeHTML($html, true, false, false, false, '');
     $pdf->Output('brgy_leaders_report.pdf', 'I');
 }
开发者ID:pjsangat,项目名称:lgu,代码行数:47,代码来源:barangay_model.php

示例3: tiparire

 function tiparire($fromDate, $toDate)
 {
     $this->load->model('cerere_model');
     $filtru = array('fromDate' => $fromDate, 'toDate' => $toDate);
     $cereri = $this->cerere_model->getCereriAll($filtru);
     $this->load->library('Pdf');
     $pdf = new Pdf(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
     $pdf->SetTitle('Cereri');
     $pdf->SetTopMargin(5);
     $pdf->setFooterMargin(5);
     $pdf->SetAutoPageBreak(true);
     $pdf->SetAuthor('poartacerului.ro');
     $pdf->SetDisplayMode('real', 'default');
     $pdf->setPrintHeader(false);
     $pdf->setPrintFooter(false);
     $output = "<strong>Cereri rugaciune din data {$fromDate} in data {$toDate}</strong>";
     foreach ($cereri as $cerere) {
         $output .= "<br /><br />Nume: " . $cerere['nume'] . ", Localitate: " . $cerere['localitate'] . ", Data: " . $cerere['data'];
         $output .= "<br />Continut: " . $cerere['continut'];
     }
     $pdf->PrintChapter($output, true);
     $pdf->Output('cereri-rugaciune.pdf', 'I');
 }
开发者ID:pay1bux,项目名称:site-pc,代码行数:23,代码来源:cereri.php

示例4: MatricRollNoGroupwise

 public function MatricRollNoGroupwise()
 {
     // DebugBreak()  ;
     $this->load->helper('url');
     //Load the library
     $this->load->library('html2pdf');
     $grp_cd = $this->uri->segment(3);
     $sess = 1;
     $class = 10;
     $year = 2016;
     $this->load->library('session');
     $Logged_In_Array = $this->session->all_userdata();
     $user = $Logged_In_Array['logged_in'];
     //DebugBreak();
     $this->load->library('Pdf');
     $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
     $pdf->setHeaderData('', 0, '', '', array(0, 0, 0), array(255, 255, 255));
     $pdf->SetPrintHeader(false);
     $pdf->SetPrintFooter(false);
     $pdf->SetTitle('Matric Roll Number Slip');
     $pdf->SetHeaderMargin(1);
     $pdf->SetTopMargin(1);
     $pdf->setFooterMargin(1);
     $pdf->SetFont('helvetica', '', 8);
     $pdf->SetAutoPageBreak(TRUE, 0);
     $pdf->SetAuthor('BiseGrw');
     $pdf->SetMargins(4, 1, 4, true);
     $Inst_Id = $user['Inst_Id'];
     $this->load->model('RollNoSlip_model');
     // DebugBreak();
     $studeninfo = array('data' => $this->RollNoSlip_model->get10thrslipWith_Grp_CD($class, $year, $sess, $grp_cd, $Inst_Id));
     $template_pdf = '';
     $totalslips = count($studeninfo['data']['slip']);
     $studentslip = array();
     //DebugBreak();
     for ($i = 0; $i < count($studeninfo['data']['info']); $i++) {
         $pdf->AddPage();
         $rno = $studeninfo['data']['info'][$i]['Rno'];
         $temp = "{$rno}@{$class}@{$sess}@{$year}@{$Inst_Id}";
         $image = $this->set_barcode($temp);
         $studeninfo['data']['info'][$i]['barcode'] = $image;
         for ($j = 0; $j < $totalslips; $j++) {
             if ($rno == $studeninfo['data']['slip'][$j]['rno']) {
                 $studeninfo['data']['info'][$i]['slips'][] = $studeninfo['data']['slip'][$j];
             }
         }
         // DebugBreak();
         $html = $this->load->view('RollNoSlip/MatricRollNoCombine', $studeninfo['data']['info'][$i], true);
         $pdf->writeHTML($html, true, false, true, false, '');
         if ($i == 0) {
             break;
         }
     }
     $pdf->Output('pdfexample.pdf', 'I');
     //$this->html2pdf->html($this->load->view('RollNoSlip/MatricRollNoCombine', $studeninfo['data'], true));
     //  $this->html2pdf->html($template_pdf);
     /* if($this->html2pdf->create('downlaod')) {
        if($class == 10)
        redirect('RollNoSlip/TenthStd');
        else if($class == 9)
        redirect('RollNoSlip/NinthStd');
        }      */
 }
开发者ID:shahid1376,项目名称:adminbise,代码行数:63,代码来源:RollNoSlip_.php

示例5: cetak_kertas_resep


//.........这里部分代码省略.........
            $surat['umur'] = "-";
        }
        if ($surat['jenis_kelamin'] == '') {
            $surat['jenis_kelamin'] = "-";
        }
        if ($surat['idkartu_medical'] == '') {
            $surat['idkartu_medical'] = "-";
        }
        if ($surat['kd_bayar'] == '') {
            $surat['kd_bayar'] = "-";
        }
        if ($surat['no_asuransi'] == '') {
            $surat['no_asuransi'] = "-";
        }
        if ($surat['nm_dokter'] == '') {
            $surat['nm_dokter'] = "_____________________";
        }
        $tgl = date('d-m-Y');
        #echo $this->db->last_query(); exit;
        $html = '<table align="center" border="0" align="left">';
        $html .= '
						<tr>
                        <td width="20%" style="text-align: center;"><img src="' . base_url() . 'assets/img/logo.png" width="80" height="80"/></td>
						
                        <td width="80%" style="text-align: center;"><h4>00/DOK IN PKM - USI/01/PKM/151/2011</h4><br><h3>PEMERINTAH PROPINSI ' . $puskesmas["nm_propinsi"] . '<br>DINAS KESEHATAN KOTA ' . $puskesmas["nm_kota"] . '</h3>
                        <h4>UPTD ' . $puskesmas["nm_puskesmas"] . '<br>' . $puskesmas["alamat"] . '<br>' . $puskesmas["no_telp"] . '</h4>
					    </td>
                    </tr>';
        $html .= '</table>';
        $html .= '<p align="left"><b>Resep Obat</b></p>';
        $html .= '<table align="center" cellpadding="2" cellspacing="0" border="0" width="100%">
    <tr>
        <td width="20%" border="1px" style="text-align: center;">' . $surat["kd_bayar"] . '</td>
        <td width="5%" style="text-align: left;"></td>
        <td width="75%" style="text-align: right;">' . $puskesmas["nm_kota"] . ', ' . $tgl . '</td>
    </tr>
    <tr>
        <td style="text-align: right;" colspan="3">No KK: ' . $surat["idkartu_medical"] . '</td>
    </tr>
	<tr>
        <td style="text-align: right;" colspan="3">No R.M. Pasien: ' . $surat["kd_rekam_medis"] . '</td>
    </tr>
    <tr>
    <td><p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
	<p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
	<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p>
    <p>&nbsp;</p></td>
  </tr>
    <tr>
        <td style="text-align: right;" colspan="3">Pemeriksa, </td>
    </tr>
	<tr>
    <td><p>&nbsp;</p>
    <p>&nbsp;</p></td>
  </tr>	
	<tr>
        <td style="text-align: right;" colspan="3">' . $surat["nm_dokter"] . '</td>
    </tr>
	<tr>
        <td width="17%" style="text-align: left;">No. Antrian</td>
        <td width="2%" style="text-align: left;">:</td>
        <td width="81%" style="text-align: left;">' . $surat["no_antrian"] . '</td>
    </tr>
    <tr>
        <td width="17%" style="text-align: left;">Nama</td>
        <td width="2%" style="text-align: left;">:</td>
        <td width="81%" style="text-align: left;">' . $surat["nm_lengkap"] . '</td>
    </tr>
    <tr>
        <td style="text-align: left;">Umur</td>
        <td style="text-align: left;">:</td>
        <td style="text-align: left;">' . $surat["umur"] . '</td>
    </tr>
    <tr>
        <td style="text-align: left;">Alamat</td>
        <td style="text-align: left;">:</td>
        <td style="text-align: left;">' . $surat["alamat"] . ', Kel. ' . ucwords(strtolower($surat["nm_kelurahan"])) . ', Kec. ' . ucwords(strtolower($surat["nm_kecamatan"])) . ' , ' . ucwords(strtolower($surat["nm_kota"])) . '</td>
    </tr>
    <tr>
        <td style="text-align: left;">Status Psn</td>
        <td style="text-align: left;">:</td>
        <td style="text-align: left;">' . $surat["cara_bayar"] . ' , No ' . $surat["no_asuransi"] . '</td>
    </tr>
</table>';
        $pdf->SetTitle('Judul');
        $pdf->SetHeaderMargin(30);
        $pdf->SetTopMargin(20);
        $pdf->setFooterMargin(20);
        $pdf->SetAutoPageBreak(true);
        $pdf->SetAuthor('Pengarang');
        $pdf->SetDisplayMode('real', 'default');
        $pdf->writeHTMLCell(0, 0, '', '', $html, 0, 1, 0, true, '', true);
        $pdf->Output('Resep.pdf', 'I');
    }
开发者ID:adit-gudhel,项目名称:simpus-dev,代码行数:101,代码来源:cont_transaksi_pelayananold.php

示例6: generate_letter_support_pdf

 public function generate_letter_support_pdf($arrData, $pData)
 {
     $this->load->model('setup_model');
     $letter = $this->setup_model->get_by(array('name' => 'Letter'));
     $ward_letter = $this->setup_model->get_by(array('name' => 'Ward Leader Letter'));
     $support_letter = $this->setup_model->get_by(array('name' => 'Letter of Support'));
     $this->load->library('pdf');
     $pdf = new Pdf('L', 'mm', 'LETTER', true, 'ISO-8859-1', false);
     $pdf->SetTitle($pData['brgy'] . '-LETTER-' . date("YmdHis"));
     $pdf->SetHeaderMargin(0);
     $pdf->SetTopMargin(10);
     $pdf->SetLeftMargin(20);
     $pdf->SetRightMargin(20);
     $pdf->setFooterMargin(10);
     $pdf->SetAutoPageBreak(true, 10);
     $pdf->SetFontSize(10);
     $pdf->SetAuthor('Author');
     // set font
     $pdf->SetFont('freeserif', '', 10);
     $ctr = 0;
     foreach ($arrData as $result) {
         if ($ctr % 2 == 0) {
             $pdf->AddPage('P', 'LEGAL');
             $pdf->setY(15);
         } else {
             $pdf->setY(190);
         }
         $result = (object) $result;
         $voter_name = explode(",", htmlentities($result->full_name));
         $html = "";
         $html .= "<br/>";
         $html .= '<b>' . trim(htmlentities($result->full_name)) . '</b>';
         $html .= "<br/>";
         $html .= '<b>' . trim($result->brgy) . '</b>';
         $html .= "<br/>";
         $html .= '<b>' . trim($result->precinct) . '</b>';
         $html .= "<br/>";
         $html .= "<br/>";
         $html .= 'Minamahal na <b>' . (trim($result->gender) == 'M' ? 'G.' : 'Bb/Gng.') . " " . ucfirst(trim(strtolower(htmlentities($voter_name[0])))) . ":</b>";
         $html .= "<br/>";
         //            $html .= $is_ward ? $ward_letter['content'] : $letter['content'];
         $html .= $support_letter['content'];
         $html .= "<br/>";
         $html .= '<table>' . '<tr>' . '<td width="60%"></td>' . '<td>Gumagalang, </td>' . '</tr>' . '<tr>' . '<td width="60%"></td>' . '</tr>' . '<tr>' . '<td width="50%" align="center"><b> <img src="' . base_url('assets/images/alexander_pajarillo_sign.jpg') . '" height="55" width="150"/></b></td>' . '<td width="50%" align="center"><b> <img src="' . base_url('assets/images/edgardo_tallado_sign.jpg') . '" height="55" width="150"/></b></td>' . '</tr>' . '<tr>' . '<td width="50%" align="center"><i>Mayor</i></td>' . '<td width="50%" align="center"><i>Governor</i></td>' . '</tr>' . '<tr>' . '<td width="60%"></td>' . '</tr>' . '<tr>' . '<td width="100%" align="center"><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>' . trim(htmlentities($result->full_name)) . '</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u></td>' . '</tr>' . '<tr>' . '<td width="100%" align="center">Lagda</td>' . '</tr>' . '</table>';
         $pdf->writeHTML($html, true, false, false, false, '');
         $ctr++;
         //            if($ctr == 1){
         //                $pdf->setY(100);
         //                $ctr = 0;
         //            }
     }
     $pdf->Output('letter.pdf', 'I');
     exit;
     pe($letter);
 }
开发者ID:pjsangat,项目名称:lgu,代码行数:55,代码来源:voter_model.php

示例7: letters

 public function letters()
 {
     $this->load->library('pdf');
     $pdf = new Pdf('L', 'mm', 'LETTER', true, 'UTF-8', false);
     $pdf->SetTitle('Letter to vote');
     $pdf->SetHeaderMargin(30);
     $pdf->SetTopMargin(20);
     $pdf->setFooterMargin(10);
     $pdf->SetAutoPageBreak(true, 15);
     $pdf->SetAuthor('Author');
     $pdf->AddPage('P', 'LEGAL');
     $pdf->setY(30);
     $pdf->Output('letter.pdf', 'I');
 }
开发者ID:pjsangat,项目名称:lgu,代码行数:14,代码来源:votes.php

示例8: cetak_rm

    public function cetak_rm()
    {
        $no_rm = $this->uri->segment(3);
        $view_rekam_medis = $this->m_crud->get_list_pasien($no_rm);
        $view_trans_pelayanan = $this->m_crud->get_pasien_rekam_medis($no_rm);
        $this->load->library('Pdf');
        $pdf = new Pdf('P', 'mm', 'F4', true, 'UTF-8', false);
        // $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
        $pdf->SetPrintHeader(false);
        $pdf->SetPrintFooter(false);
        $pdf->SetCreator(PDF_CREATOR);
        $pdf->SetPageOrientation('P');
        $pdf->SetAuthor('Pemerintah Kota Bogor');
        $pdf->SetTitle('Rekam Medis');
        $pdf->SetSubject('Rekam Medis Pasien');
        $pdf->SetKeywords('Medical Record');
        // $pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', PDF_HEADER_STRING, array(0,64,255), array(0,64,128));
        //$pdf->setFooterData(array(0,64,0), array(0,64,128));
        $pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
        $pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
        $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
        $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
        $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
        $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
        $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
        $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
        if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
            require_once dirname(__FILE__) . '/lang/eng.php';
            $pdf->setLanguageArray($l);
        }
        $pdf->setFontSubsetting(true);
        $pdf->SetFont('helvetica', '', 9, '', true);
        $pdf->SetTopMargin(10);
        $pdf->AddPage();
        $pdf->setTextShadow(array('enabled' => true, 'depth_w' => 0.2, 'depth_h' => 0.2, 'color' => array(196, 196, 196), 'opacity' => 1, 'blend_mode' => 'Normal'));
        $puskesmas = $this->m_rujukan->get_puskesmas_info($this->session->userdata('kd_puskesmas'));
        #echo $this->session->userdata('kd_puskesmas');
        #echo $this->db->last_query(); exit;
        $html = '<table width="100%" align="center" border="0">';
        $html .= '<tr>
                        <td width="20%" style="text-align: center;"><img src="' . base_url() . 'assets/img/' . $puskesmas["logo"] . '" width="80" height="80"/></td>
                        <td width="80%" align="center"><h2>PEMERINTAH PROPINSI ' . $puskesmas["nm_propinsi"] . '<br>DINAS KESEHATAN KOTA ' . $puskesmas["nm_kota"] . '</h2>
                        <h1>UPTD ' . $puskesmas["nm_puskesmas"] . '</h1>
						<h3>' . $puskesmas["alamat"] . ' Telp. ' . $puskesmas["telp"] . '</h3>
                        </td>
                    </tr>
					<tr>
              <td colspan="" bordercolordark="#0A0A0A" style="text-align: center;">____________________________________________________________________________________________________</td>
              </tr>';
        $html .= '</table><p></p>';
        $html .= '<div id="rekam-medis">
                        	<h4 class="widgettitle nomargin">Rekam Medis Pasien</h4>
                            <div class="widgetcontent bordered">
                            	<div class="row-fluid">
                                	<div class="span6">
                                    	<table class="table table-bordered table-invoice">
                                            <tbody>
                                                <tr>
                                                    <td width="30%">No. Rekam Medis</td>
                                                    <td width="70%">' . $view_rekam_medis['kd_rekam_medis'] . '</td>
                                                </tr>
                                                <tr>
                                                    <td>Nama Pasien</td>
                                                    <td>' . $view_rekam_medis['nm_lengkap'] . '</td>
                                                </tr>
                                                <tr>
                                                    <td>Tempat, Tgl Lahir</td>
                                                    <td>' . $view_rekam_medis['tempat_lahir'] . ' / ' . $this->functions->format_tgl_cetak2($view_rekam_medis['tanggal_lahir']) . '</td>
                                                </tr>';
        $hitung = $this->functions->CalcAge($view_rekam_medis['tanggal_lahir'], date('Y-m-d'));
        //$hitung = $this->functions->dateDifference($view_rekam_medis['tanggal_lahir'], date('Y-m-d'));
        $umurku = $hitung[0] . ' Tahun ' . $hitung[1] . ' Bulan ' . $hitung[2] . ' Hari';
        // echo $umurku;
        $html .= '
                                                <tr>
                                                    <td>Umur</td>
                                                    <td>' . $umurku . '
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>Jenis Kelamin</td>
                                                    <td>' . ucwords(strtolower($view_rekam_medis['jenis_kelamin'])) . '</td>
                                                </tr>
                                                <tr>
                                                    <td>Alamat</td>
                                                    <td>' . $view_rekam_medis['alamat'] . '</td>
                                                </tr>
                                                <tr>
                                                    <td>Puskesmas</td>
                                                    <td>' . $view_rekam_medis['nm_puskesmas'] . '</td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>';
        $html .= '
                        </div> <!-- </row-fluid> -->
                        <div class="clearfix"><br/></div>';
        $html .= '
            <h4 class="widgettitle">Kunjungan Pasien</h4>
            <div class="row-fluid">
//.........这里部分代码省略.........
开发者ID:adit-gudhel,项目名称:simpus-dev,代码行数:101,代码来源:cont_transaksi_pendaftaran.php

示例9: index

 public function index()
 {
     $this->load->library('Pdf');
     $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
     $pdf->SetTitle('Pdf Example');
     $pdf->SetHeaderMargin(30);
     $pdf->SetTopMargin(20);
     $pdf->setFooterMargin(20);
     $pdf->SetAutoPageBreak(true);
     $pdf->SetAuthor('Author');
     $pdf->SetDisplayMode('real', 'default');
     $pdf->Write(5, 'CodeIgniter TCPDF Integration');
     $pdf->Output('pdfexample.pdf', 'I');
 }
开发者ID:vishwakarma09,项目名称:bimpra.tk,代码行数:14,代码来源:PdfExample.php


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