⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadtemplate.asp

📁 苹果风格的论坛 asp编写
💻 ASP
字号:
<%
if application("loadtemplate") = "" or request("mode") <> "" then
	Set rs = Conn.Execute("select * from sf_template")
	do until rs.eof
		application("sf_t_" & rs("title")) = rs("template")
		rs.movenext
	loop
	application("loadtemplate") = "yes"
end if


Class xbtemplate
	Private strtemplate
	Private  Sub Class_Initialize
		strtemplate = ""
	End Sub
	Public Function load(str)
		strtemplate = application("sf_t_" & str)
		strtemplate = Replace(strtemplate, "{styledir}", "style")
		load = strtemplate
	End Function
	Public Function tag(strtag, str)
		strtemplate = Replace(strtemplate, "{" & strtag & "}", str)
	End Function
	Public Function getstr()
		getstr = strtemplate
	End Function
	Public Sub print()
		response.write strtemplate
	End Sub 
End Class
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -