⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listsub.jsp

📁 《Web程序测试实训教程(Java版)》-徐民鹰-源代码
💻 JSP
字号:
<%//if(session.getAttribute("userId")==null) {
    //        	  out.println("请登录后查询订单!");
//}else{%>
<%@ page language="java" import="java.util.*" %>
<%@page import="java.text.*" 
contentType="text/html; charset=gb2312" 
buffer="20kb" 
%>

<html>
    <head>
        <title>订单管理</title>
    </head>
    <LINK href="../include/style.css" type=text/css rel=stylesheet>
    <script language="JavaScript">
     <!--
      function newwin(url) {
         var newwin=window.open(url,"newwin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=350");
         newwin.focus();
         return false;
      }
      function MM_openBrWindow(theURL,winName,features) { //v2.0
          window.open(theURL,winName,features);
      }
     // -->
    </script>
    <body bgcolor="#ffffee">
        
             
        <table align="left" cellpadding="1" cellspacing="1" border="1" width="80%" bgcolor="#dddddd">
        <tr>
          <td colspan="3"><h4><center>订单管理</center></h4></td>
        </tr>
        
            <tr align="center" >
                     <td>订单号</td>
                     <td>订购日期</td>
                     <td>处理状态</td>
                 </tr>
<%
            //图书查询
            bookList.SubInfoDB blistDB = new bookList.SubInfoDB();
            Collection blst = blistDB.getSubLasted ();
            if (blst != null)
            {
                if (blst.size () > 0)
                {
                    for (Iterator iterator = blst.iterator(); iterator.hasNext(); )
                    {
                    	bookList.SubInfo lst = (bookList.SubInfo) iterator.next ();
%>
                        
                       
                    
                   <tr align="center" >
                     <td><a href="subDetail.jsp?id=<%=lst.getSubId()%>" onClick='return newwin(this.href);'> <%=lst.getSubNo() %></a></td>
                     <td><%=lst.getSpdate() %></td>
                     <td>
                     <%
                        if(lst.getSpif()==1){
                    	   out.print("<font color='red'>已处理</font>");} 
                        else{%>
                           <a href="doAction.jsp?id=<%=lst.getSubId()%>&SubNo=<%=lst.getSubNo() %>">待处理</a>
                       <% }
                        	
                     %>
                     </td>
                 </tr>
                    
<%
                    }
                }
            }
%>
</TBODY>
                    </TABLE>
        </table>
        <br>
        
        
<%
//}
%>    
    </body>
</html>

⌨️ 快捷键说明

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