<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="refresh" content="<?php echo $time ?>;url=<?php echo $url ?>">
		<meta charset="UTF-8">
		<title></title>
	</head>
	<style>
		.msg_ok{
			position: absolute;
			z-index: 1;
			left: 20%;
			right: 20%;
			top: 30%;
			background-color: #009688;
			border-radius: 5px;
			height: 200px;
		}
		.msg_ok .msg{
			line-height: 100%;
			color: #fff;
			position:  absolute;
			line-height: 45px;
			text-align: center;
			width: 100%;
			font-weight: bold;
			margin-top: 30px;
		}
		.msg_ok .msg a{
			color: #fff;
		}
		#timer{
			color: #23232E;
			padding-right: 10px;
		}
	</style>
	<body>
		<div class="msg_ok">
			<div class="msg">
				<div><?php echo $msg ?></div>
				<div><span id="timer"><?php echo $time ?></span>秒后返回上一页</div>
				<div><a href="<?php echo $url ?>">立即返回</a></div>
			</div>
		</div>
	</body>
	<script language="javascript" type="text/javascript">
	function run() {
        var s = document.getElementById("timer");
        s.innerHTML = s.innerHTML * 1 - 1;
	}
	window.setInterval("run();", 1000);
	</script>
</html>