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

正文內(nèi)容

基于hibernate和struts的網(wǎng)上書(shū)店系統(tǒng)畢業(yè)論文設(shè)計(jì)(參考版)

2024-11-21 21:55本頁(yè)面
  

【正文】 圖 511 添加圖書(shū)信息頁(yè)面運(yùn)行結(jié)果 為了確保圖書(shū)在數(shù)據(jù)表中的唯一性,在會(huì)員提交表單時(shí),需要先根據(jù)會(huì)員輸入的圖書(shū)名稱(chēng)對(duì)數(shù)據(jù)表進(jìn)行查詢,確保此圖書(shū)在數(shù)據(jù)表中不存在后,方可執(zhí)行插入操作。 return erro。 return success。 (id, Protype)。 if(()==0){ Protype protype = (Protype)(id, Protype)。+id+39。 32 return success。 (protype)。 } //編輯類(lèi)別 public String typeEdit(){ Protype protype = (Protype)(id, Protype)。 suc=。 (0)。 } 圖書(shū) 類(lèi)別管理 模塊 //新增類(lèi)別 public String typeAdd() { Protype protype=new Protype()。 suc=。 return success。 (notice)。 (title)。 return success。 (notice)。 (type)。 (title)。 return success。 } //留言刪除 public String msgDel(){ (id, Msg)。 suc=。 (reply)。 return success。 (msg)。 ()。 (content)。 return erro。 return success。 (admin, sysuser)。 List adminList=(hql)。管理員 39。+upass+39。+uname+39。 upass = (upass)。 圖 59 管理員登錄頁(yè)面運(yùn)行結(jié)果 流程圖如圖 510 所示。該頁(yè)面用來(lái)判斷輸入信息在數(shù)據(jù)庫(kù)中 sysuser 表是否存在提交的會(huì)員名和密 29 碼,如果登錄 ID 及密碼有效,就保存會(huì)員名信息,管理員有權(quán)對(duì)網(wǎng)站進(jìn)行維護(hù);反之則提示錯(cuò)誤。 管理員功能模塊 包括管理員身份驗(yàn)證、添加圖書(shū)模塊、訂單信息管理模塊、會(huì)員信息管理模塊、添加分類(lèi)模塊、新聞公告信息管理模塊等。 return success。//保存留言時(shí)間到留言板 (msg)。//保存會(huì)員 id 到留言板 ()。 (content)。其具體的模塊頁(yè)面如下58 所示。 return success。i++){//提交訂單后,刪除購(gòu)物車(chē)中的書(shū) (carid[i], Car)。 for(int i=0。 //0:訂單 1:退貨 (order)。 (addr)。 (未發(fā)貨 )。 (proinfo)。 (price)。 (())。訂單查詢模塊如圖 57所示。 ()。 (responseContext)。 (text/html)。 (responseContext)。 int responseContext。//將數(shù)目 加入購(gòu)物車(chē) (memberid)。 (productid)。 } total += (price)*(())。 if(().equals(yes)){ price = ()。 if(()!=0){ for(Car car:carlist){ Product product = (Product)((),Product)。 order by id desc )。 圖 56 購(gòu)物車(chē)頁(yè)面運(yùn)行結(jié)果 主要代碼如下: //購(gòu)物車(chē) 前臺(tái)頁(yè)面 TD width=90% align=leftSTRONG購(gòu)物車(chē) /STRONG/TD TD width=10% align=right/TD/TR/TBODY/TABLE/TD/TR TRTD height=180 vAlign=top STYLE type=text/css.style4 { COLOR: ff0000 }/STYLE TABLE border=0 cellSpacing=0 cellPadding=0 width=99% align=center TBODY TRTD height=10 vAlign=top/TD/TR TRTDDIV style=WIDTH: 800px table width=100% border=0 bgcolor=cccccc cellpadding=1 cellspacing=1 tr align=center bgcolor=cccccc td圖片 /td td圖書(shū)編號(hào) /td 26 td圖書(shū)名稱(chēng) /td td單價(jià) /td td購(gòu)買(mǎi)數(shù)量 /td td操作 /td /tr % ArrayListCar carlist = (ArrayListCar)( from Car where memberid=39。 } } % 購(gòu)物車(chē)模塊 會(huì)員把喜歡的圖書(shū)預(yù)定之后會(huì)顯示在購(gòu)物車(chē)中,在此會(huì)圖書(shū)的總額、購(gòu)買(mǎi)數(shù)量、移除購(gòu)物車(chē)或是點(diǎn)擊購(gòu)買(mǎi)生成訂單。 ).get(0)。 and productid=39。 }else if((favdel)){//如果按熱門(mén)降序查詢 Fav f = (Fav)( from Fav where memberid=39。 (id)。 if((favadd)){//如果按熱門(mén)增序查詢 Fav f = new Fav()。 開(kāi) 始 結(jié) 束 搜索圖書(shū)信息 查看圖書(shū)信息 查看是否成功 是 成功 否、 25 String method = (method)。//獲得查詢 id Product product = (Product)(id,Product)。 圖 55 會(huì)員查看圖書(shū)模塊流程圖 主要代碼如下: %CommonDAO dao = (CommonDAO)(request,CommonDAO)。 } 查看 圖書(shū)模塊 會(huì)員登錄后可以搜索或是查看系統(tǒng)中的圖書(shū)信息,包括圖片、價(jià)格等,還可以訂購(gòu),頁(yè)面如圖 54 所示。 ()。 PrintWriter out = ()。//根據(jù)查詢結(jié)果,判斷登錄是否成功 HttpServletResponse response=()。 }else{ responseContext=1。 int responseContext。會(huì)員 39。+uname+39。 public void check() throws IOException { (uname)。 public String msgStr。 %}% /script /body //會(huì)員登錄校驗(yàn)管理 后臺(tái)處理 public class UserValidateAction extends ActionSupport { private static final long serialVersionUID = 1L。 %} if(suc!=null){//如果登錄失敗,提示并轉(zhuǎn)到主界面 23 % alert(登陸成功 )。 if(no!=null){//如果登錄失敗,提示并轉(zhuǎn)到登錄界面 % alert(用戶名或密碼錯(cuò)誤 )。 } } % String suc = (String)(suc)。 }if(==){ alert(請(qǐng)輸入密碼 )。 % bodyjsp:include page=/jsp:include center TABLE border=0 cellSpacing=0 cellPadding=0 width=1006 align=center TBODYTRTD vAlign=top width=188 22 jsp:include page=/jsp:include/TD TD vAlign=top width=787 TABLE border=0 cellSpacing=0 cellPadding=0 width=100% height=5 TBODYTRTD height=5/TD/TR/TBODY/TABLE TABLE border=0 cellSpacing=0 cellPadding=0 width=100% TBODYTRTD height=10 width=787/TD/TR TRTD height=25 background=files/ TABLE width=100% TBODYTRTD width=90% align=left STRONG登陸 /STRONG/TDTR TD height=180 vAlign=top TABLE border=0 cellSpacing=0 cellPadding=0 width=99% align=center TBODYTRTD height=10 vAlign=top/TD/TR TRTDDIV style=WIDTH: 800px form action= name=f1 method=post onsubmit=return ck() table width=100% trtd用戶名 /td tdinput type=text id=uname name=uname span id=namets/span/td/tr trtd密碼 /td tdinput type=password id=upass name=upass */td/tr trtd colspan=2 input type=submit value=提交 input type=reset value=重置 /td/tr/table/form /DIV/TD/TR/TBODY/TABLE/TD/TR /TBODY/TABLE/TD/TR/TBODY/TABLE /center jsp:include page=/jsp:include script type=text/javascript function ck(){ if(==){ alert(請(qǐng)輸入用戶名 )。 會(huì)員登錄頁(yè)面如圖 53 所示。 } } (2)會(huì)員登錄 會(huì)員登錄窗口設(shè)置在首頁(yè)上,主要用來(lái)接收會(huì)員錄入的會(huì)員名及密碼。 suc=。 (0)。 (會(huì)員 )。 (tel)。 (sex)。 (upass)。 (uname)。 return erro。//設(shè)置查詢數(shù)據(jù)庫(kù)語(yǔ)句 List adminList=(hql)。 %}% /script /body //用戶注冊(cè) 后臺(tái)處理 public String memberReg() { String hql = from Sysuser where uname=39。 if(suc!=null){% alert(操作成功 )。 return false。 return false。 }if(!=){ alert(兩次密碼不一致 )。 }if(==){ alert(請(qǐng)重復(fù)密碼 )。 }if(==){ alert(請(qǐng)輸入密碼 )。 } function ck(){//用于驗(yàn)證輸入的信息是否為空 if(==){ alert(請(qǐng)輸入用戶名 )。) { ajax = new XMLHttpRequest()。 typeof XMLHttpRequest!=39。 } } if (!ajax amp。 } catch (e) { try { ajax = new ActiveXObject()。 } } } } function InitAjax() { var ajax=false。color:red。 } else{ (namets).innerHTML= 已存在的用戶名 。color:green。 //如果注冊(cè)名檢查有效 if
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1