%user=request("user") if user="" then response.redirect "index.asp?user=jinjunhe" end if set rs=server.createobject("adodb.recordset") sql="select * from user where user='"&user&"'" rs.open sql,conn,1,1 '###检查cookies,如果密码正确侧进入管理状态 if rs("user")="" then else if session("user")=rs("user") and session("pwd")=rs("pwd") then adminok="ok" end if end if '###检查结束### %> <% if not isempty(request("page")) then currentPage=cint(request("page")) else currentPage=1 end if MaxPerPage=10 '###每页显示条数 dim totalPut dim CurrentPage dim TotalPages dim i,j %>
|
欢迎光临:电脑软硬件应用网-专家问答栏目
<%if request("page")<>"" then%>
>> 第<%=request("page")%>页
<%end if%>
|
<%if adminok="ok" then%>[修改资料][退出登陆]<%else%>[版主管理] <%end if%> |
|
还没有留言! |
![]() |
<%if adminok="ok" then%>[" target="_self">回复][" target="_self">删除]<%end if%> |
|
<%=rsu("ly")%><%if rsu("re")<>"" then%>![]() <%=rsu("re")%><%end if%> |
||
![]() ![]() |
||
|
分页:<% pageno=request("page") if MaxPerPage="" or isempty(MaxPerPage) or MaxPerPage<1 then MaxPerPage=15 end if rsu.pagesize=MaxPerPage '得到每页数 mpage=rsu.pagecount '得到总页数 if isempty(pageno) or cint(pageno)<1 or cint(pageno)>mpage then pageno=1 end if for pno=1 to mpage if pno=cint(pageno) then%>[<%=pno%>]<%else%>[&page=<%=pno%> target="_self"><%=pno%>]<%end if%><%next%> |
|
|
Copyright©2003-2011 45IT.All Rights Reserved. 浙ICP备09049068号 |