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

正文內(nèi)容

web程序設(shè)計(jì)課程(編輯修改稿)

2025-08-03 12:07 本頁面
 

【文章內(nèi)容簡(jiǎn)介】 ,該頁面是通過數(shù)據(jù)庫連接確定提交的登錄信息是否正確,并進(jìn)行相應(yīng)處理,其代碼如下:%@page contentType = text/html。charset=GB2312 import = .*%% String number = (number)。 String password = (password)。 int errortype=0。 //聲明錯(cuò)誤代碼變量 if(()) //未輸入學(xué)號(hào) { errortype=1。 (?errortype=+errortype)。 } else if(()) //未輸入密碼 { errortype=2。 (?errortype=+errortype)。 } else { ()。 Connection con = (jdbc:odbc:test)。 Statement smt = ()。 String sql=select * from student where 學(xué)號(hào)=39。+number+39。 ResultSet rs = (sql)。 if(!()) //學(xué)號(hào)錯(cuò)誤 { errortype=3。 (?errortype=+errortype)。 } else if(!(3).equals(password)) //密碼錯(cuò)誤 { errortype=4。 (?errortype=+errortype)。 } else { String name=(1)。 sql=select * from grade where 學(xué)號(hào)=39。+number+39。 rs= (sql)。 (number,number)。 ()。 //進(jìn)入考場(chǎng) } ()。 }%若數(shù)據(jù)庫中不存在學(xué)生的信息,即無法完成登錄,此時(shí)可以單擊“注冊(cè)考試信息”來完成考生的注冊(cè)操作,若注冊(cè)成功也可以直接進(jìn)行在線考試。作為一個(gè)在線考試系統(tǒng),學(xué)生是一個(gè)重要的實(shí)體,在進(jìn)行考試之前要登錄考試系統(tǒng),若數(shù)據(jù)庫中不存在學(xué)生的注冊(cè)信息,學(xué)生無法參加考試,只能先注冊(cè)個(gè)人信息,因此一個(gè)學(xué)生注冊(cè)功能必不可少。在學(xué)生登錄頁面上單擊“注冊(cè)考試信息”后,()了。 學(xué)生注冊(cè)界面在注冊(cè)界面上的輸入框中輸入注冊(cè)信息(姓名、學(xué)號(hào)、密碼)后,單擊“提交信息”按鈕,即可將信息提交至數(shù)據(jù)庫中,可以在登錄頁面上通過輸入學(xué)號(hào)和密碼進(jìn)入系統(tǒng)。若輸入的學(xué)號(hào)與數(shù)據(jù)庫中已存在的學(xué)號(hào)重復(fù),會(huì)在頁面中提示“學(xué)號(hào)已存在”,任何一個(gè)輸入框未填寫都會(huì)有相應(yīng)的提示。:%@page contentType = text/html。charset=GBK import = .*%centerh3這里是考試系統(tǒng)注冊(cè)頁面 /h3/centerhrcenterform action= method=post姓名:input type=text size=18 name=name /br /br /學(xué)號(hào):input type=text size=18 name=number /br /br /密碼:input type=password size=18 name=password /br /br /  input type=reset value=清空信息 input name=submit type=submit value=提交信息 /form% String error=(errortype)。 if(error!=null) { int errortype。 errortype = (error)。 switch(errortype) //依錯(cuò)誤類型顯示信息 { case 1: (請(qǐng)輸入考號(hào)!!)。break。 case 2: (請(qǐng)輸入密碼!!)。break。 case 3: (請(qǐng)輸入姓名!!)。break。 case 4: (學(xué)號(hào)已存在!!)。break。 default: } }% /center在填寫完注冊(cè)信息后。,若提交結(jié)果符合要求(學(xué)號(hào)不能重復(fù)),則系統(tǒng)會(huì)將提交信息插入到后臺(tái)數(shù)據(jù)庫中,即注冊(cè)成功。若不符合要求,,讓用戶重新輸入注冊(cè)信息。:%@page contentType = text/html。charset=GB2312 import = .*%% (GBK)。 String name=(name)。 String number = (number)。 String password = (password)。 int errortype=0。 if(()) { errortype=3。 (?errortype=+errortype)。 } else if(()) { errortype=1。 (?errortype=+errortype)。 } else if(()) { errortype=2。 (?errortype=+errortype)。 } else { int flag=0。 ()。 Connection con = (jdbc:odbc:test)。 Statement smt = ()。 String sql=select * from student。 ResultSet rs = (sql)。 while(()) //學(xué)號(hào)錯(cuò)誤 {if((2).equals(number)) {errortype=4。(?errortype=+errortype)。flag=1。break。} } if(flag==0) //若不存在學(xué)生信息 { sql=insert into student values (39。+name+39。,39。+number+39。,39。+ password+39。)。 int rs1 = (sql)。 if(rs1==1) { (number,number)。 ()。 } } ()。 }%則會(huì)直接跳轉(zhuǎn)至科目選擇頁面(),在下拉列表框中選好科目后就可以參加考試了。 考生登錄成功后,考試系統(tǒng)將列出考生的待考項(xiàng)目列表,考生在下拉菜單中選擇某個(gè)科目后就可以參加該項(xiàng)目的考試了,考試題目是隨機(jī)選取的。 選擇考試科目:%@page contentType = text/html。charset=GBK import = .*%title科目選擇/titlecenterh3選擇你參加考試的科目/h3form name=myform action= method=postselect name=subject%int len=0。()。Connection con = (jdbc:odbc:test)。Statement smt = ()。String sql=select distinct 科目 from test2。ResultSet rs = (sql)。 while(()) errortype=1。(?errortype=+errortype)。} else{ (kemu,result)。 ()。} } } else { sql=insert into grade values (39。+number+39。,0,39。+result+39。)。 int aa= (sql)。 if(aa==1) { (kemu,result)。 ()。 } } ()。%,并且已通過了考試,若是的話就返回提示信息,告知已參加完考試,建議參加其他課程的考試。若未參加鍋蓋門課程考試,開始考試。 :%@page contentType = text/html。charset=GBK import = .*%%@page import= .*%作答者:%=(number)%hrform action= action=post% (GBK)。 String kemu=(String)(kemu)。 (h3center你參加的是+kemu+考試/center/h3)。 Random r = new Random()。 ()。 Connection con = (jdbc:odbc:test)。 Statement smt = ()。 ResultSet rs。 String sql,quse1=a,quse2=b,quse3=c。 int i=1,ri,re,j=0,k=0。 //題號(hào) int []xuanze=new int[6]。 //試卷的題目編號(hào) int []prob=new int[100]。 //總的題目編號(hào)數(shù)組 int []flag=new int[6]。 //標(biāo)記的數(shù)組 //取出是非題 for(i=1。i100。i++) prob[i]=0。for(i=
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1