浙江海洋学院毕业论文
sorts sortsid sorts sortsorder categoryid first 1 2 3 4 1 2 3 4 1 2 3 5 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 1 2 3 1 2 3 1 2 3 73 73 73 73 82 82 82 82 83 83 83 82 86 86 86 86 85 85 85 85 87 87 87 87 74 74 74 75 75 75 76 76 76 77 77 77 1 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 419 文学理论 420 文学史 421 综合文学作品集 422 小说 423 基础理论及入门 424 操作系统 425 数据库 426 编程语言 427 医学卫生理论 428 西医 429 中医 430 计算机辅助技术 431 启蒙/益智 432 语言识字 433 图片挂图 434 历史故事 435 百科全书 436 地图 437 个人手册/实用指南 438 哲学 439 成人考试 440 升学考试 441 出国考试 442 外语考试 443 艺术理论 444 绘画 445 书法篆刻 446 职业生活 447 生活百科 448 旅游探险 449 社科总论 450 马列经典 451 政治 452 法学理论 453 中国法律 454 案例 第 16 页 共 31 页
浙江海洋学院毕业论文
sorts sortsid sorts sortsorder categoryid first 1 2 3 1 2 3 4 1 2 3 4 1 2 3 4 6 5 7 6 78 78 78 79 79 79 79 80 80 80 80 81 81 81 78 82 79 82 79 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 455 军事理论 456 国防教育 457 军界名人 458 会计 459 税收 460 各国经济 461 公共关系 462 英语综合教程 463 专项教程 464 专业英语 465 英语文学 466 科普读物 467 农业科学 468 自然科学 469 军事战例 470 软件技术/软件工程 471 市场营销 472 网页设计制作/网站建设 473 经济理论 表7.8 用户注册信息数据表
7.2具体功能模块的设计 7.2.1用户功能模块设计 界面设计如下图:
第 17 页 共 31 页
浙江海洋学院毕业论文
图7.1 用户界面
从界面上可以看出网站具有注册、登陆、帮助、收藏、图书搜索、购物车、栏目导航等功能。
1.用户注册功能的设计
图7.2 用户注册界面
这个部分需要表单插入,数据库的连接,以及数据库的验证等等。 <%
if NOT isempty(request(\ if session(\ call MsgBox(\对不起,您刚注册过用户!\
第 18 页 共 31 页
浙江海洋学院毕业论文
response.end
end if
set rs=server.CreateObject(\ rs.open %username,useremail from [user] where username='\or useremail='\ if not rs.eof and not rs.bof then call MsgBox(\您输入的用户名或Email地址已存在,请返回重新输入!\ end if
rs.close
rs.open \rs.addnew
rs(\
rs(\rs(\rs(\rs(\rs(\'身份证
rs(\
rs(\rs(\
rs(\rs(\rs(\rs(\rs(\
rs(\rs(\
第 19 页 共 31 页
浙江海洋学院毕业论文
rs.update
rs.close
set rs=nothing
response.Cookies(cookieName)(\ response.Cookies(cookieName).expires=date+1 session(\ session.Timeout=1
call MsgBox(\注册成功!请到用户管理中心填详细资料!\end if %>
以上代码是用户名及相关资料的验证及写入。 function check() {
if(checkspace(document.userinfo.username.value)) { document.userinfo.username.focus();
alert(\用户名不能为空,请重新输入!\ return false; }
if(checkspace(document.userinfo.username.value) document.userinfo.username.value.length < 2) {
document.userinfo.username.focus();
alert(\用户名长度不能小于2,请重新输入!\ return false; }
if(checkspace(document.userinfo.identify.value) document.userinfo.identify.value.length < 15) { document.userinfo.identify.focus();
alert(\身份证号码长度不能小于15位,请重新输入!\ return false; }
if(checkspace(document.userinfo.password.value) document.userinfo.password.value.length < 6) { document.userinfo.password.focus();
alert(\密码长度不能小于6,请重新输入!\ return false; }
if(document.userinfo.password.value != document.userinfo.password1.value) { document.userinfo.password.focus();
第 20 页 共 31 页
||
||
||