| |
|
<% Dim Codigo1, Codigo2, Codigo3, Cogido4
Dim Descricao, Descricao2, Preco, titulo,Foto
Dim oConn, sConn, sqlstr
Set oConn = Server.CreateObject("ADODB.Connection")
Set RS = Server.CreateObject("ADODB.Recordset")
cnpath="DBQ=" & server.mappath("coionline.mdb")
sConn = "DRIVER={Microsoft Access Driver (*.mdb)};"& cnpath
oConn.Open(sConn)
Sqlstr = "Select * from Produtos where codigocategoria =" & Session("cat")
RS.Open sqlstr, oConn, 3,3
%>
<%
rs.pagesize = 40
if (request("pagina")<>"") then
pagina = cint(request("pagina"))
else
pagina = 1
end if
%>
| - |
|
<%
if rs.Pagecount > 1 then %>
<%if pagina <> 1 then %>
| &Categoria=<%=Session("Cat")%>">Anterior | |
<%end if
j=1
do while j <= rs.PageCount
if pagina = j then %>
<%=j%> |
<% else %>
&pagina=<%=j%>"><%=j%> |
<% end if
j=j+1
loop %>
<% if pagina <> rs.Pagecount then %>
| &Categoria=<%=Session("Cat")%>">Próximo |
<% end if
else %>
| Anterior | |
|
|
| Próximo |
<%
end if
'rs.close %>
| - |
|
| Descrição |
Preço
R$ |
<%'rs.close
'rs.open sql,conn,3,3
rs.Absolutepage = Session("pagina")
if not (rs.eof and rs.bof) then
i = 0
do while (i<=40 and not rs.eof)
i = i + 1
%>
|
<% response.write rs("Descricao")%> |
<% response.write(FormatCurrency(rs("prvenda"),2))%> |
<% rs.movenext
loop
end if %>
|
|
|
- |
|
|
* A Disponibilidade e os Preços podem ser
alterados sem aviso prévio |
|
|
|
|
| |
|
|
|