【正文】
Session (“MM_UserAuthorization”) =CStr ( (MM_flduserAuthorization).value) Else Session (“MM_UserAuthorization”) =”” End if 另外,在“登錄用戶”對話框“基于以下限制訪問”中選擇“用戶名、密碼和訪問級別”的用戶登錄,則還會產(chǎn)生一個表示訪問級別的 Session變量:Session(“MM_UserAuthorization”)。 根據(jù)總體設(shè)計以及用戶登錄失敗,可能的兩種情況如下所示。 如圖 9所示,把“返回登錄頁面”文本字樣設(shè)置超鏈接到“ ” ,把“注冊新用戶”文本字樣設(shè)置鏈接到“ ” ,把“回首頁”文本字樣設(shè)置超鏈接到主界面“ ”。 這里的“檢查表單”是進行客戶端的表單元素內(nèi)容的檢查,比如,當(dāng)會員注冊時忘記輸入了密碼等“必需”的內(nèi)容,或輸入的電子郵件地址不符合郵件地址規(guī)范等情況時,網(wǎng)頁會提示注冊用戶正確填寫。 圖 11 檢查新用戶名 注冊成功頁面 當(dāng)注冊成功時將轉(zhuǎn)到注冊成功頁面,頁面的設(shè)計如圖 13所示。 圖 13 注冊失敗頁面 以上是教師登錄和注冊模塊的設(shè)計實現(xiàn),與之相關(guān)的學(xué)生登錄和注冊模塊的設(shè)計與此相似,這里省略,詳細情況見源代碼。 (2)在“服務(wù)器行 為”面板上單擊加號( +),選擇“更新記錄”,彈出對話框,“連接”下拉列表框中選擇“ conn” ,“要更新的表格”為“ tea”,“唯一鍵列”為“ t_id”,“在更新后,轉(zhuǎn)到”為“ ../../”。建立查詢輸入平臺頁“ ” ,該查詢輸入平臺頁面具有表單元 素,用以提供瀏覽者輸入注冊用戶名進行查詢,同時并做客戶端檢測:瀏覽者有沒有輸入表單元素內(nèi)容, 查找密碼第二步:接收 ,給出兩種反饋信息。根據(jù)比較結(jié)果,做兩種信息的反饋。 管理員編輯用戶信息和刪除用戶 管理員編輯用戶信息與用戶修改個人信息相似,參照 ,這里省略。 圖 18 課件列表頁 圖 19 課件刪除頁面 圖 20 刪除記錄設(shè)置 如上圖 20所示,設(shè)計課件刪除頁 ,單擊服務(wù)器面板,選擇“刪除記錄”,如圖 21所示進行設(shè)置: 切換到“代碼”視圖,加入如下代碼,以上設(shè)置只是刪除數(shù)據(jù)庫記錄,并沒有刪除上傳的文件,加入以下代碼則可以刪除硬盤上的文件。 (1)在“課件管理系統(tǒng)”的“ tan”文件夾內(nèi)新建文件“ ”。 (5)在文檔中插入“隱藏域”,打開其“屬性面板”,定義名稱為“ upfilefolder” ,輸入其“值”為“ uploadfile”。 (2)打開“插入”面板中的“ HTML”類別,單擊“框架”按鈕后的向下箭頭,從彈出菜單中選擇“浮動框架”,即在網(wǎng)頁中插入了浮動框架的 HTML標(biāo)簽“ iframe/iframe”。 在站點“ tan”文件夾內(nèi)新建文件“ ” ,表示文件上傳的功能頁,在“文檔窗口”中打開該文件,切換至“代碼”視圖,在 HTML標(biāo)簽 body的 上方輸入代碼“ !include file=”””,表示該文件對化境無組件上傳類文件的引用。代碼如下: Set upfile= (file) If 0 then If filesizemin Then 你上傳的文件太小了 ,ahref=onclick=(1)重新上傳 /a ElseIf filesizemax then 文件大小超過了字節(jié)限制 ,a href=onclick=(1)重新上傳 /a End If Set upfile=nothing Set upload=nothing 其中 Set upfile=(“ file” )表示建立名為 ” upfile” 的文件對象集,該對象集是針對上一頁中的“文件域名”是 ” file” 。 3.檢測文件類型 在檢測了文件的大小后,接著就需要檢測文件的類型,其檢測方法即是提取上傳文件名稱的后 3位內(nèi)容。格式吻合時的標(biāo)簽 Exit For Else uploadsuc=false 39。/amp。f_folderamp。/amp。f_type Set upf=Nothing Set upf=()表示建立了 FSO組件對象,應(yīng)用該組件可檢測服務(wù)器中是否具備保存當(dāng)前類型的上傳文件的文件夾( )。f_type)。ranNumamp。即“隨機數(shù)” +“ _”+“原文件名”; filepath表示上傳文件即將被保存的路徑地址; 示實現(xiàn)上傳功能 將文件進行保存。filepathamp。filepathamp?!?。在對話框的“名稱”文本框中輸入記錄集的名稱Recordset1,在“連接”下拉列表框中,選擇已經(jīng)建好的數(shù)據(jù)庫連接 conn,然后在 SQL文本區(qū)內(nèi)輸入 SQL查詢語句:“ SELECT * FROM kt”。 StrSql =strsql amp。%39。 選中如圖 33所示的“ 密碼正確 ,請點擊進入課件 !”文本字樣,在“服務(wù)器行為”中選中“顯示區(qū)域”的“如果記錄集不為空則顯示”。系統(tǒng)能夠提供用戶注冊與登錄,并能夠?qū)ψ杂脩暨M行管理。 結(jié) 論 網(wǎng)上課件管理系統(tǒng)由用戶注冊與登錄模塊 、 管理功能模塊 、 課件上傳與下載功能模塊 、 課件搜索模塊 、 密碼驗證模塊五個模塊組成,這五個模塊實現(xiàn)了系統(tǒng)的人員管理、權(quán)限管理及課件管理。 參考文獻 [1]鄧文淵 ,陳惠貞 .ASP與網(wǎng)絡(luò)數(shù)據(jù)庫技術(shù) [M].北京:中國鐵道出版社 ,。 [5]方睿 ,吳四九 .網(wǎng)絡(luò)數(shù)據(jù)庫原及其應(yīng)用 [M].四川 :四川大學(xué)出版社 ,。文中除了特別加以標(biāo)注地方外,不包含他人已經(jīng)發(fā)表或撰寫過的研究成果,也不包含為獲得成都 信息工程學(xué)院或其他教學(xué)機構(gòu)的學(xué)位或證書而使用過的材料。 ( 3)學(xué)??梢詫W(xué)術(shù)交流為目的復(fù)制、贈送和交換學(xué)位論文。 特此聲明! 作者簽名: 2021 年 月 日 Are you hungry now? No, I am tired and lazy now。t run, N icholas, Dr. Island said with the voice of a wave. It only makes him angry that you run. N icholas did not answer, but cut to his left, up the beach and among the trunks of the palms, sprinting all the way because he had no way of knowing Ignacio was not right behind him, about to grab him by the neck. When he stopped it was in the thick jungle, among the boles of the hardwoods, where he leaned,.。 there was none. He drew a deep breath then and said, Well, that39。 he was not as strong as he had been only a day past, and by this time next day he would probably be unable to outrun Ignacio. He should, he now realized, have eaten the monkey he had ki lled。s head。t mistaken after all, was I? I didn39。s a bit frightened of us. Have you ever talked to him, Nicholas? Today I did a little. He told me a story about a pet fish he used to have. Ignacio grew up all alone。s Nicholas, and I called you. Then I thought I might be wrong, or that it might be Ignacio. Ignacio was chasing me. Maybe he still is, but h think he39。 had Dr. Island used that sound to speak to him? He walked toward it and found a little rill that threaded a way among the trees, and followed it. In a hundred steps it grew broader, slowed, and ended in a long blind pool under a dome of leaves. . Diane was sitting on moss on the side opposite him。 he remembered his effort to open a coconuthe had failed, but it was surely not impossible. His mind was hazy as to what a coconut might contain, but there had to be an edible core, because they were eaten in books. He decided to make a wide sweep through the jungle that would bring him back to the beach well away from Ignacio。 there was only the green hush. The light was still bright and strong and nearly, shadowless, but some interior sense told him the day, was nearly over, and he noticed that such faint shades as he could see stretched long, hor izontal distortions of their objects. He felt no hunger, but he had fasted be39。 . sound in an atmosphere silent and unwa ked as Earth39。 words, realizing that they were a signal, he turned and began to run, splashing through the shallow water. Ignacio ran after him, much helped by his longer legs, his hair flying behind his dark young face, his square teetheach white as a bone and as big as Nicholas39。 ( 5)學(xué)??梢怨紝W(xué)位論文的全部或部分內(nèi)容(保密學(xué)位論文在解密后遵守此規(guī)定)。 關(guān)于學(xué)位論文使用權(quán)和研究成果知識產(chǎn)權(quán)的說明 本人完全了解成都信息工程學(xué)院有關(guān)保管使用學(xué)位論文的規(guī)定,其中包括: ( 1)學(xué)校有權(quán)保管并向有關(guān)部門遞交學(xué)位論文的原件與復(fù)印件。 致 謝 本文是在楊上金老師的熱情關(guān)心和指導(dǎo)下完成的,他淵博的知識和嚴(yán)謹(jǐn)?shù)闹螌W(xué)作風(fēng)使我受益匪淺,對順利完成本課題起到了極大的作用。 [3]陳俊榮 .Dreamweaver8與 ASP動態(tài)網(wǎng)站開發(fā)自學(xué)導(dǎo)航 [M].北京 : 機械工業(yè)出版社 ,。系統(tǒng)缺點在于界面設(shè)計不夠 美觀 ,功能不夠強大。另外,學(xué)生可以根據(jù)課件的名稱對課 件進行模糊查詢。 end Not or NOT % % end if % 表示密碼正確時顯示該鏈接文字,點擊進入該教師課件。StrSql Else = SELECT * FROM kt End if = 0 = 2 = 1 () Recordset1_numRows = 0 End if % (4)切換到“代碼”視圖,在代碼區(qū)找到設(shè)置“如果記錄集不為空則顯示區(qū)域” 代碼段的開始區(qū)域,加入以下代碼: % if flag=false then % % If Not or Not Then % form name=form2 method=post action= table width=100%” border=1 cellspacing=3 cellpadding=3 TR td查詢到的課件 /td td所屬教師 /td /TR (