<% if request.QueryString("msg") = "Add" then
response.Write("Your topic has been posted successfully")
elseif request.QueryString("msg") = "Edit" then
response.Write("Your topic has been updated successfully")
elseif request.QueryString("LOGOUT") = 1 then
response.Write("You have been successfully logged out")
elseif request.QueryString("msg") = "AddReply" then
response.Write("Your reply has been posted successfully")
end if
%>
|
| ">
<%=rs.fields("Name")%>
|
<%
dim rstopics
set rstopics = server.CreateObject("ADODB.Recordset")
sqlstr ="SELECT count(CategoryId) FROM tblTopic where CategoryId =" & rs.fields("CategoryId")
rstopics.Open sqlstr,db,3
numtopics = rstopics.fields(0)
set rstopics = nothing
%>
<%=numtopics %>
|
<%
rs.MoveNext
next
end if
%>
| <%
if (prevflag) then
%>
Previous
<%
else
response.Write(" ")
end if %>
<% pg= start + 1
For i = start to ( end1 - 1 ) STEP 1
if (Cint(activelnk) = i ) then
response.Write( ""& pg & "" )
else %>
<%=pg %>
<%
end if
pg = pg + 1
next
%>
<%
if (nextflag) then %>
Next
<%
else
response.Write(" ")
end if
%> |