|
- Sub SearchMenu()
- If not IsObject(Application(KS.SiteSN&"_ChannelConfig")) Then KS.LoadChannelConfig
- Dim ModelXML,Node
- Set ModelXML=Application(KS.SiteSN&"_ChannelConfig")
- If ChannelID=0 Then
- echo "<li class=""curr""><a href=""?stype="&stype&"&key="&server.URLEncode(key) &""">全部</a></li>"
- Else
- echo "<li><a href=""?stype="&stype&"&key="&server.URLEncode(key) &""">全部</a></li>"
- End If
- For Each Node In ModelXML.documentElement.SelectNodes("channel")
- if Node.SelectSingleNode("@ks21").text="1" and Node.SelectSingleNode("@ks0").text<>"6" and Node.SelectSingleNode("@ks0").text<>"9" and Node.SelectSingleNode("@ks0").text<>"10" Then
- If Trim(ChannelID)=Trim(Node.SelectSingleNode("@ks0").text) Then
- echo "<li class=""curr""><a href=""?stype="&stype&"&key="&server.URLEncode(key) &"&m="&Node.SelectSingleNode("@ks0").text &""">" & Node.SelectSingleNode("@ks3").text & "</a></li>"
- Else
- echo "<li><a href=""?stype="&stype&"&key="&server.URLEncode(key) &"&m="&Node.SelectSingleNode("@ks0").text &""">" & Node.SelectSingleNode("@ks3").text & "</a></li>"
- End If
- End If
- next
- If ChannelID=102 Then
- echo "<li class=""curr""><a href=""?stype="&stype&"&key="&server.URLEncode(key) &"&m=102"">问吧</a></li>"
- Else
- echo "<li><a href=""?stype="&stype&"&key="&server.URLEncode(key) &"&m=102"">问吧</a></li>"
- End If
- End Sub
\Plus\search\index.asp
|