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

正文內(nèi)容

asp投票系統(tǒng)—計(jì)算機(jī)畢業(yè)設(shè)計(jì)論文-在線瀏覽

2024-09-16 05:42本頁(yè)面
  

【正文】 取值為字段值,記錄是字段值的集合。在線投票系統(tǒng)數(shù)據(jù)庫(kù)中各個(gè)表格的設(shè)計(jì)結(jié)果如下面的幾個(gè)表格所示。表 31 為創(chuàng)建投票項(xiàng)目信息表 voteitem 的信息。因此需要在數(shù)據(jù)庫(kù)中建立一個(gè)用戶口令表來(lái)管理使用在線投票系統(tǒng)的用戶。本系統(tǒng)中采用了 Microsoft Office Access 2003數(shù)據(jù)庫(kù)管理系統(tǒng)。第4章 詳細(xì)設(shè)計(jì)與實(shí)現(xiàn)運(yùn)用ASP和Microsoft Office Access 2003相結(jié)合開(kāi)發(fā)投票系統(tǒng),投票項(xiàng)目依據(jù)學(xué)院需要開(kāi)設(shè)哪些新課程來(lái)制作,通過(guò)學(xué)生的投票結(jié)果統(tǒng)計(jì)確定下學(xué)期開(kāi)設(shè)的新課程。設(shè)計(jì)投票界面表單投票項(xiàng)目表單由3部分組成:相應(yīng)代碼如下:如果沒(méi)有投票,則變量isvoted為1,可以投票。 投 票 39。return SelectChk()。這是個(gè)可以選擇多項(xiàng)的投票系統(tǒng),在函數(shù)SelectChk中取得被投票項(xiàng)目信息,并提交//取得被投票項(xiàng)目的編號(hào),打開(kāi)新窗口,查看投票結(jié)果function SelectChk(){ var s=false。 var strid,strurl。 var j。j。 s=true。 if(n==1) { strid = deptid。 } } } strurl = ?cid= + strid。 return false。 return false。 oth = oth+,width=400,height=300。 ()。圖42 投票界面根據(jù)選擇查詢數(shù)據(jù)庫(kù)下面是實(shí)現(xiàn)該項(xiàng)功能的代碼:和數(shù)據(jù)庫(kù)建立連接的代碼如下:% 39。server=Ntserver。PWD=sa。USE VoteGOCREATE TABLE VoteItem( Id int Primary Key IDENTITY, Item varchar(50) NOT NULL, VoteCount int DEFAULT 0)創(chuàng)建表voteItem的腳本文件USE VoteGOCREATE TABLE VoteIP( IP varchar(20))GO表VoteIP用來(lái)保存已經(jīng)投票的IP地址% Dim rs,n n = 0 Set rs = () sql = Select * From VoteItem Order By id sql,Conn,1,1 If OR Then trtd colspan=3 align=centerfont style=39。目前還沒(méi)有投票項(xiàng)目??梢愿鶕?jù)每次需要投票的內(nèi)容進(jìn)行修改,添加,刪除。通過(guò)驗(yàn)證用戶的Session對(duì)象的logined變量的值是否為1。代碼如下:%If Session(logined)1 Then End If%添加投票項(xiàng)目的設(shè)計(jì)與實(shí)現(xiàn)添加課程由以下幾部分組成:實(shí)現(xiàn)功能的關(guān)鍵代碼如下:% Dim Soperate Soperate = (oper) 39。項(xiàng)目編號(hào) If Soperate=add Then 39。判斷數(shù)據(jù)庫(kù)中是否存在此類別 sql = Select * from VoteItem Where Item=39。newTitleamp。 Set rsInsert = (sql) If NOT Then 已經(jīng)存在此投票項(xiàng)目,添加失敗! Else sql = Insert into VoteItem(Item) values(39。newTitleamp。) (sql) 投票項(xiàng)目已經(jīng)成功添加! End If ElseIf Soperate = edit Then 39。如果新類別名稱和舊的不同則執(zhí)行 If newTitleorgTitle Then 39。amp。39。amp。39。cint(Operid)) 投票項(xiàng)目已經(jīng)成功修改! End If End If ElseIf Soperate=delete Then 39。Cstr(Operid)amp。 for(j=0。j++) { (dept,j).checked = true。 for(j=0。j++) { (dept,j).checked = false。 var deptid,n=0。 var nn = (dept)。j。 s=true。 if(n==1) { strid = deptid。 } } } strurl = ?Oper=deleteamp。 if(!s) { alert(請(qǐng)選擇要?jiǎng)h除的投票項(xiàng)目!)。 } if ( confirm(你確定要?jiǎng)h除這些投票項(xiàng)目嗎?)) { = strurl。 }}圖43是修改投票選項(xiàng)頁(yè)面圖44是添加投票選項(xiàng)頁(yè)面 投票結(jié)果模塊的設(shè)計(jì)投票結(jié)果模塊設(shè)計(jì)的好壞將直接對(duì)應(yīng)用系統(tǒng)的效率以及系統(tǒng)實(shí)現(xiàn)產(chǎn)生一定影響,較好的投票結(jié)果模塊設(shè)計(jì)會(huì)減少數(shù)管理人員的操作時(shí)間,提高操作數(shù)據(jù)的完整性和一致性,使投票結(jié)果得到準(zhǔn)確而又快速的下發(fā)。取得這批投票總數(shù) sql = Select Sum(voteCount) AS tl From VoteItem Set voters = (sql) If NOT Then total = voters(tl) End If Set voters = Nothing 39。計(jì)算每個(gè)投票項(xiàng)目百分比圖片長(zhǎng)度 imgvote = FormatNumber(voters(voteCount)/itotal,2)*170% trtd bgcolor=FFFFFF%=voters(item)%/td td colspan=2 bgcolor=FFFFFF img src=images/ width=%=imgvote% height=10font style=font:7pt face=Verdana %=Cstr(FormatNumber(voters(voteCount)/itotal*100,0))%%/font/td td bgcolor=FFFFFF align=center%=voters(voteCount)%/td /tr% Loop%% 39。 (_host) amp。IIS版本 vRef = (HTTP_REFERER) 39。取得客戶端的真實(shí) IP地址 vIP = (HTTP_X_FORWARDED_FOR) If vIP = Then vIP = (REMOTE_ADDR) End If vExplorer = Browser(vSoft) 39。操作系統(tǒng) vDateTime = DateTimeFormat(now(),1)amp。DateTimeformat(now(),6) 39。文本框——用來(lái)輸入用戶名。密碼框——用來(lái)輸入密碼。提交和重填按鈕。(3) 查詢?cè)跀?shù)據(jù)庫(kù)中是否存在用戶輸入的用戶名。實(shí)現(xiàn)代碼如下:% =Select COUNT(*) From classuser Where user_id like 39。 Set rs= If rs(0).Value Then P無(wú)效的用戶名/P Pa href=重新輸入/a/p Else 39。驗(yàn)證的方法是在數(shù)據(jù)庫(kù)中查出用戶輸入的用戶名的密碼,然后與用戶輸入的密碼相比較。代碼如下:% =Select user_password From classuser Where user_id like 39。 Set rs= 39。由于在數(shù)據(jù)庫(kù)中查詢到的密碼的右邊是包含空格符的,在密碼驗(yàn)證時(shí)要使用函數(shù)Rtrim把空格符過(guò)濾掉。圖48用戶登錄頁(yè)面 修改密碼的設(shè)計(jì)與實(shí)現(xiàn)為了保證數(shù)據(jù)庫(kù)的安全,有時(shí)需要修改用戶的密碼,管理員可以通過(guò)修改密碼的功能將系統(tǒng)的密碼修改為自己喜歡或者容易記憶的密碼。     在數(shù)據(jù)庫(kù)中修改管理員密碼在數(shù)據(jù)庫(kù)中修改管理員密碼的步驟如下:(1)使用Request對(duì)象的Form集合得到用戶輸入的信息,這些信息包括用戶名、原密碼、新密碼和確認(rèn)新密碼。代碼如下:% if new_password1new_password2 then p兩次密碼輸入有誤!/p pa href=重新輸入!/a/p else end if %(3)連接數(shù)據(jù)庫(kù)并檢查用戶名和原密碼是否正確,代碼與前面連接數(shù)據(jù)庫(kù)的代碼相同。amp。39。amp。39。采用了大型數(shù)據(jù)庫(kù),適合大批量數(shù)據(jù)的處理,使教師從煩瑣的手工操作中解放出來(lái),把大量的重復(fù)性工作交給計(jì)算機(jī)去做,提高了工作效率。譬如,在投票選項(xiàng)可以劃分得更詳細(xì)一些,另外可以授予不同用戶以不同的系統(tǒng)使用權(quán)限(這可以通過(guò)在每一功能模塊進(jìn)入前增加身份判斷來(lái)完成),可以滿足更多的條件。對(duì)于計(jì)算機(jī)專業(yè)的我來(lái)說(shuō)并沒(méi)有多少系統(tǒng)設(shè)計(jì)的經(jīng)驗(yàn),所以在編碼過(guò)程中發(fā)現(xiàn)自己原來(lái)的很多想法并不能很好地實(shí)現(xiàn)。致謝本文是在我的導(dǎo)師老師的悉心指導(dǎo)下完成的,在系統(tǒng)的研制過(guò)程中,從系統(tǒng)分析設(shè)計(jì)到具體實(shí)現(xiàn),導(dǎo)師都給予了具體、細(xì)致的指導(dǎo)。向所有關(guān)心和幫助過(guò)我的老師、同學(xué)和朋友表示最誠(chéng)摯的謝意!參考文獻(xiàn)[1]:人民郵電出版社,[2]-ASP專欄,[3](美)奈伯格(Naiburg,.),(美)美克斯瓊克(Maksimchuk,.)著;陳立(美)Eric ,Robert :人民郵電出版社,[4] :上海科學(xué)普及出版社,[5],[6]楊文杰、王克蒙、[7]-ASP專欄,[8]宋振會(huì). Microsoft Office Access :清華大學(xué)出版社,[9]amp。 Multicast stations deliver ASF streams to many clients but use only the bandwidth of a single stream. Stations enabled for multicast and distribution deliver ASF streams to other Windows Media servers via unicast. Clients can also view the ASF content on this station via multicast.A station contains all the information needed to deliver an ASF stream to Windows Media Player, including IP address, port, stream format, timetolive (TTL) value, and so on. This information is stored in an .nsc file.Windows Media Player must be able to access the .nsc file so that it can locate the IP address that the station is using to stream ASF content. The .nsc file is typically made available to Windows Media Player from a shared network directory or from a Web server directory. Windows Media Player extracts the URL to the .nsc file when it opens an announcement that is delivered to it in an message, via UNC path, or from a Web page link.The Multicast Stations page in Windows Media Administrator is the access point for creating and managing stations. This page also provides an interface for organizing streams into the programs delivered on the stations you create.Understanding distribution stationsA distribution station is a helper station. It delivers an ASF stream from Windows Media server A to a station on Windows Media server B so that Windows Media server B can multicast that ASF content. A distribution station provides a way to: Dis
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1