数据库设计以及源代码.docx
《数据库设计以及源代码.docx》由会员分享,可在线阅读,更多相关《数据库设计以及源代码.docx(10页珍藏版)》请在冰豆网上搜索。
![数据库设计以及源代码.docx](https://file1.bdocx.com/fileroot1/2022-12/17/5c21192f-4966-4c0c-a9f8-0083d5655ab6/5c21192f-4966-4c0c-a9f8-0083d5655ab61.gif)
数据库设计以及源代码
系统建设详细设计
1、数据库设计
管理员用户表信息:
字段名称
类型
大小
字段描述
管理员ID
自动编号
长整型
管理员身份识别
管理员名称
文本
50
管理员登陆名称
密码
文本
50
管理员登陆的密码
身份
文本
50
有别于学生登陆界面
学生用户表:
字段名称
类型
大小
字段描述
学生ID
自动编号
长整型
学生学号
学生名称
文本
50
学生名称
密码
文本
50
学生登陆的密码
身份
文本
50
有别于管理员登陆界面
学生信息表:
字段名称
类型
大小
字段描述
学生ID
自动编号
长整型
学生学号
学生名称
文本
50
学生名称
电子邮箱
文本
50
学生的电子邮箱
备注
/
/
学生的其她信息
性别
文本
50
性别
入学时间
文本
50
学生入学的时间
班级
文本
50
所在班级
专业
文本
50
所学专业
2系统程序文件设计与编写
与数据库连接的代码:
<%
db="message、mdb"
setConn=server、createobject("adodb、Connection")
conn、open"Provider=Microsoft、Jet、OLEDB、4、0;DataSource="&server、mappath(db)
%>
登陆界面代码:
代码为:
--#includefile="conn、inc"-->
<%
ifrequest("Submit")<>""then
setrs=server、createobject("adodb、recordset")
sql="SELECTusername,passwordfromuserswhereusername='"&request("username")&"'"
rs、opensql,conn,1,3
ifrs、bofandrs、eofthen
msg="错误:
用户名不存在"
else
ifrs("password")=request("password")then
Session("admin")=true
response、redirect"index、asp?
users=admin"
else
msg="错误:
密码不正确"
endif
endif
rs、close
setrs=nothing
Conn、close
Setconn=Nothing
endif%>
管理员
--functionMM_jumpMenu(targ,selObj,restore){//v3、0
eval(targ+"、location='"+selObj、options[selObj、selectedIndex]、value+"'");
if(restore)selObj、selectedIndex=0;}
//-->
学生信息管理系统管理员:
密码:
用户类型:
管理员
学生
<%=msg%>