📄 space_stat.asp
字号:
<!--#include file="config.asp"-->
<!--#include file="chkuser.asp"-->
<!--#include file="inc/user.asp"-->
<!--#include file="mytop.asp"-->
<LINK href="css/style.css" type=text/css rel=stylesheet>
<script language=javascript>
function manage(url)
{
window.open('manage.asp','manage','fullscren=yes');
}
</script>
<%
username=Request.Cookies("9cool_username")
kj=rsuser("space")*1048576
if path=<"\"+username then path="\"+username
if not fso.FolderExists(userdir&username) then
WriteErrMsg("找不到您的网站目录,可能已经被删除或没有权限,请与管理员联系!")
response.end
end if
set kjs= fso.getfolder(userdir&username)
usesize=kjs.size/1024
%>
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css/user.css" rel="stylesheet" type="text/css">
<title></title>
</head>
<body>
<table width=778 align="center" cellpadding=4 cellspacing=1 class="a2">
<tr align="center" class="a1">
<td height="25" colspan="2">空间使用统计</td>
</tr>
<tr class="a3">
<td width="83">空间总容量:</td>
<td width="100"><%=rsuser("space")%> M</td>
</tr>
<tr class="a4">
<td>已使用:</td>
<td><font face="Arial">
<%
if kjs.size<1024 then
Response.Write (""&kjs.size&" 字节")
elseif usesize<1024 then
Response.Write (""&round(usesize,2)&" KB")
else
Response.Write (""&round(usesize/1024,2)&" MB")
end if
%>
</font></td>
</tr>
<tr class="a3">
<td>使用百分比:</td>
<td><%
if kjs.size/kj*100<1 then
Response.Write ("0")
Response.Write (""&round(kjs.size/kj*100,3)&" %")
else
Response.Write (""&round(kjs.size/kj*100,1)&" %")
end if
%></td>
</tr>
</table><br>
<table width="778" height="12" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="14" bgcolor="#FF6600"></td>
<td width="74" align="center">已使用</td>
<td width="14" bgcolor="#0099FF"></td>
<td width="76" align="center">未使用</td>
<td width="272"></td>
</tr>
</table>
<br>
<table width='778' border='0' align="center" cellpadding='0' cellspacing='1' class="a2">
<tr class="a1">
<td bgcolor="#0099FF" style="cursor:text">
<table width="<%=round(kjs.size/kj*100,1)%>%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height=12 bgcolor="#ff6600" title="已使用空间:<%=round(kjs.size/kj*100,1)%>%"></td>
</tr>
</table></td>
</tr>
</table><br><br>
<!--#include file="links.asp"-->
<!--#include file="bottom.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -