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

📄 s_index.asp

📁 学籍管理功能,能实现调班注销学籍等,中小学通用
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/conn.asp" -->
<%
' *** Validate request to log in to this site.
MM_LoginAction = Request.ServerVariables("URL")
If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString)
MM_valUsername=CStr(Request.Form("pianhao"))
If MM_valUsername <> "" Then
  MM_fldUserAuthorization=""
  MM_redirectLoginSuccess="s_edit_student.asp"
  MM_redirectLoginFailed="s_index.asp"
  MM_flag="ADODB.Recordset"
  set MM_rsUser = Server.CreateObject(MM_flag)
  MM_rsUser.ActiveConnection = MM_conn_STRING
  MM_rsUser.Source = "SELECT pianhao, name"
  If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization
  MM_rsUser.Source = MM_rsUser.Source & " FROM user_name WHERE pianhao='" & Replace(MM_valUsername,"'","''") &"' AND name='" & Replace(Request.Form("name"),"'","''") & "'"
  MM_rsUser.CursorType = 0
  MM_rsUser.CursorLocation = 2
  MM_rsUser.LockType = 3
  MM_rsUser.Open
  If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then 
    ' username and password match - this is a valid user
    Session("MM_Username") = MM_valUsername
    If (MM_fldUserAuthorization <> "") Then
      Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value)
    Else
      Session("MM_UserAuthorization") = ""
    End If
    if CStr(Request.QueryString("accessdenied")) <> "" And false Then
      MM_redirectLoginSuccess = Request.QueryString("accessdenied")
    End If
    MM_rsUser.Close
    Response.Redirect(MM_redirectLoginSuccess)
  End If
  MM_rsUser.Close
  Response.Redirect(MM_redirectLoginFailed)
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>培英学校新生学籍录入系统</title>
<style type="text/css">
<!--
.STYLE1 {
	color: #006633;
	font-size: 18px;
	font-weight: bold;
}
.STYLE2 {
	font-size: 12px;
	color: #006633;
}
.STYLE3 {color: #006633}
.STYLE4 {font-size: 24px}
-->
</style>
</head>

<body>

<div align="center" class="STYLE1 STYLE4">
  <p> </p>
  <p>培英学校新生学籍录入系统</p>
</div>
<script language="vbscript">
<!--
function aa()

		
		form.pianhao1.value=form.pianhao.value
		
			
End function
-->
</script>
<form action="<%=MM_LoginAction%>" method="POST" name="form" id="form">
	<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->
	<p align="center"><span class="STYLE2"><font color="#FF0000">学&nbsp; 生</font></span><label><span class="STYLE2"><font color="#FF0000">登录:</font>姓&nbsp;&nbsp;&nbsp; 
	名:&nbsp;
	<input name="name" type="text" id="power1" size="12"  class="STYLE2"/>
      密码:
      <input name="pianhao" type="password" id="pianhao" size="10"  class="STYLE2" onkeyup="aa()" />
    </span>
  </label><span class="STYLE2">
        <label>
        <input type="submit" name="Submit0" value="修改个人学籍" /></label></span></p>
</form>
</body>
</html>

⌨️ 快捷键说明

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