1745f3212055473b04fbde9dc47f4c1a.php
2.2 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
49
<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:67:"D:\PHPTutorial\WWW\xkeasy\simplewind\thinkphp\tpl\dispatch_jump.tpl";i:1547883254;}*/ ?>
<!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>
<title>跳转提示</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="HandheldFriendly" content="true" />
<meta name="MobileOptimized" content="320" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="/plugins/yim_e404/css/dandelion.css" media="screen" />
</head>
<body>
<div id="da-wrapper" class="fluid">
<!-- Content -->
<div id="da-content">
<!-- Container -->
<div class="da-container clearfix">
<div id="da-error-wrapper">
<div id="da-error-pin"></div>
<?php switch($code): case "1": ?>
<div id="da-error-code">success <span>☺</span></div>
<?php break; case "0": ?>
<div id="da-error-code">error <span>☹</span></div>
<?php break; default: ?>
<div id="da-error-code">^-^ <span><?php echo $code; ?></span></div>
<?php endswitch; ?>
<h1 class="da-error-heading"><?php echo(strip_tags($msg));?></h1>
<?php if(!(empty($url) || (($url instanceof \think\Collection || $url instanceof \think\Paginator ) && $url->isEmpty()))): ?>
<p>页面自动: <a id="href" href="<?php echo $url; ?>">跳转</a> 等待时间: <b id="wait"><?php echo $wait; ?></b>
<?php endif; ?>
</div>
</div>
</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>