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


PHP maxCaracter函数代码示例

本文整理汇总了PHP中maxCaracter函数的典型用法代码示例。如果您正苦于以下问题:PHP maxCaracter函数的具体用法?PHP maxCaracter怎么用?PHP maxCaracter使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: Header

 function Header()
 {
     $this->AddFont('Amble-Regular');
     $this->SetFont('Amble-Regular', '', 10);
     $fecha = date('Y-m-d', time());
     $this->SetX(1);
     $this->SetY(1);
     $this->Cell(20, 5, $fecha, 0, 0, 'C', 0);
     $this->Cell(150, 5, "CLIENTE", 0, 1, 'R', 0);
     $this->SetFont('Arial', 'B', 16);
     $sql = pg_query("select ruc_empresa,nombre_empresa,propietario,telefono1,telefono2,direccion,correo,sitio_web,autorizacion_factura,autorizacion_factura,imagen from empresa where id_empresa = '" . $_SESSION['empresa_dow'] . "'");
     while ($row = pg_fetch_row($sql)) {
         $this->Cell(190, 8, maxCaracter("EMPRESA: " . utf8_decode($row[1]), 50), 0, 1, 'C', 0);
         $this->Image('../empresa/img/' . $row[10], 5, 8, 40, 30);
         $this->SetFont('Amble-Regular', '', 10);
         $this->Cell(180, 5, maxCaracter("PROPIETARIO: " . utf8_decode($row[2]), 50), 0, 1, 'C', 0);
         $this->Cell(70, 5, maxCaracter("TEL.: " . utf8_decode($row[3]), 50), 0, 0, 'R', 0);
         $this->Cell(60, 5, maxCaracter("CEL.: " . utf8_decode($row[4]), 50), 0, 1, 'C', 0);
         $this->Cell(170, 5, maxCaracter("DIR.: " . utf8_decode($row[5]), 55), 0, 1, 'C', 0);
         $this->Cell(170, 5, maxCaracter("E-MAIL.: " . utf8_decode($row[6]), 55), 0, 1, 'C', 0);
         $this->Cell(170, 5, maxCaracter("SITIO WEB.: " . utf8_decode($row[7]), 55), 0, 1, 'C', 0);
         $this->Text(160, 30, maxCaracter("Nro Aut SRI.: " . utf8_decode($row[8]), 55), 0, 1, 'C', 0);
         $this->Text(150, 35, maxCaracter("Fecha Aut SRI.: " . utf8_decode($row[9]), 55), 0, 1, 'C', 0);
         $this->Text(70, 44, "OBLIGADO A LLEVAR CONTABILIDAD : SI", 0, 'C', 0);
         $this->SetFont('Amble-Regular', 'U', 14);
         $this->Text(85, 49, "LIBRO DIARIO", 0, 'C', 0);
         $this->Text(85, 49, "LIBRO DIARIO", 0, 'C', 0);
     }
     $this->SetDrawColor(0, 0, 0);
     $this->SetLineWidth(0.5);
     $this->Line(1, 53, 210, 53);
     $this->Ln(16);
 }
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:33,代码来源:libro_diario.php

