超市小票改进版本

10 篇文章 0 订阅
<%@ 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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值