freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

酒店房間預(yù)約系統(tǒng)設(shè)計(jì)—免費(fèi)-資料下載頁

2024-12-06 03:02本頁面

【導(dǎo)讀】外資本家紛紛將目光投向中低端市場(chǎng)。然而,中國(guó)酒店業(yè)的區(qū)域結(jié)構(gòu)不合理、競(jìng)。變成了一個(gè)淘金圣地。在信息高度發(fā)達(dá)的今天,酒店制度的改革已經(jīng)成為一種更廣泛、全面的潮流。該系統(tǒng)可以保存和處理多個(gè)酒店的名稱、星級(jí)和地址等基本信息以及每個(gè)。了相應(yīng)的查詢功能,而且有完善的多用戶安全功能。保證在我國(guó)經(jīng)濟(jì)持續(xù)發(fā)展、信息時(shí)代日益更新的今天,服務(wù)行業(yè)依然蒸蒸日上。隨著計(jì)算機(jī)技術(shù)的飛速發(fā)展,信息時(shí)代的到來,信息改變了我們這個(gè)社會(huì)。各類行業(yè)在日常經(jīng)營(yíng)管理各個(gè)方面也在悄悄地走向規(guī)范化和網(wǎng)絡(luò)化。無疑,使用網(wǎng)絡(luò)信息化管理使酒店客房管理更先進(jìn)、更。酒店預(yù)約基本都是需要通過電話或客戶直接到酒店進(jìn)行,由于。本系統(tǒng)具有房間信息查詢、預(yù)約房間和取消預(yù)約等功能。ASP文件就是在普通的HTML文件中嵌入VBScript或JavaScript腳本語言。在ASP動(dòng)態(tài)網(wǎng)頁中,不僅可以包含服務(wù)器端代碼,也可以使用ASP內(nèi)。1)函數(shù)有返回值。Server負(fù)責(zé)控制ASP的運(yùn)行環(huán)境。傳統(tǒng)的預(yù)約方式已經(jīng)基本不能滿足要求。

  

