-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
123 lines (109 loc) · 4.69 KB
/
home.html
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
<link href="./fontawesome/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./css/home.css">
<link rel="stylesheet" href="components/layui/css/layui.css" media="all">
<link rel="stylesheet" href="components/bootstrap-3.3.7/css/bootstrap.css" media="all">
<link rel="stylesheet" href="./css/bootstrap-table.css" media="all">
<link rel="stylesheet" href="./css/jquery-ui-1.10.4.custom.min.css" media="all">
</head>
<body>
<div class="parent">
<div class="top">
<div class="top-left" style="padding-left: 5px;">
<div class="fl" style="position: relative;top: 12px;"><img src="./images/login/logo.gif" width="35px"
height="35px"></div>
<div class="top-left-text">中金岭南凡口铅锌矿选矿厂信息化系统</div>
<div class="navigations fl">
<ul>
</ul>
</div>
</div>
<div class="fr vertical_center" style="height: auto;">
<!--个人中心-->
<div class="vertical_center fl" style="height: 100%;border-left: 1px #ffffff dotted;">
<div style="padding: 15px;">
<a class="text_center" href="#" style="color: white;font-size: 22px;" id="personal_center">
<i class="fa fa-cog"></i>
</a>
</div>
</div>
<!--用户角色-->
<div style="border-left: 1px #ffffff dotted;border-right: 1px #ffffff dotted;" class="fl">
<div style="padding: 0 10px 0 10px;height: 100%;" class="vertical_center">
<span id="user_role"></span>
</div>
</div>
<!--退出登录-->
<div class="vertical_center fl" style="height: 100%;">
<div style="padding:15px;">
<a href="#" id="exit" style="color: white;font-size: 22px;">
<i class="fa fa-sign-out"></i>
</a>
</div>
</div>
<div style="clear: both;"></div>
</div>
</div>
<div class="left">
<div class="menus1" style="height:93%;overflow-y: auto;">
<div>
<i class="fa fa-bars"></i><span> 菜单</span>
</div>
<ul>
</ul>
</div>
</div>
<div class="right">
</div>
</div>
<script src="./js/jquery.min.js"></script>
<script src="components/layer/layer/layer.js" charset="utf-8"></script>
<script src="components/layui/layui.all.js" charset="utf-8"></script>
<script src="./js/jquerysession.js"></script>
<script src="components/bootstrap-3.3.7/js/bootstrap.min.js"></script>
<script src="components/bootstrapTable/bootstrap-table.min.js"></script>
<script src="components/bootstrapTable/locale/bootstrap-table-zh-CN.min.js"></script>
<script src="./js/servers.js"></script>
<script src="./js/home.js"></script>
<script src="./js/Chart.js"></script>
<script src="./js/echarts.min.js"></script>
<script src="./js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="application/javascript">
$(function () {
(function () {
Date.prototype.Format = function (fmt) { //author: meizz
var o = {
"M+": this.getMonth() + 1, //月份
"d+": this.getDate(), //日
"h+": this.getHours(), //小时
"m+": this.getMinutes(), //分
"s+": this.getSeconds(), //秒
"q+": Math.floor((this.getMonth() + 3) / 3), //季度
"S": this.getMilliseconds() //毫秒
};
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
}
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt))
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
})()
var userStr = $.session.get('user')
if(!userStr) {
document.location = './login.html'
}
var userJson = JSON.parse(userStr)
//console.log(userJson)
var navigationsWrapper = $('.navigations ul')
var menu1Wrapper = $('.menus1 ul')
// $("#user_role").text(userJson.name)
home.init(userJson, navigationsWrapper, menu1Wrapper)
})
</script>
</body>
</html>