<!--#include file="Const.Asp"-->
<!--#include file="error.ini"-->
<link href="Images/Admin_Style.Css" rel="stylesheet" type="text/css">
<%
filename="../Js/index_10.js"
if request("body")<>"" then
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set fout = fso.CreateTextFile(server.mappath(""&filename&""))
fout.Write request("body")
fout.close
set fout=nothing
set fso=nothing
mskrindex="ok"
end if

%>
<html>

<head>
<SCRIPT LANGUAGE="JavaScript">
helpstat = false;
stprompt = true;
basic = false;
function thelp(swtch){
	if (swtch == 1){
		basic = false;
		stprompt = false;
		helpstat = true;
	} else if (swtch == 0) {
		helpstat = false;
		stprompt = false;
		basic = true;
	} else if (swtch == 2) {
		helpstat = false;
		basic = false;
		stprompt = true;
	}
}

function AddText(NewCode) {
document.frmAnnounce.body.value+=NewCode
}

function runEx(){
//alert('请注意，按下确定将生成页面，按下后请稍后....');
var winEx = window.open("", "winEx", "width=300,height=200,status=yes,menubar=yes,scrollbars=yes,resizable=yes"); winEx.document.open("text/html", "replace"); 
winEx.document.write(unescape(event.srcElement.parentElement.children[2].value)); 
winEx.document.close(); 
}
</SCRIPT>
<script language="Javascript">
<!-- hide

function insertsmilie(smilieface){

	document.frmAnnounce.body.value+=smilieface;
}
// -->
</script>
</head>
<body topmargin="1" leftmargin="1">
<%if mskrindex="ok" then%>
<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>
<%else%>
<div align=center>
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="border" height="100%">
<form name="frmAnnounce" method="post" action="Js_index_10.asp">
  <tr class="title">
    <td height="22" colspan="3" align="center"><strong>生成首页最新专辑JS&nbsp; 生成文件:<a class=JyDownSort target="_blank" href="<%=filename%>"><%=filename%></strong></td>
  </tr>
  <tr>
    <td width="100%" bgcolor="#FFFFFF" height="100%"><textarea style="width:100%; height:100%;" rows="19" name="body" cols="102">
<%
set rs=conn.execute("SELECT * from ylmv_Special order by SpecialID desc")
for i = 2 to 3
%>
document.writeln("<tr>");
<%for j = 1 to 5
if not rs.eof then  %>
document.writeln("                    <td width=\"30%\" height=\"100\" align=\"center\"><table width=\'100%\' border=\'0\' align=\'center\' cellpadding=\'0\' cellspacing=\'0\'>");
document.writeln("                        <tr>");
document.writeln("                          <td width=\'100\' height=\'100\' align=\'center\'><table border=\'0\' align=\'center\' cellpadding=\'1\' cellspacing=\'1\' bgcolor=\'ECECEC\'>");
document.writeln("                              <tr>");
document.writeln("                                <td><table border=\'0\' align=\"center\" cellpadding=\'1\' cellspacing=\'1\' bgcolor=\'B5B2B5\'>");
document.writeln("                                    <tr>");
document.writeln("                                      <td align=\'center\' bgcolor=\'#FFFFFF\'><a href=\'Musiclist\/ylmv_<%=rs("SpecialID")%>.html\' target=\'_blank\'><img src=\'<%=rs("pic")%>' width=85 height=85 alt=\'<%=rs("NClass")%>：<%=rs("name")%>\' border=0><\/a><\/td>");
document.writeln("                                    <\/tr>");
document.writeln("                                <\/table><\/td>");
document.writeln("                              <\/tr>");
document.writeln("                          <\/table><\/td>");
document.writeln("                        <\/tr>");
document.writeln("                        <tr>");
document.writeln("                          <td align=\'center\'><table width=\'100%\' border=\'0\' cellspacing=\'0\' cellpadding=\'0\'>");
document.writeln("                              <tr>");
document.writeln("                                <td height=\'20\'><TABLE class=chinesefont9pt cellSpacing=0 align=center                          ");
document.writeln("border=0>");
document.writeln("                                    <TBODY>");
document.writeln("                                      <TR>");
document.writeln("                                        <TD vAlign=center class=\"en8pt\" align=\"center\"><a href=\"Special\/ylmv_<%=rs("NclassID")%>.html\" title=\"查看<%=rs("NClass")%>的所有专辑\" target=\"_blank\"><%=left(rs("NClass"),7)%><\/a><\/TD>");
document.writeln("                                      <\/TR>");
document.writeln("                                      <TR>");
document.writeln("                                        <TD vAlign=center align=\"center\"><a href=\"Musiclist\/ylmv_<%=rs("SpecialID")%>.html\" target=\"_blank\"><font color=\'#FF6600\'><%=left(rs("name"),7)%><\/font><\/a><\/TD>");
document.writeln("                                      <\/TR>");
document.writeln("                                    <\/TBODY>");
document.writeln("                                <\/TABLE><\/td>");
document.writeln("                              <\/tr>");
document.writeln("                          <\/table><\/td>");
document.writeln("                        <\/tr>");
document.writeln("                      <\/table>"); 
<%rs.movenext
end if
next%> 
document.writeln("  <\/tr>");
<%next %>
<%rs.close%>
    </textarea></td>
  </tr>
  <tr>
    <td width="100%" bgcolor="#c6e3f7">
    <p align="center">        
    <input name="change" class=buttonface value="生成首页最新专辑(JS)" type='submit'> </td>
  </tr>
</form>
</table>
<%
end if
%>   
</body>    
</html>