myshop.jsp~42~

来自「模仿Taobao购物网」· JSP~42~ 代码 · 共 79 行

JSP~42~
79
字号
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.*" %>
<%@page import="taobaoproject.*" %>
<%@ include file="check.jsp" %>
<jsp:include flush="true" page="head.jsp"/>
<html>
<head>
<title>
myshop
</title>
<style type="text/css">
<!--
.shidi {font-size: 24px}
-->
</style>
</head>
<jsp:useBean id="dingDan" scope="session" class="taobaoproject.orderInfo_Bean" />
<jsp:setProperty name="dingDan" property="*" />
<body bgcolor="#D5D5B5">
<div align="center">
  <table width="100%" border="1" bgcolor="#D5D5B5">
    <tr>
      <td colspan="2" class="shidi"><strong>我的帐户</strong></td>
    </tr>
    <tr>
      <td height="400" width="150" valign="middle">
        <table width="100%">
          <tr>
            <td><hr /><a href="#">我的订单</a><hr /></td>
          </tr>
          <tr>
            <td><a href="#">查看个人信息</a><hr /></td>
          </tr>
          <tr>
            <td><a href="#">修改个人信息</a><hr /></td>
          </tr>
        </table>
      </td>
      <td align="center">
        <!--我的订单列表开始-->
        <div>我的订单</div>
        <table width="550" border="1">
          <tr>
            <th height="20" align="center" width="18%">订单号</th>
            <th align="center" width="28%">金额</th>
            <th align="center" width="40%">订单日期</th>
            <th align="center">详情</th>
          </tr>
          <!--循环开始-->
          <%
          String userName = (String)session.getValue("username");
          ArrayList shouJiList = dingDan.selectOrder(userName);
          for(int i =0;i< shouJiList.size();i++)  {
            orderInfo_Bean orderInfo = new orderInfo_Bean();
            orderInfo = (orderInfo_Bean)shouJiList.get(i);
          %>
          <tr>
            <td align="center" width="18%"><%=orderInfo.getOrderID() %></td>
            <td align="center" width="28%"><%=orderInfo.getGoodsFee() %></td>
            <td align="center" width="40%"><%=orderInfo.getOrderDate() %></td>
            <td align="center"><a href="DingDanXianXing.jsp?orderID=<%=orderInfo.getOrderID() %>">查看</a></td>
          </tr>
          <%} %>
          <!---循环结束-->
        </table>
        <!--我的订单列表结束-->
        <table>
          <tr>
            <td></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</div>
<jsp:include flush="true" page="footer.jsp"/>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?