示例2: Header

 function Header()
 {
     $this->AddFont('Amble-Regular');
     $this->SetFont('Amble-Regular', '', 10);
     $fecha = date('Y-m-d', time());
     $this->SetX(1);
     $this->SetY(1);
     $this->Cell(20, 5, $fecha, 0, 0, 'C', 0);
     $this->Cell(150, 5, "CLIENTE", 0, 1, 'R', 0);
     $this->SetFont('Arial', 'B', 16);
     $sql = pg_query("select numero_serie,forma_pago,tarifa0,tarifa12,iva,descuento,total from cliente,factura_venta where cliente.id_cliente = factura_venta.id_cliente and id_factura_venta = '{$_GET['id']}'");
     while ($row = pg_fetch_row($sql)) {
         $this->nro_fac = $row[0];
     }
     $sql = pg_query("select ruc_empresa,nombre_empresa,propietario,telefono1,telefono2,direccion,correo,sitio_web,autorizacion_sri,ascesor_legar,imagen from empresa where id_empresa = '11001854f72c12c2b36'");
     while ($row = pg_fetch_row($sql)) {
         $this->Image('../empresa/img/' . $row[10], 0, 8, 60, 30);
         $this->SetY(40);
         $this->SetX(1);
         $this->Cell(100, 36, '', 1, 1, 'C', 0);
         $this->SetY(40);
         $this->SetX(1);
         $this->SetFont('Arial', 'B', 11);
         $this->Cell(100, 8, maxCaracter(strtoupper(utf8_decode($row[1])), 30), 0, 1, 'C', 0);
         $this->SetX(1);
         $this->SetFont('Amble-Regular', '', 10);
         $this->Cell(35, 6, maxCaracter(utf8_decode("Dirección Matriz: "), 38), 0, 0, 'L', 0);
         $this->Cell(55, 6, maxCaracter(utf8_decode($row[5]), 25), 0, 1, 'L', 0);
         $this->SetX(1);
         $this->Cell(35, 6, maxCaracter(utf8_decode("Dirección Sucursal: "), 38), 0, 0, 'L', 0);
         $this->Cell(55, 6, maxCaracter(utf8_decode($row[5]), 38), 0, 1, 'L', 0);
         $this->SetX(1);
         $this->Cell(100, 6, maxCaracter(utf8_decode("Contribuyente especial Nro: 1115375970"), 38), 0, 1, 'L', 0);
         $this->SetX(1);
         $this->Cell(100, 6, "OBLIGADO A LLEVAR CONTABILIDAD : SI", 0, 1, 'C', 0);
         $this->SetY(6);
         $this->SetX(105);
         $this->Cell(100, 70, '', 1, 1, 'C', 0);
         $this->SetY(8);
         $this->SetX(105);
         $this->SetFont('Amble-Regular', '', 11);
         $this->Cell(100, 6, maxCaracter("RUC.: " . utf8_decode("1792107865001"), 50), 0, 1, 'L', 0);
         $this->SetX(105);
         $this->SetFont('Amble-Regular', '', 14);
         $this->Cell(100, 8, maxCaracter(utf8_decode("FACTURA"), 50), 0, 1, 'L', 0);
         $this->SetFont('Amble-Regular', '', 11);
         $this->SetX(105);
         $this->Cell(100, 6, maxCaracter("NRO.: " . utf8_decode($this->nro_fac), 50), 0, 1, 'L', 0);
         $this->SetX(105);
         $this->Cell(100, 6, maxCaracter(utf8_decode("NÚMERO DE AUTORIZACIÓN.: "), 55), 0, 1, 'L', 0);
         $this->SetX(105);
         $this->Cell(100, 6, maxCaracter(utf8_decode($row[8]), 50), 0, 1, 'L', 0);
         $this->SetX(105);
         $this->Cell(50, 6, maxCaracter(utf8_decode("FECHA DE AUTORIZACIÓN"), 55), 0, 0, 'L', 0);
         $this->Cell(50, 6, maxCaracter(utf8_decode($row[9]), 30), 0, 1, 'L', 0);
         $this->SetX(105);
         $this->Cell(100, 6, maxCaracter(utf8_decode("AMBIENTE: PRUEBAS"), 55), 0, 1, 'L', 0);
         $this->SetX(105);
         $this->Cell(100, 6, maxCaracter(utf8_decode("EMISIÓN: NORMAL"), 55), 0, 1, 'L', 0);
         $this->SetX(105);
         $this->Cell(100, 6, maxCaracter(utf8_decode("CLAVE DE ACCESO"), 55), 0, 1, 'L', 0);
         $this->Image('../../empresa/barras.jpg', 106, 65, 94, 8);
         /*$this->Cell(80, 5, maxCaracter("PROPIETARIO: ".utf8_decode($row[2]),50),0,1, 'C',0);                                
           $this->Cell(70, 5, maxCaracter("TEL.: ".utf8_decode($row[3]),50),0,0, 'R',0);                                
           $this->Cell(60, 5, maxCaracter("CEL.: ".utf8_decode($row[4]),50),0,1, 'C',0);                                
           
           $this->Cell(170, 5, maxCaracter("E-MAIL.: ".utf8_decode($row[6]),55),0,1, 'C',0);                                
           $this->Cell(170, 5, maxCaracter("SITIO WER.: ".utf8_decode($row[7]),55),0,1, 'C',0);                                */
     }
     $this->SetDrawColor(0, 0, 0);
     $this->SetLineWidth(0.5);
     $this->Line(1, 77, 210, 77);
     $this->Ln(20);
 }
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:74,代码来源:factura_venta.php

示例3: utf8_decode

                $pdf->Ln(2);
                $pdf->SetX(1);
                $pdf->Cell(25, 6, utf8_decode('Comprobante'), 1, 0, 'C', 0);
                $pdf->Cell(30, 6, utf8_decode('Tipo Documento'), 1, 0, 'C', 0);
                $pdf->Cell(45, 6, utf8_decode('Nro Factura'), 1, 0, 'C', 0);
                $pdf->Cell(25, 6, utf8_decode('Total'), 1, 0, 'C', 0);
                $pdf->Cell(25, 6, utf8_decode('Valor Pago'), 1, 0, 'C', 0);
                $pdf->Cell(25, 6, utf8_decode('Saldo'), 1, 0, 'C', 0);
                $pdf->Cell(30, 6, utf8_decode('Fecha Pago'), 1, 1, 'C', 0);
                $repetido = 1;
                $contador = 1;
            }
            $pdf->Cell(25, 6, utf8_decode($row3[4]), 0, 0, 'C', 0);
            $pdf->Cell(30, 6, utf8_decode($row3[8]), 0, 0, 'C', 0);
            $pdf->Cell(45, 6, substr($row3[7], 8, 30), 0, 0, 'C', 0);
            $pdf->Cell(25, 6, utf8_decode($row3[9]), 0, 0, 'C', 0);
            $pdf->Cell(25, 6, utf8_decode($row3[9] - $row3[10]), 0, 0, 'C', 0);
            $pdf->Cell(25, 6, utf8_decode($row3[10]), 0, 0, 'C', 0);
            $pdf->Cell(30, 6, utf8_decode($row3[5]), 0, 1, 'C', 0);
            $sub = $sub + ($row3[9] - $row3[10]);
        }
    }
    if ($contador > 0) {
        $pdf->SetX(1);
        $pdf->Cell(207, 0, utf8_decode(""), 1, 1, 'R', 0);
        $pdf->Cell(180, 6, utf8_decode("Totales"), 0, 0, 'R', 0);
        $pdf->Cell(30, 6, maxCaracter(number_format($sub, 2, ',', '.'), 20), 0, 1, 'C', 0);
        $pdf->Ln(3);
    }
}
$pdf->Output();
开发者ID:kailIII,项目名称:catalogo,代码行数:31,代码来源:facturas_por_pagar.php

