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

正文內(nèi)容

基于java技術(shù)的在線投票系統(tǒng)設(shè)計-閱讀頁

2025-06-23 08:16本頁面
  

【正文】 value=%=num% input type=submit name=sumbit value=創(chuàng)建選項 p % String submit=(sumbit)。i=num。 int id。+question+39。 (sql)。 ResultSet rs=(sql)。 for(int i=1。i++){ str=(i)。 sql=insert into vote(flag,optContent,number) values(+id+,39。,0)。 } (成功插入主題! )。charset=gb2312% jsp:useBean id=dbBean scope=session class=/ % String id=(id)。 if(id!=null){ if((sql)){ (刪除記錄成功。 } } % html head title刪除主題 /title meta equiv=ContentType content=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。 % table border=1 align=center tr td序號 /td td標識 /td tddiv align=center投票主題 /div/td tddiv align=center投票選項 /div/td tddiv align=center得 票 數(shù) /div/td /tr % while(()){ (tr)。 (td+(flag)+/td)。 (td+(optContent)+/td)。 (/tr)。% /div/hr 長春職業(yè)技術(shù)學(xué)院畢業(yè)設(shè)計(論文)專用紙 第 16 頁 /center /body /html %page contentType=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 form action= method=post 請輸入您所要修改的主題名: br input type=text name=sql size=50 input type=submit name=submit value=查詢 /form % String submit,sql。 submit=(submit)。 ResultSet rs,rs1。 if(sql_s!=null){ sql=select * from vote where question =39。 rs=(sql)。 % form action= method=post table tr td題目 /td /tr 長春職業(yè)技術(shù)學(xué)院畢業(yè)設(shè)計(論文)專用紙 第 17 頁 tr td input type=hidden name=id value=%=id% input name=question type=text value=%=(question)% size=50 maxlength=50 /td /tr tr td選項 /td /tr tr td % sql=select * from vote where flag=+id。 while(()){ % input type=text name=optContent%=i% size=100 value=%=(optContent)% input type=hidden name=id%=i% value=%=(id)% %i++。 String s_type=。 } % input type=checkbox name=multiple value=1 %=s_type% /td /tr tr td input type=submit name=submit1 value=更新 /td /tr /table /form % } } String submit1。 if(submit1!=null){ int count=((count))。 String optType,optType1。 if(optType==null) optType1=0。 } String question=(question)。+question +39。 if((sql)) (更新主題成功! )。 for(int i=0。i++){ optContent1=optContent+i。 id=((id1))。 sql=update vote set optContent=39。 where id=+id。 } } % /center /body /html 7. package vote。 public class DBConnect { //設(shè)置連接數(shù)據(jù)庫的參數(shù) private String user = s70019618。 //MySQL 的 JDBC 驅(qū)動程序 String sDBDriver = 。 Statement stmt = null。 public DBConnect() { 長春職業(yè)技術(shù)學(xué)院畢業(yè)設(shè)計(論文)專用紙 第 19 頁 try { //加載數(shù)據(jù)庫驅(qū)動程序 (sDBDriver)。 } catch (Exception e) { (DBConnect(): + ())。 rs = (sql)。 } return rs。 (sql)。 }catch (SQLException ex) { (: + ())。 } } //關(guān)閉數(shù)據(jù)庫的連接 public void close() throws Exception{ ()。 } }
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1