【正文】
id sql,conn,3,2 s。 此頁涉及到交友請求數(shù)據(jù)庫表 apply、交友請求回復數(shù)據(jù)庫表 back 和好友數(shù)據(jù)庫表 friend 的操作。 request(id) sql,conn,3,2 % !include file= % Set rs = () select * from larchives where user_id= amp。 % if request(id) = then end if % !include file= %Set rs_id = () sql = select User_id,id from pic where id= amp。 html 表單元素 此頁無需填寫 html 表單元素。 bncrlf)+4 dataend=instrb(datastart+1,formdata,divider)datastart mydata=midb(formdata,datastart,dataend) Set rs = () select * from larchives where user_id= amp。 !include file= % dim rs dim formsize,formdata,bncrlf,divider,datastart,dataend,mydata formsize= formdata=(formsize) bncrlf=chrB(13) amp。 html 表單元素 此頁無需填寫 html 表單元素。 session(user_id) sql,conn,3,2 if and then if session(user_id)=1 then end if %!include file=% Set rs = () sql=select * from pic where user_id= amp。 !include file=% dim rs_lar,rs dim sql dim i 39。 request(id) sql,conn,3,2 % html 表單 元素 該頁面中僅有 1 個表單元素,如表 35 所示。 !include file= % if request(id) = then end if set rs_id = () sql = select * from friend where id= amp。 html 表單元素 此頁面無需填寫 html 表單元素。 此頁涉及到用戶詳細注冊信息數(shù)據(jù)庫表 larchives 的操作。叛斷此用戶是否已經(jīng)入會 if session(user_id)= then end if Set rs_lar = () sql=select * from larchives where user_id= amp。 個人管理頁 資料管理 檔案修改頁 檔案修改成功 刪除好 友 圖片列表 圖片添加 圖片刪除 相片管理 接受交友請求 拒絕交友請求 刪除好友請求 移入好友列表 交友請求回復 刪除留言 留言管理 回復留言 表 37 名稱 表單元素類型 含義 最大長度 Name Text 真實姓名 10 Home Text 籍貫 10 Company Text 單位 50 Postcalcode Text 郵編 6 Tel Text 電話 20 Fresume Text 簡歷 200 Netname Text 網(wǎng)名 10 Homepage Text 個人主頁 50 Email Text 電子郵件 50 Netcallcode Text 網(wǎng)絡(luò)尋呼機 12 Chatroom Text 常去的聊天室 50 Sport Text 喜歡的運動 30 Book Text 喜歡的書籍 50 Music Text 喜歡的音樂 50 People Text 喜歡的名人 30 Interest Text 愛好或特長 50 Adage Text 人生格言 50 Character Text 性格自述 50 此頁為用戶修改個人檔案信息,涉及到用戶詳細注冊信息數(shù)據(jù)庫表larchives 的操作。 ? ? ? ? 留言管理子模塊包含以下頁面。 ? ? ? 相片管理子模塊包含以下頁。 圖 36 用戶登錄成功 網(wǎng)友個人管理模塊 網(wǎng)友個人管理模塊包含以下子模塊。 session(user_id) sql,conn,3,2 Set rs_user = () sql=select * from user_reg where user_id= amp。 session(user_id) sql,conn,3,2 set rs_back=() sql=select * from back where for_id= amp。 session(user_id) amp。 session(user_id) sql,conn,3,2 39。叛斷 Session 變量是否超時 if isempty(session(user_id)) then end if 39。 此頁使用了系統(tǒng)中的用戶簡單注冊信息表 user_reg、用戶詳細注冊信息表larchives、留言信息表 leaveword 和好友信息列表 friend 等。 圖 35 用戶登錄失敗 1.頁面中需要用戶填寫的 html 表單元素 此頁面為用戶登錄成功信息頁面,頁面中無需填寫 html 表單元素。 39。 amp。 39。 amp。 2.頁面所涉及的數(shù)據(jù)庫表信息 此頁涉及到用戶數(shù)據(jù)庫表 user_reg 的操作。 3.頁面代碼分析 form action=” ” method=” post” ?? /form 4圖 34 為用戶 登錄時所看到的頁面。 ”發(fā)出交友請求,請靜候佳音! end if set rs_apply=nothing if and then picid=1 cur=1 else =1 cur=request(cur) if cur= or clng(cur)1 then cur=1 if clng(cur) then cur= =cur picid=rspic(id) end if pics= % 1.頁面中需要用戶填寫的 html 表單元素 該頁面中僅有兩個表單元素,如表 36所示。 user_id sql,conn,1,1 if not( and ) then willstr=您已向“ amp。 session(user_id) amp。 ) sql,conn,1,1 if not( and ) then willstr=rs_lar(name) amp。 and user_id= amp。 ) or (for_id= amp。 and user_id= amp。 已向您發(fā)出交友請求 end if set rs_apply=nothing set rs_friend=() sql=select * from friend where (for_id= amp。 and user_id= amp。 user_id sql,connpic,1,1 set rs_apply=() sql=select * from apply where for_id= amp。dbq= amp。叛斷 Session 變量是否超時 if isempty(session(user_id)) or session(user_id)= then end if user_id=request(user_id) Set rs_lar = () sql=select * from larchives where user_id= amp。 2.頁面所涉及的數(shù)據(jù)庫表信息 此頁涉及到用戶詳細注冊信息數(shù)據(jù)庫表 larchives 的操作。 2.頁面所涉及的數(shù)據(jù)庫表信息 此頁涉及到用戶詳細注冊信息數(shù)據(jù)庫表 larchives 的操作。判斷是否已經(jīng)填寫檔案 Set rs_lar = () sql=select * from larchives where user_id = amp。叛斷 Session 變量是否超時 if isnull(session(user_id)) then end if 39。 表 35 名稱 表單元素類型 含義 最大長度 name Text 真實姓名 10 Home Text 籍貫 10 Company Text 單位 50 Postcalcode Text 郵編 6 Tel Text 電話 20 Fresume Text 簡歷 200 Netname Text 網(wǎng)名 10 Homepage Text 個人主頁 50 Email Text 電子郵件 50 Netcallcode Text 網(wǎng)絡(luò)尋呼機 12 Chatroom Text 常去的聊天室 50 Sport Text 喜歡的運動 30 Book Text 喜歡的書籍 50 Music Text 喜歡的音樂 50 People Text 喜歡的名人 30 Interest Text 愛好或特長 50 Adage Text 人生格言 50 character Text 性格自述 50 3.頁面所涉及的數(shù)據(jù)庫表信息 此頁為用戶填寫個人檔案頁面,并沒有涉及到數(shù)據(jù)庫表的操作。 1.頁面示例 圖 311 為用戶注冊成功后填寫個人檔案所看到的頁面。 sql,conn,3,2 if and then rs_user(user_name)=user_name rs_user(password)=password rs_user(date)=date session(user_id)=rs_user(user_id) else % 4頁面示例 用戶注冊不成功所看到的頁如圖 3— 3 圖 33用戶注冊不成功界面 1.頁面中需要用戶填寫的 html 表單元素 此頁面為用戶注冊成功后面顯示頁面,頁面中無需填寫 html 表單元素。 user_name amp。 3.頁面代碼分析 !include file= % user_name =left(request(user_name),10) password =left(request(password),10) if password= then 數(shù)據(jù)有錯! end if Set rs_user = () sql=select * from user_reg where user_name like 39。 3.頁面代碼分析 % if session(user_id)1 then end if % 4頁面示例 圖 32為用 戶注冊會員的第一步所看到的頁面 圖 3— 2 用戶注冊會員第一步 1.頁面中需要用戶填寫的 html 表單元素 此頁無需填寫 html 表單元素。 ? 會員注冊 ? ? ? ? ? ? ? 用戶登錄驗證 ? ? ? R 1.頁面中需要用戶填寫的 html 表單元素 該頁面中僅有 3個表單元素,如表 34如示。 表 32留言信息表 列名 數(shù)據(jù)類型 長度 允許空 Id int 4 For_id Nvarchar 10 √ User_id Nvarchar 255 √ Netname Smalldatetin 4 √ Sex Int 4 √ Home int 4 √ 3好友信息列表 friend,如表 33所示。 ? 好友信息列表: id (自動編號 )、對方用戶 id、申請好友者用戶 id、申請好