la funcion es esta:
Código:
Lo que hace es que toma algunos valores y dependiendo de ellos muestra algunas categorias solo que algunas son pocas y otras muchos los productos que tienen y es en estas que quisiera mostrar el paginador, ojala pudieran ayudarme, de antemano muchas gracias como siempre Function ListaArchivos(lineas,por,orden,donde) cuenta=1 if por="" or por="0" then por=" ORDER BY id " else por=" ORDER BY " & por if orden=0 then orden=" ASC" else orden=" DESC" if donde<>0 then dondew=" WHERE categoria="&donde&" " if lineas<>0 or request("m")<>0 then LIMITE = "LIMIT " & lineas %> <!--#include file="conexion.inc" --> <% Set RSprod = Server.CreateObject("ADODB.Recordset") rsprod.CursorLocation = 3 SQL="Select * From productos " & dondew & por & orden & " " & LIMITE rsprod.open sql, oConn %> <%if dondew<>"" then%> <div style="width:80%; margin:5px auto; padding:3px; border:1px solid #CCC; background-color: #F8F8F8"> Se han encontrado <span style="font-weight:bold"><%=rsprod.recordcount%></span> productos </div> <%end if%> <div id="contenido_productos"> <%do while not rsprod.eof 'not cuenta>lineas and not rsprod.eof imagen="thumbail.aspx?ForceAspect=False&Width=80&image=admin/productos/"&rsprod("imagen") %> <div class="contenido_productos_izq"> <%if cuenta>1 then%><hr style="color:#f60;" width="90%" size="1" noshade="noshade" /><%end if%> <div class="caja_productos clearfix"> <div class="caja_productos_izq"> <img src="<%=imagen%>" alt="<%=rsprod("nombre")%>" style="border:1px solid #000" /> </div> <div class="caja_productos_der"> Modelo: <strong><%=rsprod("nombre")%></strong><br /> Ancho: 34cm<br /> Alto: 23cm<br /> Base: 12.5cm<br /> <%if rsprod("precio")<>"0" or rsprod("precio")<>Null then%><span style="font-weight:bold; <%if rsprod("precio_outlet")<>"0" or rsprod("precio_oferta")<>"0" then response.write "text-decoration:line-through"%>">Precio de lista: <%=formatcurrency(rsprod("precio"),2)%></span><br /><%end if%> <%if rsprod("precio_outlet")<>"0" then%><span style="font-size:1em; color:#f00; font-weight:bold; <%if rsprod("precio_oferta")<>"0" then response.write "text-decoration:line-through"%>">Precio Outlet: <%=formatcurrency(rsprod("precio_outlet"),2)%></span><br /><%end if%> <%if rsprod("precio_oferta")<>"0" then%><span style="font-size:1.1em; color:#f00; font-weight:bold; ">Precio Oferta: <%=formatcurrency(rsprod("precio_oferta"),2)%></span><br /><%end if%> <br /><br /> <br /> <div style="text-align:right;"><img src="images/masinfo.jpg" alt="Mas info" /></div> </div> </div> </div> <%rsprod.movenext if not rsprod.eof then imagen="thumbail.aspx?ForceAspect=False&Width=80&image=admin/productos/"&rsprod("imagen") %> <div class="contenido_productos_der"> <%if cuenta>1 then%><hr style="color:#f60;" width="90%" size="1" noshade="noshade" /><%end if%> <div class="caja_productos clearfix"> <div class="caja_productos_izq"> <img src="<%=imagen%>" alt="<%=rsprod("nombre")%>" width="80" style="border:1px solid #000" /> </div> <div class="caja_productos_der"> Modelo: <strong><%=rsprod("nombre")%></strong><br /> Ancho: 34cm<br /> Alto: 23cm<br /> Base: 12.5cm<br /> <%if rsprod("precio")<>"0" or rsprod("precio")<>Null then%><span style="font-weight:bold; <%if rsprod("precio_outlet")<>"0" or rsprod("precio_oferta")<>"0" then response.write "text-decoration:line-through"%>">Precio de lista: <%=formatcurrency(rsprod("precio"),2)%></span><br /><%end if%> <%if rsprod("precio_outlet")<>"0" then%><span style="font-size:1em; color:#f00; font-weight:bold; <%if rsprod("precio_oferta")<>"0" then response.write "text-decoration:line-through"%>">Precio Outlet: <%=formatcurrency(rsprod("precio_outlet"),2)%></span><br /><%end if%> <%if rsprod("precio_oferta")<>"0" then%><span style="font-size:1.1em; color:#f00; font-weight:bold; ">Precio Oferta: <%=formatcurrency(rsprod("precio_oferta"),2)%></span><br /><%end if%> <br /><br /> <div style="text-align:right;"><img src="images/masinfo.jpg" alt="Mas info" /></div> </div> </div> </div> <br clear="all" /> <%rsprod.movenext end if cuenta=cuenta+1 loop%> </div> <% rsprod.close set rsprod=nothing End Function
