【文章內(nèi)容簡(jiǎn)介】
f set rs_lar=nothing set conn=nothing % 15 html 表單元素 此頁面為用戶提交個(gè)人檔案信息頁面,頁面無需填寫 html 表單元素。 此頁涉及到用戶詳細(xì)注冊(cè)信息數(shù)據(jù)庫表 larchives 的操作。 3. 關(guān)鍵語句 % Option Explicit dim rs_lar dim sql,haveerr,star dim name,sex,byear,bmonth,bday,province,home,education,job,pany,postcalcode dim tel,fresume,name,homepage,,call,callcode,chatroom,tallroom,sport,book,music dim people,interest,adage,character,word dim i dim err(26) % !include file= % 39。叛斷 Session 變量是否超時(shí) if isempty(session(user_id)) then end if Set rs_lar = () sql=select user_id from larchives where user_id = amp。 session(user_id) sql,conn,3,2 if not( and ) then 您已經(jīng)建立了檔案 ! end if html 表單元素 該頁面中僅有兩個(gè)表單元素,如表 43 所示。 表 頁的表單元素 名稱 表單元素類型 含義 最大長(zhǎng)度 16 User_name Text 用戶登入名稱 10 Password Password 用戶登入密碼 10 此頁僅向系統(tǒng)提交用戶注冊(cè)名稱和密碼,并沒有涉及到數(shù)據(jù)庫表的操作。 43 為用戶登入時(shí)所看到的頁面。 圖 43 html 表單元素 此頁面位驗(yàn)證用戶名稱和密碼頁面,頁面中無需填寫 html 表單元素。 此頁涉及到用戶數(shù)據(jù)庫表 user_reg 的操作 % Option Explicit dim rs_user dim sql dim user_name,password user_name =left(request(user_name),10) password =left(request(password),10) if password= or user_name= then script language=39。javascript39。 alert(39。數(shù)據(jù)填寫有錯(cuò) !39。)。 (1)。 /script end if 44 位用戶登入失敗時(shí)所看到的頁面。 17 圖 44 用戶登入失敗 html 表單元素 此頁面為用戶登入成功登入信息頁面,頁面中無需填寫 html 表單元素。 。 此頁使用了系統(tǒng)中的用戶簡(jiǎn)單注冊(cè)信息表 user_reg、用戶詳細(xì)注冊(cè)信息表larchives、留言信息表 leaveword 和好友信息列表 friend 等。 !include file= %dim rs_lar,rs_word,rs_apply,rs_back,rs_friend,rs_user sql 39。叛斷 Session 變量是否超時(shí) if isempty(session(user_id)) then end if 39。叛斷此用戶是否已經(jīng)注冊(cè) if session(user_id)=1 then Set rs_lar = () sql=select * from larchives where user_id = amp。 session(user_id) sql,conn,3,2 39。叛斷此用戶是否已經(jīng)提交檔案 if and then end if Set rs_word = () sql=select * from leaveword where for_id= amp。 session(user_id) amp。 order by id desc sql,conn,1,1 %:set rs_lar=nothing :set rs_word=nothing :set rs_apply=nothing :set rs_friend=nothing :set rs_user=nothing% 45 為用戶登入成功所看到的頁面。 18 圖 45 用戶登入成功 網(wǎng)友個(gè)人管理模塊 網(wǎng)友個(gè)人管理模塊包含以下子模塊。 資料管理 相片管理 交友請(qǐng)求回復(fù)管理 留言管理 資料管理子模塊包含以下頁面。 交友請(qǐng)求回復(fù)管理子模塊包含以下頁面。 留言管理子模塊包含以下頁面。 各頁面間的關(guān)系如圖 46 所示 19 資 料 管 理相 片 管 理交 友 請(qǐng) 求 回 復(fù)留 言 管 理E d s p 檔 案 修 改 頁E a d d .a s p 檔 案 修 改 成 功D e lh y .a s p 刪 除 好 友S e n d p h o to .a s p 圖 片 列 表A d d p ic .a s p 圖 片 添 加D e lp ic .a s p 圖 片 刪 除A c c e p s p 接 受 交 友 請(qǐng) 求R e f u s e .a s p 拒 絕 交 友 請(qǐng) 求M o v e to .a s p 移 入 好 友 列表D e lq q .a s p 刪 除 好 友 請(qǐng) 求L e a v e w o r d 回 復(fù) 留 言D e liu y a n .a s p 刪 除 留 言 圖 46 各頁面間的關(guān)系 html 表單元素 該頁面中共有 18 各需要用戶填寫的表單元素,如圖表 44 所示。 名稱 表單元素類型 含義 最大長(zhǎng)度 Name Text 真實(shí)姓名 10 Home Text 籍貫 10 Company Text 單位 50 Postcalcode Text 郵編 6 Tel Text 電話 20 20 Fresume Text 簡(jiǎn)歷 200 Netname Text 網(wǎng)名 10 Homepage Text 個(gè)人主頁 50 Email Text 電子郵件 50 Netcallcode Text 網(wǎng)絡(luò)尋呼機(jī) 12 Chatroom Text 常去的聊天室 50 Sport Text 喜歡的運(yùn)動(dòng) 30 Book Text 喜歡的書籍 50 Music Text 喜歡的音樂 50 People Text 喜歡的名人 30 Interest Text 愛好或特長(zhǎng) 50 Adage Text 人生格言 50 Character Text 性格自述 50 表 頁的表單元素 此頁面為用戶修改個(gè)人檔案信息,涉及到用戶詳細(xì)注冊(cè)信息數(shù)據(jù)庫表larchives 的操作。 !include file= % 39。叛斷此用戶是否已經(jīng)入會(huì) if session(user_id)= then end if Set rs_lar = () sql=select * from larchives where user_id= amp。 session(user_id) sql,conn,3,2 if and then end if % % Set rs_lar=nothing 21 Set conn=nothing % html 表單元素 頁面中無需填寫 html 表單元素。 此頁涉及到用戶詳細(xì)注冊(cè)信息數(shù)據(jù)庫表 larchives 的操作。 !include file= % Set rs_lar = () sql=select * from larchives where user_id like 39。 amp。 session(user_id) amp。 39。 sql,conn,3,2 if and then 您還沒建立了檔案 ! end if 此頁為用戶刪除好友列表頁面,刪除成功后頁面跳轉(zhuǎn)到個(gè)人管理首頁,因此沒有頁面示例。 html 表單元素 此頁面無需填寫 html 表單元素。 此頁涉及到用戶好友數(shù)據(jù)庫表 friend 的操作。 !include