-
Notifications
You must be signed in to change notification settings - Fork 0
/
internal.html
290 lines (246 loc) · 9.67 KB
/
internal.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
287
288
289
290
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>数据之门</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<style type="text/css">
.max-table {
border-collapse: collapse;
border-spacing: 0;
table-layout: fixed;
width: 100%;
}
.max-table tr :hover {
border-left: 1px solid #22be73;
border-right: 1px solid #22be73;
border-bottom: 1px solid #22be73;
}
td, th {
padding: 1px 3px;
min-width: 30px;
word-break: break-all;
}
.max-table td {
min-width: 80px;
word-break: break-all;
}
.min-table td {
min-width: 77px;
word-break: break-all;
}
.modal-body {
text-align: left;
}
.full-width {
width: 60%;
}
.search {
padding: 2px 3px;
min-width: 210px;
min-height: 36px;
}
.warning {
background: #ff5f40
}
.dropdown:hover .menu-top {
display: block;
margin-top:-5px;
}
.dropdown-submenu{
position:relative;
}
.dropdown-submenu > .dropdown-menu{
top:0;
left:100%;
margin-top:-6px;
margin-left:-1px;
-webkit-border-radius:0 6px 6px 6px;
-moz-border-radius:0 6px 6px 6px;
border-radius:0 6px 6px 6px;
}
.dropdown-submenu:hover > .dropdown-menu{
display:block;
}
.dropdown-submenu > a:after{
display:block;
content:" ";
float:right;
width:0;
height:0;
border-color:transparent;
border-style:solid;
border-width:5px 0 5px 5px;
border-left-color:#cccccc;
margin-top:5px;
margin-right:-10px;
}
.dropdown-submenu:hover > a:after{
border-left-color:#ffffff;
}
.dropdown-submenu .pull-left{
float:none;
}
.dropdown-submenu.pull-left > .dropdown-menu{
left:-100%;
margin-left:10px;
-webkit-border-radius:6px 0 6px 6px;
-moz-border-radius:6px 0 6px 6px;
border-radius:6px 0 6px 6px;
}
</style>
</head>
<body>
<div class="container-fluid">
<nav id="navbar-example" class="navbar navbar-default navbar-static" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-example-js-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#stream">
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height=20 width=100>
<path id="svg_ul" d="M4 2 L4 6" style="fill:white;stroke:#22be73;stroke-width:4"/>
<path id="svg_u" d="M10 2 L10 6" style="fill:white;stroke:#22be73;stroke-width:4"/>
<path id="svg_ur" d="M16 2 L16 6" style="fill:white;stroke:#22be73;stroke-width:4"/>
<path id="svg_ml" d="M4 8 L4 12" style="fill:white;stroke:#22be73;stroke-width:4"/>
<path id="svg_mr" d="M16 8 L16 12" style="fill:white;stroke:#22be73;stroke-width:4"/>
<path id="svg_dl" d="M4 14 L4 18" style="fill:white;stroke:#22be73;stroke-width:4"/>
<path id="svg_d" d="M10 14 L10 18" style="fill:white;stroke:#22be73;stroke-width:4"/>
<path id="svg_dr" d="M16 14 L16 18" style="fill:white;stroke:#22be73;stroke-width:4"/>
<text x="25" y="17" fill="#22be73" id="inviteTitle">数据之门</text>
</svg>
<span id="log-out" style="float:right;" class="glyphicon glyphicon-log-out"></span>
</a>
</div>
<div class="collapse navbar-collapse bs-example-js-navbar-collapse">
<ul class="nav navbar-nav">
</ul>
</div>
</div>
</nav>
</div>
<div class="modal fade" id="the-modal" tabindex="-1" role="dialog" aria-labelledby="buyModalLabel">
<div class="modal-dialog text-center full-width" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="modal-title">操作名称</h4>
</div>
<div class="modal-body" id="modal-body">
</div>
</div>
</div>
</div>
<div class="container-fluid" style="background: white;margin-bottom: 88px;" id="main">
<div id="pages-title" style="border: 1px solid #e6e6e6;min-height: 60px;width: auto; padding: 10px 10px;box-shadow: 0px 8px 8px rgba(0,0,0,.2);text-align: center;">
<select id="selectStatus">
<option value="">全部</option>
<option value="INIT">未審核</option>
<option value="REJECT">審核失敗</option>
<option value="APPROVED">審核成功</option>
<option value="ONLINE">審核完成</option>
</select>
<input id="search" type="text" class="search" name="search" value="" placeholder=" 搜索..."/>
<button id="search-btn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-search"></span> 搜索</button>
<button id="create" type="button" class="btn btn-defualt"> <span class="glyphicon glyphicon-plus"></span></button>
</div>
<div id="business" style="list-style: none; position: relative;margin: 0px;padding: 0px;">
<div id="pages-head" head="0" name="" style="background: #22be73;height: 40px;border-top: 1px solid #e6e6e6; width: auto; padding: 10px 10px;box-shadow: 0px 8px 8px rgba(0,0,0,.2);text-align: center; color: white;">
</div>
<div id="pages-data" style="background: white;min-height: 400px;border-top: 1px solid #e6e6e6; width: auto; padding: 10px 10px;box-shadow: 0px 8px 8px rgba(0,0,0,.2);text-align: center; color: #333;">
</div>
</div>
<div style="background: #fefefe;min-height: 30px;border-top: 1px solid #e6e6e6; width: auto; padding: 10px 10px;box-shadow: 0px 8px 8px rgba(0,0,0,.2);text-align: center;">
<table class="max-table"><tbody><tr>
<td><a id="load-less" onclick="loadless()">上一页</a></td>
<td><span id="total"></span></td>
<td><a id="load-more" onclick="loadmore()">下一页</a></td>
</tr></tbody></table>
</div>
</div>
<footer class="footer navbar-fixed-bottom" style="z-index:-1">
<div style="text-align:center;width:100%;margin:0 auto; padding:20px 0;">
<span>珠海市横琴新区宝华路6号105室</span>
<br/>
<a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=88889102498888" style="display:inline-block;text-decoration:none;height:20px;line-height:20px;">
<img src="beian.png" class="icon" style="float:left;"/>
<p style="float:left;height:20px;line-height:20px;margin: 0px 0px 0px 5px; color:#939393;">
粤公网安备 88889102498888号
</p>
</a>
</div>
</footer>
<!-- JavaScript Includes -->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/transition.js"></script>
<script type="text/javascript" src="js/dropdown.js"></script>
<script type="text/javascript" src="js/collapse.js"></script>
<script type="text/javascript" src="js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/suppresswarnings.js"></script>
<script>
$("#create").hide()
$("#search-btn").click(function() {
var value = $("#search").val()
console.log('搜索全文: ' + value)
searchitem(value)
});
$('#search').bind('keyup', function(event) {
if (event.keyCode == "13") {
//回车执行查询
$('#search-btn').click();
}
});
$("#create").click(function() {
console.log('新增记录,先判断是否存在数据,否则不让新增?' + target)
createitem()
});
if(location.hash && location.hash.length > 1) {
target = location.hash.substr(1)
} else {
target = 'stream'
}
function page(head) {
$("#create").show()
target = head
var jsfile = "js/target.js?r=" + Math.random()
console.log('run ' + jsfile)
jQuery.getScript(jsfile);
}
page(target)
function active() {
console.log("this is going to active")
$(".navbar-nav").find("li").each(function () {
var a = $(this).find("a:first")[0];
if ($(a).attr("href") === location.hash) {
console.log("this one is active")
} else {
$(this).removeClass("active");
}
})
}
$(function () {
$(".navbar-nav").find("li").each(function () {
var a = $(this).find("a:first")[0];
if ($(a).attr("href") === location.hash) {
$(this).addClass("active");
} else {
$(this).removeClass("active");
}
$(this).click(function () {
$(this).addClass("active");
setTimeout(active, 200)
})
});
})
</script>
</body>
</html>