-
Notifications
You must be signed in to change notification settings - Fork 12
/
Default.html
286 lines (268 loc) · 12.3 KB
/
Default.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台模板</title>
<link href="bootstrap-3.3.5-dist/css/bootstrap.min.css" title="" rel="stylesheet" />
<link title="" href="css/style.css" rel="stylesheet" type="text/css" />
<link title="blue" href="css/dermadefault.css" rel="stylesheet" type="text/css"/>
<link title="green" href="css/dermagreen.css" rel="stylesheet" type="text/css" disabled="disabled"/>
<link title="orange" href="css/dermaorange.css" rel="stylesheet" type="text/css" disabled="disabled"/>
<script src="script/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="script/jquery.cookie.js" type="text/javascript"></script>
<script src="bootstrap-3.3.5-dist/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<nav class="nav navbar-default navbar-mystyle navbar-fixed-top">
<div class="navbar-header">
<button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand mystyle-brand"><span class="glyphicon glyphicon-home"></span></a> </div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="li-border"><a class="mystyle-color" href="#">管理控制台</a></li>
<li class="dropdown li-border"><a href="#" class="dropdown-toggle mystyle-color" data-toggle="dropdown">产品与服务<span class="caret"></span></a>
<!----下拉框选项---->
<div class="dropdown-menu topbar-nav-list">
<div class="topbar-nav-col">
<div class="topbar-nav-item">
<p class="topbar-nav-item-title">弹性计算</p>
<ul>
<li><a href="#">
<span class="glyphicon glyphicon-road"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
<li><a href="#">
<span class="glyphicon glyphicon-picture"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
<li><a href="#">
<span class="glyphicon glyphicon-gift"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
</ul>
</div>
<div class="">
<p class="topbar-nav-item-title">弹性计算</p>
<ul>
<li><a href="#">
<span class="glyphicon glyphicon-road"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
<li><a href="#">
<span class="glyphicon glyphicon-picture"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
<li><a href="#">
<span class="glyphicon glyphicon-gift"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
</ul>
</div>
</div>
<div class="topbar-nav-col">
<div class="topbar-nav-item">
<p class="topbar-nav-item-title">弹性计算</p>
<ul>
<li><a href="#">
<span class="glyphicon glyphicon-road"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
<li><a href="#">
<span class="glyphicon glyphicon-picture"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
<li><a href="#">
<span class="glyphicon glyphicon-gift"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
</ul>
</div>
<div class="">
<p class="topbar-nav-item-title">弹性计算</p>
<ul>
<li><a href="#">
<span class="glyphicon glyphicon-road"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
<li><a href="#">
<span class="glyphicon glyphicon-picture"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
<li><a href="#">
<span class="glyphicon glyphicon-gift"></span>
<span class="">云服务器 ECS</span>
</a>
</li>
</ul>
</div>
</div>
</div>
</li>
</ul>
<ul class="nav navbar-nav pull-right">
<li class="li-border">
<a href="#" class="mystyle-color">
<span class="glyphicon glyphicon-bell"></span>
<span class="topbar-num">0</span>
</a>
</li>
<li class="li-border dropdown"><a href="#" class="mystyle-color" data-toggle="dropdown">
<span class="glyphicon glyphicon-search"></span> 搜索</a>
<div class="dropdown-menu search-dropdown">
<div class="input-group">
<input type="text" class="form-control">
<span class="input-group-btn">
<button type="button" class="btn btn-default">搜索</button>
</span>
</div>
</div>
</li>
<li class="dropdown li-border"><a href="#" class="dropdown-toggle mystyle-color" data-toggle="dropdown">帮助与文档<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">帮助与文档</a></li>
<li class="divider"></li>
<li><a href="#">论坛</a></li>
<li class="divider"></li>
<li><a href="#">博客</a></li>
</ul>
</li>
<li class="dropdown li-border">
<a href="#" class="dropdown-toggle mystyle-color" data-toggle="dropdown">605875855@qq.com
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">退出</a></li>
</ul>
</li>
<li class="dropdown"><a href="#" class="dropdown-toggle mystyle-color" data-toggle="dropdown">换肤<span class="caret"></span></a>
<ul class="dropdown-menu changecolor">
<li id="blue"><a href="#">蓝色</a></li>
<li class="divider"></li>
<li id="green"><a href="#">绿色</a></li>
<li class="divider"></li>
<li id="orange"><a href="#">橙色</a></li>
</ul>
</li>
</ul>
</div>
</nav>
<div class="down-main">
<div class="left-main left-off">
<div class="sidebar-fold"><span class="glyphicon glyphicon-menu-hamburger"></span></div>
<div class="subNavBox">
<div class="sBox">
<div class="subNav sublist-down"><span class="title-icon glyphicon glyphicon-chevron-down"></span><span class="sublist-title">新闻中心</span>
</div>
<ul class="navContent">
<li class="active">
<div class="showtitle" style="width:100px;"><img src="img/leftimg.png" />添加新闻</div>
<a href="#"><span class="sublist-icon glyphicon glyphicon-user"></span><span class="sub-title">添加新闻</span></a> </li>
<li>
<div class="showtitle" style="width:100px;"><img src="img/leftimg.png" />添加新闻</div>
<a href="#"><span class="sublist-icon glyphicon glyphicon-music"></span><span class="sub-title">添加新闻</span></a> </li>
<li>
<div class="showtitle" style="width:100px;"><img src="img/leftimg.png" />添加新闻</div>
<a href="#"><span class="sublist-icon glyphicon glyphicon-user"></span><span class="sub-title">添加新闻</span></a></li>
<li>
<div class="showtitle" style="width:100px;"><img src="img/leftimg.png" />新闻管理</div>
<a href="#"><span class="sublist-icon glyphicon glyphicon-user"></span><span class="sub-title">新闻管理</span></a></li>
</ul>
</div>
<div class="sBox">
<div class="subNav sublist-up"><span class="title-icon glyphicon glyphicon-chevron-up"></span><span class="sublist-title">关于我们</span></div>
<ul class="navContent">
<li>
<div class="showtitle" style="width:100px;"><img src="img/leftimg.png" />添加新闻</div>
<a href="#"><span class="sublist-icon glyphicon glyphicon-user"></span><span class="sub-title">添加新闻</span></a></li>
<li>
<div class="showtitle" style="width:100px;"><img src="img/leftimg.png" />添加新闻</div>
<a href="#"><span class="sublist-icon glyphicon glyphicon-user"></span><span class="sub-title">新闻管理</span></a></li>
<li>
<div class="showtitle" style="width:100px;"><img src="img/leftimg.png" />添加新闻</div>
<a href="#"><span class="sublist-icon glyphicon glyphicon-user"></span><span class="sub-title">添加新闻</span></a></li>
<li>
<div class="showtitle" style="width:100px;"><img src="img/leftimg.png" />新闻管理</div>
<a href="#"><span class="sublist-icon glyphicon glyphicon-user"></span><span class="sub-title">新闻管理</span></a></li>
</ul>
</div>
</div>
</div>
<div class="right-product right-off">
右侧测试内容
</div>
</div>
<script type="text/javascript">
$(function(){
/*换肤*/
$(".dropdown .changecolor li").click(function(){
var style = $(this).attr("id");
$("link[title!='']").attr("disabled","disabled");
$("link[title='"+style+"']").removeAttr("disabled");
$.cookie('mystyle', style, { expires: 7 }); // 存储一个带7天期限的 cookie
})
var cookie_style = $.cookie("mystyle");
if(cookie_style!=null){
$("link[title!='']").attr("disabled","disabled");
$("link[title='"+cookie_style+"']").removeAttr("disabled");
}
/*左侧导航栏显示隐藏功能*/
$(".subNav").click(function(){
/*显示*/
if($(this).find("span:first-child").attr('class')=="title-icon glyphicon glyphicon-chevron-down")
{
$(this).find("span:first-child").removeClass("glyphicon-chevron-down");
$(this).find("span:first-child").addClass("glyphicon-chevron-up");
$(this).removeClass("sublist-down");
$(this).addClass("sublist-up");
}
/*隐藏*/
else
{
$(this).find("span:first-child").removeClass("glyphicon-chevron-up");
$(this).find("span:first-child").addClass("glyphicon-chevron-down");
$(this).removeClass("sublist-up");
$(this).addClass("sublist-down");
}
// 修改数字控制速度, slideUp(500)控制卷起速度
$(this).next(".navContent").slideToggle(300).siblings(".navContent").slideUp(300);
})
/*左侧导航栏缩进功能*/
$(".left-main .sidebar-fold").click(function(){
if($(this).parent().attr('class')=="left-main left-full")
{
$(this).parent().removeClass("left-full");
$(this).parent().addClass("left-off");
$(this).parent().parent().find(".right-product").removeClass("right-full");
$(this).parent().parent().find(".right-product").addClass("right-off");
}
else
{
$(this).parent().removeClass("left-off");
$(this).parent().addClass("left-full");
$(this).parent().parent().find(".right-product").removeClass("right-off");
$(this).parent().parent().find(".right-product").addClass("right-full");
}
})
/*左侧鼠标移入提示功能*/
$(".sBox ul li").mouseenter(function(){
if($(this).find("span:last-child").css("display")=="none")
{$(this).find("div").show();}
}).mouseleave(function(){$(this).find("div").hide();})
})
</script>
</body>
</html>