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

正文內(nèi)容

軟件工程jsp網(wǎng)上購物系統(tǒng)--后臺管理系統(tǒng)-資料下載頁

2024-12-06 03:05本頁面

【導(dǎo)讀】機(jī)與網(wǎng)絡(luò)技術(shù)為基礎(chǔ)的信息系統(tǒng)正處于蓬勃發(fā)展的時期。隨著經(jīng)濟(jì)文化水平的顯著提。高,人們對生活質(zhì)量及工作環(huán)境的要求也越來越高。購物做為人類的精神食糧,在現(xiàn)代。社會中越來越受到重視。大量的產(chǎn)品出現(xiàn)在市場上,人們有了各種各樣不同的選擇購物。方式,而互聯(lián)網(wǎng)又在逐步深入與應(yīng)用。邊,越來越多的人們選擇網(wǎng)上交易,網(wǎng)上交易不但給他們帶來便利而且節(jié)省了路費(fèi)。其開發(fā)主要包括后臺數(shù)據(jù)庫的建立、后臺管理以及前臺頁面。系統(tǒng)使用以Java為核心語言的JSP開發(fā)工具,利用Web瀏覽器、Web服。務(wù)器、JDK開發(fā)工具包以及數(shù)據(jù)庫建立運(yùn)行環(huán)境。相關(guān)信息展示,會員注冊,會員登錄,會員信息查看、修改,購物車管理,提交訂單。后臺則是對注冊用戶信息、商品信息、訂單信息、留言反饋和公告的管理。統(tǒng)前后臺之間的數(shù)據(jù)傳輸,保證數(shù)據(jù)一致。

  

【正文】 le1=path2+/+filename1。 //商品圖片路徑 String filename2=().getFile(1).getFileName()。 String file2=path2+/+filename2。 //商品大圖路徑 // String file2=().getFile(1).getFilePathName()。 String price=().getParameter(price)。 //商品價格 String nowprice=0。 //商品現(xiàn)價 String goods_new=().getParameter(New)。 //是否為新貨 String sales=().getParameter(Sales)。 //是否特價 String introduce=().getParameter(introduced)。 //商品介紹 if((是 )) { nowprice=().getParameter(nowprice)。 //商品是特價時,獲取特價 } int typeid。 try{ if(()) { try{ if(()) { brandid=((ID))。 //品牌 Id brandname=(brandsname)。 //品牌名稱 typeid=((typeID))。 String sql=insert into goods(typeID,goodsName,introduce,price,nowPrice,picture,INTime,BigPicture,sale,new,brandid,brandname) values(+typeid+,39。+goods_name+39。,39。+introduce+39。,39。+price+39。,39。+nowprice+39。,39。+file1+39。,getdate(),39。+file2+39。,39。+sales+39。,39。+goods_new+39。,+brandid+,39。+brandname+39。)。 (sql)。 %% (Refresh,0。URL=/Shopping/Adminstrator/goods_manage/?daction=+(cateID)+amp。xaction=+(typeID)+amp。paction=+brandid+)。 } } catch(Exception e){} } }catch(Exception e){} try{ (../../../../../../Shopping/WebRoot/mon/goods/images)。 }catch(Exception e){ (上傳文件出現(xiàn)錯誤: +())。 } ()。 % /body /html 商品刪除 jsp:useBean id=db scope=page class=/jsp:useBean % String action=(action)。 String Page=(page)。 String Total=(totalpage)。 String Action=(daction)。 int daction=(Action)。 //商品大類號 String Actionx=(xaction)。 int xaction=(Actionx)。 //商品小類號 String actionp=(paction)。 int paction=(actionp)。 //品牌 ID if(action==null) { action=。 } else { //刪除商品 int myid=(action)。 //商品 ID //(myid)。 delete mydel=new delete()。 (myid,goods)。 int curpage=(Page)。 //當(dāng)前頁 int totalpage=(Total)。 //總頁數(shù) String sql=null。 if(daction==0) //按品牌查看商品 { sql=select * from goods where brandid=+paction+。 } else { if(xaction==0) //查看大類商品 { sql= select * from goods,goods_type where = and =+daction+。 } else //查看小類商品 { sql=select * from goods where typeID=+xaction+。 } } int totalpage1=(5,sql)。 if(totalpage!=totalpage1amp。amp。curpage==totalpage) //刪除前后總頁數(shù)不相等 ,且當(dāng)前記錄在最后一頁 curpage。 (/Shopping/Adminstrator/goods_manage/?page=+curpage+amp。daction=+daction+amp。xaction=+xaction+amp。paction=+paction+)。 } % body/body 商品信息修改 修改后的商品信息,更新到數(shù)據(jù)庫中 : % (text/html。charset=gb2312)。 % jsp:useBean id=upFile scope=page class= / body % sql2021 db=new sql2021()。 (pageContext)。 ()。 String id=(ID)。 int myid=(id)。 //商品 ID String goods_name=().getParameter(goods_name)。 //商品名 String menuClassp=().getParameter(menuClassp)。 //商品所屬品牌 String menuClass1=().getParameter(menuClass1)。 //商品所屬大類 String menuClass2=().getParameter(menuClass2)。 //商品所屬小類 String path = (images)。 String path1 = (../../../../../../Shopping/WebRoot/mon/goods/images)。 String path2=/Shopping/mon/goods/images。 String filename1=().getFile(0).getFileName()。 String file1=null。 if(()) //未修改圖片路徑,則路徑不改變 { ResultSet picrs=(select * from goods where ID=+myid+)。 try{ if(()) { file1=(picture)。 } }catch(Exception e){} } else //重 新上傳圖片的路徑 { file1=path2+/+filename1。 //商品圖片路徑 } String filename2=().getFile(1).getFileName()。 String file2=null。 if(()) //未修改大 圖片路徑,則路徑不改變 { ResultSet picrs=(select * from goods where ID=+myid+)。 try{ if(()) { file2=(BigPicture)。 } }catch(Exception e){} } else //重新上傳大圖片的路徑 { file2=path2+/+filename2。 //商品大圖片路徑 } String price=().getParameter(price)。 //商品價格 String nowprice=0。 //商品現(xiàn)價 String goods_new=().getParameter(New)。 //是否為新貨 String sales=().getParameter(Sales)。 //是否特價 String introduce=().getParameter(introduced)。 //商 品介紹 ResultSet rs=(select * from goods_type where typeName=39。+menuClass2+39。)。 ResultSet prs=(select * from brands where brandsname=39。+menuClassp+39。)。 int brandid=0。 String brandname=null。 if((是 )) { nowprice=().getParameter(nowprice)。 //商品是特價時,獲取特價 } int typeid。 try{ if(()) { try{ if(()) { brandid=((ID))。 //品牌 Id brandname=(brandsname)。 //品牌名稱 typeid=((1))。
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1