Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/02/2010, 12:34
dohko7
(Desactivado)
 
Fecha de Ingreso: febrero-2010
Mensajes: 96
Antigüedad: 14 años, 2 meses
Puntos: 0
ocultar un campo si no posee valor, ajax php

bueno directo al grano!
se que no les gusta leer tanta paja!!

tengo el siguiente codigo

Código PHP:
Ver original
  1. if ($anios_debe > 0 ){
  2.                                 // Muestreo de tabla dentro de la busqueda.
  3.         echo "<form>";
  4.         echo "<table border='1' align='center' align='center'>
  5.         <tr><th align='center'>Impuesto ".$año."</th>
  6.         <th> ". ($unidad*$factor) . "</th>
  7.         <tr><th align='center'>Multa ".$año."</th>
  8.         <th> ". $multa . "</th>
  9.         <tr><th align='center'>Descuento ".$año."</th>
  10.         <th> ". $descuento . "</th>
  11.         <tr><th align='center'>Pago Impuesto A&ntilde;os Anteriores</th>
  12.         <th> ". $monto_aa . "</th>
  13.         <tr><th align='center'>Multa A&ntilde;os Anteriores</th>
  14.         <th> ". $multap . "</th>
  15.         <tr><th align='right'>TOTAL</th><th> ". $total1 . "</th>
  16.  
  17.         </tr>";
  18.      
  19.     echo "</table>";
  20.     echo "</form>";
  21.     }

Como veran la tabla es creada en php TODO por que es un archivo unicamente PHP

esto lo traigo con ajax y me muestra esto

Código tabla en la pagina:
Ver original
  1. Impuesto 2010   65
  2. Multa 2010  .00000
  3. Descuento 2010  .000000
  4. Pago Impuesto Años Anteriores   57
  5. Multa Años Anteriores   195
  6. TOTAL   317

ahora:
LO QUE ME PIDEN HACER ES OCULTAR LA MULTA Y EL DESCUENTO YA QUE NO POSEEN VALOR. Y QUE LO MUSTRE CUANDO TENGAN DESCUENTO O TENGA UNA MULTA!!!!

NOO LOGRO RELACIONARLO CON UN
Código CODIGO:
Ver original
  1. IF($multa > 0){
  2. echo $multa
  3. }
eso lo e intentado pero no lo muestra y no lo puedo relacionar

SI ALGUIEN SABE DE ANTEMANO MUCHAS GRACIASSS