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

正文內(nèi)容

基于net的駕駛理論在線考試系統(tǒng)(模板)-資料下載頁(yè)

2025-05-23 18:12本頁(yè)面
  

【正文】 sec++。if(sec==60){sec=0。min+=1。}if(min==60){min=0。hou+=1。}(lbltime).innerText=min+分+sec+秒。idt=(ls()。,1000)。//計(jì)時(shí)器功能if(min==45)//當(dāng)考試時(shí)間為45分鐘時(shí),將激活提交試卷按鈕{ (btnsubmit).click()。}}///SCRIPT考生在答題完畢后,可以提交自己的試卷,系統(tǒng)將會(huì)對(duì)考生提交的試題答案進(jìn)行評(píng)卷,給出考生考試成績(jī)。交卷功能的實(shí)現(xiàn)代碼如下: protected void btnsubmit_Click(object sender, EventArgs e)//交卷按鈕 { string msc = 。 for (int i = 1。 i = tNUM。 i++) { RadioButtonList list = (RadioButtonList)(cbk + ())。 if (list != null) { if (() != ) { msc += ()。 } else { msc += 0。 } } } Session[Sans] = msc。//將考生做題的答案存儲(chǔ)進(jìn)Session string sql = update tb_score set RigthAns=39。 + Ans + 39。 where StudentID=39。 + + 39。 (sql)。//將考生抽取的試題正確答案更新至考試成績(jī)信息表 string strsql = update tb_score set StudentAns=39。 + msc + 39。 where StudentID=39。 + + 39。 (strsql)。//將考生做題的答案更新至考試成績(jī)信息表 (?BInt= + ())。 }} 試題檢查功能實(shí)現(xiàn)該功能主要的作用是使得考生考試過(guò)程中,可以檢查自己在做題的時(shí)候有沒(méi)有出現(xiàn)漏題,可以對(duì)自己試題進(jìn)行檢查,如果出現(xiàn)漏題,在考試時(shí)間允許的情況下,去補(bǔ)做漏題,避免因漏做題而丟失分?jǐn)?shù)。因系統(tǒng)中試題是動(dòng)態(tài)加入的,在頁(yè)面進(jìn)行刷新的時(shí)候,系統(tǒng)將會(huì)更新試題以及時(shí)間??紤]到這樣的情況,我們選擇了在客戶端進(jìn)行驗(yàn)證,避免頁(yè)面刷新。,以實(shí)現(xiàn)此功能。其實(shí)現(xiàn)代碼如下:script language=javascript type=text/javascriptfunction pd(){var stCount = (stCount)。var sign = 0。var wzt=。 for(var i =1。i=。i++) { var dxs = (cbk+(i))。 var sign1 = false。 for(var j=0。j。j++) { if(dxs[j].checked==true) { sign++。sign1=true。 } } if(sign1==false) { wzt+=i+,。 } } if(sign) { alert(第+(0,)+題還未做!)。 } else { alert(OK!)。 } return false。}/script 自動(dòng)評(píng)分功能實(shí)現(xiàn)駕校考試系統(tǒng)和傳統(tǒng)的考試流程是一樣的,在考生答卷完畢后要對(duì)考生的答案進(jìn)行評(píng)分,根據(jù)實(shí)際的需要,我們?cè)谙到y(tǒng)中加入了自動(dòng)評(píng)分模塊,當(dāng)考生答題完畢提交試卷時(shí),系統(tǒng)將根據(jù)考生選擇的答案與正確答案進(jìn)行比較,然后評(píng)分,最后將成績(jī)顯示在頁(yè)面上。其實(shí)現(xiàn)代碼如下:……引用命名空間public partial class student_result : { protected void Page_Load(object sender, EventArgs e)//頁(yè)面加載 { string Rans = Session[Ans].ToString()。//試題正確答案 int j = ([BInt])。//考試模塊傳遞過(guò)來(lái)的試題次數(shù) string Sans = Session[Sans].ToString()。//考生選擇的試題答案 int StuScore = 0。//初始 for (int i = 0。 i j。 i++) { if ((i, 1).Equals((i, 1)))//比較 { StuScore += 1。 } }//顯示結(jié)果 = ()。 = Session[KM].ToString()。 = Session[ID].ToString()。 = Session[name].ToString()。 string strsql = update tb_score set score=39。 + () + 39。 where StudentID=39。 + Session[ID].ToString() + 39。 and LessonName=39。 + Session[KM].ToString() + 39。 (strsql)。//更新數(shù)據(jù)庫(kù) } 后臺(tái)管理功能實(shí)現(xiàn)在系統(tǒng)中,后臺(tái)管理模塊具有最高權(quán)限,管理員通過(guò)登錄模塊成功登錄到后臺(tái)管理模塊后,可以對(duì)試題信息、考生信息、駕校教師信息、考試科目信息和考試結(jié)果進(jìn)行管理,以及對(duì)系統(tǒng)數(shù)據(jù)(考生信息、試題信息、考試成績(jī)信息等)進(jìn)行導(dǎo)入導(dǎo)出,從而實(shí)現(xiàn)將工作人員從繁瑣的工作中真正意義上的解放出來(lái)。 試題管理在用戶觸發(fā)添加試題事件時(shí),系統(tǒng)將會(huì)把用戶添加的內(nèi)容添加的內(nèi)容讀入數(shù)據(jù)。其實(shí)現(xiàn)代碼如下:……引用命名空間 protected void btnconfirm_Click(object sender, EventArgs e) { if ( == || == || == || == || == ) { (請(qǐng)將信息填寫完整)。 return。 } else { string isfb = 。 if ( == true) isfb = 1。 else isfb = 0。 string str = insert into tb_test(testContent,testAns1,testAns2,testAns3,testAns4,rightAns,pub,testCourse) values(39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + () + 39。,39。 + isfb + 39。,39。 + + 39。)。 (str)。 btnconcel_Click(sender, e)。 } 修改試題信息在試題詳細(xì)信息頁(yè)面,當(dāng)用戶點(diǎn)擊“詳細(xì)信息”按鈕后,系統(tǒng)將會(huì)跳轉(zhuǎn)到試題信息修改頁(yè)面,用戶可在此頁(yè)面查看并修改試題信息。在本頁(yè)面中,我們首先根據(jù)試題的ID號(hào),將試題信息從數(shù)據(jù)庫(kù)中讀取并顯示出來(lái)。用戶修改試題信息后,點(diǎn)擊“確定”按鈕,系統(tǒng)將會(huì)把用戶輸入的信息讀入到數(shù)據(jù)庫(kù)中。其實(shí)現(xiàn)代碼如下:……引用命名空間 protected void Page_Load(object sender, EventArgs e) { if (Session[admin] == null)//防止匿名登陸 { (../)。 } if (!IsPostBack) { id = ([Eid])。 SqlConnection conn = ()。 ()。 SqlCommand cmd = new SqlCommand(select * from tb_test where ID= + id, conn)。 SqlDataReader sdr = ()。 ()。 = sdr[testContent].ToString()。 = sdr[testAns1].ToString()。 = sdr[testAns2].ToString()。 = sdr[testAns3].ToString()。 = sdr[testAns4].ToString()。 = sdr[rightAns].ToString()。 string fb = sdr[pub].ToString()。 if (fb == 1) = true。 else = false。 = sdr[testCourse].ToString()。 ()。 ()。 } } protected void btnconfirm_Click(object sender, EventArgs e) { if ( == || == || == || == || == ) { (請(qǐng)將信息填寫完整)。 return。 } else { string isfb = 。 if ( == true) isfb = 1。 else isfb = 0。 string str = update tb_test set testContent=39。 + () + 39。,testAns1=39。 + () + 39。,testAns2=39。 + () + 39。,testAns3=39。 + () + 39。,testAns4=39。 + + 39。,rightAns=39。 + () + 39。,pub=39。 + isfb + 39。 where ID= + id。 (str)。 ()。 } } 刪除試題信息在試題詳細(xì)信息頁(yè)面,我們用到了1個(gè)GridView控件,當(dāng)用戶點(diǎn)擊“刪除”按鈕后,系統(tǒng)將會(huì)獲取我們想要?jiǎng)h除信息行的ID值,然后在數(shù)據(jù)庫(kù)中進(jìn)行檢索,并刪除信息。其實(shí)現(xiàn)代碼如下:……引用命名空間 protected void gvExaminationInfo_RowDeleting(object sender, GridViewDeleteEventArgs e) { int id = (int)[].Value。//獲取信息行ID值 string sql = delete from tb_test where ID= + id。 (sql)。 string strsql = select * from tb_test order by ID desc。 (gvExaminationInfo, ID, strsql, ExaminationInfo)。 } 用戶信息管理用戶信息管理包括考生信息管理和駕校教師信息管理,由于兩者在使用方法上是一樣的,在這里我們就不分別介紹,現(xiàn)以考生信息管理為例來(lái)介紹本系統(tǒng)的用戶信息管理。 添加考生信息當(dāng)用戶點(diǎn)擊“添加”按鈕,觸發(fā)添加事件后,系統(tǒng)將會(huì)把用戶填寫的信息讀入數(shù)據(jù)庫(kù),應(yīng)當(dāng)注意的是在寫入數(shù)
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1