示例4: utf8_decode

            $pdf->SetX(1);
            $pdf->Cell(22, 6, utf8_decode($row1[14]), 0, 0, 'C', 0);
            $pdf->Cell(20, 6, utf8_decode($row1[1]), 0, 0, 'C', 0);
            $pdf->Cell(30, 6, utf8_decode(substr($row1[0], 8)), 0, 0, 'C', 0);
            $sub = $sub + ($row1[10] - $row1[8] - $row1[9]);
            $pdf->Cell(15, 6, $row1[10] - $row1[8] - $row1[9], 0, 0, 'C', 0);
            $desc = $desc + $row1[9];
            $pdf->Cell(17, 6, $row1[9], 0, 0, 'C', 0);
            $pdf->Cell(16, 6, $row1[6], 0, 0, 'C', 0);
            $pdf->Cell(17, 6, $row1[7], 0, 0, 'C', 0);
            $ivaT = $ivaT + $row1[8];
            $pdf->Cell(15, 6, $row1[8], 0, 0, 'C', 0);
            $total = $total + $row1[10];
            $pdf->Cell(15, 6, $row1[10], 0, 0, 'C', 0);
            $pdf->Cell(20, 6, $row1[3], 0, 0, 'C', 0);
            $pdf->Cell(20, 6, $row1[5], 0, 0, 'C', 0);
            $pdf->Ln(6);
        }
    }
}
$pdf->SetX(1);
$pdf->Ln(8);
$pdf->Cell(188, 6, utf8_decode("Subtotal"), 0, 0, 'R', 0);
$pdf->Cell(20, 6, maxCaracter(number_format($sub, 2, ',', '.'), 20), 0, 1, 'C', 0);
$pdf->Cell(188, 6, utf8_decode("Descuento"), 0, 0, 'R', 0);
$pdf->Cell(20, 6, maxCaracter(number_format($desc, 2, ',', '.'), 20), 0, 1, 'C', 0);
$pdf->Cell(188, 6, utf8_decode("Iva Total"), 0, 0, 'R', 0);
$pdf->Cell(20, 6, maxCaracter(number_format($ivaT, 2, ',', '.'), 20), 0, 1, 'C', 0);
$pdf->Cell(188, 6, utf8_decode("Total"), 0, 0, 'R', 0);
$pdf->Cell(20, 6, maxCaracter(number_format($total, 2, ',', '.'), 20), 0, 1, 'C', 0);
$pdf->Output();
开发者ID:Oskrin,项目名称:comisariato,代码行数:31,代码来源:facturasCompras.php

示例5: pg_query

