<%@ page language="java" import="java.util.*" import="com.foodproject.model.*" pageEncoding="utf-8"%>
<%
Restaurant restaurant = (Restaurant)request.getAttribute("restaurant");
List order = (List)request.getAttribute("order");
Map tMap = (Map)request.getAttribute("tMap");
Map restaurantDishMap = (Map)request.getAttribute("restaurantDishMap");
String menuPrint = (String)request.getAttribute("menuPrint");
String smokePrint = (String)request.getAttribute("smokePrint");
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>打印订单</title>
<style>
.modal-body{
background: #FCFCFC;
margin: 0 auto;
}
.modal-body-background{
background-size:5px;
height: 5px;
width: 100%;
text-align: center;
line-height: 5px;
}
#top{
display: inline;
text-align:center;
background: #FCFCFC;
padding-bottom:-1em;
}
.modal-body p{
text-align: left;
line-height: 6px;
margin-left: -3px;
}
.foodname{
width: 50%;
text-align: left;
}
.foodnum{
width: 25%;
text-align: center;
}
.foodprice{
width: 25%;
text-align: center;
}
</style>
</head>
<body>
<div class='modal-body updatetableform'>
<div>
<div class="modal-body-background" style="margin-top: 20px;">
<div id="top">体验店</div>
<hr style="border : 1px dashed;" />
</div>
<div class="position" style="margin-top: 25px;">订单编号:<span>orderNumber</span></div>
<div class="position">订单时间:<span>orderTime</span></div>
</div>
<div >
<div class="modal-body-background">
<hr style="border : 1px dashed;" />
</div>
<div>姓名:<span>小明</span></div>
<div>手机号:<span>手机号</span></div>
<div>姓名:<span>小明</span></div>
<div>消费时间:<span>消费时间</span></div>
<div>用餐人数:<span>人数</span></div>
<div>预定位置:<span>预定位置</span></div>
</div>
<div >
<div class="modal-body-background" style="margin-bottom: 4px">
<hr style="border : 1px dashed;" />
</div>
<table style="width: 100%;">
<thead>
<tr>
<th class="foodname">菜名</th>
<th class="foodprice">份数</th>
<th class="foodnum">价格</th>
</tr>
</thead>
</table>
<hr style="border:1px dotted #036;"/>
<table style="width: 100%;">
<tbody>
<c:forEach items="${item.key.orderDishes}" var="dish">
<tr>
<td class="foodname">青菜</td>
<td class="foodnum">200</td>
<td class="foodprice">300</td>
</tr>
</c:forEach>
<tr>
<td class="foodname">优惠券</td>
<td style="width: 50%;text-align:center;padding-left: 25%;" colspan="2">200</td>
</tr>
<tr>
<td class="foodname">总额</td>
<td style="width: 50%;text-align:center;padding-left: 25%;" colspan="2">200</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-body-background" style="margin-top: 20px;">
<hr style="border : 1px dashed;" />
<div id="top">盘中餐</div>
</div>
</div>
</body>
</html>
<%
Restaurant restaurant = (Restaurant)request.getAttribute("restaurant");
List order = (List)request.getAttribute("order");
Map tMap = (Map)request.getAttribute("tMap");
Map restaurantDishMap = (Map)request.getAttribute("restaurantDishMap");
String menuPrint = (String)request.getAttribute("menuPrint");
String smokePrint = (String)request.getAttribute("smokePrint");
%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>打印订单</title>
<style>
.modal-body{
background: #FCFCFC;
margin: 0 auto;
}
.modal-body-background{
background-size:5px;
height: 5px;
width: 100%;
text-align: center;
line-height: 5px;
}
#top{
display: inline;
text-align:center;
background: #FCFCFC;
padding-bottom:-1em;
}
.modal-body p{
text-align: left;
line-height: 6px;
margin-left: -3px;
}
.foodname{
width: 50%;
text-align: left;
}
.foodnum{
width: 25%;
text-align: center;
}
.foodprice{
width: 25%;
text-align: center;
}
</style>
</head>
<body>
<div class='modal-body updatetableform'>
<div>
<div class="modal-body-background" style="margin-top: 20px;">
<div id="top">体验店</div>
<hr style="border : 1px dashed;" />
</div>
<div class="position" style="margin-top: 25px;">订单编号:<span>orderNumber</span></div>
<div class="position">订单时间:<span>orderTime</span></div>
</div>
<div >
<div class="modal-body-background">
<hr style="border : 1px dashed;" />
</div>
<div>姓名:<span>小明</span></div>
<div>手机号:<span>手机号</span></div>
<div>姓名:<span>小明</span></div>
<div>消费时间:<span>消费时间</span></div>
<div>用餐人数:<span>人数</span></div>
<div>预定位置:<span>预定位置</span></div>
</div>
<div >
<div class="modal-body-background" style="margin-bottom: 4px">
<hr style="border : 1px dashed;" />
</div>
<table style="width: 100%;">
<thead>
<tr>
<th class="foodname">菜名</th>
<th class="foodprice">份数</th>
<th class="foodnum">价格</th>
</tr>
</thead>
</table>
<hr style="border:1px dotted #036;"/>
<table style="width: 100%;">
<tbody>
<c:forEach items="${item.key.orderDishes}" var="dish">
<tr>
<td class="foodname">青菜</td>
<td class="foodnum">200</td>
<td class="foodprice">300</td>
</tr>
</c:forEach>
<tr>
<td class="foodname">优惠券</td>
<td style="width: 50%;text-align:center;padding-left: 25%;" colspan="2">200</td>
</tr>
<tr>
<td class="foodname">总额</td>
<td style="width: 50%;text-align:center;padding-left: 25%;" colspan="2">200</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-body-background" style="margin-top: 20px;">
<hr style="border : 1px dashed;" />
<div id="top">盘中餐</div>
</div>
</div>
</body>
</html>