
11/02/2002, 16:03
|
| | Fecha de Ingreso: diciembre-2001
Mensajes: 262
Antigüedad: 23 años, 5 meses Puntos: 0 | |
Re: Ordenar una tabla correctamente.. Una copia exacta del que yo utilizo
<pre>
<table width="625" cellpadding="1" cellspacing="3">
<tr>
<%
columna=0
Do While Not rs.Eof
columna=columna+1
%>
<td>
<table>
<tr>
<td>
<% If trim(rs("foto1")) <>"" Then
%>
<img src="fotos/<%= rs("foto1")%>" align="left" >
<% End If
%>
<img src="imagenes/flecha.gif"> <a href=ver.asp?id=<%= rs("id")%> class="menuL"><%= rs("titulo") %></a><br>
<table border="0" cellspacing="0" cellpadding="0" class="txjustpq">
<tr>
<td>
<% texto = rs("noticia")
texto = replace(texto, chr013),"<br>")
texto = left(texto,150)
Response.Write texto & "..."
%>
<a href=ver.asp?id=<%= rs("id")%> class="enlaceblanco">+ info</a> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<hr width="75%" align="center">
</td>
</tr>
</table>
<%
If columna = 2 then
columna = 0
%>
</td><tr>
<%
End If
rs.MoveNext
loop
%>
</table>
<%
rs.Close
Con.Close
set rs=Nothing
Set con= Nothing
%>
</td>
</tr>
</table>
</pre>
Tiene mucho de tablas y demas pero esta bastante completo.
Espero que te sirva de ayuda.
Juan |