<%@page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.net.URLDecoder"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title></title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" type="text/css" href="<%=basePath %>css/tab.css">
<link rel="stylesheet" type="text/css" href="<%=basePath %>css/table_list.css">
<script type="text/javascript" src="<%=basePath %>js/tab.js"></script>
<script type="text/javascript" src="<%=basePath %>js/jquery-1.8.0.min.js"></script>
<style>
input,select,textarea{
outline:none;
}
input:-webkit-autofill{
-webkit-box-shadow: 0 0 0px 1000px white inset;}
.input,.select {
margin-left:5px;
border-style:none;
border-bottom:1px dashed #000;
margin-left:10px;
width:300px;
}
table{
margin-top:5px;
margin-left:5px;
font-size:12px;
text-align:center;
}
table tr td{
height:25px;
line-height:25px;
}
.tool{
font-size:12px;
height:35px;
line-height:35px;
}
.add{
height:25px;
width:50px;
margin-top:5px;
}
</style>
<script>
function selectAll(){
var Ids = document.getElementsByName("id");
var flag = document.getElementById("flag");// 最上面那个用来控制全选操作的
if(Ids != ''){
for(var i=0;i<Ids.length;i++){
Ids[i].checked =flag.checked;
}
}
}
</script>
</head>
<body>
${
flag }
<div class="toolbar">
<c:choose>
<c:when test="${ flag == 'N' }">
<a href="label/zxLabelIndex.do?_dingdan=${zxLab._dingdan}&flag=Y">待打印标签</a>
</c:when>
<c:otherwise>
<a href="label/zxLabelIndex.do?_dingdan=${zxLab._dingdan}&flag=N">已打印标签</a>
</c:otherwise>
</c:choose>
<a href="<%=basePath%>label/zxLabel.do">中箱标签首页</a>
<a href="javascript:window.location.reload();">刷新</a>
</div>
<div class="toolbar">
<c:choose>
<c:when test="${zxLab._printflag == 'N' }">
<font style="font-size: 12px;color:red">待打印中箱标签(${
order})份</font>
</c:when>
<c:otherwise>
<font style="font-size: 12px;color:blue">已打印中箱标签(${
order})份</font>
</c:otherwise>
</c:choose>
</div>
<form id="form" name="form" action="<%=basePath %>label/toPrintZx.do" method="post">
<table cellpadding="0" cellspacing="1" bgcolor="#000">
<tr bgcolor="#efefef" height="25">
<td width="60">序号 <input id="flag" type="checkbox" onclick="selectAll();" /></td>
<td width="160">P/N</td>
<td width="160">中箱序号</td>
<td width="160">订单号</td>
<td width="160">LOT1</td>
<td width="160">QTY1</td>
<td width="160">LOT2</td>
<td width="160">QTY2</td>
<td width="160">D/C</td>
<td width="120">管理</td>
</tr>
<%int i = 0; %>
<c:forEach items="${list }" var="zx">
<%i++; %>
<%if(i%2==0){
%>
<tr class="tr one">
<%}else{
%>
<tr class="tr two">
<%} %>
<td><%=i %> <input type="checkbox" id="id<%=i %>" name="id" value="${zx._id}"></td>
<td>
${
zx._protype}
</td>
<td>
${
zx._rel}
</td>
<td>
${
zx._dingdan }
</td>
<td>
${
zx._lot1 }
</td>
<td>
${
zx._qty1 }
</td>
<td>
${
zx._lot2 }
</td>
<td>
${
zx._qty2 }
</td>
<td>
${
zx._yw}
</td>
<td>
${
zx._dingdan}
<a href="<%=basePath%>label/toBackToLab.do?_id=${zx._id}&_dingdan=${zx._dingdan}" onclick="{if(confirm('你确定退回吗?')){return true;}return false}">退回</a>
</td>
</tr>
</c:forEach>
</table>
<div>
<input type="button" value="提交已打印" onclick="document.getElementById('form').submit();">
</div>
</form>
</body>
</html>
button提交 form表单
猜你喜欢
转载自blog.csdn.net/liufeifeihuawei/article/details/108404078
今日推荐
周排行