403.php
1.68 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
50
51
52
53
54
55
56
<?php
use yii\helpers\Url;
?>
<style>
.error-wrap{margin:0 auto;width:1100px;margin-top: 100px}
</style>
<div class="error-wrap">
<div style="width: 650px;float: left">
<h1 style="margin-top: 0">您没有权限访问该页面,请联系管理员开通</h1>
<div style="font-size: 20pt">我们将在<span id="num" class="text-danger">10</span>秒后为您跳转回登陆页面</div>
<div style="line-height: 28px;margin-top: 70px;font-size: 18px">
<p>在使用系统的过程中:</p>
<p>1.遇到问题</p>
<p>2.有好的建议</p>
<p style="margin-bottom:60px">请联系管理员。</p>
<p style="margin-bottom: 30px"> 邮箱:tech@xxx.com</p>
---- OTA技术部(求约)
</div>
</div>
<div style="width: 450px;float: left;">
<div style="margin: 0 0 40px 50px"><img style="width: 200px; height: 200px;" src="<?=Yii::$app->request->BaseUrl ?>/images/error-logo.png" /></div>
</div>
<div style="clear: both"></div>
</div>
<script>
function countDown(period, intv, callback) {
var num = document.getElementById("num");
var timeRemain = period - 1;
var setText = function (text) {
num.innerHTML = text;
}
var t = setInterval(function () {
setText(timeRemain);
timeRemain -= 1;
if (timeRemain < 0) {
clearInterval(t);
if (callback) {
callback();
}
}
}, intv);
}
countDown(10, 1000, function () {
location.href = "<?php echo Url::home() . "dashboard"; ?>";
});
</script>