Atelier
RBB Figurative Painting
Price list for Art Dealers and Interior Designers
<% PageNo = request("page")
If PageNo="" then
%>
For
new clients, please register to
get the price list.
<%
PageNo=1
ElseIf PageNo=1 then
%>
For existing
clients, click the botton below to price list.
<%
Else
%>
<%
End If
set conn = server.createobject("adodb.connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath(".../db/database.mdb")
conn.Open DSNtemp
sqlstmt = "SELECT * from Records ORDER BY PostDate DESC"
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sqlstmt, conn, 3, 3
TotalRecs = rs.recordcount
rs.Pagesize=10
TotalPages = cInt(rs.pagecount)
rs.absolutepage=PageNo
If PageNo = 1 then
response.write " There are " & TotalRecs & " entries in " & TotalPages & " pages"
End If
If rs.eof then
response.write "
There are no entries in the records."
response.write " Sign the Entry
"
response.end
End If
x = 0
For x = 1 to 10
If rs.eof then
Exit For
Else
When = rs("PostDate")
Name = rs("Name")
Name = Replace(Name,"''","'")
Company = rs("Company")
Address = rs("Address")
Country = rs("Country")
Email = rs("Email")
URL = rs("URL")
If IsEmpty(URL) or URL = "" then
Link = "no URL given"
Else
Link = "" & URL & ""
End If
Comments = rs("Comments")
Comments = replace(Comments, "''", "'")
Start = rs("PostDate")
%>
<%
rs.MoveNext
End If
Next
response.write "
"
response.write "
"
If PageNo > 1 then
response.write ""
Else
response.write " "
End If
response.write "
"
If NOT rs.eof then
response.write ""
Else
response.write " "
End If
response.write "