图书销售电子商务网站设计方案

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
%>
<%
}catch(Exception e){
out.print("发生意外错误:"+e.toString());
}finally{
if(rs!=null){rs.close();rs=null;}
db.closeConnection();
}
%>
2、查看信息
<%
String newsId=request.getParameter("news_id");
<td>
<select name="bm">
<option value="0">--请选择--</option>
<%
ResultSet rs=null;
try{
db.creatConnection();
rs=db.stmt.executeQuery("select * from tzbm");
while(rs.next()){
"news_dt.url,news_dt.bdcs,news_dt.puttime from news_dt,tzbm,usergl where news_dt.news_id='"+newsId+"'"+
" and news_dt.bm_id=tzbm.bm_id and usergl.id=news_dt.user_id ");
ResultSet rs=null;
try{
db.creatConnection();
db.stmt.executeUpdate("update news_dt set bdcs=bdcs+1 where news_id='"+newsId+"'");
rs=db.stmt.executeQuery("select news_dt.title,usergl.name,tzbm.bm_name,news_dt.content,"+
String typeId=request.getParameter("type");
String bm=request.getParameter("bm");
String bdcs=request.getParameter("bdcs");
String puttime=request.getParameter("puttime");
图书销售电子商务网站设计方案
1、设计目的
2、Βιβλιοθήκη Baidu样设计
3、设计哪些功能
4、系统流程图
条件:身份验证
条件:多类型查询
图书电子商务流程图
主页
系统主要功能图
数据库设计
用户表:
图书表:
------分类表
购物表:(user_id,book_id,num)
订单表:(user_id,book_id,num,price,total)
<td><textarea name="context" rows="15" cols="72"
style="COLOR:#606060; FONT-SIZE: 12px;border-style: solid;border-width: 1;"
></textarea></td></tr>
<tr height="40"><td><img src=images/yd.gif>类别*:</td>
3、购物车
放货
try{
db.creatConnection();
db.stmt.executeUpdate("insert into news_dt(user_id,title,content,type_id,bm_id,url,bdcs,puttime) values"+
" ('"+userId+"','"+title+"','"+content+"','"+typeId+"','"+bm+"','"+url+"','0',getdate())");
db.stmt.executeUpdate("update news_dt set bdcs=bdcs+1 where news_id='"+newsId+"'");
rs=db.stmt.executeQuery("select news_dt.title,usergl.name,tzbm.bm_name,news_dt.content,"+
<tr height="40"><td><img src=images/yd.gif>名称*:</td>
<td><input type="text" name="title" size="72"></td>
<tr height="40"><td><img src=images/yd.gif>简介:</td>
}
%>
</select>
</td></tr>
<tr height="40"><td><img src=images/yd.gif>其它:</td>
<td><input type="input" name="url" size="72"></td></tr>
<tr height="40"><td></td>
if(title==null||title.length()==0||typeId.equals("0")){
out.print("<script>window.alert('您可能漏填或漏选了某项');history.back()</script>");
return;
}
String content=request.getParameter("context");
String url=request.getParameter("url");
ResultSet rs=null;
try{
db.creatConnection();
db.stmt.executeUpdate("insert into news_dt(user_id,title,content,type_id,bm_id,url,bdcs,puttime) values"+
if(!rs.next()){
db.closeConnection();
out.print("此条信息可能已被删除!");
return;
}
String url=rs.getString(5);
if(url!=null&&url.length()!=0&&!url.equals("null")){
%>
out.print("<option value="+rs.getString(1)+">--"+new String(rs.getString(2).trim().getBytes("iso8859_1"))+"--</option>");
}
%>
</select>
</td></tr>
<tr><td><img src=images/yd.gif>商品类型*:</td>
<td>
<input type="submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;
<input type="reset" value="清空">
</td>
</tr>
</table>
</form>
</center>
</BODY>
</HTML>
<%
String title=request.getParameter("title");
if(!rs.next()){
db.closeConnection();
out.print("此条信息可能已被删除!");
return;
}
String url=rs.getString(5);
if(url!=null&&url.length()!=0&&!url.equals("null")){
%>
"news_dt.url,news_dt.bdcs,news_dt.puttime from news_dt,tzbm,usergl where news_dt.news_id='"+newsId+"'"+
" and news_dt.bm_id=tzbm.bm_id and usergl.id=news_dt.user_id ");
out.print("恭喜您!!发布已成功,页面在<font color=red>3</font>秒后自动跳转");
out.print("<meta http-equiv=refresh content=2;url=newsview.jsp>");
%>
查货
<%
try{
db.creatConnection();
</HEAD>
<BODY>
<center>
<table border="0" cellpadding=0 cellspacing=0 width="760">
<form action="AddNews.jsp" method="post" name="fbForm">
<tr align="center" height="40"><td colspan="2"><b>商品发布</b></td></tr>
" ('"+userId+"','"+title+"','"+content+"','"+typeId+"','"+bm+"','"+url+"','0',getdate())");
out.print("恭喜您!!发布已成功,页面在<font color=red>3</font>秒后自动跳转");
out.print("<meta http-equiv=refresh content=2;url=newsview.jsp>");
5、效益分析
结算表:(user_id,book_id,num,price,total,all,all-dz,money)
技术路线(系统实现)
一、采用工具
二、主要功能的实现
1、商品上架
<HTML>
<HEAD>
<LINK href="css.css" rel=stylesheet type=text/css>
<TITLE></TITLE>
<td>
<select name="type">
<option value="0">----请选择----</option>
<%
rs=db.stmt.executeQuery("select * from news_type");
while(rs.next()){
out.print("<option value="+rs.getString(1)+">-----"+new String(rs.getString(2).trim().getBytes("iso8859_1"))+"-----</option>");
相关文档
最新文档