酒店客房管理系统设计与研究代码

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

附录B登录窗体htmlhead/headscriptlanguage=JavaScriptfunctionlogin11(){if(document.form1.name.value==){alert(请输入用户名!);document.form1.name.focus();returnfalse;}if(document.form1.pwd.value==){alert(请输入密码!);document.form1.pwd.focus();returnfalse;}}/script%Stringerror=(String)request.getAttribute(error);Stringok=(String)request.getAttribute(ok);if(error!=null&&error.equals(1)){%scriptalert('用户名或密码错误!')/script%}%bodyformmethod=postaction=%=path%/servlet/UserLoginServletname=form1onSubmit=returnlogin11()tablealign=centerwidth=100%style=border:0%if(session.getAttribute(login)!=null&&!session.getAttribute(login).equals()){ArrayListal=(ArrayList)session.getAttribute(login);Stringname=(String)al.get(1);%tr1tdalign=centerstyle=border:0%=name%您好,欢迎光临!/td/tr%}else{%tralign=centertdstyle=border:0FONTcolor=#999999用户您好,预定客房请先登录/FONT用户名:inputclass=input7type=textname=namestyle=width:100px;密 码:inputclass=input7type=passwordname=pwdstyle=width:100px;  inputtype=submitvalue=登录/td/tr%}%/table/form/body/html会员留言htmlheadbasehref=%=basePath%scriptlanguage=JavaScriptfunctionlogin222(){if(document.form2.title.value==){alert(请输入留言标题!);document.form2.title.focus();returnfalse;}if(document.form2.content.value==){alert(请输入留言内容!);document.form2.content.focus();returnfalse;}}/script/head%2Stringok=(String)request.getAttribute(ok);if(ok!=null&&ok.equals(1)){%scriptalert('留言成功!')/script%}%%Stringerror2=(String)request.getAttribute(error2);if(error2!=null&&error2.equals(1)){%scriptalert('此图书您还未归还,不能在借!')/script%}%jsp:includeflush=truepage=/servlet/SessLoginServlet/bodyjsp:includeflush=truepage=/servlet/ListServlet/%ArrayListusers=(ArrayList)request.getAttribute(users);ArrayListleaveword=(ArrayList)request.getAttribute(leaveword);%jsp:includeflush=truepage=top.jsp/divalign=centertableborder=1width=900height=700cellpadding=0id=table1bordercolorlight=#C0C0C0bordercolordark=#C0C0C0style=border-collapse:collapsetrtdrowspan=2width=178valign=topjsp:includeflush=truepage=left.jsp//tdtdheight=350valign=top%for(inti=0;ileaveword.size();i++){ArrayListalRow=(ArrayList)leaveword.get(i);%tableborder=0width=100%id=table2bgcolor=#C0C0C0trtdbgcolor=#DDEEFFheight=20width=14%用户名:/tdtdbgcolor=#DDEEFFheight=20width=36%%for(intj=0;jusers.size();j++){ArrayListusersRow=(ArrayList)users.get(j);if(usersRow.get(0).equals(alRow.get(1))){%%=usersRow.get(1)%%break;}}%3/tdtdbgcolor=#DDEEFFheight=20width=14%留言时间:/tdtdbgcolor=#DDEEFFheight=20width=34%%=alRow.get(4).toString().substring(0,16)%/td/trtrtdbgcolor=#FFEEFFheight=20width=14%留言标题:/tdtdbgcolor=#FFEEFFheight=20colspan=3%=alRow.get(2)%/td/trtrtdbgcolor=#FFEEFFheight=20width=14%留言内容:/tdtdbgcolor=#FFEEFFheight=20colspan=3%=alRow.get(3)%/td/tr/tablebr%}%/td/trtrtdformaction=servlet/LeaveWordServletmethod=postname=form2onSubmit=returnlogin222()tableborder=1width=100%id=table3bordercolorlight=#C0C0C0bordercolordark=#C0C0C0bgcolor=#E8E8E8style=border-collapse:collapsetrtdwidth=77留言标题:/tdtdinputtype=textname=titlesize=48/td/trtrtdwidth=77留言内容:/tdtdtextarearows=9name=contentcols=57/textarea/td/trtrtdcolspan=2height=25align=centerinputtype=submitvalue=提交留言/td/tr/table/form/td4/tr/table/divjsp:includeflush=truepage=Copyright.jsp//body/html客房预订htmlheadbasehref=%=basePath%scriptlanguage=JavaScriptfunctionlogin222(){if(document.form2.sumday.value==){alert(请输入预定天数!);document.form2.sumday.focus();returnfalse;}if(isNaN(document.form2.sumday.value)){alert(预定天数必须是数字!);document.form2.sumday.focus();returnfalse;}}/script/head%Stringerror1=(String)request.getAttribute(error1);if(error1!=null&&error1.equals(1)){%scriptalert('此客房已被全部订出,请重新选择!')/script%}%%Stringerror2=(String)request.getAttribute(error2);if(error2!=null&&error2.equals(1)){%scriptalert('此客房您还未离开,不能预定!')/script%}%jsp:includeflush=truepage=/servlet/SessLoginServlet/body5jsp:includeflush=truepage=/servlet/ListServlet/%ArrayListbookinf=null;StringbookId=request.getParameter(bookId);if(bookId==null){bookId=(String)request.getAttribute(bookId);}if(bookId!=null&&!bookId.equals()){ArrayListal=(ArrayList)request.getAttribute(books);for(inti=0;ial.size();i++){bookinf=(ArrayList)al.get(i);if(bookinf.get(0).equals(bookId)){break;}}}ArrayListtype=(ArrayList)request.getAttribute(type);%jsp:includeflush=truepage=top.jsp/divalign=centertableborder=0width=900height=700cellspacing=0cellpadding=0id=table1trtdrowspan=2width=178valign=topjsp:includeflush=truepage=left.jsp//tdtdformaction=servlet/LoanBookServlet?bookid=%=bookinf.get(0)%&price=%=bookinf.get(5)%method=postname=form2onSubmit=returnlogin222()tableborder=1width=100%style=border-style:solid;border-width:1pxbordercolorlight=#C0C0C0bordercolordark=#FFFFFFheight=334trtdcolspan=2align=center客房预定/td/trtrtdr

1 / 18
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功