基于javaee的航空订票系统的设计与实现内容摘要:

n/a /td /tr /table spandiv align=center table width=660 height=320 border=1 align=center cellpadding=0 cellspacing=0 tr td width=330 height=160 background=inmage/ td width=330 height=160 background=inmage/ /td//插入图像 /tr tr td width=330 height=160 background=inmage//td td width=330 height=160 background=inmage/ /td /tr /table/div/span 会员管理模块共包括四个功能模块: 图 6 会员功能 当客户想在网站订票必需为本网站的会员,如果不是本网站的会员客户可以在网站上进行注册成为网站的会员。 图 7 会员注册页面 代码如下 function User()//注册会员的验证 { varf=。 if(==){ alert(The name couldnot be empty)。 //用户名不能空 ()。 ()。 return false。 } if((0,1)== ) { alert(The first of name couldnot be empty)。 } if(8)//长度不能小于 8 { alert(You input the user length is too short)。 } if(12)//长度不能大于 12 { alert(You input the user length is too long)。 } if(==) { alert(The password couldnot be empty)。 } if((0,1)== ) { alert(The first of password couldnot be empty)。 } if(isNaN()!=true) { if(12 || 6) { alert(The length of the password is incorrect)。 } else { alert(The password must be number)。 } if((,0)=0 || (+,0)=0) { alert(Can39。 t appear sign like + )。 } if(==) { alert(The password couldnot be empty)。 } if((0,1)== ) { alert(The first of password couldnot be empty)。 if(!=) {//验证密码是否一样 alert(Entered passwords differ !)。 } if(==) { alert(The name couldnot be empty)。 } if((0,1)== ) { alert(The first of name couldnot be empty)。 } if(isNaN()) { if(2 || 14)//名字的长度在 2到 14之间 { alert(You input the wrong name length)。 } } else { alert(The name couldnot be number)。 } if(==) { alert(The telcouldnot be empty)。 } if((0,1)== ) { alert(the first of the telcouldnot be empty)。 } if(isNaN()!=true) { if(8 || 14) { alert(The length of the tel is too short or too long)。 } else { alert(The tel must be number)。 } if((,0)=0 || (+,0)=0)//不能出现 + { alert(Donot appear sign like + —)。 } if(==) { return true。 } else { if((0,1)== ) { alert(The first of id could be empty)。 } if((@,0)==1) {//一定要有 @出现 alert(Email is error,Missing @)。 } if((.,0)==1) {//一定要有 .出现 alert(Email is error,Missing)。 } if(!=18){ alert(Id of length must be 18!)。 } } } 会员在注册页面上点击 [Register Member]按钮,系统进入会员注册 登记页面,客户必需按系统要求如实填写各项个人资料。 会员注册 登记后,便可以使用用户名和密码进行登录 ,当用户在登录窗口中输入用户名和密码后,单击 [Login]按钮,系统将对输入的用户名和密码进行正 确性验证,如果密码正确,则进入个人首页,显示登录用户的用户名、 [Update Usernames’ info]按钮、 [change password][Book ticket][Search shopping][Exit]按钮,否则提示登录失败。 图 8 会员登录页面 图 9 会员主页面 图 10 更新个人信息 代码如下 form name=form1 method=post action=NoparamServlet?param=1onsubmit=return User() table width=443 border=1 align=center cellpadding=0cellspacing=0 tr td width=94 height=38 div align=center pUsername:/p /div /td td width=400 div align=center input name=Username type=text id=yonghu size=20 readonly=true value=${}/ /div input name=Name type=text id=xingbin size=20value=${} /div/td /tr tr td height=38 div align=center Sex:/div/tdtd select name=Sex option value=${ho}${ho}/option//得到性别的名称 option value=${mo}${mo}/option input name=Tel type=text id=zhengjian size=20 value=${}//得到电话 input name=Email type=text id=Emil size=20 value=${}//得到 input name=Id ty。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。