Ver Mensaje Individual
  #13 (permalink)  
Antiguo 13/11/2007, 09:58
Avatar de Shiryu_Libra
Shiryu_Libra
Colaborador
 
Fecha de Ingreso: febrero-2007
Ubicación: Cantando "Screenager" en "Kirafa Kaput"
Mensajes: 3.614
Antigüedad: 18 años, 1 mes
Puntos: 88
Re: Problema Con Formato De Tabla

Mcloud
mira Mater A_Z(), te decia que le dieras formato a la tabla con CSS, para que se miren mejor las tablas...

Despues nuestros compañeros Cesarbalaguer() y solracnauj21, te decian que no utilizaras 2 tablas para formar tu consulta, es un poco engorrosa y se mira demasiado desordenada si no les das formato a las 2 para que sean iguales en el despliegue...

anteriormente (6 dias) te anexe un pedazo de codigo que se hace en el despliegue de los datos de la consulta para evitar los datos nulos....

juntando todo lo que te hemos dicho seria algo asi:

CSS
Código PHP:
<HEAD>
<
style media="screen" type="text/css">
body{
    
background-color:#FFCC66;
    
background-image:"2.jpg";}
body a:linka:vlinka:alink;{
    
color:#000000;}
table{
    
text-align:center;
    
vertical-align:top;
    
width:1404px;
    
border:1 px;}
th{
    
border-color:#F0F0F0;
    
background-color:#FFA500;
    
text-align:center;
    
font-style:normal;}
.
tda1{text-align:left;}
.
tda2{text-align:center;}
</
style
recuerda que el CSS, debe estar entre las etiquetas HEAD y las tablas en ves de ser 2, la dejamos en 1 sola
Código PHP:
.
...
.
.
.<
font face="Bookman Old Style"><em>N&uacute;mero de registros seleccionados:</em></font> <b><%=RS.RecordCount%></b>
<
table cellspacing="2">
    <
tr height="61">
        <
th width="74">Csr</th>
        <
th width="60">Local</th>
        <
th width="66">Guia De Despacho</th>
        <
th width="125">Distribuidor</th>
        <
th width="73">Fecha Ingreso</th>
        <
th width="122">Artefacto</th>
        <
th width="83">Serie</th>
        <
th width="95">Estado</th>
        <
th width="92">Fecha Aviso</th>
        <
th width="72">Fecha Status</th>
        <
th width="92">Guia de Entrega</th>
        <
th width="59">Tipo de Garantia</th>
        <
th width="76">Tecnico Asignado</th>
        <
th width="101">Código de Autorización</th>
        <
th width="74">Diferencia Dias Status</th>
        <
th width="74">Diferencia Dias Total</th>
    </
tr>
<%
while 
rs.EOF=FALSE
%>
    <
tr>
        <
td class="tda1"><%if (rs.fields.item("csr").value)<>"" then response.Write rs.fields.item("csr").value else response.Write"&nbsp;"%></td>
        <
td class="tda1"><%if (rs.fields.item("loc").value)<>"" then response.Write rs.fields.item("loc").value else response.Write"&nbsp;"%></td>
        <
td class="tda1"><%if (rs.fields.item("guia_d").value)<>"" then response.Write rs.fields.item("guia_d").value else response.Write"&nbsp;"%></td>
        <
td class="tda2"><%if (rs.fields.item("distribuidor").value)<>"" then response.Write rs.fields.item("distribuidor").value else response.Write"&nbsp;"%></td>
        <
td class="tda1"><%if (rs.fields.item("fecha_in").value)<>"" then response.Write rs.fields.item("fecha_in").value else response.Write"&nbsp;"%></td>
        <
td class="tda2"><%if (rs.fields.item("artefacto").value)<>"" then response.Write rs.fields.item("artefacto").value else response.Write"&nbsp;"%></td>
        <
td class="tda1"><%if (rs.fields.item("serie").value)<>"" then response.Write rs.fields.item("serie").value else response.Write"&nbsp;"%></td>
        <
td class="tda2"><%if (rs.fields.item("estado").value)<>"" then response.Write rs.fields.item("estado").value else response.Write"&nbsp;"%></td>
        <
td class="tda1"><%if (rs.fields.item("fecha_avi").value)<>"" then response.Write rs.fields.item("fecha_avi").value else response.Write"&nbsp;"%></td>
        <
td class="tda2"><%if (rs.fields.item("fecha_ret").value)<>"" then response.Write rs.fields.item("fecha_ret").value else response.Write"&nbsp;"%></td>
        <
td class="tda1"><%if (rs.fields.item("guia_sta").value)<>"" then response.Write rs.fields.item("guia_sta").value else response.Write"&nbsp;"%></td>
        <
td class="tda2"><%if (rs.fields.item("gtia").value)<>"" then response.Write rs.fields.item("gtia").value else response.Write"&nbsp;"%></td>
        <
td class="tda1"><%if (rs.fields.item("tecnico").value)<>"" then response.Write rs.fields.item("tecnico").value else response.Write"&nbsp;"%></td>
        <
td class="tda2"><%if (rs.fields.item("cod_auto").value)<>"" then response.Write rs.fields.item("cod_auto").value else response.Write"&nbsp;"%></td>
        <
td class="tda1"><%if (rs.fields.item("difes").value)<>"" then response.Write rs.fields.item("difes").value else response.Write"&nbsp;"%></td>
        <
td class="tda2"><%if (rs.fields.item("difftot").value)<>"" then response.Write rs.fields.item("difftot").value else response.Write"&nbsp;"%></td>
    </
tr><%rs.Movenext%>
</
table>
<%
wend
....
....
.. 
tambien existe la forma de desplegar los resultados con el metodo GetRows....

ahora compara tus codigos con los que te hemos estado aconsejando y dinos cual es la diferencia...

__________________
"Eres parte del problema, parte de la solucion o parte del paisaje"
Un Saludo desde Desierto de Altar, Sonora, MX.
Shiryu_libra