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

正文內(nèi)容

基于jsp的在線圖片投票系統(tǒng)(編輯修改稿)

2025-06-12 18:40 本頁面
 

【文章內(nèi)容簡介】 參賽宣言 /td td align=center參賽圖片 /td /tr % while( () ){ % % String dpurl=(image)。 String name=(name)。 String sex=(sex)。 String content=(content)。 % tr bgcolor=00FFFF td align=center %=name%/td td align=center %=sex%/td td align=center %=content%/td td align=centerimg src=%=dpurl% width=60 height=30 alt=//td /tr %}% /table % }catch(SQLException e){ (())。 (br)。 }finally{ if(rs!=null) ()。 if(stmt!=null) ()。 if(conn!=null) ()。 } (br)。 try{ ().newInstance()。 conn=(jdbc:wenlei910205)。 stmt=()。 String sql=select * from upload。 rs=(sql)。 while( () ) { String dpurl=(image)。 String name=(name)。 String sex=(sex)。 String content=(content)。 % img src=%=dpurl% width=100 height=100 alt=/ input type=button value= 我要投票 onclick==39。?name=%=name%39。 %//通過按鈕將圖片對應(yīng)的參賽選手姓名傳遞到 VOTEDEAL 界面 } }catch(SQLException e){ (())。 (br)。 }finally{ if(rs!=null) ()。 if(stmt!=null) ()。 if(conn!=null) ()。 } % a href=點擊返回主頁面 /a /body /html 5. 投票處理頁面 ( ) %@page import=.*% %@page import=% %@page contentType=text/html pageEncoding=UTF8% %@ page import=, , , , , , .*, .*, , .*, .*, , , , , % !DOCTYPE html html head meta equiv=ContentType content=text/html。 charset=UTF8 title投票處理界面 /title /head body center h1感謝您的參與 /h1 /center % String name1=(name)。 //獲取從投票界面?zhèn)鱽?的姓名 if(name1!=null){ //防止直接進(jìn)入本界面導(dǎo)致獲取的姓名為空 (感謝您投了 +name1+寶貴的一票! )。 % a href=點擊此處回到主界面 /a % (br)。 conn=null。 strConn。 Statement stmt=null。 ResultSet rs=null。 try{ ().newInstance()。 conn=(jdbc:wenlei910205)。 stmt=()。 String sql=update upload set vote=vote+1 where name=39。+name1+39。 //根據(jù)姓名更新數(shù)據(jù)庫中的投票 (sql)。 }catch(SQLException e){ (())。 (br)。 }finally{ if(stmt!=null) ()。 if(conn!=null) ()。 } } else{ (對不起,您的操作不合法 ,請先返回投票系統(tǒng)投票! )。 % a href=點擊回到投票界面 /a p/p %}% % conn=null。 strConn。 Statement stmt=null。 ResultSet rs=null。 try{ ().newInstance()。 conn=(jdbc:ot,wenlei910205)。 stmt=()。 String sql=select name,vote from upload。 rs=(sql)。 int j=0。 String row[]=new String[100]。 //定義一個字符數(shù)組用來存放參賽選手的名字 int data1[]=new int[100]。 //定義一個整型數(shù)組用來投票 while( () ) { String name=(name)。 row[j]=name。 //將數(shù)據(jù)庫中存放的姓名存放到數(shù)組中 int vote=(vote)。 data1[j]=vote。 //將數(shù)據(jù)庫中存放的投票存放到數(shù)組中 j++。 //統(tǒng)計數(shù)據(jù)庫中列表的行數(shù) } String rowKeys[]=new String[j]。//重新定義一個數(shù)組,數(shù)組的大小是確定的,等于數(shù)據(jù)庫中數(shù)據(jù)的行數(shù),用來存放姓名 double[][] data=new double[j][1]。//重新定義一個 double 型數(shù)組,數(shù)組的大小是確定的,等于數(shù)據(jù)庫中數(shù)據(jù)的行數(shù),用來存放投票 for(int k=0。kj。k++){ //將之前存放在數(shù)組中的數(shù)據(jù)復(fù)制給新定 義的數(shù)組 rowKeys[k]=row[k]。 } for(int k=0。kj。k++){ data[k][0]=data1[k]。 } String[] columnKeys = {}。 CategoryDataset dataset=(rowKeys, columnKeys, data)。 JFreeChart chart = (, 參 賽 選 手 , 投票,dataset,true,true,true)。 CategoryPlot plot = ()。//獲取圖表區(qū)域?qū)ο? Font font = new Font(宋體 , , 16)。 //設(shè)置字體,否則出現(xiàn)中文亂碼; TextTitle title = new TextTitle(在線圖片投票統(tǒng)計圖 , font)。 //設(shè)置標(biāo)題 TextTitle subtitle = new TextTitle(版權(quán)歸溫雷所有 , new Font(黑體 , , 12))。 //設(shè)置副標(biāo)題 (subtitle)。 //副標(biāo)題 (title)。 //標(biāo)題 CategoryAxis domainAxis = ()。 //獲得橫坐標(biāo) NumberAxis numberaxis = (NumberAxis) ()。 //獲得縱坐標(biāo) (new Font(sansserif, , 11))。 // 設(shè)置 X 軸坐標(biāo)上的文字 (new Font(宋體 , , 12))。 //設(shè)置 X 軸的標(biāo)題文字 (new Font(sansserif, , 12))。 // 設(shè)置 Y 軸坐標(biāo)上的文字 (new Font(黑體 , , 12))。 //設(shè)置 Y 軸的標(biāo)題文 字 ().setItemFont(new Font(宋體 , , 12))。//解決了底部漢字亂碼 ()。//設(shè)置網(wǎng)格背景顏色 ()。//設(shè)置網(wǎng)格豎線顏色 ()。//設(shè)置網(wǎng)格橫線顏色 BarRenderer3D renderer = new BarRenderer3D()。//顯示每個柱的數(shù)值,并修改該數(shù)值的字體屬性 (new StandardCategoryItemLabelGenerator())。 (true)。 //默認(rèn)的數(shù)字顯示在柱子中,通過如下兩句可調(diào)整數(shù)字的顯示 //注意:此句很關(guān)鍵,若無 此句,那數(shù)字的顯示會被覆蓋,給人數(shù)字沒有顯示出來的問題 (new ItemLabelPosition(, ))。 (10D)。 (new Font(宋體 , , 12))。 (true)。 ()。//設(shè)置平行柱的之間距離 (renderer)。//設(shè)置投票的顯示位置 ()。//將下方的“參賽選手”放到上方 ()。//將默認(rèn)放在左邊的“投 票”放到右方 String filename = (chart, 700, 400, null, session)。//設(shè)置圖片的寬度和高度 String graphURL = () + /DisplayChart?filename= + filename。 % img src=%= graphURL % width=700 height=400 border=0 usemap=%= filename % % }catch(SQLException e){ (())。 }finally{ if(rs!=null) ()。 if(stmt!=null) ()。 if(conn!=null) ()。 } % /body /html 6. 管理員登陸頁面 ( ) %@page import=.*,.*% %@page contentType=text/html pageEncoding=UTF8% !DOCTYPE html html head meta equiv=ContentType content=text/html。 charset=UTF8 title管理員登陸界面 /title /head body background=/WebApplication2/images/ h1 align=center歡迎登陸 /h1
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1