-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbjieyong.html
257 lines (224 loc) · 7.25 KB
/
sbjieyong.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
<!Doctype html>
<head>
<meta charset="utf-8">
<style>
.content {
width: 60%;
margin: 0 auto;
margin-top: 20px;
background-image: url(images/background.jpg);
background-size: 800px 300px;
padding: 30px;
}
.jieyong {
margin-top: 3000px;
}
.selector button {
width: 18%;
height: 50px;
margin-left: 30px;
}
#jieyong,
#return,
#infor,
#gh {
display: none;
}
#jieyong {
padding-left: 180px;
}
#return {
padding-left: 100px;
margin-top: 30px;
}
#return button {
margin-left: 60px;
}
body {
padding: 0;
margin: 0;
background-image: url(images/background.jpg );
}
.daohang {
width: 100%;
background-image: url(images/background.jpg);
font-family: FZShuTi;
font-size: 40px;
text-align: center;
line-height: 100px;
}
.menu {
font-family: "黑体";
width: 100%;
/* margin-left: 2px; */
margin-top: -40px;
}
.menu ul {
padding: 0;
list-style-type: none;
}
.menu ul li {
float: left;
position: relative;
}
.menu ul li a,
.menu ul li a:visited {
display: block;
text-align: center;
text-decoration: none;
width: 250px;
height: 40px;
color: #000;
border: 1px solid #fff;
border-width: 1px 1px 0 0;
background: rgb(89, 202, 89);
line-height: 40px;
font-size: 14px;
}
.menu ul li:hover a {
color: #fff;
}
.menu ul li ul {
display: none;
}
.menu ul li:hover ul {
display: block;
position: absolute;
top: 31px;
left: 0px;
width: 105px;
}
menu ul li:hover ul li a {
display: block;
background: #ff4321;
color: #000;
}
.menu ul li:hover ul li a:hover {
background: #dfc184;
color: #000;
}
.jie {
margin-top: 80px;
}
#jie {
margin-left: 400px;
margin-top: 30px;
}
#info {
margin-left: 20%;
position: absolute;
z-index: 1;
}
#info td {
text-align: center;
}
</style>
</head>
<body>
<div class="daohang">
实验室管理系统
<div class="menu">
<ul>
<li><a href="">设备信息浏览</a>
</li>
<li><a href="sbjieyong.html">设备借用申请</a>
</li>
<li><a href="sjyuyue.html">实践活动预约</a>
</li>
<li><a href="">过程记录</a>
</li>
<li><a href="EditPsword.html">密码修改</a></li>
</ul>
</div>
<div></div>
</div>
<div class="jie">
<div class="selector">
<button id="jie">借用设备</button>
<button id="huan">归还设备</button></div>
<div class="content">
<div id="jieyong">
<p>申请单位:<input type="text" id="wplace" /></p>
<p>申请人:      <input type="text" id="application" /></p>
<p>联系电话:<input type="text" id="number" /></p>
<p>具体用途:<input type="textera" /></p>
<p>器材名称:<input type="text" id="name" /></p>
<p>数量:       <input type="text" id="number" /></p>
<p>备注:       <input type="textera" /></p>
<p>借用时间:<input type="text" id="time" /> </p>
<button style="margin-left:50px;">提交</button>
</div>
<div id="return">
<p style="display:inline-block">申请人:<input type="text" id="application" width="20px;" /></p>
<button id="search">搜索</button>
</div>
<div id="infor">
<p style="font-weight:bold;">借用人:张三</p>
<table id="info" cellspacing="0" border="1px">
<tr>
<th>名称</th>
<th>借用时间</th>
<th></th>
</tr>
<tr>
<td>天平</td>
<td>2018.3.25</td>
<td><button>归还</button></td>
</tr>
<tr>
<td>天平架</td>
<td>2018.3.25</td>
<td><button>归还</button></td>
</tr>
<tr>
<td>天平</td>
<td>2018.3.25</td>
<td><button style="background-color:rgb(2);">归还</button></td>
</tr>
</table>
</div>
<div id="gh">
<p>归还时间:<input type="text" /></p>
<input type="button" value="提交" style="margin-left:50px;" />
</div>
</div>
</div>
<script>
var jieyong = document.getElementById('jie'); //借用按钮
var guihuan = document.getElementById('huan'); //归还按钮
var huan = document.getElementById('return'); //归还内容
var jy = document.getElementById('jieyong'); //借用内容
var infor = document.getElementById('infor');
var gh = document.getElementById('gh'); //填写归还时间
var but = infor.getElementsByTagName('button');
for (var i = 0; i < but.length; i++) {
but[i].onclick = function() {
huan.style.display = "none";
jy.style.display = "none";
infor.style.display = "none";
gh.style.display = "block";
}
}
jieyong.onclick = function() {
// alert(1);
huan.style.display = "none";
jy.style.display = "block";
infor.style.display = "none";
gh.style.display = "none";
}
guihuan.onclick = function() {
jy.style.display = "none";
huan.style.display = "block";
infor.style.display = "none";
gh.style.display = "none";
}
var search = document.getElementById('search');
search.onclick = function() {
jy.style.display = "none";
huan.style.display = "none";
infor.style.display = "block";
gh.style.display = "none";
}
</script>
</body>
</html>