【正文】 If ( 0) Then Else End If If (room_numRows 0 Or room_numRows room_total) Then room_numRows = room_total End If room_first = 1 room_last = room_first + room_numRows 1 If (room_first room_total) Then roomd_first = room_total End If If (room_last room_total) Then room_last = room_total End If End If % % if not isempty(session(user_name)) then set rs_user_name=() sql=select * from user_reg where user_name =39。 amp。 session(user_name) amp。39。 sql,hotel_conn,3,1 (歡迎您, amp。session(user_name) amp。 br) end if % % set rs_user_name = Nothing () Set rs_user = Nothing () Set room = Nothing % 該模塊分為注冊(cè)和登錄兩個(gè)功能模塊。 ( 1) 注冊(cè)模塊 圖 25 所示用戶注冊(cè)頁面,是由文件 來實(shí)現(xiàn)的。他不需要連接數(shù)據(jù)庫,主要功 能是收集信息并傳遞給 文件進(jìn)行數(shù)據(jù)有效性驗(yàn)證。 圖 25 用戶注冊(cè)頁面 程序清單 21 生成年、月、日序列 部分代碼 ! 生成年 select name=byear class=select_filed id=byear tabindex=7 %for i=1940 to year(date)3% option value=%=i%%=i%/option %next% /select年 ! 生成月 select name=bmonth class=select_filed id=bmonth tabindex=8 %for i=1 to 12% option value=%=i%%=i%/option %next% /select月 ! 生成日 select name=bday class=select_filed id=bday tabindex=9 %for i=1 to 31% option value=%=i%%=i%/option %next% /select日 /div/td 文件 接收到的信息傳遞 給 文件進(jìn)行驗(yàn)證,其實(shí)現(xiàn)代碼見程序清單 22 所示 % dim err(9) dim name,psw,psw2,sex,byear,bmonth,bday,tel, dim rs_test_name,rs_user name=request(name) psw=request(psw) psw2=request(psw2) sex=request(sex) byear=request(byear) bmonth=request(bmonth) bday=request(bday) tel=request(tel) =request() if is_name(name) then set rs_test_name=() sql = select * from user_reg where user_name=39。 amp。 name amp。 39。 sql,hotel_conn,3,2 if not( or ) then err(2)=這個(gè)用戶名已經(jīng)存在 else err(1)=用戶名只能使用字母、數(shù)字和下劃線 end if if len(name)12 then err(3)=用戶名不能超過 12 個(gè)字符 if len(name)4 then err(3)=用戶名不能少于 4 個(gè)字符 if psw psw2 then err(4)=兩次輸入的密碼不一致 if len(psw)16 then err(5)=密碼不能超過 16 位 if len(psw)4 then err(5)=密碼不能少于 4 位 if len(tel)15 then err(6)=電話號(hào)碼不能超過 15 個(gè)字符 if len(tel)7 then err(6)=電話號(hào)碼不能少于 7 個(gè)字符 if len()50 then err(7)=Email 最多只能有 50 個(gè)字符 if not is_() then err(8)=Email 地址錯(cuò)誤 if not(isdate(byear amp。 amp。 bmonth amp。 amp。 bday)) then err(9)=生日您沒有選擇或生日日期無效 for i=1 to 9 if err(i) then haveerr=yes next % % set rs_user=() select * from user_reg,hotel_conn,3,2 rs_user_total=()+1 If ( = 1) Then rs_user_total=0 While (Not ) rs_user_total = rs_user_total + 1 Wend end if rs_user(user_name)=name rs_user(psw)=psw rs_user(sex)=sex rs_user(age)=datediff(yyyy,byear amp。 amp。 bmonth amp。 amp。 bday,date) rs_user()= rs_user(tel)=tel rs_user(byear)=byear rs_user(bmonth)=bmonth rs_user(bday)=bday session(user_name) = name % ( 2) 登錄模塊 登錄模塊主要是由文件 來實(shí)現(xiàn)的。其登錄核心代碼見程序清單 23.通過 user_id 和 psw 接收用戶在首頁填寫的用戶和密碼,并打開數(shù)據(jù)庫在 user_reg用戶信息表中查詢,如果找到了相應(yīng)的記錄則將用戶名寫入 session(“user_name”),并給變量 haverr 賦值為 0 作為顯示正確登錄的標(biāo)識(shí)。 程序清單 23 用戶登錄驗(yàn)證 部分代碼 % user_id=(user_name) psw=(psw) set rs_user=() sql=select * from user_reg where user_name = 39。 amp。 user_id amp。 39。 and psw=39。 amp。 psw amp。 39。 sql,hotel_conn,3,2 if not( or ) then session(user_name)=rs_user(user_name) haveerr=0 else haveerr=1 end if % 查看房間信息是酒店應(yīng)該提供一個(gè)必要功能。圖 26 所示是查看房間頁面的示意圖,從圖中可以看出在該頁面顯示了房間名稱、房間類型、費(fèi)用和預(yù)約操作。 圖 26 查看房?jī)r(jià) 在查看房間頁面 中首先要打開房間信息表 room 來獲取信息,然后通過循環(huán)來逐條列出房間信息,見程序清單 24 見程序清單 24 顯示房間信息核心代碼 % set rs_room=() sql = select * from room sql,hotel_conn,3,2 while (not or ) % tr td class=textdiv align=left%= rs_room(room_id) %/div/td td class=textdiv align=left%= rs_room(name) %/div/td td class=textdiv align=left%= rs_room(type) %/div/td td class=textdiv align=left%= rs_room(cost) %/div/td td class=textdiv align=left a href=?room_id=%= rs_room(room_id) %我要預(yù)約 /a /div/td /tr % wend % 當(dāng)房間信息過多的時(shí)候,用戶為了快速獲得滿足自己要求的房間就比較麻煩。本系統(tǒng)設(shè)計(jì)了查詢功能,方便用戶輸入條件獲得需求房間。圖 27 所示為了一個(gè)簡(jiǎn)單查詢結(jié)果的頁面。實(shí)現(xiàn)代碼見程序清單 25 圖 27 查詢房間 程序清單 25 查詢功能實(shí)現(xiàn)代碼 % set_room=(set_room) set_cost=(set_cost) % form name=form1 method=post action= table width=533 border=0 class=table_small tr td colspan=2 /td /tr tr td colspan=2 class=text_titlediv align=left請(qǐng)給出查詢條件: /div/td /tr tr td colspan=2 class=table_title /td /tr tr td colspan=2 class=textdiv align=left p查看所有費(fèi)用上限 select name=set_cost class=select_filed2 id=set_cost option selected不作要求 /option option50 元 /option option200 元 /option option400 元 /option option600 元 /option option600 元以上 /option /select 的 select name=set_room class=select_filed2 id=set_room option selected所有 /option option 總統(tǒng)套房 /option option觀光二人間 /option option標(biāo)準(zhǔn)
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1