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.

95 lines
3.6 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 user=(String)session.getAttribute("user");
if(user==null){
response.sendRedirect(path+"/error.jsp");
}
else{
String ddid=(String)request.getAttribute("ddid");
List pagelist3=tb.gegComMethod("select sale.dz,prep.* from sale,prep where prep.ddid='"+ddid+"' and prep.title=sale.title order by prep.id desc",11);
%>
<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>
</tr>
<%float f=0;
if(!pagelist3.isEmpty()){
for(int i=0;i<pagelist3.size();i++){
List pagelist2 =(ArrayList)pagelist3.get(i);
f+=Float.parseFloat(pagelist2.get(0).toString())*Integer.parseInt(pagelist2.get(3).toString());
%>
<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(2).toString() %></td>
<td align="center" bgcolor="#FFFFFF" style="border-bottom:1px dotted #ccc;"><%=pagelist2.get(0).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;"><%=pagelist2.get(9).toString() %></td>
</tr>
<%
}}
%>
</table>
</TD>
</TR>
</TBODY>
</TABLE>
<p align=center>订单总金额:<%=f %> 元
</BODY>
<%} %>
</HTML>