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

📄 combo.vbs

📁 花钱买的毕业设计。企业网络管理系统
💻 VBS
字号:
' VB Script Document
function Combo(Name,oConn,sql,Selected,Disabled,Onchange,Style)
	dim rstmptmp
	set rstmp = Server.CreateObject("ADODB.RECORDSET")
	rstmp.Open Sql,oConn 
	Response.Write("<select id=""sel_" & Name & """ name=""" & Name & """")
	if Disabled = "true" then
		Response.Write(" disabled")
	end if
	if OnChange <> "" then
		Response.Write(" onchange = """ & OnChange & """")
	end if
	if style <> "" then
		Response.Write(" style = """ & style & """")
	end if
	Response.Write(">" & chr(10))
	while not rstmp.EOF
		if rstmp(0) = Selected then
			Response.Write("<option value=""" & rstmp(0) & """ selected>" & rstmp(1) & "</option>" & chr(10))
		else
			Response.Write("<option value=""" & rstmp(0) & """>" & rstmp(1) & "</option>" & chr(10))
		end if
		rstmp.MoveNext
	wend
	Response.Write("</select>" & chr(10))
	rstmp.Close
	set rstmp=nothing
	Combo = true
end function

⌨️ 快捷键说明

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