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

正文內容

企業(yè)電子投票系統(tǒng)—免費畢業(yè)設計論文(編輯修改稿)

2025-01-04 11:21 本頁面
 

【文章內容簡介】 h3 hr form action= method=post div align=left % String sql=select * from vote where flag = 0 and optType=0 order by id desc。 ResultSet rs=(sql)。 int questionNum=0,optType,id,id1。 String question,str,optContent,type。 while(()){ //輸出投票的主題 questionNum++。 str=主題 +questionNum+: 。 question=(question)。 optType=(optType)。 id=(id)。 (str+question+br)。 ResultSet rs1。 sql=select * from vote where flag=+id。 rs1=(sql)。 (hr)。 //輸出該主題的選項 while(()){ id1=(id)。 optContent=(optContent)。 if(optType==0) type=radio。 else{ type=checkbox。 } % input type=%=type% name=vote value=%=id1% %=optContent% br %}% /div hr div align=left %}% /div input type=submit name=sumbit1 value=確定 /form %()。% /center /body /html %@page contentType=text/html。charset=gb2312% %@page import=.*% html head title投票結果 /title link href= rel=stylesheet type=text/css /head body jsp:useBean id=dbBean class= scope=page / h3 align=center單選投票結果 /h3 hr % String sql=select * from vote order by id 。 ResultSet rs=(sql)。 String id。 id = (vote)。 sql=update vote set number=number+1 where id=+id。 (sql)。 ResultSet rs1,rstotal。 int questionNum=0,optType,id1,number,total=0。 String question,str,optContent。 sql=select * from vote where flag=0 and optType=0 order by id desc。 rs=(sql)。 while(()){ questionNum++。 str=主題 +questionNum+: 。 question=(question)。 optType=(optType)。 id=((id))。 (str+question+br)。 sql=select * from vote where flag=+id。 rstotal=(sql)。 //求得投票的總數 while(()){ number=(number)。 total+=number。 } sql=select * from vote where flag=+id。 rs1=(sql)。 (hr)。 //輸出各選項的得票數 while(()){ id1=(id)。 optContent=(optContent)。 number=(number)。 % %=optContent% 得票數: %=number% img src = width =%=100*number/total% height = 10br %}% hr div align=left %}% /div div align=centera href= 返回主頁 /a /div /body /html %@page contentType=text/html。charset=gb2312% %@page import=.*% jsp:useBean id=dbBean scope=page class=/ % String question=(question)。 if(question==null){ question =。 } String type=(type)。 int num=0,optType=0。 try{ num=((num))。 } catch(Exception e){} % html head title增加主題 /title meta equiv=ContentType content=text/html。 charset=gb2312 link href= rel=stylesheet type=text/css /head body center h3增加主題 /h3 hr a href= 增 加 主 題 /a||a href= 刪 除 主 題 /a|| a href=查看主題 /a || a href=修改主題 /a ||a href=返回首頁 /a hr form action= method=post 請輸入主題名 :br input type=text name=question size=50 value=%=question%p input type=checkbox value=T name=type % if(type!=null){ (checked)。 optType=1。 } else{ optType=0。 } % 多選 請輸入選項的數目: input typ=text name=num size=5 value=%=num% input type=submit name=sumbit value=創(chuàng)建選項 p % String submit=(sumbit)。 if(submit!=null){ for(int i=1。i=num。i++){ % 選項 %=i%: input type=text name=%=i% value= size=50 br %}% input type=submit name=submit1 value=增加主題 %}% /form % String submit1=(submit1),str=,optContent,sql。 int id。 if(submit1!=null){ sql=insert into vote(flag,optType,question) values(0,+optType+,39。+question+39。)。 (sql)。 sql=select * from vote order by id desc。 ResultSet rs=(sql)。 id=(1)。 for(int i=1。i=num。i++){ str=(i)。 optContent=(str)。 sql=insert into vote(flag,optContent,number) values(+id+,39。+optContent+39。,0)。 (sql)。 } (成功插入主題! )。 } % /center /body /html %@page contentType=text/html。charset=gb2312% jsp:useBean id=dbBean scope=session class=/ % String id=(id)。 String sql=delete from vote where id=+id 。 if(id!=null){ if((sql)){ (刪除記錄成功。 )。 } } % html head title刪除主題 /title meta equiv=ContentType content=text/html。 charset=gb2312 link href= rel=stylesheet type=text/css /head body center h3刪除主題 /h3 hr a href= 增加主題 /a||a href= 刪除主題 /a|| a href=查看主題 /a ||a href=修改主題 /a ||a href=返回首頁 /a hr form name=form1 action= method=post 請輸入刪除的序號 (ID): input name=id type=text id=id size=50 input name=submit type=submit value=刪除 br /form/hr /center /body /html %@page contentType=text/html。charset=gb2312% %@page import=.*% html head title查看主題 /title link href= rel=stylesheet type=text/css body center h3查看主題 /h3 hr a href= 增 加 主 題 /a||a href= 刪 除 主 題 /a|| a href=查看主題 /a ||a href=修改主題 /a ||a href=返回首頁 /a hr jsp:useBean id=dbBean class= scope=page / % String sql=select * from vote。 ResultSet rs=(sql)。 % table border=1 align=center tr td序號 /td td標識 /td tddiv align=center投票主題 /div/td tddiv align=center投票選項 /div/td tddiv align=center得 票 數 /div/td /tr % while(()){ (tr)。 (td+(id)+/td)。 (td+(flag)+/td)。 (td+(question)+/td)。 (td+(optContent)+/td)。 (td+(number)+/td)。 (/tr)。 } % /table div align=center %()。% /div/hr /center /body /html %@page contentType=text/html。charset=gb2312% %@page import=.*% jsp:useBean id=dbBean scope=session class=/ html head ti
點擊復制文檔內容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1