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

📄 admin_main.asp

📁 学生档案成绩费用管理系统(修改完全版) 本程序基于WIN2000+IIS+ACCESS数据库
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Config.asp"-->
<%
Dim Msg
	If Request.QueryString("Action") = "Save" Then SaveData
	Sub SaveData()
	myConn.execute("update Config set OKAr='"&Request.Form("ftype")&"',OKsize="&Request.Form("fsize"))
	Msg = "成功修改了文件数据信息"
	End Sub

If msg <> "" Then
Response.Write("<meta http-equiv=refresh content='3;URL=Admin_Main.asp'>"&Msg&"<br>本页将在3秒内返回<BR>如果你的浏览器没有反应,请<a href=Admin_Main.asp>点击此处返回</a>")
Response.End()
End If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>上传管理</title>
<link href="../style.css" rel="stylesheet" type="text/css">
<script src="Images/up.Js"></script>
</head>

<body topmargin="0">
<!--#include file="../top.asp"-->
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#0153A3">
<form name="Edit" action="Admin_Main.asp?Action=Save" method="post">
  <tr> 
    <td height="25"> <%
	set frst = Server.CreateObject("adodb.recordset")
	sql = "select * from Config"
	frst.open sql,myconn,1,1
	If not frst.Eof then
	%>
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
          <tr align="center" class="text"> 
            <td height="1" colspan="2" bgcolor="#FFFFFF">后台管理-系统设置&nbsp;&nbsp;[<a href="Admin_List.asp">点此进入文件管理</a>]&nbsp;</td>
          </tr>
          <tr class="text"> 
            <td width="200" bgcolor="#FFFFFF"> <div align="right">允许上传的文件类型:</div></td>
            <td bgcolor="#FFFFFF"><input name="ftype" type="text" class="TextBoxT" value="<%=rs(0)%>" size="50">
              以,分隔后缀名,切记勿允许上传asp/exe文件</td> 
          </tr>
          <tr class="text"> 
            <td width="200" bgcolor="#FFFFFF"><div align="right">允许上传的文件大小:</div></td>
            <td bgcolor="#FFFFFF"><input name="fsize" type="text" class="TextBoxT" value="<%=rs(1)%>" size="15">
              单位:Byte</td> 
          </tr>
          <tr class="text"> 
            <td height="1" align="right" bgcolor="#FFFFFF">&nbsp;</td>
            <td height="1" bgcolor="#FFFFFF"> <input type="submit" name="Submit" value="修改"></td>
          </tr>
        </table>
      <%
	  else
	  %> 
      <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr class="text"> 
          <td bgcolor="#FFFFFF">没有对应的数据!</td>
        </tr>
      </table>
      <%
	  end if
	  frst.close
	  set frst = nothing
	  myconn.close
	  set myconn = nothing
	  %>
	  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr class="text"> 
            <td align="right" class="heading" bgcolor="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;</td>
        </tr>
      </table></td>
  </tr></form>
</table>

<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#0153A3">
  <tr> 
    <td height="25" bgcolor="#FFFFFF">&nbsp;</td>
  </tr>
</table>
<!--#include file="../down.asp"-->
</body>
</html>

⌨️ 快捷键说明

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