$repetido = 0;
$contador = 0;
$consulta = pg_query("select id_usuario,ci_usuario,nombre_usuario,apellido_usuario,telefono_usuario,direccion_usuario from usuario;");
while ($row = pg_fetch_row($consulta)) {
    $repetido = 0;
    $total = 0;
    $sql1 = pg_query("select comprobante,fecha_actual,codigo,articulo,cantidad,precio_compra,sub_total from ordenes_produccion,usuario,productos where  ordenes_produccion.id_usuario = usuario.id_usuario and ordenes_produccion.cod_productos = productos.cod_productos and fecha_actual between '" . $_GET['inicio'] . "' and '" . $_GET['fin'] . "' and usuario.id_usuario='{$row['0']}'");
    if (pg_num_rows($sql1)) {
        if ($repetido == 0) {
            $pdf->SetX(1);
            $pdf->SetFillColor(187, 179, 180);
            $pdf->Cell(70, 6, maxCaracter(utf8_decode('RUC/CI: ' . $row[1]), 35), 1, 0, 'L', 1);
            $pdf->Cell(135, 6, maxCaracter(utf8_decode('NOMBRE: ' . $row[2] . ' ' . $row[3]), 35), 1, 1, 'L', 1);
            $pdf->SetX(1);
            $pdf->Cell(70, 6, maxCaracter(utf8_decode('TELF:' . $row[4]), 35), 1, 0, 'L', 1);
            $pdf->Cell(135, 6, maxCaracter(utf8_decode('DIRECCIÓN:' . $row[5]), 35), 1, 1, 'L', 1);
            $pdf->Ln(2);
            $pdf->SetX(1);
            $pdf->Cell(25, 6, utf8_decode('Comprobante'), 1, 0, 'C', 0);
            $pdf->Cell(25, 6, utf8_decode('Fecha'), 1, 0, 'C', 0);
            $pdf->Cell(35, 6, utf8_decode('Código'), 1, 0, 'C', 0);
            $pdf->Cell(45, 6, utf8_decode('Producto'), 1, 0, 'C', 0);
            $pdf->Cell(20, 6, utf8_decode('Cantidad'), 1, 0, 'C', 0);
            $pdf->Cell(25, 6, utf8_decode('P. Costo'), 1, 0, 'C', 0);
            $pdf->Cell(30, 6, utf8_decode('T. Costo'), 1, 1, 'C', 0);
            $pdf->Ln(1);
            $repetido = 1;
        }
        while ($row1 = pg_fetch_row($sql1)) {
            $pdf->Cell(25, 6, utf8_decode($row1[0]), 0, 0, 'C', 0);
            $pdf->Cell(25, 6, utf8_decode($row1[1]), 0, 0, 'C', 0);
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:ordenes_produccion_fechas.php

示例6: maxCaracter

        }
        $yy = $yy + 5;
    } else {
        $pdf->Text(25, $yy, maxCaracter(utf8_decode($row[1]), 30), 0, 0, 'L', 0);
        $pdf->Text(180, $yy, maxCaracter(utf8_decode($row[1]), 30), 0, 0, 'L', 0);
    }
    $pdf->Text(95, $yy, maxCaracter(utf8_decode($row[2]), 6), 0, 0, 'L', 0);
    $pdf->Text(245, $yy, maxCaracter(utf8_decode($row[2]), 6), 0, 0, 'L', 0);
    $pdf->Text(120, $yy, maxCaracter($temp_1, 6), 0, 0, 'L', 0);
    $pdf->Text(270, $yy, maxCaracter($temp_1, 6), 0, 0, 'L', 0);
    $yy = $yy + 5;
}
/////////pie
$subtotal = truncateFloat($iva12, 2);
$descuento_venta = truncateFloat($descuento_venta, 2);
$iva_venta = truncateFloat($iva_venta, 2);
$iva0 = truncateFloat($iva0, 2);
$total_venta = truncateFloat($total_venta, 2);
$pdf->Text(120, 173, maxCaracter($subtotal, 5), 0, 1, 'L', 0);
$pdf->Text(120, 179, maxCaracter($iva0, 5), 0, 1, 'L', 0);
$pdf->Text(120, 185, maxCaracter($iva_venta, 5), 0, 1, 'L', 0);
$pdf->Text(98, 186, '12', 0, 1, 'L', 0);
$pdf->Text(120, 191, maxCaracter($descuento_venta, 5), 0, 1, 'L', 0);
$pdf->Text(120, 197, maxCaracter($total_venta, 10), 0, 1, 'L', 0);
$pdf->Text(275, 173, maxCaracter($subtotal, 5), 0, 1, 'L', 0);
$pdf->Text(275, 179, maxCaracter($iva0, 5), 0, 1, 'L', 0);
$pdf->Text(275, 185, maxCaracter($iva_venta, 5), 0, 1, 'L', 0);
$pdf->Text(249, 186, '12', 0, 1, 'L', 0);
$pdf->Text(275, 191, maxCaracter($descuento_venta, 5), 0, 1, 'L', 0);
$pdf->Text(275, 197, maxCaracter($total_venta, 10), 0, 1, 'L', 0);
$pdf->Output();
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:nota_venta.php

示例7: pg_query

    $pdf->RotatedImage('../images/circle.png', 260, 42, 30, 10, 45);
    $pdf->RotatedText(269, 41, 'ANULADO!', 45);
}
////////detalles
$sql = pg_query("select cantidad,articulo,precio_venta,total_venta from  detalle_factura_venta,productos where id_factura_venta = '" . $_GET['id'] . "' and detalle_factura_venta.cod_productos = productos.cod_productos");
$yy = 76;
$pdf->SetTextColor(0, 0, 0);
while ($row = pg_fetch_row($sql)) {
    $pdf->Text(15, $yy, maxCaracter(utf8_decode($row[0]), 3), 0, 1, 'L', 0);
    $pdf->Text(25, $yy, maxCaracter(utf8_decode($row[1]), 50), 0, 0, 'L', 0);
    $pdf->Text(95, $yy, maxCaracter(utf8_decode($row[2]), 6), 0, 0, 'L', 0);
    $pdf->Text(120, $yy, maxCaracter(utf8_decode($row[3]), 6), 0, 0, 'L', 0);
    $pdf->Text(165, $yy, maxCaracter(utf8_decode($row[0]), 3), 0, 1, 'L', 0);
    $pdf->Text(180, $yy, maxCaracter(utf8_decode($row[1]), 50), 0, 0, 'L', 0);
    $pdf->Text(245, $yy, maxCaracter(utf8_decode($row[2]), 6), 0, 0, 'L', 0);
    $pdf->Text(270, $yy, maxCaracter(utf8_decode($row[3]), 6), 0, 0, 'L', 0);
    $yy = $yy + 5;
}
/////////pie
$subtotal = $iva12 + $iva0;
$pdf->Text(120, 173, maxCaracter($subtotal, 3), 0, 1, 'L', 0);
$pdf->Text(120, 179, maxCaracter(utf8_decode($descuento_venta), 3), 0, 1, 'L', 0);
$pdf->Text(120, 185, maxCaracter(utf8_decode($iva_venta), 3), 0, 1, 'L', 0);
$pdf->Text(120, 191, maxCaracter(utf8_decode($iva0), 3), 0, 1, 'L', 0);
$pdf->Text(120, 197, maxCaracter(utf8_decode($total_venta), 3), 0, 1, 'L', 0);
$pdf->Text(275, 173, maxCaracter($subtotal, 3), 0, 1, 'L', 0);
$pdf->Text(275, 179, maxCaracter(utf8_decode($descuento_venta), 3), 0, 1, 'L', 0);
$pdf->Text(275, 185, maxCaracter(utf8_decode($iva_venta), 3), 0, 1, 'L', 0);
$pdf->Text(275, 191, maxCaracter(utf8_decode($iva0), 3), 0, 1, 'L', 0);
$pdf->Text(275, 197, maxCaracter(utf8_decode($total_venta), 3), 0, 1, 'L', 0);
$pdf->Output();
开发者ID:kailIII,项目名称:catalogo,代码行数:31,代码来源:factura_venta2.php

