<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%> 
<%@ include file="../common/init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="${ctx}/resources/css/main.css"type="text/css" media='screen' />
<link rel='stylesheet' href='${ctx}/resources/css/user-center-style.css' type='text/css' media='screen' />
<link rel='stylesheet' href='${ctx}/resources/js/jqueryPrintPreview/css/print-preview.css' type='text/css' media='screen' />
<link rel='stylesheet' href='${ctx}/resources/js/jqueryPrintPreview/css/screen.css' type='text/css' media='screen' />

<link rel="stylesheet" href="${ctx}/resources/css/main.css" type="text/css" media='print' />
<link rel='stylesheet' href='${ctx}/resources/css/user-center-style.css' type='text/css' media='print' />
<link rel='stylesheet' href='${ctx}/resources/js/jqueryPrintPreview/css/print.css' type='text/css' media='print' />

<%@ include file="../common/top.jsp"%>
<script type="text/javascript" src="${ctx}/resources/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="${ctx}/resources/js/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/resources/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx}/resources/js/papers/batchPaper.js"></script>
<script type="text/javascript" src="${ctx}/resources/js/jqueryPrintPreview/jquery.print-preview.js"></script>
<%@ include file="../common/validation.jsp"%>
<title>打印试卷条码</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style media=print>
.Noprint {
	display: none;
}

.PageNext {
	page-break-after: always;
}
.PageHead{
	padding-top: 0px;
}
</style>

<style>
.tdp {
	border-bottom: 1 solid #000000;
	border-left: 1 solid #000000;
	border-right: 0 solid #ffffff;
	border-top: 0 solid #ffffff;
}

.tabp {
	border-color: #000000 #000000 #000000 #000000;
	border-style: solid;
	border-top-width: 2px;
	border-right-width: 2px;
	border-bottom-width: 1px;
	border-left-width: 1px;
}

.NOPRINT {
	font-family: "宋体";
	font-size: 9pt;
}
</style>
<script>
$(document).ready(function(){
	/* var winHeight=$(window).height();
	console.log(winHeight);
	$(".PrtDiv").height(1140/4); */
	//document.all.WebBrowser.ExecWB(7,1);
});
</script>
</head>
<body>
	
	<c:forEach items="${papers}" var="paper"  varStatus="status">
		<c:if test="${(status.index) % 2 eq 1}">
			<div style="float: left;width: 50%;padding-top: 45px;padding-bottom:45px;" align="center" class="PrtDiv">
				<p><img src="${ctx}/examPaper/printCode/msg=${paper.code}"  style="height: 100px;width: 250px;"/></p>
				<p style="font-size: 20px;font-family: 楷体">${paper.courseName} </p>
				<p style="font-size: 10px;font-family: 楷体;"><fmt:formatDate value="<%=new Date() %>"  pattern="yyyy/MM/dd HH:mm:ss" /></p>
			</div>
		</c:if>	
		<c:if test="${(status.index) % 2 eq 0}">
			<div style="float: left;width: 50%;padding-top: 45px;padding-bottom: 45px;" align="center" class="PrtDiv">
				<p><img src="${ctx}/examPaper/printCode/msg=${paper.code}"  style="height: 100px;width: 250px;"/></p>
				<p style="font-size: 20px;font-family: 楷体">${paper.courseName} </p>
				<p style="font-size: 10px;font-family: 楷体;"><fmt:formatDate value="<%=new Date() %>"  pattern="yyyy/MM/dd HH:mm:ss" /></p>
			</div>
		</c:if>	 	
		
		<c:if test="${(status.index+1) % 8 eq 0}">
			<!-- <hr align="center" width="90%" size="1" noshade class="NOPRINT">  -->
			<!--分页-->
			<div class="PageNext"></div>
			<div class="PageHead"></div>
		</c:if>
	</c:forEach>
</body>
</html>