Ver Mensaje Individual
  #11 (permalink)  
Antiguo 22/12/2009, 17:30
Avatar de zeuzft
zeuzft
 
Fecha de Ingreso: junio-2009
Ubicación: peru
Mensajes: 358
Antigüedad: 14 años, 10 meses
Puntos: 2
Exclamación Respuesta: No entiendo fpdf

me arroja el siguiente error; y no entiendo sigo la estructura:
Cita:
ERREUR n°4
Fichier : /home/citecper/public_html/sistema/include/parsingHTML.class.php
Ligne : 127

Code HTML non valide, les balises ne sont pas fermées dans le bon ordre.
Etat :

Array
(
[0] => page
[1] => table
[2] => tr
)



HTML : ...timpr'><u>20165645325</u></td></td> </tr> <tr><td><br style="line-he...
este es el codigo:
Código PHP:
<page orientation="paysage">
<?php
session_start
();
header ("Expires: Thu, 27 Mar 1980 23:59:00 GMT"); //la pagina expira en una fecha pasada
header ("Last-Modified: " gmdate("D, d M Y H:i:s") . " GMT"); //ultima actualizacion ahora cuando la cargamos
header ("Cache-Control: no-cache, must-revalidate"); //no guardar en CACHE
header ("Pragma: no-cache"); 
require_once(
"config/config.php");
require_once(
"include/clasesmysql.php");
$miconexion = new DB_mysql ;
$miconexion->conectar($basededatos$host$usuario_bd,$contrasena_bd);
$id=4;
$miconexion->consulta("select * from proformas p, cliente c, equipo_predefinido ep, obsequios ob where p.pr_cli_id_FK=c.cli_id and p.pr_ep_id_FK=ep.ep_id and p.pr_ob_id_FK=ob.ob_id and pr_id='$id'");
        
$row0 mysql_fetch_array($miconexion->Consulta_ID);
        
$numero=$row0['pr_num'];    
        
$fec=explode('-',$row0['pr_fecha']);    
        
$fecha=$fec[2].'-'.$fec[1].'-'.$fec[0];
        
$fecha1=$row0['pr_fecha'];
        . . . . . .. . . . . . 
?>
<table align='center' border='0' cellspacing='0' cellpadding='0'>
    <tr>
      <td align='left' colspan='3' class='textimpr'>
        <b><u>PROFORMA N&ordm;:</u></b><u>&nbsp;&nbsp;&nbsp;<?php echo $numero;?></u>
      </td>
      <td align='right' colspan='3' class='textimpr'><b><u>FECHA:</u></b>&nbsp;&nbsp;&nbsp;&nbsp;<u><?php echo $fecha;?></u></td>
    </tr>
    <tr><td><br style="line-height:8px "></td></tr>
    <tr>
        <td align='right' class='textimpr'><b>Sr.(es):</b></td>
        <td>&nbsp;</td>
        <td align='left' class='textimpr'><u><?=utf8_encode($razcli);?></u></td>
        <td align='right' class='textimpr'><? if ($tip_doc=="R") echo "<b>RUC:</b></td><td>&nbsp;</td><td align='left' class='textimpr'><u>$cliruc</u></td>"; else echo "<b>DNI:</b></td><td>&nbsp;</td><td align='left' class='textimpr'><u>$clidni</u></td>";?></td>
    </tr>
    <tr><td><br style="line-height:6px "></td></tr>
    <tr>
        <td align='right' class='textimpr'><b>Direcci&oacute;n:</b></td>
        <td>&nbsp;</td>
        <td align='left' class='textimpr'><u><?=utf8_encode($dircli);?></u></td>
        <td align='right' class='textimpr'><b>Tel&eacute;fono:</b></td>
        <td>&nbsp;</td>
        <td align='left' class='textimpr'><u><?=$telfcli?></u></td>
    </tr>
    <tr><td><br style="line-height:10px "></td></tr>
    <tr>
        <td>&nbsp;</td>
        <td colspan="5" class='textimpr'><?=$salu?></td>
    </tr>
    <tr><td><br style="line-height:14px" /></td></tr>
