第四章 系统的实现技术 4.1各模块详述系统各部分的实现方法 paper51.com
宏都大酒店简介,主要功能是让客户了解宏都大酒店的规模情况。 copyright paper51.com 主要功能,显示宏都大酒店客房情况,包括点击放大图片,查询房价、或预订房间。 http://www.paper51.com 功能是显示房间的价格,让客户了解房价的情况。 内容来自论文无忧网 www.paper51.com 客房的预订登记信息 内容来自论文无忧网 www.paper51.com 4.2 程序流程 内容来自论文无忧网 www.paper51.com <% http://www.paper51.com
page =Request.QueryString("page") http://www.paper51.com action =Request.QueryString("action") 内容来自www.paper51.com action_e =Request.Form("action_e") paper51.com setConn=Server.CreateObject("ADODB.Connection")’ 连接数据库 paper51.com
Conn.Open"driver={Microsoft Access Driver (*.mdb)};dbq=" &Server.MapPath("\data\data.mdb") http://www.paper51.com
%>’“\data\data.mdb”指定数据库的路径 http://www.paper51.com
<html> 内容来自www.paper51.com <head> copyright paper51.com <title>宏都大酒店客房网上预订管理系统</title> 内容来自论文无忧网 www.paper51.com
<meta name="keywords" content="宏都大酒店客房网上预订管理系统"> 内容来自www.paper51.com
<meta http-equiv="Content-Type" content="text/html;charset=gb2312"> 内容来自www.paper51.com <link rel="stylesheet" href="gbstyle.css" type="text/css"> paper51.com
<styletype="text/css"> 内容来自www.paper51.com <!-- http://www.paper51.com body { paper51.com background-image: url(../bg_p1.gif); paper51.com } http://www.paper51.com
.style4 {color: #990000} copyright paper51.com body,td,th { http://www.paper51.com color: #666666; 内容来自论文无忧网 www.paper51.com } paper51.com
.style5 { paper51.com color: #666666; 内容来自www.paper51.com
font-weight: bold; 内容来自论文无忧网 www.paper51.com } copyright paper51.com .style7 {color: #FF3300} 内容来自论文无忧网 www.paper51.com --> http://www.paper51.com </style> 内容来自论文无忧网 www.paper51.com
</head> paper51.com <script language="JavaScript"> paper51.com <!-- paper51.com functionreloadPage(init) { 内容来自www.paper51.com if (init==true) with (navigator) {if((appName=="Netscape")&&(parseInt(appVersion)==4)) { 内容来自www.paper51.com document.pgW=innerWidth;document.pgH=innerHeight; onresize=reloadPage; }} copyright paper51.com
else if (innerWidth!=document.pgW ||innerHeight!=document.pgH) location.reload(); paper51.com } copyright paper51.com reloadPage(true); paper51.com functionjumpMenu(targ,selObj,restore){ paper51.com eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); copyright paper51.com if (restore) selObj.selectedIndex=0; 内容来自论文无忧网 www.paper51.com
} 内容来自论文无忧网 www.paper51.com functionopenBrWindow(theURL,winName,features) { copyright paper51.com window.open(theURL,winName,features); 内容来自论文无忧网 www.paper51.com
} 内容来自www.paper51.com
functionget_cookie(Name){ 内容来自论文无忧网 www.paper51.com var search = Name + "=" copyright paper51.com var returnvalue = ""; 内容来自www.paper51.com if (document.cookie.length > 0) { paper51.com offset =document.cookie.indexOf(search) paper51.com if (offset != -1) { 内容来自www.paper51.com offset +=search.length copyright paper51.com end =document.cookie.indexOf(";", offset); http://www.paper51.com if(end == -1) 内容来自论文无忧网 www.paper51.com end= document.cookie.length; http://www.paper51.com returnvalue=unescape(document.cookie.substring(offset,end)) http://www.paper51.com
} copyright paper51.com } copyright paper51.com return returnvalue; copyright paper51.com } 内容来自www.paper51.com functionswapImgRestore() { paper51.com
var i,x,a=document.sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc; http://www.paper51.com } copyright paper51.com functionpreloadImages() { paper51.com var d=document; if(d.images){ if(!d.p)d.p=new Array(); 内容来自www.paper51.com
vari,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++) 内容来自www.paper51.com if(a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}} 内容来自www.paper51.com } 内容来自www.paper51.com
|