updateorder.jsp

来自「简单实现的商品购物系统」· JSP 代码 · 共 25 行

JSP
25
字号
<%@ page contentType="text/html; charset=GBK" %>
<jsp:useBean id="con" scope="page" class="bookshop.ConsigneeBean"/>
<%
  String id= request.getParameter("orderid");
 String action= request.getParameter("action");
 int dd=0;
 String str="";
 if(action.equals("del"))

  str="delete Consignee where orderid='"+id+"'";
 else
 {
      String ispay= request.getParameter("txtispay");
      String issales= request.getParameter("txtissales");
      str="update Consignee set ispay='"+ispay+
      "',issales='"+issales+"',consigndate=getdate() where orderid='"+id+"'";

 }
  dd= con.exeConsignee(str);
%>
<script type="">
alert("订单信息更新成功!");
location.href="admin_main.jsp";
</script>

⌨️ 快捷键说明

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