<!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>
    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-COMPATIBLE" content="IE=edge,chrome=1"/>
    <meta content="text/html; charset=UTF-8">
    <meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>{:lang('jump_hint')}</title>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/seller_center.css"/>
    <style>
        .jump-message-content {
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
            position: fixed;
            text-align: center;
        }
        .jump-message-content .system-message {
            height: 80px;
            position: relative;
            top: 50%;
            margin-top: -40px;
            overflow: hidden;
            display: inline-block;
        }
        
        .jump-message-content .system-message img {
            float: left;
            height: 80px;
        }
        
        .jump-message-content .system-message ul {
            float: left;
            margin-left: 10px;
        }
        
        .jump-message-content .system-message ul li.error-msg {
            height: 50px;
            list-style: none;
            text-align: left;
            font-size: 35px;
            font-weight: bold;
        }
        
        .jump-message-content .system-message ul li.jump-wait-meg {
            height: 25px;
            list-style: none;
            text-align: left;
            font-size: 14px;
            line-height: 25px;
        }
        
        .jump-message-content .system-message ul li.jump-wait-meg a#href {
            color: #ff0000
        }
        
        @media screen and (max-width: 980px) {
            .jump-message-content .system-message img {
                height: 50px;
                margin-left: 10px;
            }
            
            .jump-message-content .system-message ul {
                margin-left: 70px;
                float: none;
            }
            
            .jump-message-content .system-message ul li.error-msg {
                font-size: 16px;
                height: 25px;
            }
            
            .jump-message-content .system-message ul li.jump-wait-meg {
                font-size: 12px;
                margin-top: 10px;
            }
        }
    </style>
</head>
<body>
<div class="jump-message-content">
    <div class="system-message">
        <img src="__STATIC__/images/error_message.png" alt="" />
        <ul>
            <?php switch ($code) {?>
                <?php case 0:?>
                <li class="error-msg"><?php echo(strip_tags($msg));?></li>
            <?php } ?>
            <li class="jump-wait-meg">{:lang('page_automation')} <a id="href" href="<?php echo($url);?>">{:lang('jump')}</a> {:lang('waiting_time')}： <b id="wait"><?php echo($wait);?></b></li>
        </ul>
    </div>
</div>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),
            href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>