You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
3.9 KiB

<%@ page language="java" import="java.util.*" contentType="text/html;charset=gb2312"%>
<jsp:useBean id="sn" scope="page" class="com.bean.SystemBean" />
<jsp:useBean id="tb" scope="page" class="com.bean.HzpBean" />
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String dir=sn.getDir();
%>
<HTML><HEAD><TITLE>后台操作区</TITLE>
<LINK href="<%=basePath %><%=dir %>/images/Admin_Style.css" type=text/css rel=stylesheet>
<LINK href="<%=basePath %><%=dir %>/images/style.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript src="<%=basePath %><%=dir %>/images/Common.js"></SCRIPT>
<STYLE type=text/css>
BODY {
MARGIN-LEFT: 0px; BACKGROUND-COLOR: #ffffff
}
.STYLE1 {color: #ECE9D8}
</STYLE>
</HEAD>
<script type="text/javascript">
function del()
{
pageform.submit();
}
</script>
<%
String message = (String)request.getAttribute("message");
if(message == null){
message = "";
}
if (!message.trim().equals("")){
out.println("<script language='javascript'>");
out.println("alert('"+message+"');");
out.println("</script>");
}
request.removeAttribute("message");
%>
<%
String member=(String)session.getAttribute("member");
if(member==null){
response.sendRedirect(path+"/error.jsp");
}
else{
List pagelist3=tb.getMyPrep("select * from prep where member='"+member+"' and zt='未提交' order by id desc");
%>
<BODY >
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align="left" vAlign=top >
<table width='100%' cellspacing='1' cellpadding='3' bgcolor='#CCCCCC' class="tablewidth">
<tr class="head">
<td width="10%" align="center">编号</td>
<td align="center">菜品名称</td>
<td align="center">订购数量</td>
<td align="center">送货时间</td>
<td align="center">送货地点</td>
<td align="center">联系人</td>
<td align="center">联系方式</td>
<td align="center">预订时间</td>
<td align="center">修改</td>
<td align="center">删除</td>
</tr>
<%
if(!pagelist3.isEmpty()){
for(int i=0;i<pagelist3.size();i++){
List pagelist2 =(ArrayList)pagelist3.get(i);
%>
<tr class="trA" onMouseOver="this.className='trB'" onMouseOut="this.className='trA'">
<td width='10%' align="center" style="border-bottom:1px dotted #ccc;"><%=i+1 %></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(1).toString() %></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(2).toString() %></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(3).toString() %></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(4).toString() %></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(5).toString() %></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(6).toString() %></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(7).toString() %></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><a href="<%=basePath %>member/prep/up.jsp?id=<%=pagelist2.get(0).toString()%>">修改</a></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><a href="<%=basePath %>NewsServlet?method=delPrep&id=<%=pagelist2.get(0).toString()%>">删除</a></td>
</tr>
<%
}}
%>
</table>
</TD>
</TR>
</TBODY>
</TABLE>
<form action="<%=basePath %>NewsServlet?method=addDD" method="post" name="form1" >
<p align=center>付款方式:<input type=radio name=fkfs value="银行转账" checked> 银行转账 <input type=radio name=fkfs value="货到付款" > 货到付款
<br><br>
<p align=center><input type=submit onclick="f1()" value="生成订单并提交"></TD>
</form>
</BODY>
<%} %>
</HTML>