</tr>
<tr>
<td width="49%" align="right" valign="top">高考成绩:</td>
<td align="left" colspan="2"><%=rs("user_gkcj")%></td>
</tr>
<tr>
<td align="right" valign="top" colspan="3">
<p align="center"></td>
</tr>
</table>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>
通过姓名查询学生信息
该功能模块实现和通过学号查询学生信息是类似的,只是通过学生姓名定位记录
5.2.2客户端模块设计
管理员端主要提供教务人员对信息的管理功能,包括以下几个功能模块
●基本信息管理模块。
●成绩管理模块。
●班级管理模块和科目管理模块。
●管理员维护模块。
1.登陆页面
关于用户登陆模块由用户名、密码两个文本区域组成。他是由输入的数值与数据库中的验证。如果一致。就进入管理页面。他的实现过程如下
<!--#include file="data.asp"-->
<%
dim admin_name,admin_pwd
admin_name=trim(request("name"))
admin_pwd=trim(request("pwd"))
if admin_name="" or admin_pwd="" then
response.write "<script>alert('对不起,用户名和密码不能为空!');document.location.href='admin.asp';</script>"
response.end
end if
set rs=server.createobject("adodb.recordset")
sql="select * from admin where admin_name='"&admin_name&"'"
rs.open sql,conn,1,1
%>
<%
if not rs.eof then
if rs("admin_pwd")<>admin_pwd then
response.write "<script>alert('对不起,密码不正确,请重新输入');document.location.href='admin_index.asp';</script>"
response.end
else
session("user")=admin_name
response.redirect "info-manager.asp"
end if
else
response.write "<script>alert('对不起,你的用户名不存在,请与管理员联系!');document.location.href='admin.asp';</script>"
response.end
end if
%>
学生信息管理模块
学生信息管理模块主要有以下几个功能:
学生信息列表主要由文件info-manage.asp、updataxx.asp、delxx.asp
录入学生信息主要由add-info.asp、addxx1.asp两个文件来完成的
查询学生信息主要由search2.asp完成
学生信息列表功能实现info-manage.asp
<!--#include file="data.asp"-->
<!--#include file="user.asp"-->
<%
set rst=server.createobject("adodb.recordset")
sql="select * from st_info order by id desc"
rst.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>学生信息管理</title>
<link rel="stylesheet" href="style.css">
</head>
<body topmargin="0">
<!--#include file="top-1.asp"-->
<div align="center">
<center>
<table width="738" height="35" cellspacing="0" cellpadding="0">
<td background="images/top_1.jpg"> <a href="info-manager.asp">学生信息列表</a>
| <a href="add-info.asp">录入学生信息</a> | <a href="search2.asp">查询学生信息</a></table>
</center>
</div>
<div align="center">
<center>
<table border="0" width="700" cellspacing="0" cellpadding="0">
<%
if Not(rst.bof and rst.eof) then'判别数据表中是否为空记录
NumRecord=rst.recordcount
rst.pagesize=10
NumPage=rst.Pagecount
if request("page")=empty then
NoncePage=1
else
if Cint(request("page"))<1 then
NoncePage=1
else
NoncePage=request("page")
end if
if Cint(Trim(request("page")))>Cint(NumPage) then NoncePa
首页 上一页 2 3 4 5 6 7 8 下一页 尾页 5/12/12
ASP学生管理系统资料文档(五)由毕业论文网(www.huoyuandh.com)会员上传。