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

📄 getcity.asp

📁 客户管理crm xitong ,希望能给你带来帮助
💻 ASP
字号:
<!--#include file="../function/connect.asp"-->
<%
Set objResult = Server.CreateObject("MSXML2.DOMDocument")
objResult.loadXML ("<objXML></objXML>")
'**************************************************************

strIDValue=request("strIDValue")
strIdName=request("strIdName")
strFIdName=request("strFIdName")
strTable=request("strTable")
strShowName=request("strShowName")
strcon=""
if strIDValue<>"" and strIdName<>"" and strTable<>"" and strShowName<>"" then
	strsql="select " & strIdName & "," & strShowName & " from " & strTable & " where " & strFIdName & "=" & strIDValue 
	Set objRs = Server.CreateObject("adodb.recordset")
        objRs.Open strsql,objConn,1,1
        i=0
        if not objrs.eof then
        	'strcon=strcon & "<script>" & chr(10) & chr(13)
        	'strcon=strcon & "subcat = new Array();" & chr(10) & chr(13)
        	do while not objrs.eof
        		strcon=strcon & "subcat[" & i & "] = new Array(""" & objrs.fields(strShowName) & """,""" & objrs.fields(strIdName) & """);" & chr(10) & chr(13)
        	objrs.movenext
        	i=i+1
        	loop
        	'strcon=strcon & "</script>"
        end if
end if

'**************************************************************

objResult.selectSingleNode("objXML").text = strcon

Response.ContentType = "text/xml"
objResult.save (Response)
Response.End

Set objSch = Nothing
Set objResult = Nothing
%>

⌨️ 快捷键说明

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