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


PHP Pdf::SetTextColor方法代码示例

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


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

示例1: generarReporteEventoGeneralSeleccionFecha

 public function generarReporteEventoGeneralSeleccionFecha()
 {
     $fecha = date("Y-m-d", strtotime($this->input->get('fecha')));
     $pdf = new Pdf('L', 'mm', 'Legal', true, 'UTF-8', false);
     $pdf->setPageOrientation('l');
     $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
     $pdf->SetMargins(PDF_MARGIN_LEFT, 15, PDF_MARGIN_RIGHT);
     //$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
     $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
     //$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING, array(0, 64, 255), array(0, 64, 128));
     $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
     $pdf->setFontSubsetting(true);
     $pdf->SetFont('times', '', 12, '', true);
     $pdf->setPrintHeader(false);
     $pdf->setPrintFooter(false);
     $pdf->AddPage();
     $html = null;
     $pdf->SetFont('Times', 'B', 14);
     $pdf->Image("imagen/logo/bannerprevengo2.png", $x = 5, $y = 5, $w = 290, $h = 40, $type = 'PNG', $link = '', $align = 'right', $resize = false, $dpi = 300, $palign = '', $ismask = false, $imgmask = false, $border = 0, $fitbox = false, $hidden = false, $fitonpage = false, $alt = false, $altimgs = array());
     $pdf->SetTextColor('0', '25', '215');
     $pdf->Text(130, 12, "República Bolivariana de Venezuela", $fstroke = false, $fclip = false, $ffill = true, $border = 0, $ln = 0, $align = 'left', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M', $rtloff = false);
     $pdf->Text(130, 17, "Gobernación del Estado Lara", $fstroke = false, $fclip = false, $ffill = true, $border = 0, $ln = 0, $align = 'left', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M', $rtloff = false);
     $pdf->Text(130, 23, "Oficina de Personal--División de Planificación y Presupuesto.", $fstroke = false, $fclip = false, $ffill = true, $border = 0, $ln = 0, $align = 'left', $fill = false, $link = '', $stretch = 0, $ignore_min_height = false, $calign = 'T', $valign = 'M', $rtloff = false);
     $pdf->SetFont('Times', 'B', 12);
     $pdf->SetTextColor('8', '8', '8');
     // $pdf->Text(50, 35, 'Reporte General de Eventos.');
     // $pdf->Ln(20);
     //$pdf->Text(30, 40, 'Fecha:' . date('d-m-Y'),  $align = 'rigth');
     $pdf->Ln(15);
     $pdf->SetFont('times', '', 11, '', true);
     $ano = date('Y');
     $mesesN = array(1 => "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
     $mes = $mesesN[date('n')];
     $dia = date('d');
     $html .= '
                 <table>
                
                 <tr colspan="8">
                     <td colspan="2"><p align="center"><b></b></p></td>
                     <td colspan="2" ><p align="center"><b></b></p></td>
                     <td colspan="2"><p align="center"><b>Barquisimeto, ' . $dia . ' de ' . $mes . ' del ' . $ano . '</b></p></td>
                 </tr>
                 </table>';
     $html .= "<h1>Reporte General de Eventos con  las siguientes caracteristicas: </h1>";
     $html .= '
                 <table border="1">
                 <tr colspan="1"  width="5" heigth="5">
                     <td colspan="1" bgColor="#429DED"><p align="center"><b> Fecha </b></p></td>
                 </tr>
                   <tr colspan="1"  width="5" heigth="5">    
                     <td colspan="1" bgColor=""><p align="center"><b> ' . date("Y-m-d", strtotime($this->input->get('fecha'))) . '</b></p></td>
                 </tr>
                  
                 </table>';
     $condicion = 'evento.fechatope="' . $fecha . '"';
     $reporte = $this->evento_model->cargarListaEventoSeleccionPDF($condicion);
     $html .= "<H1></h1>";
     if ($reporte->num_rows() > 0) {
         $html .= '
                 <table border="1">
                
                 <tr colspan="8">
                     <td colspan="3" bgColor="#429DED"><p align="center"><b>Titulo</b></p></td>
                     <td colspan="10" bgColor="#429DED"><p align="center"><b>Descripción</b></p></td>
                     <td colspan="2" bgColor="#429DED"><p align="center"><b>Tipo de Evento</b></p></td>
                      <td colspan="2" bgColor="#429DED"><p align="center"><b>Sector</b></p></td>
                       <td colspan="2" bgColor="#429DED"><p align="center"><b>Alcance</b></p></td>
                     <td colspan="2" bgColor="#429DED"><p align="center"><b>Agente</b></p></td>
                     <td colspan="2.5" bgColor="#429DED"><p align="center"><b>Estatus</b></p></td>
                     
                 </tr>';
         foreach ($reporte->result_array() as $fila2) {
             $html .= '<tr colspan="8">
                         <td colspan="3"><p align="center">' . $fila2['titulo'] . '</p></td>
                         <td colspan="10"><p align="center">' . $fila2['descripcion'] . '</p></td>
                         <td colspan="2"><p align="center">' . $fila2['tipoEv'] . '</p></td>
                         <td colspan="2"><p align="center">' . $fila2['sector'] . '</p></td>
                              <td colspan="2"><p align="center">' . $fila2['alcance'] . '</p></td>
                         <td colspan="2"><p align="center">' . $fila2['agente'] . '</p></td>
                         <td colspan="2.5"><p align="center">' . $fila2['estatus'] . '</p></td>
                         
                     </tr>';
         }
         $html .= '<tr>
                      <td colspan="21"><p align="right"> Cantidad de Eventos:  </p></td>
                      <td colspan="2"><p align="center">' . $reporte->num_rows() . '</p></td>
                     </tr>
                 </table>';
     } else {
         $html .= '<h1>No se encuentra eventos registrados para la fecha seleccionada.</h1>';
     }
     $nombre_archivo = utf8_decode("reporteEventos.pdf");
     $pdf->writeHTMLCell($w = 0, $h = 0, $x = '', $y = '', $html, $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = 'C', $autopadding = true);
     $pdf->Output($nombre_archivo, 'I');
 }
开发者ID:jeicas,项目名称:preveng,代码行数:95,代码来源:reportegeneral.php

示例2: mysqli

$pdf->Cell(50, 16, 'End. In.', 1, 0, 'C', 1);
$pdf->Cell(50, 16, 'Sold', 1, 0, 'C', 1);
$row_height = 16;
$y_axis = $y_axis_initial + $row_height;
$connect = new mysqli('localhost', 'root', '', 'dsr');
$resultX = mysqli_query($connect, "SELECT * FROM particulars");
$x = 0;
while ($row = mysqli_fetch_object($resultX)) {
    $item_name = $row->item_name;
    $inventory = $row->inventory;
    $additional_in = $row->additional_in;
    $additional_out = $row->additional_out;
    $ending_inventory = $row->ending_inventory;
    $pdf->SetY($y_axis);
    $pdf->SetFillColor(255, 255, 255);
    $pdf->SetTextColor(0, 0, 0);
    $pdf->SetX(45);
    $pdf->Cell(265, 17, $item_name, 1, 0, 'C', 1);
    if ($_SESSION['beginning'][$item_name] != $inventory) {
        $pdf->SetTextColor(255, 0, 0);
        $pdf->Cell(60, 17, "(" . $_SESSION['beginning'][$item_name] . ") " . $inventory, 1, 0, 'C', 1);
    } else {
        $pdf->SetTextColor(0, 0, 0);
        $pdf->Cell(60, 17, $inventory, 1, 0, 'C', 1);
    }
    $pdf->SetTextColor(0, 0, 0);
    $pdf->Cell(50, 17, $additional_in, 1, 0, 'C', 1);
    $pdf->Cell(50, 17, $additional_out, 1, 0, 'C', 1);
    $pdf->Cell(50, 17, $ending_inventory, 1, 0, 'C', 1);
    $pdf->Cell(50, 17, $_SESSION['sold'][$item_name], 1, 0, 'C', 1);
    //Go to next row
开发者ID:kennethworks26,项目名称:minuteburger,代码行数:31,代码来源:generate-report.php

示例3: index

 public function index()
 {
     $this->load->library('Pdf');
     $hashqid = $_GET['qid'];
     $this->load->model('quotationmodel');
     $data = $this->quotationmodel->fetchQuotationDetails($hashqid);
     //$this->load->view('admin/pdfquotation',$data);
     $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
     ob_clean();
     $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
     //set image scale factor
     $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
     // set document information
     $pdf->SetCreator('Gizmoland');
     $pdf->SetTitle("Quotation");
     // set default header data
     //$pdf->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE, PDF_HEADER_STRING, array(0,64,255), array(0,64,128));
     //$pdf->setFooterData($tc=array(0,64,0), $lc=array(0,64,128));
     // set header and footer fonts
     $pdf->setHeaderFont(array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
     $pdf->setFooterFont(array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
     // set default monospaced font
     $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
     //set margins
     $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
     $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
     $pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
     //set auto page breaks
     $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
     //set image scale factor
     $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
     //set some language-dependent strings
     //$pdf->setLanguageArray($l);
     // ---------------------------------------------------------
     // set default font subsetting mode
     $pdf->setFontSubsetting(true);
     // Set font
     // dejavusans is a UTF-8 Unicode font, if you only need to
     // print standard ASCII chars, you can use core fonts like
     // helvetica or helvetica to reduce file size.
     $pdf->SetFont('helvetica', '', 14, '', true);
     // Add a page
     // This method has several options, check the source code documentation for more information.
     $pdf->AddPage();
     $pdf->SetXY(15, 8);
     $pdf->SetFont('helvetica', 'B', 12);
     $pdf->SetTextColor(0, 0, 0, 100);
     $pdf->Cell(0, 0, 'Quotation', 0, 1, 'C', 0, '', 0);
     $pdf->SetXY(5, 5);
     $pdf->SetXY(0, 28);
     $pdf->SetFont('helvetica', 'B', 12);
     $pdf->Cell(65, 5, 'Customer Details', 0, 1, 'C', 0, '', 0);
     $pdf->SetXY(0, 28);
     $pdf->Cell(325, 5, 'Consolidated Premium Retailers', 0, 1, 'C', 0, '', 0);
     $pdf->Ln(2);
     $pdf->SetFont('helvetica', '', 10);
     $pdf->SetTextColor(0, 0, 0, 100);
     $pdf->SetXY(15, 35);
     //Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=0, $link='', $stretch=0, $ignore_min_height=false, $calign='T', $valign='M')
     $pdf->Cell(25, 5, 'Customer Name :', 0, 1, 'L', 0, '', 0);
     $pdf->Cell(25, 5, 'Contact :', 0, 1, 'L', 0, '', 0);
     $pdf->Cell(25, 5, 'Address :', 0, 1, 'L', 0, '', 0);
     $pdf->SetFont('helvetica', '', 10);
     $pdf->SetXY(45, 35);
     $pdf->Cell(25, 5, ucfirst($data['name']), 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(30, 40);
     $pdf->Cell(25, 5, $data['contact'], 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(30, 45);
     //$pdf->Cell(25, 5, $data['address'], 0, 1, 'L', 0, '', 0);
     $pdf->Cell(25, 5, '', 0, 1, 'L', 0, '', 0);
     $pdf->writeHTMLCell($w = 80, $h = 0, $x = 15, $y = '', $data['address'], $border = 0, $ln = 1, $fill = 0, $reseth = true, $align = '', $autopadding = true);
     //$pdf->SetXY(40, 50);
     $style4 = array('L' => 0, 'T' => array('width' => 0.25, 'cap' => 'butt', 'join' => 'miter', 'dash' => '20,10', 'phase' => 10, 'color' => array(100, 100, 255)), 'R' => array('width' => 0.5, 'cap' => 'round', 'join' => 'miter', 'dash' => 0, 'color' => array(50, 50, 127)), 'B' => array('width' => 0.75, 'cap' => 'square', 'join' => 'miter', 'dash' => '30,10,5,10'));
     //$style = array('width' => 0.1, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0));
     //$pdf->Line(5, 10, 80, 30, $style);
     $pdf->SetFont('helvetica', '', 10);
     $pdf->SetXY(131, 35);
     $pdf->Cell(25, 5, 'Contact :', 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(131, 40);
     $pdf->Cell(25, 5, 'Email :', 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(131, 45);
     $pdf->Cell(25, 5, 'TIN :', 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(131, 50);
     $pdf->Cell(25, 5, 'CST :', 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(131, 55);
     $pdf->Cell(25, 5, 'Sales Person :', 0, 1, 'L', 0, '', 0);
     $pdf->SetFont('helvetica', '', 10);
     $pdf->SetXY(147, 35);
     $pdf->Cell(25, 5, $data['retailcontact'], 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(143, 40);
     $pdf->Cell(25, 5, $data['maildid'], 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(140, 45);
     $pdf->Cell(25, 5, $data['tin'], 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(140, 50);
     $pdf->Cell(25, 5, $data['cst'], 0, 1, 'L', 0, '', 0);
     $pdf->SetXY(155, 55);
     $pdf->Cell(25, 5, $data['salesperson'], 0, 1, 'L', 0, '', 0);
     $invoicedetails = '<table><thead><tr><th  style="font-weight:bold;" width="35%">Quotation Details</th><th></th></tr></thead><tbody>';
     $invoicedetails .= '<tr><td  width="25%">Quotation Number:</td><td>' . $data['qid'] . '</td></tr>';
     $invoicedetails .= '<tr><td  width="25%">Quotation Date:</td><td>' . date("m/d/y", $data['quotationdate']) . '</td></tr>';
//.........这里部分代码省略.........
开发者ID:selva316,项目名称:payment,代码行数:101,代码来源:pdfquotation.php

示例4: pdf


//.........这里部分代码省略.........
        $pdf->SetSubject('Reimpresión de Documentos');
        $pdf->SetKeywords('TCPDF, PDF, example, test, guide');
        ob_start();
        //remove default header/footer
        $pdf->setPrintHeader(false);
        $pdf->setPrintFooter(false);
        // set default header data
        // set margins
        $pdf->SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
        $pdf->SetHeaderMargin(PDF_MARGIN_HEADER);
        //$pdf->SetFooterMargin(PDF_MARGIN_FOOTER);
        // set image scale factor
        $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
        // set some language-dependent strings (optional)
        if (@file_exists(dirname(__FILE__) . '/lang/eng.php')) {
            require_once dirname(__FILE__) . '/lang/eng.php';
            $pdf->setLanguageArray($l);
        }
        ///////////////////////////////////////////////////---------------///////////////////////////////////////////////////
        ///////////////////////////////////////////////////FORMATO ENTREGA///////////////////////////////////////////////////
        ///////////////////////////////////////////////////---------------///////////////////////////////////////////////////
        // establecer el modo de fuente por defecto
        $pdf->setFontSubsetting(true);
        // Establecer el tipo de letra
        $pdf->SetFont('helvetica', '', 10);
        //Normal
        $arriba = 6;
        $izq = 10;
        $der = 10;
        $pdf->AddPage('L', 'LETTER');
        $pdf->SetFont('pdfahelvetica', '', 10);
        //Normal
        //$pdf->SetFont('pdfahelveticai', '', 10); // S
        $pdf->SetTextColor(0, 0, 0);
        $style = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => '10,20,5,10', 'phase' => 10, 'color' => array(255, 0, 0));
        $style2 = array('width' => 0.2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0));
        $style3 = array('width' => 0.2, 'cap' => 'round', 'join' => 'round', 'dash' => '2,10', 'color' => array(0, 0, 0));
        $style4 = array('L' => 0, 'T' => array('width' => 0.25, 'cap' => 'butt', 'join' => 'miter', 'dash' => '20,10', 'phase' => 10, 'color' => array(100, 100, 255)), 'R' => array('width' => 0.5, 'cap' => 'round', 'join' => 'miter', 'dash' => 0, 'color' => array(50, 50, 127)), 'B' => array('width' => 0.75, 'cap' => 'square', 'join' => 'miter', 'dash' => '30,10,5,10'));
        $style5 = array('width' => 0.25, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 64, 128));
        $style6 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => '10,10', 'color' => array(0, 128, 0));
        $style7 = array('width' => 0.5, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(255, 128, 0));
        # Marco
        //$pdf->RoundedRect(5, 15-$arriba, 268, 200, 0, '1010', 'NULL');
        $pdf->RoundedRect(12, 15 - $arriba, 120, 200, 0, '1000', 'NULL');
        $pdf->RoundedRect(23 + 125, 15 - $arriba, 120, 200, 0, '1000', 'NULL');
        # Linea encabezado
        //$pdf->Line(15, 44, 264.4, 44, $style2);
        # Linea media punteada
        $pdf->Line(140, 5 - $arriba, 140, 210 + $arriba, $style3);
        # Logos de Encabezado
        $pdf->Image('resources/img/cdmx.png', 85 - $izq, 20 - $arriba, 50, 13, 'PNG', '', '', true, 100, '', false, false, 0, false, false, false);
        # Textos
        $pdf->Text(60 - $izq, 10 - $arriba, 'Formato para Prepa Sí');
        $pdf->SetFont('pdfahelveticab', '', 9);
        // Negrita
        $pdf->Text(35 - $izq, 40 - $arriba, 'Entrega – Recepción Documentos PREPA SÍ 2015-2016');
        $pdf->SetFont('pdfahelvetica', '', 9);
        // Normal
        $pdf->SetLineStyle(array('width' => 0.2, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
        $pdf->RoundedRect(34 - $izq, 39 - $arriba, 87, 6, 3, '0000', 'NULL');
        $pdf->Text(44 - $izq, 51 - $arriba, 'Fecha de registro electrónico: ___________________');
        $pdf->Text(27 - $izq, 62 - $arriba, 'Nombre: ____________________________________________________');
        $pdf->Text(27 - $izq, 72 - $arriba, '1.- Solicitud de');
        $pdf->RoundedRect(126 - $izq, 72 - $arriba, 8, 5, 3, '0000', 'NULL');
        $pdf->Text(27 - $izq, 80 - $arriba, '2.- Comprobante de domicilio, expedido dentro de los 3 meses');
        $pdf->Text(33 - $izq, 84 - $arriba, 'anteriores al mes en el que se realice la entrega de los');
开发者ID:sistemasfidegar,项目名称:beneficiarios_prepasi,代码行数:67,代码来源:Reimpresion.php

示例5: generarReporteActividadEvento

    public function generarReporteActividadEvento()
    {
        $idEvento = $this->input->get('idEv');
        $html = null;
        $pdf = new Pdf('L', 'mm', 'Legal', true, 'UTF-8', false);
        $pdf->setPageOrientation('l');
        $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
        $pdf->SetMargins(PDF_MARGIN_LEFT, 15, PDF_MARGIN_RIGHT);
        $pdf->setHeaderMargin(2);
        $pdf->SetHeaderData('bannerprevengo4.png', 270, 'Gobernacion de Lara', 'Oficina de Personal--División de Planificación y Presupuesto', array(0, 64, 255), array(0, 64, 128));
        $pdf->setFooterMargin(12);
        $pdf->setFooterData();
        $pdf->SetAlpha(1, 'Normal');
        $pdf->Image('imagen/logo/degradado.PNG', 30, 54, 100, 104, '', '', 'N', '', '', 'C');
        // recuperamos la opacidad por defecto
        $pdf->SetAlpha(1, 'Normal');
        $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
        $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
        $pdf->setFontSubsetting(true);
        $pdf->SetFont('times', '', 12, '', true);
        $pdf->SetFont('Times', 'B', 12);
        $pdf->setPrintHeader(true);
        $pdf->setPrintFooter(true);
        $pdf->AddPage();
        $pdf->SetTextColor('8', '8', '8');
        $pdf->Ln(10);
        $pdf->SetFont('times', '', 11, '', true);
        $ano = date('Y');
        $mesesN = array(1 => "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
        $mes = $mesesN[date('n')];
        $dia = date('d');
        $html .= '
                    <table>
                   
                    <tr colspan="8">
                     
                        <td colspan="8"><p align="rigth"><b>Barquisimeto, ' . $dia . ' de ' . $mes . ' del ' . $ano . '</b></p></td>
                    </tr>
                    </table>';
        $html .= "<h1>Reporte General de Metas alcanzada para las actividades</h1>";
        $condicion = 'evento.id=' . $idEvento;
        $reporte = $this->evento_model->cargarListaEventoSeleccionPDF($condicion);
        if ($reporte->num_rows > 0) {
            foreach ($reporte->result_array() as $fila2) {
                $html .= '
                    <table border="1">
                <tr colspan="4">
                       
                        <td colspan="4" bgColor="#429DED"><p align="center"><b>Evento</b></p></td>
                     
                         
                    </tr>   
                    
                      <tr colspan="4">
                       
                        <td colspan="1" bgColor="#429DED"><p align="center"><b>Titulo</b></p></td>
                        <td colspan="2" bgColor="#429DED"><p align="center"><b>Descripción</b></p></td>
                        <td colspan="1" bgColor="#429DED"><p align="center"><b>Estatus</b></p></td>
                         
                    </tr>


                  <tr colspan="4">
                           
                            <td colspan="1"><p align="center">' . $fila2['titulo'] . '</p></td>
                            <td colspan="2"><p align="center">' . $fila2['descripcion'] . '</p></td>
                            <td colspan="1"><p align="center">' . $fila2['estatus'] . '</p></td>
                        </tr>';
                $reporte2 = $this->actividad_model->cargarMetaPlandeAccionDeEventoPDF($fila2['idEv']);
                $html .= '<tr colspan="4">
                        <td colspan="4" bgColor="#429DED"><p align="center"><b>Plan de Accion</b></p></td>       
                    </tr>';
                if ($reporte2->num_rows > 0) {
                    foreach ($reporte2->result_array() as $fila2) {
                        $html .= '
                    <tr colspan="5">
                        <td colspan="1" bgColor="#00BFFF"><p align="center"><b>Actividad:</b></p></td>
                        <td colspan="1" bgColor="#00BFFF"><p align="center"><b>Meta Propuesta</b></p></td>
                        <td colspan="1" bgColor="#00BFFF"><p align="center"><b>Meta Alcanzada</b></p></td>
                        <td colspan="1" bgColor="#00BFFF"><p align="center"><b>Estatus</b></p></td>
                         
            </tr>       
            
                       <tr colspan="4">
                            <td colspan="1" ><p align="center">' . $fila2['descripcion'] . '</p></td>
                            <td colspan="1" ><p align="center">' . $fila2['metap'] . '</p></td>
                            <td colspan="1" ><p align="center">' . $fila2['metaa'] . '</p></td>
                            <td colspan="1" ><p align="center">' . $fila2['estatus'] . '</p></td>
                           
                        </tr>';
                    }
                } else {
                    $html .= '<tr colspan="4">
                             <td colspan="4"><p align="center"><b> El evento no tiene plan de accion registrado.</b></p></td>    
                        </tr>';
                }
                $html .= '</table>';
                $html .= '<h1></H1>';
            }
        } else {
//.........这里部分代码省略.........
开发者ID:jeicas,项目名称:preveng,代码行数:101,代码来源:reportegeneralMetaActividad.php


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