示例8: maxCaracter

        $pdf->SetX(1);
        $pdf->Cell(53, 5, maxCaracter(utf8_decode($row[0]), 30), 0, 0, 'C', 0);
        $pdf->Cell(40, 5, maxCaracter(utf8_decode($row[1]), 20), 0, 0, 'L', 0);
        $pdf->Cell(40, 5, maxCaracter(utf8_decode($row[2]), 20), 0, 0, 'C', 0);
        $pdf->Cell(25, 5, maxCaracter(utf8_decode($row[3]), 20), 0, 0, 'C', 0);
        if ($row[6] == '2' || $row[6] == '4') {
            $pdf->Cell(25, 5, maxCaracter(utf8_decode('-' . $row[4]), 20), 0, 0, 'C', 0);
        } else {
            $pdf->Cell(25, 5, maxCaracter(utf8_decode($row[4]), 20), 0, 0, 'C', 0);
        }
        $pdf->Cell(25, 5, maxCaracter(utf8_decode($row[5]), 20), 0, 0, 'C', 0);
        $pdf->Ln(5);
    }
} else {
    $sql = pg_query("SELECT K.detalle, K.origen, k.destino, K.fecha_kardex, K.cantidad, K.saldo, K.estado from kardex K where k.fecha_kardex between '{$_GET['inicio']}' and '{$_GET['fin']}'  and k.cod_productos = '{$_GET['id']}'  order by k.id_kardex asc");
    while ($row = pg_fetch_row($sql)) {
        $pdf->SetX(1);
        $pdf->Cell(53, 5, maxCaracter(utf8_decode($row[0]), 30), 0, 0, 'C', 0);
        $pdf->Cell(40, 5, maxCaracter(utf8_decode($row[1]), 20), 0, 0, 'L', 0);
        $pdf->Cell(40, 5, maxCaracter(utf8_decode($row[2]), 20), 0, 0, 'C', 0);
        $pdf->Cell(25, 5, maxCaracter(utf8_decode($row[3]), 20), 0, 0, 'C', 0);
        if ($row[6] == '2' || $row[6] == '4') {
            $pdf->Cell(25, 5, maxCaracter(utf8_decode('-' . $row[4]), 20), 0, 0, 'C', 0);
        } else {
            $pdf->Cell(25, 5, maxCaracter(utf8_decode($row[4]), 20), 0, 0, 'C', 0);
        }
        $pdf->Cell(25, 5, maxCaracter(utf8_decode($row[5]), 20), 0, 0, 'C', 0);
        $pdf->Ln(5);
    }
}
$pdf->Output();
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:kardex.php

