www.gusucode.com > 星云DJ舞曲 4.5a源码程序 > admin/admin_info.asp

    <!--#include file="const.asp"-->
<%CheckAdmin3%>
<link href="Admin_Style.Css" rel="stylesheet" type="text/css">
<%
filename="../Js/Info.html"
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="admin_Info.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">
<%
dim MusicList,down,hits,jt,zt
user=conn.execute("select count(*) from user")(0)
Special=conn.execute("select count(*) from Special")(0)
MusicList=conn.execute("select count(*) from MusicList")(0)
jt=conn.execute("select count(*) from MusicList where DateAndTime>=#"&date()&"#")(0)
zt=conn.execute("select count(*) from MusicList where DateAndTime>=#"&date()-1&"#")(0)
hits=conn.execute("SELECT SUM(Hits) FROM MusicList")(0)
down=conn.execute("SELECT SUM(downHits) FROM MusicList")(0)
%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>站内统计</title>
<link href="../images/xy.css" type="text/css" rel="stylesheet" media="all" />
<style type="text/css">
<!--
body {
	background-color: #1A272F;
}
-->
</style>
</head>

<body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30" align="left" class="zjj5">舞曲共 <span class="juhuang cu"><%=MusicList%></span> 首 <!--网友试听 <span class="juhuang cu"><%=hits%></span> 次 网友下载 <span class="juhuang cu"><%=down%></span> 次 -->今天上传 <span class="juhuang cu"><%=jt%></span> 首 最后更新与 <span class="juhuang cu"><%=date%></span></td>
  </tr>
</table>
</body>
</html>
    </textarea></td>
  </tr>
  <tr>
    <td width="100%" class=tdbg>
    <p align="center">        
    <input name="change" class=buttonface value="生成(JS)" type='submit'> </td>
  </tr>
</form>
</table>
<%
end if
%>   
</body>    
</html>