scanss.jsp 1.33 KB
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>

<title>shishi </title>
<meta name="decorator" content="default"/> 
<script src="${ctxStatic}/jquery/jquery.webcam.min.js" type="text/javascript"></script>
<style type="text/css">
  div{
    text-align: center;
    vertical-align: middle;
  }
  
</style>
<script type="text/javascript">

function takepho(){
	var ywhpic = "${ywh}";
	var iWidth=400; 
   	var iHeight=350;
   	var iTop = (window.screen.height - 30 - iHeight) / 2;
   	var iLeft = (window.screen.width - 10 - iWidth) / 2;
	window.open("${ctx}/reg/bus/uploadExamPic/scan?ywh="+ywhpic,"newwindow",
			"height="+ iHeight +",width="+ iWidth +",top="+ iTop +",left="+ iLeft +",toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=no");
}


</script>
</head>
<body>


<div class="control-group">
		<c:forEach items="${listpic}" var="pic">
		<a href="/file/${pic}?ma=${math}" target="_blank">${pic}
		</a>
		<c:if test="${fn:contains(pic,'-10') and taskkey eq 'reg_start'}">
		<a href="${ctx}/reg/bus/uploadExamPic/delpho?picname=${pic}&ywh=${ywh}&picid=${taskkey}" >x
		</a></c:if><br>
		</c:forEach>
		<c:if test="${taskkey eq 'reg_start'}">	
        <input type="button" id="button" value="拍照" onclick="takepho()"/>
     </c:if>
 </div>         
</body>

</html>