示例9: utf8_decode

         $pdf->Cell(30, 6, utf8_decode($row1[10]), 0, 1, 'C', 0);
         $pdf->SetX(1);
         $pdf->Ln(1);
         $pdf->SetX(1);
         $pdf->Cell(205, 0, utf8_decode(''), 1, 1, 'R', 0);
         $pdf->Cell(175, 6, utf8_decode('Saldo Pendiente'), 0, 0, 'R', 0);
         $pdf->Cell(30, 6, utf8_decode($total), 0, 1, 'C', 0);
         $pdf->Ln(5);
     }
 }
 $consulta2 = pg_query("select * from factura_venta where id_cliente='{$_GET['id']}' and forma_pago='Credito'");
 while ($row2 = pg_fetch_row($consulta2)) {
     $total = 0;
     $pdf->SetX(1);
     $pdf->Cell(80, 6, maxCaracter(utf8_decode('Factura #:' . $row2[5]), 35), 1, 0, 'L', 1);
     $pdf->Cell(125, 6, maxCaracter('Serie #:' . substr($row2[5], 0, 7), 35), 1, 1, 'L', 1);
     $pdf->Ln(1);
     $pdf->SetX(1);
     $pdf->Cell(50, 6, utf8_decode('Comprobante'), 1, 0, 'C', 0);
     $pdf->Cell(50, 6, utf8_decode('Tipo Doc.'), 1, 0, 'C', 0);
     $pdf->Cell(45, 6, utf8_decode('Fecha Mov.'), 1, 0, 'C', 0);
     $pdf->Cell(30, 6, utf8_decode('Valor'), 1, 0, 'C', 0);
     $pdf->Cell(30, 6, utf8_decode('Saldo'), 1, 1, 'C', 0);
     $repetido = 1;
     $consulta3 = pg_query("select * from pagos_venta where id_factura_venta='{$row2['0']}'");
     while ($row3 = pg_fetch_row($consulta3)) {
         $pdf->SetX(1);
         $pdf->Cell(50, 6, utf8_decode($row3[2]), 0, 0, 'C', 0);
         $pdf->Cell(50, 6, utf8_decode("Factura Venta"), 0, 0, 'C', 0);
         $pdf->Cell(45, 6, utf8_decode($row3[4]), 0, 0, 'C', 0);
         $pdf->Cell(30, 6, utf8_decode($row3[8] - $row3[9]), 0, 0, 'C', 0);
开发者ID:kailIII,项目名称:catalogo,代码行数:31,代码来源:estadoCuentaClientes.php

示例10: while

    while ($row1 = pg_fetch_row($sql1)) {
        $id_fac = $row1[0];
        $num_fac = $row1[1];
        $total = $row1[3];
        $fecha = $row1[4];
        $cliente = $row1[2];
    }
    $sql2 = pg_query("SELECT * FROM gastos where fecha_actual between '{$_GET['inicio']}' and '{$_GET['fin']}' and id_factura_venta='{$id_fac}' order by id_factura_venta asc");
    while ($row2 = pg_fetch_row($sql2)) {
        $pdf->SetX(1);
        $pdf->Cell(20, 6, substr($num_fac, 8, 30), 0, 0, 'C', 0);
        $pdf->Cell(22, 6, utf8_decode($fecha), 0, 0, 'C', 0);
        $pdf->Cell(40, 6, maxCaracter(utf8_decode($cliente), 18), 0, 0, 'L', 0);
        $pdf->Cell(15, 6, utf8_decode($total), 0, 0, 'C', 0);
        $pdf->Cell(40, 6, maxCaracter(utf8_decode($row2[6]), 20), 0, 0, 'L', 0);
        $pdf->Cell(20, 6, utf8_decode($row2[4]), 0, 0, 'C', 0);
        $pdf->Cell(15, 6, utf8_decode($row2[7]), 0, 0, 'C', 0);
        $pdf->Cell(15, 6, utf8_decode($row2[8]), 0, 0, 'C', 0);
        $pdf->Cell(20, 6, utf8_decode($row2[9]), 0, 1, 'C', 0);
        $tot = $tot + $total;
        $acumlado = $acumlado + $row2[7];
    }
}
$pdf->SetX(1);
$pdf->Cell(207, 0, utf8_decode(""), 1, 1, 'R', 0);
$pdf->Cell(83, 6, utf8_decode("Totales Venta"), 0, 0, 'R', 0);
$pdf->Cell(20, 6, maxCaracter(number_format($tot, 2, ',', '.'), 20), 0, 0, 'C', 0);
$pdf->Cell(85, 6, utf8_decode("Totales Gastos"), 0, 0, 'R', 0);
$pdf->Cell(20, 6, maxCaracter(number_format($acumlado, 2, ',', '.'), 20), 0, 1, 'C', 0);
$pdf->Ln(3);
$pdf->Output();
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:gasto_acumulado.php

示例11: maxCaracter

    $pdf->SetX(3);
    $pdf->Cell(30, 5, "REGISTRADO.: ", 0, 0, 'L', 0);
    $pdf->Cell(90, 5, maxCaracter(utf8_decode($row[37]) . " " . utf8_decode($row[38]), 40), 0, 0, 'L', 0);
    $pdf->Cell(30, 5, "TEL/CEL.: ", 0, 0, 'L', 0);
    $pdf->Cell(52, 5, maxCaracter(utf8_decode($row[40] . " - " . $row[41]), 22), 0, 1, 'L', 0);
    $pdf->Ln(2);
    $pdf->SetX(3);
    $pdf->Cell(30, 5, "ACCESORIOS: ", 0, 0, 'L', 0);
    $pdf->SetX(33);
    $pdf->MultiCell(170, 4, maxCaracter(utf8_decode($row[6]), 280), 0, 'L', 0);
    $pdf->SetY(236);
    $pdf->SetX(3);
    $pdf->Cell(30, 5, "OBSERVACIONES: ", 0, 1, 'L', 0);
    $pdf->SetY(236);
    $pdf->SetX(33);
    $pdf->MultiCell(170, 4, maxCaracter(utf8_decode($row[5]), 280), 0, 'L', 0);
    $pdf->SetY(255);
    $pdf->SetX(3);
    $pdf->Cell(30, 5, "NOTAS: ", 0, 1, 'L', 0);
    $pdf->SetY(255);
    $pdf->SetX(33);
    $pdf->MultiCell(170, 4, maxCaracter(utf8_decode("El diagnóstico del equipo tiene un precio mínimo de \$10.00 (Diez Dólares) \nToda máquina reparada y no retirada en tres meses será subastada \nFavor revisar que en su orden consten todos los componentes que usted deja. No se admitiran reclamos posteriores\nPyS Systems no se responsabiliza por la pérdida de la información"), 400), 0, 'L', 0);
    $pdf->SetY(280);
    $pdf->SetX(3);
    $pdf->Cell(100, 5, "__________________________________________", 0, 0, 'C', 0);
    $pdf->Cell(102, 5, "__________________________________________", 0, 1, 'C', 0);
    $pdf->SetX(3);
    $pdf->Cell(100, 5, "ENTREGE CONFORME", 0, 0, 'C', 0);
    $pdf->Cell(102, 5, "RECIBI CONFORME", 0, 1, 'C', 0);
}
$pdf->Output();
开发者ID:Oskrin,项目名称:facsisweb,代码行数:31,代码来源:reporteRegistro.php

