|
- <%
- Sub The_Next()
- Dim rstArticle,strSQL
- Dim ID_New
-
- strSQL="select top 1 id,typeid,title from article where id>"&intID&" order by id"
-
- Set rstArticle=conn.Execute(strSQL)
- if rstArticle.eof then
- Response.Write " <p class='tt'>下一篇:<a href='javascript:'>没有了</a></p>"
- else
- ID_New=rstArticle(0)
- Response.Write " <p class='tt'>下一篇:<a href='?pid=53&tid="&rstArticle(1)&"&id="&ID_New&"'>"&rstArticle(2)&"</a></p>"
- end if
- end Sub
- Sub The_Previous()
- Dim rstArticle,strSQL
- Dim ID_New
- strSQL="select top 1 id,typeid,title from article where id<"&intID&" order by id"
- Set rstArticle=conn.Execute(strSQL)
- if rstArticle.eof then
- Print " <p class='tt'>上一篇:<a href='javascript:'>没有了</a></p>"
- else
- ID_New=rstArticle("id")
-
- Print " <p class='tt'>上一篇:<a href='?pid=53&tid="&rstArticle(1)&"&id="&ID_New&"'>"&rstArticle(2)&"</a></p>"
- end if
-
- rstArticle.Close()
- Set rstArticle=Nothing
-
- end Sub
-
- %>
复制代码
|
|