Ir para conteúdo
Fórum Script Brasil

hermoso007

Membros
  • Total de itens

    5
  • Registro em

  • Última visita

Sobre hermoso007

hermoso007's Achievements

0

Reputação

  1. valeueuuuuuuuuu brother... agora estah funcionando perfeitamente.... brigadu mesmo hein....
  2. me desculpe, mas não entendi... veja se é isso </table> </form> </td> <td height="86" width="380"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.dynamus.economicojp.com/"> </a> </font> <% rs.movenext xx = xx + 2%> <form method=get action=DETALHES.ASP> <table width="26%" height="86" border="0"> <tr> <td width="30%" height="82" valign="middle">
  3. Se eu coloco pagesize = 10, são exibidos 20 registros por pagina. O codigo pelo visto esta interpretando cada linha como um registro
  4. mudei e o codigo ficou perfeito na 1 pagina, porem, na segunda ela repete os ultimos 5 registros da primeira...
  5. Ola p todos... gostaria de paginar 2 itens por linha de uma mesma tabela que esta dentro do while/wend. só que quando mando para o server o arquivo.asp duplica os registros. Segue o codigo caso alguém queira ajudar.. valeuu www.dynamus.economicojp.com/produtos/shop/paginacao.asp <!-- #include file="../include/top.asp" --> <% pagina = Request.QueryString("p") if pagina = "" then pagina = 1 end if 'Seta a variavel pagina como a página em questão na paginação registros = 5 'Seta o número de registros por pagina set RS = Server.Createobject("AdoDB.RecordSet") set RS.ActiveConnection = conn RS.cursortype = 3 RS.pagesize = registros StrSQL = "select * from Items where tipo=""calca""" RS.Open StrSQL if RS.EOF then %><font face="Arial" size="2">Sua pesquisa não retornou nenhum resultado</font><% else RS.absolutepage = pagina if RS.EOF then %><font face="Arial" size="2">Sua pesquisa não retornou nenhum resultado</font><% fim = -1 end if xx = 0 while NOT RS.EOF AND xx < RS.pagesize xx = xx + 1 %> <table width="776" height="55"> <tr> <td height="86" width="384"> <form method=get action=DETALHES.ASP> <table width="26%" height="86" border="0"> <tr> <td width="30%" height="82" valign="middle"> <div align="center"><img src="http://www.dynamus.economicojp.com/produtos/shop/uploads/<%=rs("ImageDesc")%>" width="75" height="130" border="0"></div> </td> <td width="70%" height="82"> <table width="195" border="1" align="left" cellpadding="2" cellspacing="0" bordercolor="#FFFFFF"> <tr> <td bgcolor="#FFFFFF" height="10" width="187"><span class="style16"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><%=rs("ItemName")%></font></span></td> </tr> <tr> <td bgcolor="#ffffff" height="18" width="187"> <p align="LEFT" class="style17"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><span class="style20"><strong><span class="style19"> <input type="HIDDEN" name="NOME" value="<%=rs("ItemName")%>"> <input type="HIDDEN" name="desc" value="<%=rs("Itemdesc")%>"> <input type="HIDDEN" name="image" value="<%=rs("ImageDesc")%>"> <input type="HIDDEN" name="color" value="<%=rs("cores")%>"> <input type="HIDDEN" name="tamam" value="<%=rs("tamanho")%>"> <input type="HIDDEN" name="refe" value="<%=rs("ref")%>"> <input type="submit" name="Submit" value="Ver Detalhes"> </span></strong></span> </font> </td> </tr> </table> </td> </tr> </table> </form> </td> <td height="86" width="380"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"><a href="http://www.dynamus.economicojp.com/"> </a> </font> <% rs.movenext %><form method=get action=DETALHES.ASP> <table width="26%" height="86" border="0"> <tr> <td width="30%" height="82" valign="middle"> <div align="center"><img src="http://www.dynamus.economicojp.com/produtos/shop/uploads/<%=rs("ImageDesc")%>" width="75" height="130" border="0"></div> </td> <td width="70%" height="82"> <table width="195" border="1" align="left" cellpadding="2" cellspacing="0" bordercolor="#FFFFFF"> <tr> <td bgcolor="#FFFFFF" height="10" width="187"><span class="style16"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><%=rs("ItemName")%></font></span></td> </tr> <tr> <td bgcolor="#ffffff" height="18" width="187"> <p align="LEFT" class="style17"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><span class="style20"><strong><span class="style19"> <input type="HIDDEN" name="NOME" value="<%=rs("ItemName")%>"> <input type="HIDDEN" name="desc" value="<%=rs("Itemdesc")%>"> <input type="HIDDEN" name="image" value="<%=rs("ImageDesc")%>"> <input type="HIDDEN" name="color" value="<%=rs("cores")%>"> <input type="HIDDEN" name="tamam" value="<%=rs("tamanho")%>"> <input type="HIDDEN" name="refe" value="<%=rs("ref")%>"> <input type="submit" name="Submit" value="Ver Detalhes"> </span></strong></span> </font> </td> </tr> </table> </td> </tr> </table> </form></td></tr></table> <% rs.cachesize = 1 wend end if if fim = "" then anterior = pagina - 1 proxima = pagina + 1 if anterior <> 0 then %><% end if RS.Close Conn.Close %><a href="<%=request.servervariables("script_name")%>?p=<%=anterior%>">Página Anterior</a> - <% end if %><a href="<%=request.servervariables("script_name")%>?p=<%=proxima%>">Próxima Página</a>
×
×
  • Criar Novo...