示例12: maxCaracter

    $pdf->Text(95, $yy, maxCaracter(utf8_decode($row[4]), 6), 0, 0, 'L', 0);
    $pdf->Text(120, $yy, maxCaracter($temp_1, 6), 0, 0, 'L', 0);
    $yy = $yy + 5;
}
/////////pie
$subtotal = truncateFloat($iva12, 2);
$descuento_venta = truncateFloat($descuento_venta, 2);
$iva_venta = truncateFloat($iva_venta, 2);
$iva0 = truncateFloat($iva0, 2);
$total_venta = truncateFloat($total_venta, 2);
$pdf->Text(120, 113, maxCaracter($subtotal, 5), 0, 1, 'L', 0);
$pdf->Text(120, 119, maxCaracter($iva0, 5), 0, 1, 'L', 0);
$pdf->Text(120, 125, maxCaracter($iva_venta, 5), 0, 1, 'L', 0);
$pdf->Text(98, 126, '12', 0, 1, 'L', 0);
$pdf->Text(120, 131, maxCaracter($descuento_venta, 5), 0, 1, 'L', 0);
$pdf->Text(120, 137, maxCaracter($total_venta, 10), 0, 1, 'L', 0);
$pdf->Output();
require '../dompdf/dompdf_config.inc.php';
session_start();
$codigo = '<html>
     <head> 
        
    </head>
    <style>
    @page {
        margin-top: 2em;
        margin-left: 3em;
        margin-bottom: 1em;
        margin-right: 2em;
    }
    </style> 
开发者ID:kailIII,项目名称:catalogo,代码行数:31,代码来源:notaCredito.php

示例13: pg_query

    $pdf->Ln(5);
}
$pdf->SetX(1);
$pdf->Ln(5);
$sql = pg_query("select F.descuento,F.tarifa0,F.tarifa12,F.iva,F.total from factura_compra F,detalle_factura_compra D,productos P where F.id_factura_compra=D.id_factura_compra and D.id_productos=P.id_productos and D.id_factura_compra='{$_GET['id']}' LIMIT 1");
while ($row = pg_fetch_row($sql)) {
    $pdf->Cell(173, 6, utf8_decode("Descuento"), 0, 0, 'R', 0);
    $pdf->Cell(35, 6, maxCaracter(truncateFloat($row[0], 2), 20), 0, 1, 'C', 0);
    $pdf->Cell(173, 6, utf8_decode("Tarifa 0"), 0, 0, 'R', 0);
    $pdf->Cell(35, 6, maxCaracter(truncateFloat($row[1], 2), 20), 0, 1, 'C', 0);
    $pdf->Cell(173, 6, utf8_decode("Tarifa 12"), 0, 0, 'R', 0);
    $pdf->Cell(35, 6, maxCaracter(truncateFloat($row[2], 2), 20), 0, 1, 'C', 0);
    $pdf->Cell(173, 6, utf8_decode("Iva 12%"), 0, 0, 'R', 0);
    $pdf->Cell(35, 6, maxCaracter(truncateFloat($row[3], 2), 20), 0, 1, 'C', 0);
    $pdf->Cell(173, 6, utf8_decode("Total"), 0, 0, 'R', 0);
    $pdf->Cell(35, 6, maxCaracter(truncateFloat($row[4], 2), 20), 0, 1, 'C', 0);
}
//////////
// $sql=pg_query("select * from series_compra,factura_compra,productos where factura_compra.id_factura_compra=series_compra.id_factura_compra and productos.cod_productos=series_compra.cod_productos and series_compra.id_factura_compra='$_GET[id]'");
// if(pg_num_rows($sql)){
//     $pdf->AddPage();
//     $pdf->Cell(205, 7, utf8_decode("NÚMEROS DE SERIE"),0,1, 'C',0);
//     $pdf->Cell(50, 5, utf8_decode("Cod. Producto"),1,0, 'C',0);
//     $pdf->Cell(95, 5, utf8_decode("Descripción"),1,0, 'C',0);
//     $pdf->Cell(30, 5, utf8_decode("Nro. Serie"),1,0, 'C',0);
//     $pdf->Cell(30, 5, utf8_decode("Nro. Factura"),1,1, 'C',0);
//     while($row=pg_fetch_row($sql)){
//         $pdf->Cell(50, 6, maxCaracter(utf8_decode($row[28]),20),0,0, 'C',0);
//         $pdf->Cell(95, 6, maxCaracter(utf8_decode($row[30]),60),0,0, 'C',0);
//         $pdf->Cell(30, 6, maxCaracter(utf8_decode($row[3]),20),0,0, 'C',0);
//         $pdf->Cell(30, 6, maxCaracter(utf8_decode($row[17]),20),0,1, 'C',0);
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:factura_compra.php

