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

📄 listorder.jsp

📁 为交课程设计
💻 JSP
字号:

<%@ include file="../sys/sessioncheck.jsp"%>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<html>
<head>
<title>订单列表</title>
<link href="css/1.css" rel="stylesheet" type="text/css">
</head>
<SCRIPT language="JavaScript">
  function dodel()
 {
  form1.action = "DelOrderAction.do";
  form1.submit();
  }
   function selectAll(str)
{
var a = document.getElementsByName(str);
var n = a.length;
	for(var j=0;j<n;j++)
	{

          if (a[j].checked==false)
          {
            a[j].checked = true;
            form1.button.value="取消所有选择";

          }
          else
          {
            a[j].checked = false;
            form1.button.value="选中所有";
          }
	}
}
  </SCRIPT>
<p>
</p>
<body>
<p>
</p>

<p class="tilte">订单管理(所有):</p>
<form name="form1" method="post" >
  <c:set var="page" value="${pages}" />
  <c:set value="num" var="${num}" />
  当前第 <%=(String)session.getAttribute("current")%> 页     共 <c:out value="${page}"/> 页  <c:out value="${num}" />条记录
   <table width="82%" height="188" border="0" cellspacing="1" >
    <tr bgcolor="#DDDDDD">
      <td width="5%"><div align="center">&nbsp;</div></td>
      <td width="19%" height="38">订单号</td>
      <td width="16%" height="38">企业名称</td>
      <td width="24%" height="38">担当者</td>
      <td width="36%" height="38">完成情况&nbsp;&nbsp;&nbsp;&nbsp;</td>
    </tr>
    <c:forEach var="listorder" items="${orderList}" begin="${begin}" end="${end}" step="1">
    <tr bgcolor="#F0F0F0"> <c:url value="/ViewOrderAction.do" var="view"> <c:param name="order_id" value="${listorder.order_id}" /> </c:url> <c:url value="/ViewOrderAdv.do" var="viewAdv"> <c:param name="order_id" value="${listorder.order_id}"> </c:param> </c:url>
        <td><div align="center">
            <input type="checkbox" name="orders" value="<c:out value="${listorder.order_id}" />
    "> </div></td>
        <td height="30"><a href='<c:out value="${view}"/>'><c:out value="${listorder.order_id}" /></a>&nbsp;</td>
        <td height="30"><c:out value="${listorder.customer_name}" />&nbsp;</td>
        <td height="30"><c:out value="${listorder.person_name}" />&nbsp;</td>
        <td height="39"><font color="#000000"><a href='<c:out value="${viewAdv}"/>'><c:choose><c:when test="${listorder.orderstatus_name=='1'}"><c:out value="完成" /></c:when><c:otherwise><c:out value="未完成" /></c:otherwise></c:choose></font></td>
    </tr>
    </c:forEach>
    <c:forEach var="p" begin="1" end="${pages}" step="1">
      <c:url value="/PageAction.do" var="page">
        <c:param name="begin" value="${(p-1)*7}" />
        <c:param name="order" value="true"/> </c:url>
        <a href="<c:out value="${page}"/>" ><c:out value="${p}" />
    </c:forEach>
  </table>
  <p>

  <div align="left">
	  <input type="button" value="选中所有" name="button" onClick= "selectAll('orders')"/>
	  <input type="button" value="删除" name="B3" onClick= "dodel()"/>
</div>
</p></form>
</body>

</html>

⌨️ 快捷键说明

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