?? user.asp
字號(hào):
<%
dim rs, i2, title(10), minposts(10)
Set rs = Conn.Execute("select * from sf_usertitle order by usertitleid")
i2 = 1
if not (rs.bof or rs.eof) then
do until rs.eof
title(i2) = rs("title")
minposts(i2) = rs("minposts")
rs.movenext
i2 = i2 + 1
loop
end if
Set rs = nothing
function GetTitle(posts)
ON ERROR RESUME NEXT
if posts >= minposts(10) then posts = minposts(1) - 1
for i2=1 to 10
if posts < minposts(i2) then
GetTitle = title(i2 - 1)
exit for
end if
next
end function
function GetTitleImg(posts)
ON ERROR RESUME NEXT
if posts >= minposts(10) then posts = minposts(1) - 1
for i2=1 to 10
if posts < minposts(i2) then
GetTitleImg = i2 - 1
exit for
end if
next
end function
Set i2 = nothing
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -