<!doctype html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="utf-8">
<title th:text="个体企业执照自助打印终端"></title>
    <link href="/Content/css/f_css.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="/YtjCommon/css/style1.css">

    <script src="/Content/static/js/jquery-2.0.3.min.js"></script>
    <script src="/Content/Scripts/learunui-framework.js"></script>

    <!--弹出提示框 star-->
	<link rel="stylesheet" href="/Content/Alert/js/SyntaxHighlighter/shCoreDefault.css">
	<link rel="stylesheet" href="/Content/Alert/css/alert.css">
	<link rel="stylesheet" href="/Content/Alert/css/style.css">
	<script src='/Content/Alert/js/SyntaxHighlighter/shCore.js'></script>
	<script src='/Content/Alert/js/SyntaxHighlighter/makeSy.js'></script>
	<script src='/Content/Alert/js/alert.min.js'></script>
	<script src='/Content/Alert/js/alert-api.js'></script>
    <!--弹出提示框 end-->
    <link rel="stylesheet" type="text/css" href="/Content/css/iconfont.css">
    <link href="/Content/css/public.css" rel="stylesheet" />

   <script src="/Content/JS/IDCard.js"></script>
    <script src="/Content/JS/main.js"></script>
    <script src="/Content/static/js/Cxidreader.js"></script>
    <script src="/Content/static/js/public.js"></script>

    <bgsound loop="1" src="/Content/music/cardtips.wav"></bgsound>

</head>

<body onbeforeunload="stopIdCard()"  onselectstart="return false">
<header>
 <h2 class="title fl tit-con"th:text="${city}+'个体企业执照自助打印终端'"></h2>
 <button class="fr fan"  th:onclick="'javascript:goBack()'">返回首页</button>
</header>
<div class="PromptBox">

    <div class="Animation">
        <div class="lInductionId">
            <img src="/Content/img/induction-id.png" width="100%" height="100%">
        </div>
        <div class="lIdCard">
            <img src="/Content/img/id-card.png" width="100%" height="100%">
        </div>
    </div>
    <p>请在指定区域识别身份证信息</p>
</div>
<div style="position:absolute;right:5%;bottom:10px;"><span class="fl dao" id="agree_btn">本页将在60秒后返回首页</span><a class="btn-fan fl" onclick="goBack()">上一步</a></div>
<script>
    var secs = 120;
    //document.agree.agreeb.disabled=true;
    for (var i = 0; i <= secs; i++) {
        window.setTimeout("update(" + i + ")", i * 1000);
    }
    function update(num) {
        if (num == secs) {
            // 超时返回到首页
            // window.href = "../../index.html";
            stopidcard();
            location.href = "/Ytj/GsYw";

        }
        else {
            var printnr = secs - num;
            //document.agree.agreeb.value = "本页受理倒计时:" + printnr+"秒！";
            //document.agree.agreeb.innerHTML = "本页受理倒计时:" + printnr+"秒！";

            var testdiv = document.getElementById("agree_btn");
            testdiv.innerHTML = "本页将在" + printnr + "秒后返回首页";
        }
    }

    function showtime(t) {
        document.myform.phone.disabled = true;
        for (i = 0; i <= t; i++) {
            window.setTimeout("update_p(" + i + "," + t + ")", i * 1000);
        }

    }
    function goBack() {
        stopidcard();
        window.location.href = "/";
        //history.go(-1);
    }
</script>
</body>
</html>
