📄 editorder.jsp
字号:
<%@ page contentType="text/html;charset=GBK"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>untitled</title>
<link href="css/jdeveloper.css" rel="stylesheet" media="screen"/>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" width="578" align="left">
<tr>
<td>
<H1 align="center">修改订单</H1>
<P>
<%@ page import="java.sql.*"%>
<%@ page import="Flower.model.DBConnect"%>
</P>
<form action="cartservlet" method="post">
<table cellspacing="0" cellpadding="0" border="1" width="80%" align="center">
<%
Connection con=null;
PreparedStatement pstmt=null;
ResultSet rs=null;
con=DBConnect.getConnection();
pstmt=con.prepareStatement("select * from OrderMain where Orderid=?");
pstmt.setString(1,request.getParameter("orderid"));
rs=pstmt.executeQuery();
while(rs.next())
{
%>
<tr>
<td width="22%">订单编号:</td>
<td width="78%">
<input type="text" value="<%=rs.getString(1)%>" name="orderid" readonly/>
</td>
</tr>
<tr>
<td width="22%">是否付款:</td>
<td width="78%">
<select name="payflag">
<%
if(rs.getString(6).equals("是"))
{
%>
<option value="是" selected="selected">是</option>
<option value="否">否</option>
<%
}
else
{
%>
<option value="是" >是</option>
<option value="否" selected="selected">否</option>
<%
}
%>
</select>
</td>
</tr>
<tr>
<td width="22%">是否发货:</td>
<td width="78%">
<select name="flag">
<%
if(rs.getString(7).equals("已发货"))
{
%>
<option value="已发货" selected="selected">已发货</option>
<option value="未发货">未发货</option>
<%
}
else
{
%>
<option value="已发货" >已发货</option>
<option value="未发货" selected="selected">未发货</option>
<%
}
%>
</select>
</td>
</tr>
<%
}
rs.close();
pstmt.close();
con.close();
%>
<tr>
<td width="22%">
<FONT color="#0033cc">系统提示:</FONT>
</td>
<td width="78%">
<%
String result="请注意系统提示";
if(request.getAttribute("result")!=null)
{
result=request.getAttribute("result").toString();
}
%>
<font color="red"><%=result%></font>
</td>
</tr>
<tr>
<td width="22%"> </td>
<td width="78%">
<input type="submit" value="提交"/>
<input type="reset" value="重置"/>
<input type="hidden" name="action" value="editordermain"/>
</td>
</tr>
</table>
</form>
<P> </P>
<P> </P>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -