% sUserName = request("ID") sSQL = "Select * from CDListing where UserName = '" + sUserName + "'" sSQL = sSQL & " order by ShowDate" Set rsSearch = Server.CreateObject("ADODB.Recordset") rsSearch.Open sSQL, objADO, 3, 3 PageNo = cInt(request.form("page")) sSQL = request.form("strSQL") If PageNo = "" then PageNo=1 end if If PageNo < 1 then PageNo=1 end if TotalRecs = rsSearch.recordcount rsSearch.Pagesize=5 TotalPages = cInt(rsSearch.pagecount) if PageNo > TotalPages then PageNo = TotalPages end if if not rsSearch.eof then rsSearch.absolutepage=PageNo end if %> <% Sub DisplayCDThumbnails%>
| SHOW DATE: <%= rsSearch("ShowDate")%> | |
| ">
<%If Len(rsSearch("Picture1")) > 0 Then
If UCase(Left(rsSearch("Picture1"),7))="HTTP://" Then%>
<%Else%> <%End If Else%>
<%End If%>
<% if Session("accesslevel") = "1" or strUserName = RSSearch("UserName") then %> &Action=Edit">
">
<% end if %>
|
<% if not rsSearch("Band") = "" then %>Band: <%=rsSearch("Band")%> <%end if%> <% if not rsSearch("ShowDate") = "" then %>Show Date: <%=rsSearch("ShowDate")%> <%end if%> <% if not rsSearch("Genre") = "" then %>Genre: <%=rsSearch("Genre")%> <%end if%> <% if not rsSearch("Club") = "" then %>Club: <%=rsSearch("Club")%> <%end if%> Show Location: <% if not rsSearch("City") = "" then %> <%=rsSearch("City")%>, <%end if%> <% if not rsSearch("State") = "" then %> <%=rsSearch("State")%> <%end if%> <%if len(rsSearch("Description")) > 0 then Response.Write left(rsSearch("Description"),150) & "... " %> ">More <% else response.write "Description Not Given " end if %> |
|
||||||
<%
x = 0
For x = 1 to 5
If rsSearch.eof then
Exit For
Else
%>
|
||||||