图书馆服务系统设计论文数据库系统概论课程设计报告大学论文Word格式文档下载.docx
- 文档编号:14970967
- 上传时间:2022-10-26
- 格式:DOCX
- 页数:28
- 大小:174.81KB
图书馆服务系统设计论文数据库系统概论课程设计报告大学论文Word格式文档下载.docx
《图书馆服务系统设计论文数据库系统概论课程设计报告大学论文Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《图书馆服务系统设计论文数据库系统概论课程设计报告大学论文Word格式文档下载.docx(28页珍藏版)》请在冰豆网上搜索。
三、库文件结构设计
a)概念模型设计
1)读者信息
2)书籍信息
3)管理员信息
4)栏目信息
5)读者与书籍之间的关系(借阅读关系E-R图)
6)管理员与书籍之间的关系(管理员_书籍E-R图)
7)管理员与学生之间的关系(管理员_学生E-R图)
b)逻辑设计——从理论“E/R模型”到理论“关系模型”的整理转换,通过E/R模型到关系模型的转化,可以得到如下关系模式:
借阅关系
属性:
工作号,读者学号,ISBN,是否续借,借书日期,还书日期,备注
主键:
工作号,读者学号,ISBN,管理员_书籍关系
工作号,ISBN,添加时间,是否在馆
工作号
b)数据库表的设计
表4.1图书栏目表
列名
数据类型
长度
允许空
typeid
int
8
no
type
ntext
50
yes
Typename
next
Typetime
time
7
表4.2图书内容表
bookid
bname
zzbook
content
100
about
title
review
dateandtime
10
tjbook
path
表4.3管理员信息表
Id
username
password
表4.4会员信息表
userid
四、用户接口设计及主要功能实现
1)主页面端口:
default.asp
<
html>
<
bodybgcolor=#CBC8C8>
br>
p>
dl>
<
dd>
divalign=centerstyle="
font-size:
xx-large"
>
fontcolor
="
crimson"
WUST图书馆服务系统<
/P>
/font>
/div>
/dd>
/dl>
tablealign=centerborder=0width=630>
tr>
<
tdwidth=20%align=center>
ahref="
login.htm"
[会员登录]
/a>
/td>
managerlogin.htm"
[管理员登录]<
searchbook.htm"
[检索图书]<
help.htm"
[帮助信息]
leavemessage.htm"
[请你留言]<
/tr>
/table>
/body>
/html>
2)会员登录模块:
login.htm和login.asp
head>
title>
/title>
/head>
bodybgcolor=#CBCC8C8>
palign=center>
fontsize=5>
图书馆服务——会员登陆<
/p>
hr>
formaction=login.aspmethod=post>
tableborder=0width=500cellpadding=0>
tdwidth=40%align=rightheight=40>
账号:
tdwidth=50%>
inputname=name
style="
height:
22px;
width:
167px"
密码:
inputtype=passwordname=password
tdwidth=30%align=left>
&
nbsp;
inputid=submit1name=submit1
type=submitvalue=确定>
inputid=reset1name=reset1type=resetvalue=重填>
/form>
formaction=changepassword.aspmethod=post>
changepassword.htm"
[修改密码]
/center>
center>
palign=centerstyle="
fontsize=2>
图书馆欢迎您<
南四205版权所有
%@language=vbscript%>
%response.buffer=true%>
%setconn=server.createobject("
adodb.connection"
)
conn.open"
DRIVER={MicrosoftSQLDriver
(*.mdb)};
DBQ="
Server.MapPath("
BBS.MDB"
)%>
%setrstemp=server.createobject("
addb.recordset"
dimstrname,strpassword,sql
strname=request.form("
Name"
strpassword=request.form("
password"
sql="
select*fromuserwhereusername='
"
strname&
"
'
rstemp.opensql,conn,1,3
ifstrname="
then
response.write"
账号不能为空<
%>
ahref=javascipt:
history.back()>
上一页<
%response.end
endif
ifstrpassword="
response.write"
密码不能为空<
ahref=javascript:
%response.end
endif
ifrstemp.RecordCount=1then
ifrstemp("
userpassword"
)=strpasswordthen
session("
name"
)=strname
response.redirect"
user.htm"
else
账号错误请重新输入<
rstemp.close
setrstemp=nothing
3)会员密码修改端口:
changepassword.htm和changepassword.asp
!
--#includefile=conn.asp-->
%ifsession("
)="
then
response.write"
请你首先登录,才能留言"
response.end
%dimstroldpassword,strnewpassword,strconfirmpassword
dimstrwhere,strsql,strdsn,strchangesql
stroldpassword=request.form("
oldpassword"
)
strnewpassword=request.form("
newpassword"
strconfirmpassword=request.form("
confirmpassword"
ifstroldpassword="
orstrnewpassword="
请输入密码"
endif
ifstrnewpassword<
strconfirmpasswordthen
两次密码不相同"
strwhere="
whereusername='
&
session("
)&
anduserpassw
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 图书馆 服务 系统 设计 论文 数据库 概论 课程设计 报告 大学