示例14: utf8_decode

            $pdf->Cell(25, 6, utf8_decode($row1[4]), 0, 1, 'C', 0);
            $saldo = $row1[13];
        }
        $pdf->Ln(2);
        $pdf->Cell(205, 0, utf8_decode(''), 1, 1, 'R', 0);
        $pdf->Cell(187, 6, utf8_decode('Total Saldo'), 0, 0, 'R', 0);
        $pdf->Cell(20, 6, number_format($saldo, 2, ',', '.'), 0, 0, 'C', 0);
    }
} else {
    $sql = pg_query("select * from factura_compra,proveedores,usuario,empresa where factura_compra.id_proveedor=proveedores.id_proveedor and factura_compra.id_usuario=usuario.id_usuario and factura_compra.id_empresa=empresa.id_empresa and num_serie='{$_GET['id']}' and proveedores.id_proveedor='{$_GET['proveedor']}'");
    while ($row = pg_fetch_row($sql)) {
        $pdf->SetX(1);
        $pdf->SetFillColor(187, 179, 180);
        $pdf->Cell(50, 6, maxCaracter(utf8_decode('RUC/CI:' . $row[23]), 35), 1, 0, 'L', 1);
        $pdf->Cell(80, 6, maxCaracter(utf8_decode('NOMBRES:' . $row[24]), 35), 1, 0, 'L', 1);
        $pdf->Cell(75, 6, maxCaracter(utf8_decode('SECCIÓN:' . $row[52]), 50), 1, 1, 'L', 1);
        $pdf->Ln(3);
        $pdf->SetX(1);
        $pdf->Cell(30, 6, utf8_decode('Comprobante'), 1, 0, 'C', 0);
        $pdf->Cell(30, 6, utf8_decode('Tipo Documento'), 1, 0, 'C', 0);
        $pdf->Cell(50, 6, utf8_decode('Nro. Factura'), 1, 0, 'C', 0);
        $pdf->Cell(25, 6, utf8_decode('Total'), 1, 0, 'C', 0);
        $pdf->Cell(25, 6, utf8_decode('Valor Pago'), 1, 0, 'C', 0);
        $pdf->Cell(20, 6, utf8_decode('Saldo'), 1, 0, 'C', 0);
        $pdf->Cell(25, 6, utf8_decode('Fecha Pago'), 1, 1, 'C', 0);
    }
    $sql = pg_query("select * from pagos_pagar where num_factura='{$_GET['id']}' and comprobante='{$_GET['comprobante']}'");
    $meses = 0;
    $id_pv = 0;
    while ($row = pg_fetch_row($sql)) {
        $pdf->Cell(30, 6, utf8_decode($row[3]), 0, 0, 'C', 0);
开发者ID:Oskrin,项目名称:neltex_formulario,代码行数:31,代码来源:reporte_cxp.php

示例15: utf8_decode

                        $pdf->Cell(25, 6, utf8_decode($row2[6]), 0, 0, 'C', 0);
                        $pdf->Cell(30, 6, utf8_decode($row2[2]), 0, 0, 'C', 0);
                        $pdf->Cell(20, 6, utf8_decode($row2[5]), 0, 1, 'C', 0);
                        $sub = $sub + $row2[1];
                        $saldo = $saldo + $row2[6];
                        /*$sql3=pg_query("select * from detalles_pagos_internos where id_cuentas_cobrar='$row2[0]'");
                          while($row3=pg_fetch_row($sql3)){
                              $pdf->Cell(25, 6, utf8_decode(''),0,0, 'C',0);
                              $pdf->Cell(26, 6, utf8_decode(''),0,0, 'C',0);
                              $pdf->Cell(35, 6, '',0,0, 'C',0);
                              $pdf->Cell(20, 6, utf8_decode(''),0,0, 'C',0);
                              $pdf->Cell(20, 6, utf8_decode($row3[3]),0,0, 'C',0);
                              $pdf->Cell(25, 6, utf8_decode($row3[4]),0,0, 'C',0); 
                              $pdf->Cell(30, 6, utf8_decode($row2[2]),0,0, 'C',0); 
                              $pdf->Cell(20, 6, utf8_decode($row2[5]),0,1, 'C',0);                                 
                          }*/
                    }
                }
            }
        }
        if ($contador > 0) {
            $pdf->SetX(1);
            $pdf->Cell(207, 0, utf8_decode(""), 1, 1, 'R', 0);
            $pdf->Cell(106, 6, utf8_decode("Totales"), 0, 0, 'R', 0);
            $pdf->Cell(21, 6, maxCaracter(number_format($sub, 2, ',', '.'), 20), 1, 0, 'C', 0);
            $pdf->Cell(25, 6, maxCaracter(number_format($saldo, 2, ',', '.'), 20), 1, 1, 'C', 0);
            $pdf->Ln(3);
        }
    }
}
$pdf->Output();
开发者ID:kailIII,项目名称:catalogo,代码行数:31,代码来源:cobros_realizados_internos.php


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