论文:火车票预定系统的设计与实现 - 图文 联系客服

发布时间 : 星期日 文章论文:火车票预定系统的设计与实现 - 图文更新完毕开始阅读fa173ca35acfa1c7ab00cc33

火车票预定系统的设计与实现

//检验表单的合法性 function checklogin() {

if (document.form1.username.value.replace(/\\s+$|^\\s+/g,\{ }

else if (document.form1.password.value.replace (/\\s+$|^\\s+/g,\length<=0) { } else

if(document.form1.checkcode.value.replace(/\\s+$|^\\s+/g,\

}

else if (document.form1.checkcode.value != document.form1.yzm.value) { } else{

form1.submit(); } } <%

String message = (String)request.getAttribute(\ if(message == null){ }

if (!message.trim().equals(\

软件职业技术学院062402班 斯明 学号:20063342 - 31 -

alert(\请输入您的用户名!\document.form1.username.focus();

alert(\请输入您的密码!\document.form1.password.focus();

alert(\请输入验证码!\

document.form1.checkcode.focus();

alert(\验证码错误!\

document.form1.checkcode.focus();

message = \

火车票预定系统的设计与实现

}

out.println(\out.println(\out.println(\

request.removeAttribute(\ String yzm=code.getCheckCode(); %>

id=form1

name=form1

action=<%=basePath %>Login.shtml?method=PAGEUSERLOGIN method=post >


欢迎登陆

<%=sysList.get(0).toString() %>

colspan=2

height=25>

type=hidden

name=reg_type

name=username

maxLength=10

eplace(/[^\\d]/g,''))\

onkeyup=\

value=<%=request.getAttribute(\g_user\

class=input_new size=15

id=password

style=\

110px\

type=password

maxLength=16

name=password

onbeforepaste=\

onbeforepaste=\eplace(/[^\\d]/g,''))\

软件职业技术学院062402班 斯明 学号:20063342 - 32 -

火车票预定系统的设计与实现

onkeyup=\

验证码:

name=checkcode onKeyUp=\

height=25>

type=button

value=\

\

onClick=\

showmessagebox=\

href=\

href=\注册会员

<%@ include file=\5.2.2 主界面

软件职业技术学院062402班 斯明 学号:20063342 - 33 -

火车票预定系统的设计与实现

<%List list2=tb.getAllTrain(); if(list2.size()!=0){ %>

5.2.3 车次查询条件选择窗口

序号 车辆路线 开车时间 到站时间 坐位类型 票价 预定

<%=list3.get(1).toString() %> <%=list3.get(2).toString() %> <%=list3.get(3).toString() %> <%=list3.get(4).toString() %> <%=list3.get(5).toString() %> <%=list3.get(6).toString() %>

id=map>

for(int i = 0; i

List list3 = (List)list2.get(i);

href=\%>Job.shtml?method=prepTrain&id=<%=list3.get(0).toString()%>\预定

路线信息查询

action=\

%>searchinfo.jsp\

method=\

name=\

请选择路线:

软件职业技术学院062402班 斯明 学号:20063342 - 34 -

list=tb.getAllTrain();if(!list.isEmpty()){for(int

i=0;i