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

正文內(nèi)容

基于jsp新聞發(fā)布系統(tǒng)之登錄模塊與后臺一級新聞管理模塊的設計與實現(xiàn)畢業(yè)論文(文件)

2024-12-11 21:53 上一頁面

下一頁面
 

【正文】 表如表 31 所示 : 表 31: 用戶表 用戶數(shù)據(jù)庫的結(jié)構(gòu)如圖 38 所示 : 圖 38: 用戶數(shù)據(jù)庫的結(jié)構(gòu)圖 用戶數(shù)據(jù)庫的的數(shù)據(jù)如圖 39 所示 : 字段名字 字段類型 字段長度 字段說明 loginname varchar 50 管理員登錄名 password varchar 50 管理員登錄密碼 13 圖 39: 用戶數(shù)據(jù)庫的的數(shù)據(jù)圖 新聞一級標題如表 32 所示 : 表 32:新聞一級標題表 一級標題的數(shù)據(jù)庫的結(jié)構(gòu)如圖 310 所示 : 圖 310:一級標題的數(shù)據(jù)庫的結(jié)構(gòu)圖 一級標題的數(shù)據(jù)庫的數(shù)據(jù)如圖 311 所示 : 字段名字 字段類型 字段長度 字段說明 Id int 4 序號 TitleName varchar 50 標題名稱 Creator nvarchar 50 創(chuàng)建者 CreateTime datetime 8 創(chuàng)建時間 14 圖 311:一級標題的數(shù)據(jù)庫的數(shù)據(jù)圖 新聞二級標題如表 33 所示: 表 33:新聞二級標題表 字段名稱 數(shù)據(jù)類型 字段長度 字段說明 Id int 4 序號 TitleName varchar 100 標題名稱 FilePath varchar 100 文件位置 Creator varchar 50 創(chuàng)建者 CreateTime datetime 8 創(chuàng)建時間 ParentTitle int 4 所屬一級標題的 ID 二級標題的數(shù)據(jù)庫的結(jié)構(gòu)如圖 312 所示: 圖 312: 二級標題的數(shù)據(jù)庫的結(jié)構(gòu)圖 二級標題的數(shù)據(jù)庫的數(shù)據(jù)如圖 313 所示 : 15 圖 313: 二級標題的數(shù)據(jù)庫的數(shù)據(jù)圖 4 系統(tǒng)模塊的實現(xiàn) 主要負責 新聞發(fā)布系統(tǒng)的登錄模塊 (管理員登錄 ),后臺的新聞一級標題管理模塊和后臺的用戶管理模塊。 String pass = (password)。 try{ con = ()。 (2,pass)。 //進入新聞發(fā)布系統(tǒng)的首頁面 ()。 (con)。 } else { (“)。 //訪問者列表 i f ((LOGINED_USER) != null) loginedUsers = (List) (LOGINED_USER)。 } 修改后的代碼 : : %page language=java contentType=text/html。 Connection con = null。 pStatement = (sql)。 if (()) { //如果是已注冊用戶 User logineduser = new User(name, pass)。 } //把新登錄用戶的信息存入訪問者列表中 (logineduser)。 } }catch(Exception e){ (發(fā)生錯誤!錯誤原因: +())。 charset=GBK% % page import=% html headtitle新聞發(fā)布系統(tǒng) /title/head % include file=% FRAMESET rows=20%,80% cols=* FRAME src= name=topFrame scrolling=NO marginwidth=0 marginheight=0 FRAMESET rows=* cols=25%,75% FRAME src= name=leftFrame scrolling=yes marginwidth=0 marginheight=0 FRAME src= name=mainFrame scrolling=yes marginwidth=0 marginheight=0 /FRAMESET /FRAMESET noframes/noframes /html 為了避免用戶直接執(zhí)行 進入系統(tǒng),需要在新聞發(fā)布系統(tǒng)后臺首頁面()中加入登錄驗證: 23 % User user = (User) (LOGINED_USER)。 } % FRAMESET rows=20%,80% cols=* FRAME src= name=topFrame scrolling=NO marginwidth=0 marginheight=0 FRAMESET rows=* cols=25%,75% FRAME src= name=leftFrame scrolling=yes marginwidth=0 marginheight=0 FRAME src= name=mainFrame scrolling=yes marginwidth=0 marginheight=0 24 /FRAMESET /FRAMESET noframes/noframes /html 登錄驗證的代碼 : % page import=% % User user = (User) (LOGINED_USER)。 charset=gb2312 /head body bgcolor=FFFFFF topmargin=1 marginwidth=1 onLoad= div align=centerimg src=/news/images/ width=935 height=100/div /body /html ( 2)、創(chuàng)建框架 頁面 % page language=java contentType=text/html。 String strCurrentTime = (now)。 return false。 =。 } } /script /HEAD BODY h1 align=centerfont size=4新聞一級標題發(fā)布 /font/h1 form name=form1 method=post action= table width=100% border=0 cellspacing=1 cellpadding=0 tr td width=45% align=right標題名: /td tdinput type=text name=titlename size=20/td /tr 28 tr td width=45% align=right標題名一: /td tdinput type=text name=titlename1 size=20/td /tr tr td colspan=2 align=center input type=submit name=Submit value= 確定 onClick=return checkOneTitle() input type=reset name=Reset value=重置 /td /tr /table p align=center注意:發(fā)布前請認真檢查輸入的標題是否正確 /p /form /BODY /HTML 相關(guān)截圖: 一級新 聞標題界面如圖 47 所示 : 圖 47: 一級新聞標題界面圖 在一級標題名的文本框內(nèi)輸入內(nèi)容的界面如圖 48 所示 : 29 圖 48: 一級標題名的文本框內(nèi)輸入內(nèi)容的界面圖 一級新聞標題發(fā)布操作 首先向名稱為“標題名”的文本框里輸入新聞一級標題名,然后在“標題名一”的文本框里輸入新聞一級標題名,進行判斷,如果兩次輸入的一級新聞標題名字相同,會彈出一個對話框,提示請重新輸入。 =。返回 /a/p /BODY /HTML 相關(guān)截圖如圖 411 所示 : 31 圖 411: 一級新聞標題發(fā)布成功圖 ( 2)、 一級新聞標題發(fā)布失敗 ( ): 主要代碼 : % page language=java contentType=text/html。 public class FirstLevelTitle { private int id。 //創(chuàng)建時間 /* * 使用構(gòu)造方法進行初始 化 */ public FirstLevelTitle() { } public FirstLevelTitle(int id, String titleName, String creator,Date createTime) { = id。 33 } public int getId() { return 。 } public void setId(int paramId) { = paramId。 } } 創(chuàng)建數(shù)據(jù)訪問類: FirstLeveTitleDbOpreation 建立方法 getNewId():用來獲取新聞一級標題表中最大的 ID,并對它加一,作為新的一級標題的 ID; 建立方法 insertOneRecord(FirstLevelTitle fTitle):用來向數(shù)據(jù)庫中插入一條新聞 一級標題; 包含方法 getAllFirstLevelTitleList:用來查詢數(shù)據(jù)庫,并返回所有的新聞一級標題。 ResultSet res = null。 import 。 import 。 ResultSet res = null。 res = ()。 Date time = (CreateTime)。 } finally { (res)。 } public int insertOneRecord(FirstLevelTitle fTitle) { int result = 0。 String strCurrentTime = ( new Date())。 (1, getNewId())。 result = ()。 } return result。 ResultSet resSet = null。 resSet = ()。 (pstmt)。 FirstLevelTitle fTitle=new FirstLevelTitle(9,多媒體 ,管理員 ,new Date())。 public class User { private String name。 } /** * 返回用戶名 */ public String getName() { return name。 } } 38 : package db。 public class NewsFirstTitleDB2 { public static void main(String[] args) { Connection con = null。 String strSql = insert into FirstLevelTitle values(?,?,?,?)。 (3, 管理員 )。 } finally { (pStatement)。 import .*。 39 import 。 ResultSet res = null。 res = ()。 String strSql = select * from FirstLevelTitle order by CreateTime desc。 Connection dbConnection = null。 import 。 } } } package db。 ()。 (1, 5)。 try { SimpleDateFormat hmFromat = new SimpleDateFormat( yyyyMMdd hh:mm:ss)。 import 。 } /** * 設定用戶名 * param name */ public void setName(String name) { = name。// 密碼 /** * 構(gòu)造
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1