<!--#include file="logout.asp" -->
<%
function cSize(tSize)
    if tSize>=1073741824 then
		cSize=int((tSize/1073741824)*1000)/1000 & " GB"
    elseif tSize>=1048576 then
    	cSize=int((tSize/1048576)*1000)/1000 & " MB"
    elseif tSize>=1024 then
		cSize=int((tSize/1024)*1000)/1000 & " KB"
	else
		cSize=tSize & "B"
	end if
end function
set fsojbt=server.CreateObject("Scripting.FileSystemObject")
	dPath = server.MapPath("../")
	set root= fsojbt.GetFolder(dPath)
	set imagesDir = fsojbt.GetFolder(server.MapPath("../images/"))
	set dataFileDir = fsojbt.GetFolder(server.MapPath("/Database/"))
	set UploadFileDir = fsojbt.GetFolder(server.MapPath("eWebEditor/UploadFile/"))
	set adminDir = fsojbt.GetFolder(server.MapPath("../admin/"))
 	    set fc=root.Files
		for each f1 in fc
			a=a+f1.size
		next
		set fd=adminDir.Files
		for each f2 in fd
			b=b+f2.size
		next
	    keyong=1024*1024*200-root.Size
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

<link href="admin_style.css" rel="stylesheet" type="text/css">
</head>

<body>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="100%"><table width="100%"  border="0" cellpadding="0" cellspacing="0" background="images/main_bg_top.gif">
      <tr>
        <td width="4%" align="left"><img src="images/main_left_top.gif" width="26" height="36"></td>
        <td width="92%" valign="bottom" background="images/main_bg_top.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="10" colspan="2"></td>
          </tr>
          <tr>
            <td width="93%" height="25"><div align="center" class="bai_font">后 台 管 理 首 页</div></td>
            <td width="7%" align="center"><a href="javascript:this.location.reload()"><img src="images/refresh.gif" width="40" height="12" border="0"></a></td>
          </tr>
        </table></td>
        <td width="4%" align="right"><img src="images/main_right_top.gif" width="26" height="36"></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="500" valign="top" class="lb"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="25" bgcolor="#799AE1"><div align="center" class="style2">服务器的有关参数</div></td>
      </tr>
      <tr>
        <td><table width=100% border=0 cellpadding=2 cellspacing=1>
          <tr bgcolor="#E6E6E6" height=18>
            <td width="30%" height="25" ><div align="right">服务器名：</div></td>
            <td width="70%" >&nbsp;<%=Request.ServerVariables("SERVER_NAME")%></td>
          </tr>
          <tr bgcolor="#F6F6F6" height=18>
            <td height="25" ><div align="right">服务器IP：</div></td>
            <td >&nbsp;<%=Request.ServerVariables("LOCAL_ADDR")%></td>
          </tr>
          <tr bgcolor="#E6E6E6" height=18>
            <td height="25" ><div align="right">服务器端口：</div></td>
            <td >&nbsp;<%=Request.ServerVariables("SERVER_PORT")%></td>
          </tr>
          <tr bgcolor="#F6F6F6" height=18>
            <td height="25" ><div align="right">服务器时间：</div></td>
            <td>&nbsp;<%=now%></td>
          </tr>
          <tr bgcolor="#E6E6E6" height=18>
            <td height="25" ><div align="right">IIS版本：</div></td>
            <td >&nbsp;<%=Request.ServerVariables("SERVER_SOFTWARE")%></td>
          </tr>
          <tr bgcolor="#F6F6F6" height=18>
            <td height="25" ><div align="right">脚本超时时间：</div></td>
            <td >&nbsp;<%=Server.ScriptTimeout%> 秒</td>
          </tr>
          <tr bgcolor="#E6E6E6" height=18>
            <td height="25" ><div align="right">Session过期时间：</div></td>
            <td >&nbsp;<%=session.Timeout%> 分钟</td>
          </tr>
          <tr bgcolor="#F6F6F6" height=18>
            <td height="25" >
              <div align="right">服务器解译引擎：</div></td>
            <td >&nbsp;<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="25" bgcolor="#799AE1"><div align="center" class="style2">系统占用空间统计</div></td>
      </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr bgcolor="#E6E6E6">
          <td width="30%" height="25" align="right" bgcolor="#FFFFFF">物理路径：</td>
          <td width="70%" bgcolor="#FFFFFF"><%=root%>&nbsp;&nbsp;文件总数：<%=root.Files.Count%>&nbsp;&nbsp;目录总数：<%=root.SubFolders.Count%>&nbsp;&nbsp;创建时间：<%=FormatDateTime(root.DateCreated,1)%></td>
        </tr>
        <tr bgcolor="#E6E6E6">
          <td height="25" align="right">数据库占用空间：</td>
          <td><%=cSize(dataFileDir.Size)%></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="25" align="right">系统图片占用空间：</td>
          <td><%=cSize(imagesDir.Size)%></td>
        </tr>
        <tr bgcolor="#E6E6E6">
          <td height="25" align="right">上传文件占用空间：</td>
          <td><%=cSize(UploadFileDir.Size)%></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="25" align="right">程序文件占用空间：</td>
          <td><%=cSize(a+b)%></td>
        </tr>
        <tr bgcolor="#E6E6E6">
          <td height="25" align="right">后台管理文件：</td>
          <td><%=cSize(adminDir.Size)%></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td height="25" align="right">系统占用空间总计：</td>
          <td><%=cSize(root.Size)%></td>
        </tr>
        <tr bgcolor="#E6E6E6">
          <td height="25" align="right">可用空间总计：</td>
          <td><%=cSize(keyong)&c%></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#275BCB">
      <tr>
        <td width="6%"><img src="images/main_left_btm.gif" width="38" height="25"></td>
        <td width="88%" bgcolor="#275BCB" class="bai_font"><div align="center"><span class="blank">版权所有</span>：西安西科职业技术学院</div></td>
        <td width="6%" align="right"><img src="images/main_right_btm.gif" width="38" height="25"></td>
      </tr><br><script src="http://www.599cn.com/Dv_News.asp?GetName=besttopic"></script>
    </table></td>
  </tr>
</table>
</body>
</html>
