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

正文內(nèi)容

基于jsp的學(xué)生成績(jī)管理系統(tǒng)-資料下載頁(yè)

2025-05-07 20:18本頁(yè)面
  

【正文】 nection dbc=null。 dbc=new DataBaseConnection()。 try{ stmt=().createStatement()。 (sql)。 ()。 }catch (Exception e){ throw new Exception(修改中出現(xiàn)錯(cuò)誤?。。?)。 }finally { ()。 } } 教師模塊功能 輸入用戶名: 234 密碼: 123 以教師身份登錄 開設(shè)課程 (同管理員中課程查詢功能相同) 必須是管理員已經(jīng)添加的課程才可以開設(shè) 圖 開設(shè)課程頁(yè)面 public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doPost(request,response)。 } public void doAdd(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { (utf8)。 (utf8)。 PrintWriter out=()。 String tid=(tid)。 String o=(o)。 String scteachno=(cteachno)。 String clocation=(clocation)。 String ctime1=(ctime1)。 String ctime2=(ctime2)。 String scmax=(cmax)。 int cmax=(scmax)。 int cteachno=(scteachno)。 String ctime=星期 +ctime1+第 +ctime2+節(jié) 。 TcDAO tcdao=new TcDAO()。 try { (^^^^^^^^^^^^^^)。 (tid, o,cteachno, clocation, ctime,cmax)。 (HTML)。 ( HEADTITLEA Servlet/TITLE/HEAD)。 ( BODY bgcolor=8dd8f8)。 ( img src=image/ font size=6 color=red 提交成功! /font )。 ( /BODY)。 (/HTML)。 } catch (Exception e) { (HTML)。 ( HEADTITLEA Servlet/TITLE/HEAD)。 ( BODY bgcolor=8dd8f8)。 ( img src=image/ font size=6 color=red 提交失??! /font )。 ( /BODY)。 (/HTML)。 } ()。 ()。 } 圖 成功開設(shè)課程頁(yè)面 只能刪除自己開設(shè)的課程 public void doDelete(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { (text/html)。 (utf8)。 (utf8)。 PrintWriter out = ()。 String tid=(tid)。 String rn=(n)。 int n=(rn)。 int fn=0。 int dn=0。 ScDAO scdao=new ScDAO()。 TcDAO tcdao=new TcDAO()。 for(int i=0。in。i++){ String o=(o+i+)。 if(o!=null){ try { (tid, o)。 (tid, o)。 } catch (Exception e) { // TODO Autogenerated catch block (HTML)。 ( HEADTITLEA Servlet/TITLE/HEAD)。 ( BODY bgcolor=8dd8f8)。 ( img src=image/ font size=6 color=red +o+課程刪除失??! br/font )。 ( /BODY)。 (/HTML)。 fn++。 } dn++。 } } if(dn==0) { (HTML)。 ( HEADTITLEA Servlet/TITLE/HEAD)。 ( BODY bgcolor=8dd8f8)。 ( img src=image/ font size=6 color=red 未選擇刪除課程! /font )。 ( /BODY)。 (/HTML)。 }else { if(fn==0){ (HTML)。 ( HEADTITLEA Servlet/TITLE/HEAD)。 ( BODY bgcolor=8dd8f8)。 ( img src=image/ font size=6 color=red 課程刪除成功! /font )。 ( /BODY)。 (/HTML)。 } } ()。 ()。 成績(jī)提交 圖 已開設(shè)的課程 只有在學(xué)生選定課程并已經(jīng)考試結(jié)束后,方可提交成績(jī) 圖 成績(jī)提交頁(yè)面 public void doSubScore( HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException{ (text/html)。 (utf8)。 (utf8)。 PrintWriter out=()。 String rsn=(sn)。 int sn=(rsn)。 String tid=(tid)。 String o=(o)。 String submit=(submit)。 TcDAO tcdao=new TcDAO()。 int con=0。 for(int j=0。jsn。j++){ String sid=(sid+j+)。 String rpscore=(pscore+j+)。 String rlscore=(lscore+j+)。 double pscore=(rpscore)。 double lscore=(rlscore)。 ScDAO scdao=new ScDAO()。 try { (sid, o,tid, pscore, lscore)。 } catch (Exception e) { (HTML)。 ( HEADTITLEA Servlet/TITLE/HEAD)。 ( BODY bgcolor=8dd8f8)。 ( img src=image/ font size=6 color=red 第 +j+1+名學(xué)生成績(jī)提交失?。?br/font )。 ( /BODY)。 (/HTML)。 con=con++。 } } if(con==0){ try { if((暫時(shí)提交 )){ (tid, o, 1)。 }else{ (tid, o, 2)。 } } catch (Exception e) { // TODO Autogenerated catch block ()。 } (HTML)。 ( HEADTITLEA Servlet/TITLE/HEAD)。 ( BODY bgcolor=8dd8f8)。 ( img src=image/ font size=6 color=red 提交成功! /font )。 ( /BODY)。 (/HTML)。 } ()。 ()。 } 暫時(shí)提交以后,成績(jī)將不會(huì)在已提交頁(yè)面中顯示,而且可以隨時(shí)修改成績(jī),最終提交以后就不能再修改成績(jī),最終成績(jī)將在已提交課程中顯示。 另外,本系統(tǒng)為了方便教師保存查閱成績(jī)信息,將 提供導(dǎo)出 excel表的功能,教師可以自由下載。 圖 最終成績(jī) 信息查詢 為了方便教師本人開設(shè)課程,本系統(tǒng)不但可以查詢教師本人的詳細(xì)信息以及開設(shè)課程所有信息,還包括選擇自己開設(shè)課程的學(xué)生,以及其他教師的開設(shè)課程的詳細(xì)信息,以免發(fā)生沖突。 圖 教師個(gè)人信息查詢頁(yè)面 public Vector SelectSelf(String tid,String con)throws Exception{ Vector all=new Vector()。 String sql=SELECT ,,t, from tc,course where = and =39。+tid+39。 。 if((1)){ sql=sql+ and !=39。239。 }else if((2)){ sql=sql+ and =39。239。 } Statement stmt=null。 DataBaseConnection dbc=null。 dbc=new DataBaseConnection()。 try{ stmt = ().createStatement()。 ResultSet rs = (sql)。 while(()) { Tc cou=new Tc()。 (())。 (())。 (())。 (())。 (())。 (())。 (())。 (())。 (cou)。 } ()。 ()。 } catch (Exception e) { throw new Exception(查詢中出現(xiàn)錯(cuò)誤!?。?)。 } finally { ()。 } return all。 } 圖 其他教師開設(shè)課程查詢頁(yè)面 public Vector SelectScore(String tid)throws Exception{ Vector all=new Vector()。 String sql=SELECT , from tc,course where =39。+tid+39。 and =。 Statement stmt=null。 DataBaseConnection dbc=null。 dbc=new DataBaseConnection()。 try{ stmt = ().createStatement()。 ResultSet rs = (sql)。 while(()) { Tc cou=new Tc()。 (())。 (())。 (())。 (())。 (cou)。 } ()。 ()。 } catch (Exception e) { throw new Exception(查詢中出現(xiàn)錯(cuò)誤?。。?)。 } finally { ()。 } return all。 } public String SelectTid(String o,int cteachno)throws Exception{ String sql=SELECT tid from tc where o=39。+o+39。 and cteachno=+cteachno+。 Statement stmt=null。 DataBaseConnection dbc=null。
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1