【正文】
的用戶才能登錄,論壇也主要包括:論壇標(biāo)題的瀏覽、論題的電擊次數(shù)、論題的回復(fù)個數(shù)、論題的發(fā)布時間、以及通過論題可以連接到論題的具體內(nèi)容,另外,還能夠在論壇詳情頁對論壇的回復(fù)。具體代碼如下: % private sub select_page(page_no,total_page) 請選擇頁碼 : Dim I for I=1 to total_page If I=page_no Then I amp。nbsp Else a href=39。 I amp。 amp。 /aamp。再通過該程序依次寫出各頁頁碼,并將非當(dāng)前頁設(shè)置超級鏈接,當(dāng)前頁則不設(shè)置。需要注意的是因為要用到recordset 對象的很多屬性所以我們要用 OPEN 方法打開數(shù)據(jù)庫的時候要將recordset 對象的 OPEN 方法的參數(shù)設(shè)置為: sql,db,1。 page_size=10 即是將每頁的顯示設(shè)為 10條, If Request(page_no)= Then page_no=1 Else page_no=cint(Request(page_no)) End If 該循環(huán)程序就是 如果第一次打開,則 page_no=1,否則,由傳回的參數(shù)決定。第二行開始則是對每頁顯示記錄的條數(shù)的設(shè)置,第三行是將通過recordset 對象的 PageCount 屬性返回總頁數(shù),最后一行是將當(dāng)前顯示的頁數(shù)設(shè)置為 page_no。 (3) 網(wǎng)站留言 網(wǎng)站留言界面如圖: 311 圖 311 留言界面 網(wǎng)站留言和論壇一樣都需要用戶的登錄才能夠進(jìn)入在這里用戶可以看見自己是第幾個留言的用戶,可以瀏覽到其他用戶的留言,其他功能還上面的一些模塊雷同,所以就不再一 一敘述。 圖 312 管理員主界面 在管理員主頁我們可以看到當(dāng)前論壇中的論題個數(shù)、新聞的條數(shù)、注冊用戶的人數(shù)、以及 在線人數(shù)和網(wǎng)站訪問人數(shù)。需要特別強調(diào)的是第二段先是運用了 response 對象的 Write 方法來建立輸出,然后是運用了 Recordset 對象的 recordcount 方法來得到所有記錄集的個數(shù),關(guān)于其他的個數(shù)的具體實現(xiàn)和上面的大同小異我們詳述。以下是管理頁的界面和代碼: 1 用戶管理頁: 圖 313 用戶管理界面 部分代碼如下: % option explicit% !Include file= !Include file= html head meta equiv=ContentType content=text/html。 第四章 系統(tǒng)維護(hù)與安全 系統(tǒng)維護(hù)與安全性 ( 1) Session 與 Cookie 的安全性 ASP 使用 SessionID Cookie 跟蹤應(yīng)用程序或會話期間特定的 Web 瀏覽器的信息,帶有相應(yīng)的 Cookie 的 HTTP 請求被認(rèn)為是來自同一 Web 瀏覽器。這一技術(shù)的有效性在于被賦予的數(shù)字的長度( 64位),此長度在一定程度上保證了 SessionID 的安全性。每當(dāng)試圖訪問被限制的內(nèi)容是, Web 服務(wù)器將進(jìn)行身份驗證,即確認(rèn)用戶身份,以檢查用戶是否擁有有效的 Windows NT 賬號。 ( 3)數(shù)據(jù)庫的安全性 如果要將本系統(tǒng)用于較大的單位或其他要求安全性較高的單位,以Microsoft Access 數(shù)據(jù)庫作為后臺是不夠的,必須考慮使用更為強大的數(shù)據(jù)庫支持,最為廣泛選 用的是 SQL Server。 / 等字符,防止破壞者惡意的 SQL 語句,接著將Microsoft Access 數(shù)據(jù)庫中的數(shù)據(jù)轉(zhuǎn)移到 SQL Server 中,并且使用安全的密碼和賬號策略 [19]。如果反復(fù)出現(xiàn)統(tǒng)一錯誤,應(yīng)與系統(tǒng)管理員或數(shù)據(jù)庫管理員聯(lián)系。 結(jié)束語 經(jīng)過 一 個月的努力,一個功能上比較完備的 奧運專題網(wǎng)站 終于構(gòu)建完畢了,可以說基本上達(dá)到了預(yù)期的目標(biāo)。在著手準(zhǔn)備這個論文設(shè)計 之前,可以說我對 ASP 以及動態(tài)網(wǎng)頁技術(shù)的了解知之甚少。全面系統(tǒng)地學(xué)習(xí)真的使我受益匪淺。 最后,我得到了鄧斌老師的全面指導(dǎo),論文的完成階段十分順利。 ? 全面了解了利用 ASP 技術(shù)制作動態(tài)網(wǎng)頁的基本知識和一般應(yīng)用。 ? 設(shè)計了奧運專題網(wǎng)站站點的總體結(jié)構(gòu)。 ? 測試、分析和解決了實際功能上的若干技術(shù)問題。希望老師們能夠提出寶貴意見,彌補和改正我的不足之處,幫助我繼續(xù)進(jìn)步。這里有治學(xué)嚴(yán)謹(jǐn)而不失親切的老師,有互相幫助的同學(xué),更有向上、融洽的學(xué)習(xí)生活氛圍。 首先感謝 鄧斌 老師。在此,要對他們的細(xì)心幫助和指導(dǎo)表示由衷的感謝。此外,他們 嚴(yán)謹(jǐn)?shù)闹螌W(xué)態(tài)度和忘我的工作精神 值得我去學(xué)習(xí)。 還要感謝給與我?guī)椭奈覀冺椖啃〗M的其他成員,他們在我的畢業(yè)設(shè)計過程中經(jīng)常給我提出許多關(guān)鍵性的問題,使我受益匪淺。同時感謝大學(xué),感謝工商學(xué)院。 參 考 文 獻(xiàn) [1] 廖疆星,張柯,黃智誠. 中文 DREAMWEAVER 網(wǎng)頁設(shè)計教程.北京:冶金工業(yè)出版社. [2] 蔡翠平 ,尚俊杰.網(wǎng)絡(luò)程序設(shè)計―― ASP.北京:清華大學(xué)出版社.北方交通大學(xué)出版社. [3] 韓國峰,柯華坤,王磊.ASP網(wǎng)站開發(fā)典型模塊與實例精講.北京:電子工業(yè)出版社. [4] 劉炳文,楊明福,陳定中. Visual Basic 語言程序設(shè)計.高等教育出版社. [5] 頊宇鋒. ASP=+SQL SERVER 典型網(wǎng)站建設(shè)案例.北京:清華大學(xué)出版社. give pleasureto our souls. But this is intolerable and blasphemous。 and yet,they have a secret pleasure in them. Cle. Very true. Ath. And is any harm done to the lover of vicious dances or songs,or any good done to the approver of the opposite sort of pleasure? Cle. I think that there is. Ath. I think is not the word, but I would say, rather, I amcertain. For must they not have the same effect as when a mana ssociates with bad characters, whom he likes and approves rather thandislike s, and only censures playfully because he has a suspicion ofhis own badness? In that case, he who takes pleasure in them willsurely bee like those in whom he takes plea sure, even though hebe ashamed to praise them. And what greater good or evil can anydestiny ever make us undergo? Cle. I know of none. Ath. Then in a city which has good laws, or in future ages is tohave them, bearing in mind the instruction and amusement whic h aregiven by music, can we suppose that the poets are to be allowed toteach in the dance anything which they themselves like, in the wayof rhythm, or melody, or words, to the young children of anywellconditioned parents? Is the poet to train his choruses as hepleases, without reference to virtue or vice? Cle. That is surely quite unreasonable, and is not to be thought of. Ath. And yet he may do this in almost any state with the exceptionof Egypt. Cle. And what are the laws about music and dancing in Egypt? Ath. You will wonder when I tell you: Long ago they appear to haverecognized the very principle of which we are now speakingthattheir young citizens must be habituated to forms and strains ofvirtue. These they fixed, and exhibited the patterns of them intheir temples。revery manly and tough [Mulan bites her lip as she mishandles pulling the swordout of the scabbard and it falls to the ground. Khan rolls on his bac k inlaughter. Mulan throws her shoe and hits Khan in the head with it quietingKhan]. I39。s going to take a miracle toget me into the army. [Mushu appears as a giant shadow being cast on a rock with flames on eitherside. Mushu39。s voice]: Did I hear someone ask for amiracle!? Let me hear you say aye! Mulan [Running and hiding behind a rock]: Ahhhhhh. Mushu: That39。mon, you39。regonna work. [returning to Mulan] Heed my word, 39。t do that tongue thing [flipsout his tongue to show Mulan what he means]. Mulan: You39。m travel size for yourconvenience. If I was my real size, your cow here [ patting Khan on the nose]would die of fright. [Khan tries to bite Mushu] [pointing to the groundspeaking to Khan] D own Bessy. My powers are beyond your mortal imagination. For instance, [leaning in and looking at Mulan39。s it! D ishonor! Dishonor on your whole family. [aside to CriKee] Make a note of this[CriKee grabs a leaf and a pen and starts writing]. [Loudly with gusto]Dishonor on you. Dishonor on your cow. Dis Mulan [pleadingly while covering Mushu39。m sorry, I39。m just nervous. I39。re gonna have to trust me. And don39。s getthis show on the road. CriKee, get the bags [Mushu starts walking to thecamp]. [to Khan] Let39。s entrance] Mushu [hiding in Mulan39。em your man walk. Shoulders bac k, chest high, feetapart, head up [Mushu pulls Mulan39。 every unhappy family is unhappy in its own way.