<?
$miconexion
->consulta1("select depr.dp_independiente,count(depr.dp_id) as nada from detalle_proformaequipoproducto depr where depr.dp_pr_id_FK=$id and depr.dp_independiente='N' group by depr.dp_independiente");
$row8 mysql_fetch_array($miconexion->Consulta_ID1);
$resp1=$row8['dp_independiente'];
$dif8=$row8['nada'];
$miconexion->consulta2("select depr.dp_independiente,count(depr.dp_id) as nada from detalle_proformaequipoproducto depr where depr.dp_pr_id_FK=$id and depr.dp_independiente='S' group by depr.dp_independiente");
$row7 mysql_fetch_array($miconexion->Consulta_ID2);
$resp2=$row7['dp_independiente'];
$dif7=$row7['nada'];
if ((
$dif8!=0) and ($dif7!=0))
{
?>
    <tr>
        <td colspan="6">
            <div id='divResultado'>    
            <table width='100%' border='0' >
            <tr><td align='left' colspan='4' class='textimpr'>
            <?
            $miconexion
->consulta("select * from proformas where pr_id=$id");
            
$row=mysql_fetch_array($miconexion->Consulta_ID);
            
$verprodu=$row['pr_descripcion'];
            
$obid025=$row['pr_ob_id_FK'];
            if (
$tip_coti=='P')
            
$str mb_strtoupper($verprodu);
            else
            
$str mb_strtoupper($cantprof.' '.$nomep1);
            
?><b><?=$str;?></b><br style='line-height:1px'><img src='images/linea1.png' width='100%' /></td></tr>
            <tr><td colspan='4'><br style='line-height:2px'></td></tr>
            <?
            $total
=0;
            
$totald=0;
            
$miconexion->consulta("select * from detalle_proformaequipoproducto depr, producto p, linea l where depr.dp_pr_id_FK=$id and p.prod_id=depr.dp_prod_id_FK and p.Lin_id_FK=l.Lin_id and depr.dp_independiente='N' order by 1");
            
$miconexion->consulta1("select * from obsequios where ob_id=$obid025");
            
$row5=mysql_fetch_array($miconexion->Consulta_ID1);
            while(
$row mysql_fetch_array($miconexion->Consulta_ID))
                {
                    
$codigo=$row['dp_prod_id_FK'];
                    
$nombre=$row['prod_nom'];
                    .. . .. . . .  .
                    
$preciopr=+$pob;
                    echo 
"<tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td class='textimpr'>$mostrar</td><td>&nbsp;</td><td>&nbsp;</td></tr>";
.......
            
$miconexion->consulta("select * from detalle_proformaequipoproducto depr, producto p, linea l where depr.dp_pr_id_FK=$id and p.prod_id=depr.dp_prod_id_FK and p.Lin_id_FK=l.Lin_id and depr.dp_independiente='S' order by 1");
            
$miconexion->consulta1("select * from obsequios where ob_id=$obid025");
            
$row5=mysql_fetch_array($miconexion->Consulta_ID1);
            while(
$row mysql_fetch_array($miconexion->Consulta_ID))
                {
                    
$codigo=$row['dp_prod_id_FK'];
                    
$nombre=$row['prod_nom'];
                    
$descripcion=$row['prod_desc'];
                    
$cant=$row['dp_canti'];            
                    
$tiposubtipo=$row['Lin_nom'];
                    
$precio=$row['dp_precio'];
                    if (
$tc==0)
                        
$tc=1;
                    else
                        
$tc=$tc;
                    
$preciod=round($precio/$tc,2);    
                    
$subtotald=round(($cant*$preciod),2);    
                    
$subtotal=round(($cant*$precio),2);
                    
$preciocompra=$row['prod_preccom'];
                    
$mostrar=utf8_encode($row['Lin_nom'].' '.$row['prod_nom'].' '.$row['prod_desc']);
                    
$pob=$row5['ob_precio'];
                    
$total+=$subtotal;
                    
$totald+=$subtotald;
                    
$preciopr=+$pob;
if (
$tip_coti=='P'){
?><tr><td class='textimpr'><?=$cant?></td><td class='textimpr'><?=$mostrar?></td><td class='textimpr' align='center'><?=$precio?></td><td align='right' class='textimpr'><?=$subtotal?></td></tr>
<?
}
else{
?><tr><td>&nbsp;</td><td class='textimpr' colspand='2'><?=$mostrar?></td></tr>
<?
}
}
?><tr><td colspan='5'><br style='line-height:1px' /><img src='images/linea1.png' width='100%' /></td></tr>
    <tr><td align='right' colspan='3' class='textimpr' align='right'><b>TOTAL S/:</b></td><td colspan='2' align='right' class='textimpr'><b><? echo (number_format($totfinals2'.'' '));?></b><br style='line-height:1px'><img src='images/linea2.png' /></td></tr></table><br />
        </div>
        </td>
    </tr>
<?}?>
<?
$miconexion
->consulta1("select depr.dp_independiente,count(depr.dp_id) as nada from detalle_proformaequipoproducto depr where depr.dp_pr_id_FK=$id and depr.dp_independiente='N' group by depr.dp_independiente");
$row8 mysql_fetch_array($miconexion->Consulta_ID1);
$resp1=$row8['dp_independiente'];
$dif8=$row8['nada'];
$miconexion->consulta2("select depr.dp_independiente,count(depr.dp_id) as nada from detalle_proformaequipoproducto depr where depr.dp_pr_id_FK=$id and depr.dp_independiente='S' group by depr.dp_independiente");
$row7 mysql_fetch_array($miconexion->Consulta_ID2);
$resp2=$row7['dp_independiente'];
$dif7=$row7['nada'];
if ((
$dif8==1) and ($dif7==0)){?>
    <tr>
        <td colspan="6">
            <div id='divResultado'>    
            <table width='100%' border='0' >
            <tr><td align='left' colspan='5' class='textimpr'>
            <?
            $miconexion
->consulta("select * from proformas where pr_id=$id");
            
$row=mysql_fetch_array($miconexion->Consulta_ID);
            
$verprodu=$row['pr_descripcion'];
            
$obid025=$row['pr_ob_id_FK'];
            if (
$tip_coti=='P')
            
$str mb_strtoupper($verprodu);
            else
            
$str mb_strtoupper($cantprof.' '.$nomep1);
            
?><b><?=$str?></b> <br style='line-height:1px'><img src='images/linea1.png' width='100%' /></td></tr>
            <tr><td colspan='5'><br style='line-height:2px'></td></tr>
            <?
            $total
=0;
            
$totald=0;
            
$miconexion->consulta("select * from detalle_proformaequipoproducto depr, producto p, linea l where depr.dp_pr_id_FK=$id and p.prod_id=depr.dp_prod_id_FK and p.Lin_id_FK=l.Lin_id and depr.dp_independiente='N' order by 1");
            
$miconexion->consulta1("select * from obsequios where ob_id=$obid025");
            
$row5=mysql_fetch_array($miconexion->Consulta_ID1);
            while(
$row mysql_fetch_array($miconexion->Consulta_ID))
                {
                    
$codigo=$row['dp_prod_id_FK'];
                    
$nombre=$row['prod_nom'];
                    
$descripcion=$row['prod_desc'];
                    
$cant=$row['dp_canti'];            
------
........
        </
td>
    </
tr>
<?}
?>
<?
    $miconexion
->consulta("select * from proformas p inner join obsequios o on p.pr_ob_id_FK=o.ob_id where pr_id=$id");
    
$row=mysql_fetch_array($miconexion->Consulta_ID);
    
$idob=$row['ob_id'];
    
$veregalos=$row['ob_desc'];
    if (
$idob==2) {$veregalos='';} else {$veregalos=$veregalos;?>
    <tr>
        <td colspan='6' class='textimpr'>
        <B>OBSEQUIOS:</B>
        </td>
    </tr>
    <tr>
        <td colspan='6' class='textimpr'>
            <?echo "<font style='margin-left:6%'>$veregalos</font>";?>
        </td>
    </tr>
    <?}?>
    <tr><td><br style="line-height:8px "></td></tr>
    <tr>
        <td colspan='6' class='textimpr'><B>GARANTIAS</B>:</td>
    </tr>
    <tr>
        <td colspan='6' class='textimpr'><font style='margin-left:6%'><?=$garantia;?></font></td>
    </tr>
    <tr><td><br style="line-height:2px"></td></tr>
    <tr>
        <td align='center' colspan="6" class='textimpr'>
        <b>!!! MAS DE 10 A&Ntilde;OS DE NUESTRA EXPERIENCIA RESPALDAN SU CONFIANZA !!!</b></td>
    </tr>
.
.
.
.
</table>
</page>