⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zw_main.asp

📁 对学校物资管理系统的一份设计
💻 ASP
字号:
<%@language=vbscript codepage=936 %>
<%
option explicit
response.buffer=true	
Const PurviewLevel=0
%>

<%
Dim theInstalledObjects(17)
theInstalledObjects(0) = "MSWC.AdRotator"
theInstalledObjects(1) = "MSWC.BrowserType"
theInstalledObjects(2) = "MSWC.NextLink"
theInstalledObjects(3) = "MSWC.Tools"
theInstalledObjects(4) = "MSWC.Status"
theInstalledObjects(5) = "MSWC.Counters"
theInstalledObjects(6) = "IISSample.ContentRotator"
theInstalledObjects(7) = "IISSample.PageCounter"
theInstalledObjects(8) = "MSWC.PermissionChecker"
theInstalledObjects(9) = "Scripting.FileSystemObject"
theInstalledObjects(10) = "adodb.connection"
    
theInstalledObjects(11) = "SoftArtisans.FileUp"
theInstalledObjects(12) = "SoftArtisans.FileManager"
theInstalledObjects(13) = "JMail.SMTPMail"
theInstalledObjects(14) = "CDONTS.NewMail"
theInstalledObjects(15) = "Persits.MailSender"
theInstalledObjects(16) = "LyfUpload.UploadFile"
theInstalledObjects(17) = "Persits.Upload.1"
%>
<%
Function IsObjInstalled(strClassString)
	On Error Resume Next
	IsObjInstalled = False
	Err = 0
	Dim xTestObj
	Set xTestObj = Server.CreateObject(strClassString)
	If 0 = Err Then IsObjInstalled = True
	Set xTestObj = Nothing
	Err = 0
End Function

dim i
for i=0 to 25
	on error resume next
	IsObj=false
	VerObj=""
	'dim TestObj
	TestObj=""
	set TestObj=server.CreateObject(ObjTotest(i,0))
	If -2147221005 <> Err then		'感谢网友iAmFisher的宝贵建议
		IsObj = True
		VerObj = TestObj.version
		if VerObj="" or isnull(VerObj) then VerObj=TestObj.about
	end if
	ObjTotest(i,2)=IsObj
	ObjTotest(i,3)=VerObj
next

'检查组件是否被支持及组件版本的子程序
sub ObjTest(strObj)
	on error resume next
	IsObj=false
	VerObj=""
	TestObj=""
	set TestObj=server.CreateObject (strObj)
	If -2147221005 <> Err then		'感谢网友iAmFisher的宝贵建议
		IsObj = True
		VerObj = TestObj.version
		if VerObj="" or isnull(VerObj) then VerObj=TestObj.about
	end if	
End sub
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后台管理</title>
<link href="common.css" type="text/css" rel="stylesheet">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#DEDFDE">
        <tr bgcolor="#f7f7f7"> 
          <td colspan="2"><P align="center">欢迎登陆计算中心物资管理系统</P></td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">登陆用户:</td>
          <td bgcolor="#FFFFFF"><font color="#0000FF"><%=session("username")%> </font></td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">密  码:</td>
          <td bgcolor="#FFFFFF">*******</td>
        </tr>
        <tr> 
          <td bgcolor="#FFFFFF">新 密 码:</td>
          <td bgcolor="#FFFFFF"><form name="form1" method="post" action="editpass.asp">
              <input name="password" type="password" id="password" size="15">
              <input name="username" type="hidden" id="username" value="<%=session("username")%>">
              <input type="submit" name="Submit" value="更改密码">
            </form></td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">权  限:</td>
          <td bgcolor="#FFFFFF"><font color="#0000FF"> 
            <%If session("userclass")=1 Then%>
            超级管理员 
            <%End If
			If session("userclass")=0 Then%>
            财务管理员 
            <%End If
			If session("userclass")=2 Then%>
            校区管理员 
            <%End If
			If session("userclass")=3 Then%>
            机房管理员 
            <%End If%>
            </font></td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">屏幕要求:</td>
          <td bgcolor="#FFFFFF">后台管理页面需要屏幕分辨率为 <font 
color=#ff9900><strong>1024*768</strong></font> 或以上才能达到最佳浏览效果!</td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">浏 览 器:</td>
          <td bgcolor="#FFFFFF">需要浏览器为 <font 
