<!DOCTYPE html>
<!--[if IE 9]>         <html class="ie9 no-focus" lang="zh"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-focus" lang="zh"> <!--<![endif]-->
<head>
    <meta charset="utf-8">

    <title>Jump tips | 商城管理后台</title>

    <meta name="robots" content="noindex, nofollow">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0">

    <!-- Icons -->
    <!-- The following icons can be replaced with your own, they are used by desktop and mobile browsers -->
    <link rel="shortcut icon" href="/static/img/favicons/favicon.png">
    <!-- END Icons -->

    <!-- Stylesheets -->
    <!-- Bootstrap and OneUI CSS framework -->
    <link rel="stylesheet" href="/static/admin/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/admin/css/oneui.css">
    <link rel="stylesheet" href="/static/admin/css/dolphin.css">
    <!-- END Stylesheets -->
</head>
<body>
<!-- Error Content -->
<div class="content bg-white text-center pulldown overflow-hidden">
    <div class="row">
        <div class="col-sm-6 col-sm-offset-3">
            <!-- Error Titles -->
            <h1 class="font-w300 text-city push-10 animated flipInX"><i class="fa fa-times-circle"></i> 页面错误</h1>
            <p class="font-w300 push-20 animated fadeInUp">page auto <a id="href" href="javascript:history.back(-1);">jump</a> waiting time: <b id="wait">1</b>second</p>
            <div class="push-50">
                <a class="btn btn-minw btn-rounded btn-success" href="javascript:history.back(-1);"><i class="fa fa-external-link-square"></i> jump now</a>
                <button class="btn btn-minw btn-rounded btn-warning" type="button" onclick="stop()"><i class="fa fa-ban"></i> No jumps</button>
                <a class="btn btn-minw btn-rounded btn-default" href="/index.php"><i class="fa fa-home"></i> Back to Home</a>
            </div>
            <!-- END Error Titles -->

        </div>
    </div>
</div>
<!-- END Error Content -->

<!-- Error Footer -->
<div class="content pulldown text-muted text-center">
    
</div>
<!-- END Error Footer -->

<script type="text/javascript">
    (function(){
        let wait  = document.getElementById('wait'),
            href  = document.getElementById('href').href,
            pop   = ''; //获取窗口索引

        let interval = setInterval(function(){
            let time = --wait.innerHTML;
            if(time <= 0) {
                if (pop === '1' && parent.layer !== undefined) {
                    let index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
                } else {
                    location.href = href;
                }
                clearInterval(interval);
            }
        }, 1000);

        // 禁止跳转
        window.stop = function (){
            clearInterval(interval);
        }
    })();
</script>
</body>
</html>