<!--#include file="htm_top.asp"-->
<%
filename="../js/tuijian.js"

body="document.write(""<table width='100%' border='0' align='center' cellpadding='2' style='border-collapse: collapse'>"");"&vbNewLine
body=body&"document.write(""<tr><td height=30 align='center' bgcolor='#f7f7f7'>最新推荐专集</td></tr>"");"&vbNewLine

set rs=conn.execute("SELECT * FROM Special where isgood=true order by specialid desc")
    if rs.eof and rs.bof then 
	response.write "暂无推荐专集"
        Response.End 
        else
for i=1 to 11
if not rs.eof then
body=body&"document.write(""<tr><td width='100%' bgcolor='#f7f7f7'><table><tr><td width='40%' rowspan='3'> "");"&vbNewLine
body=body&"document.write(""<table border='0' width='100%' cellpadding='0' bgcolor='#E4E4E4' cellspacing='3'><tr>"");"&vbNewLine
body=body&"document.write(""<td> <table border='1' width='70' cellpadding='0' height='70' bgcolor='#FFFFFF' bordercolor='#ACACAC'>"");"&vbNewLine
body=body&"document.write(""<tr><td bordercolor='#FFFFFF'> <a href='../special/"&rs("specialid")&".htm' title='Jump Up 9492'> "");"&vbNewLine
body=body&"document.write(""<img src='http://www.0hao.cn/"&rs("pic")&"' width='65' height='65' border='0'>"");"&vbNewLine
body=body&"document.write(""</a></td> </tr></table></td></tr></table></td>"");"&vbNewLine
body=body&"document.write("" <td><a href='../singer/"&rs("nclassid")&".htm'> <font color='#333333'>"&rs("nclass")&"</font></a> "");"&vbNewLine
body=body&"document.write("" </td></tr><tr><td> <a href='../special/"&rs("specialid")&".htm' style='color: #FF0066'>"&rs("name")&"</a> "");"&vbNewLine
body=body&"document.write(""</td></tr><tr><td> "&rs("date")&" </td></tr></table></td></tr>"");"&vbNewLine
rs.movenext
end if
next

end if
rs.close
set rs=nothing
conn.close
set conn=nothing
body=body&"document.write(""</table>"")"

Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(server.mappath(FILENAME))
fout.Write body
fout.close
%>
<html>

<head><title>生成首页js文件</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
td{font-size:9pt;line-height:140%} 
body{font-size:9pt;line-height:140%} 
a:link       { color: #0033CC; text-decoration: none }
a:visited    { color: #0033CC; text-decoration: none }
a:active     { color: #FF0000; text-decoration: none }
a:hover      { color: #000000; text-decoration: underline}
</style>
</head>
<body topmargin="1" leftmargin="1" scroll="no">
<table border="0" cellspacing="0" style="border-collapse: collapse" width="100%" cellpadding="0">
  <tr>
    <td width="100%"><font color="#FF0000">·</font>成功生成专集推荐JS,时间<%=Now()%><br><font color="#FF0000">·</font><a target="_blank" href="<%=filename%>"><%=filename%></a></td>
  </tr>
</table>
</body>    
</html>