📄 xiangqing2.jsp
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.sql.*"%>
<%
String spath="wangye/ec.mdb";
String dbpath = application.getRealPath(spath);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url="jdbc:odbc:driver={Microsoft Access Driver (*.mdb)};DBQ="+dbpath;
Connection conn= DriverManager.getConnection(url,"","");
Statement stmt=conn.createStatement();
String username=(String)session.getAttribute("username");
String orderID=request.getParameter("orderID");
String sql="select * from order1 where username='"+username+"' and orderID='"+orderID+"'";
ResultSet rs=stmt.executeQuery(sql);
%>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="770" border="1" align="center">
<tr>
<th scope="col"><img src="../image/1.jpg" width="760" height="200" /></th>
</tr>
<tr>
<th height="40" background="../image/t1.jpg" scope="row"><table width="139" border="0">
<tr>
<th width="133" scope="col"><a href="maijiadengru.jsp">首页</a></th>
</tr>
</table> </th>
</tr>
</table>
<table width="770" border="1" align="center">
<tr>
<th width="754" bgcolor="#A6BBFC" scope="col" ><marquee direction="left" scrollamount="1" scrolldelay="1" onMouseOver="this.stop();" onMouseOut="this.start();">
<%if(username==null || username==""){%>
<font color="#330000">顾客您好!购买商品请先登录</font> <a href="../zhuce.jsp" >[新用户注册]</a>
<%}else{%><%=username%> <font color="#330000">您好! 电子商务交易平台欢迎您!</font>
<%}%>
</marquee></th>
</tr>
</table>
<table width="770" border="1" align="center">
<tr>
<th bgcolor="#FFFACE">
<%
int ID=0;
int goodsID=0;
int price=0;
int number=0;
int doo=0;
int foo=0;
%>
<% while(rs.next()) {
ID=rs.getInt(1);
goodsID=rs.getInt(3);
price=rs.getInt(4);
number=rs.getInt(5);
doo=rs.getInt(7);
foo=rs.getInt(8);
%>
<table width="92%" height="48" border="1" align="center" cellpadding="0" cellspacing="0">
<tr align="center" valign="middle">
<td height="27" >订单号</td>
<td >商品号</td>
<td height="27" >单价</td>
<td >数量</td>
<td >发货</td>
<td >接收</td>
</tr>
<tr align="center" valign="middle">
<td width="138" height="27"><%=orderID%></td>
<td width="162"><%=goodsID%></td>
<td width="149" height="27"><%=price%></td>
<td width="242"><%=number%></td>
<td width="242"><%if(foo==0){ %>
<a href="fahuo.jsp?ID=<%=ID%>"><img src="../image/del.gif" width="16" height="16"></a>
<%} else {%>
已确定
<%} %></td>
<td width="242" height="27"><%if(doo==0)%>
否
<% else {%>
是
<%} %></td>
</tr>
</table>
<%}
rs.close();
stmt.close();
conn.close();%>
</th>
</tr>
</table>
<table width="770" border="1" align="center">
<tr>
<th background="../image/2.jpg" scope="col"><br>
<p><a href="#"><font size="2">关于我们</font></a>
<font size="2"> |
<a href=# onclick="">加入收藏</a> | <a href=# onClick="">设为首页</a> | <a href="#">请您留言</a><br><br>
电子商务交易平台 版权所有</font></p><br>
</th>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -