home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
common
/
market.asp.bak
< prev
next >
Wrap
Text File
|
2010-01-21
|
2KB
|
41 lines
<%sub query3table(inputquery)
set conn1=server.createobject("ADODB.connection")
conn1.open("Provider=SQLOLEDB.1;Server=80.0.0.17;Database=sdxnw;UID=read;pwd=DSread17@8408;")
set rstemp1=conn1.execute(inputquery)
%>
<table border=0 class="mylightgreen">
<%do while not rstemp1.eof%>
<tr>
<% for i = 0 to 1
thisvalue=trim(rstemp1(i))
If isnull(thisvalue) then
thisvalue=""
end if
if thisvalue="╣⌐" then
thisvalue="<font color=red>╣⌐</font>"
end if
if thisvalue="╟≤" then
thisvalue="<font color=green>╟≤</font>"
end if
%>
<td valign=top width="98%" height="15" align="left">
<a href="/document_show.asp?id=<%=rstemp1("id")%>&titel=<%=rstemp1("titel")%>&typeid=<%=rstemp1("typeid")%>&mark=2" target="_blank">
<%=thisvalue%></a></td>
<%next%>
</tr>
<%rstemp1.movenext
loop
%>
</table>
<%
rstemp1.close
set rstemp1=nothing
conn1.close
set conn1=nothing
end sub
%>
<%call query3table("select top 4 titel,typeid,id from SCXX_sale order by dates desc,id desc")
%>