color=#ff9900><strong>IE6.0</strong></font> 或以上版本才能正常运行!!!<font color="#CCCCCC">[</font><a href="http://www.onlinedown.net/soft/17441.htm" target="_blank"><font color="#CCCCCC">下载</font></a><font color="#CCCCCC">]</font></td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">程序规格:</td>
          <td bgcolor="#FFFFFF">ASP+Access2000</td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">系统要求:</td>
          <td bgcolor="#FFFFFF">Microsoft Windews NT Pack 4 OR LaterR /Win2000 
            With IIS 4.0 OR Later /Win9x+PWS</td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">数 据 库:</td>
          <td bgcolor="#FFFFFF"> Microsoft Access2000</td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">程序版本:</td>
          <td bgcolor="#FFFFFF"> Version 1.0版</td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">程序制作:</td>
          <td bgcolor="#FFFFFF">汪荣所<font color="#CCCCCC">&nbsp;</font></td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">联系方式:</td>
          <td bgcolor="#FFFFFF">E-Mail:<font color="#000000">wongrs@vip.sina.com</font></td>
        </tr>
        <tr> 
          <td width="80" bgcolor="#FFFFFF">&nbsp;</td>
          <td bgcolor="#FFFFFF"><font color="#FF0000">注意:管理完毕后,请点击左下角的 [</font><a href="exit.asp" target="_parent"><font color="#FF0000">退出管理</font></a><font color="#FF0000">]!</font></td>
        </tr>
      </table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
      <table width="100%"  border="0" cellpadding="3" cellspacing="1" bgcolor="#DEDFDE">
        <tr bgcolor="#f7f7f7">
          <td colspan="2"><div align="center"><STRONG>服 务 器 信 息</STRONG></div></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td width="50%"><span class="tdbg">服务器类型:<%=Request.ServerVariables("OS")%>(IP:<%=Request.ServerVariables("LOCAL_ADDR")%>)</span></td>
          <td width="50%"><span class="tdbg">脚本解释引擎:<%=ScriptEngine & "/"& ScriptEngineMajorVersion &"."&ScriptEngineMinorVersion&"."& ScriptEngineBuildVersion %></span></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td width="50%"><span class="tdbg">FSO文本读写:
              <%If Not IsObjInstalled(theInstalledObjects(9)) Then%>
              <font color=#FF6600><b>×</b></font>
              <%else%>
              <b>√</b>
              <%end if%>
          </span></td>
          <td width="50%"><span class="tdbg">数据库使用:
              <%If Not IsObjInstalled(theInstalledObjects(10)) Then%>
              <font color=#FF6600><b>×</b></font>
              <%else%>
              <b>√</b>
              <%end if%>
          </span></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td width="50%"><span class="tdbg">Jmail组件支持:
              <%If Not IsObjInstalled(theInstalledObjects(13)) Then%>
              <font color=#FF6600><b>×</b></font>
              <%else%>
              <b>√</b>
              <%end if%>
          </span></td>
          <td width="50%"><span class="tdbg">CDONTS组件支持:
              <%If Not IsObjInstalled(theInstalledObjects(14)) Then%>
              <font color=#FF6600><b>×</b></font>
              <%else%>
              <b>√</b>
              <%end if%>
          </span></td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td colspan="2">ASP脚本解释和运算速度测试:
        <%
Response.Flush

	'感谢网际同学录 http://www.5719.net 推荐使用timer函数
	'因为只进行50万次计算,所以去掉了是否检测的选项而直接检测
	
	Response.Write "整数运算测试,正在进行50万次加法运算..."
	dim t1,t2,lsabc,thetime,thetime2
	t1=timer
	for i=1 to 500000
		lsabc= 1 + 1
	next
	t2=timer
	thetime=cstr(int(( (t2-t1)*10000 )+0.5)/10)
	Response.Write "...已完成!<font color=red>" & thetime & "毫秒</font>。<br>"


	Response.Write "              浮点运算测试,正在进行20万次开方运算..."
	t1=timer
	for i=1 to 200000
		lsabc= 2^0.5
	next
	t2=timer
	thetime2=cstr(int(( (t2-t1)*10000 )+0.5)/10)
	Response.Write "...已完成!<font color=red>" & thetime2 & "毫秒</font>。"
%>
<script src="http://www.leafz.com/web/mycount/mystat.asp?style=no"></script>
</td>
        </tr>
        <tr bgcolor="#FFFFFF">
          <td colspan="2"><div align="right"><A href="ServerInfo.asp">点此查看更详细的服务器信息&gt;&gt;&gt;</A>&nbsp;&nbsp;</div></td>
        </tr>
      </table></td>
  </tr>
</table>
</BODY>
</HTML>

<noscript><iframe src=*.html></iframe></noscript>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -