javaWeb书店管理系统系统Word格式文档下载.docx

上传人:b****3 文档编号:15973618 上传时间:2022-11-17 格式:DOCX 页数:35 大小:174.79KB
下载 相关 举报
javaWeb书店管理系统系统Word格式文档下载.docx_第1页
第1页 / 共35页
javaWeb书店管理系统系统Word格式文档下载.docx_第2页
第2页 / 共35页
javaWeb书店管理系统系统Word格式文档下载.docx_第3页
第3页 / 共35页
javaWeb书店管理系统系统Word格式文档下载.docx_第4页
第4页 / 共35页
javaWeb书店管理系统系统Word格式文档下载.docx_第5页
第5页 / 共35页
点击查看更多>>
下载资源
资源描述

javaWeb书店管理系统系统Word格式文档下载.docx

《javaWeb书店管理系统系统Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《javaWeb书店管理系统系统Word格式文档下载.docx(35页珍藏版)》请在冰豆网上搜索。

javaWeb书店管理系统系统Word格式文档下载.docx

查询页面

查询结果

管理员页面

添加图书页面

添加图书信息不完整页面

三、完整开发代码(按照上面截图部署即可实现)

Table.css:

body{

background:

#ffffff;

margin:

15;

}

body,table,th,td,input,select,textarea{

font-family:

Tahoma,Verdana,Arial,Helvetica,sans-serif;

font-size:

12px;

table.default{

border:

1pxsolid#3366CC;

border-collapse:

collapse;

width:

80%;

table.defaulttd{

padding:

2525;

height:

26px;

text-align:

center;

1pxsolid#ffffff;

background-color:

#f0f0f0;

table.defaulttr.titletd{

font-weight:

bold;

#99CCFF;

color:

red;

white-space:

nowrap;

table.defaultth.item{

#333333;

vertical-align:

top;

10px;

14px;

xyh.css:

body{font-family:

Arial,Helvetica,sans-serif;

12px;

color:

#666666;

background:

#fff;

center;

*{margin:

0;

padding:

a{color:

#1E7ACE;

text-decoration:

none;

}

a:

hover{color:

#000;

underline;

h3{font-size:

14px;

font-weight:

bold;

pre,p{color:

margin:

4px;

input,select,textarea{padding:

1px;

2px;

font-size:

11px;

.buttom{padding:

1px10px;

1px#1E7ACEsolid;

#D0F0FF;

#formwrapper{width:

450px;

15pxauto;

20px;

text-align:

left;

border:

1pxsolid#A4CDF2;

fieldset{padding:

10px;

margin-top:

5px;

fieldsetlegend{color:

3px20px3px20px;

fieldsetlabel{float:

width:

120px;

right;

fieldsetdiv{clear:

margin-bottom:

.input{width:

.enter{text-align:

.clear{clear:

both;

Common.js:

functionisNum(num){

for(i=0;

i<

num.length;

i++)

{

c=num.charAt(i);

if(c>

'

9'

||c<

0'

){

returnfalse;

returntrue;

functioncheck(){

if(form1.id.value=="

"

{alert("

noid!

);

form1.id.focus();

if(form1.name.value=="

{alert("

noname!

form1.name.focus();

if(form1.author.value=="

alert("

noauthor!

form1.author.focus();

if(form1.press.value=="

nopress!

form1.press.focus();

if(form1.date.value=="

nodate!

form1.date.focus();

if(!

isNum(form1.price)){

priceiswrong!

form1.price.focus();

isNum(form1.account)){

accountiswring!

form1.account.focus();

Bookinfo.java:

packagebean;

importjava.lang.String;

importjava.lang.System;

importjava.sql.ResultSet;

importjava.sql.SQLException;

importjava.util.ArrayList;

publicclassbookinfo{

privateStringid;

privateStringname;

privateStringauthor;

privateStringpress;

privateStringdate;

privateintprice;

privateintaccount;

publicvoidsetName(Stringname){

this.name=name;

publicStringgetName(){

returnname;

publicvoidsetAuthor(Stringauthor){

this.author=author;

publicStringgetAuthor(){

returnauthor;

publicvoidsetDate(Stringdate){

this.date=date;

publicStringgetDate(){

returndate;

publicvoidsetPress(Stringpress){

this.press=press;

publicStringgetPress(){

returnpress;

publicvoidsetId(Stringid){

this.id=id;

publicStringgetId(){

returnid;

publicvoidsetAccount(intacount){

this.account=acount;

publicintgetAccount(){

returnaccount;

publicvoidsetPrice(intprice){

this.price=price;

publicintgetPrice(){

returnprice;

publicstaticArrayList<

bookinfo>

getbooklist(){

ArrayList<

list=newArrayList<

();

Stringsql="

select*frombook.bookshop"

;

dbbeanjdbc=newdbbean();

ResultSetrs=jdbc.executeQuery(sql);

try{

while(rs.next()){

bookinfobi=newbookinfo();

bi.setId(rs.getString("

id"

));

bi.setName(rs.getString("

name"

bi.setAuthor(rs.getString("

author"

bi.setPress(rs.getString("

press"

bi.setDate(rs.getString("

date"

bi.setPrice(rs.getInt("

price"

bi.setAccount(rs.getInt("

account"

list.add(bi);

rs.close();

catch(SQLExceptione){

e.printStackTrace();

jdbc.close();

returnlist;

//通过编号书名作者来搜索

getbookbyway(St

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 教学研究 > 教学计划

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1