83ce7cc495224bdceed4bc9b986727a00ff34e4b.svn-base
1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<%@ 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>