-
Notifications
You must be signed in to change notification settings - Fork 0
/
31.immust_bulletin.php
349 lines (347 loc) · 11.8 KB
/
31.immust_bulletin.php
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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
<html>
<head><title>明新科技大學資訊管理系</title>
<meta charset="utf-8">
<link href="https://cdn.bootcss.com/flexslider/2.6.3/flexslider.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/2.2.2/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/flexslider/2.6.3/jquery.flexslider-min.js"></script>
<script>
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide",
rtl: true
});
});
</script>
<style>
*{
margin:0;
color:gray;
text-align:center;
}
/* top */
.top{
background-color: white;
}
.top .container{
display: flex;
align-items: center;
justify-content: space-between;
padding:10px;
}
.top .logo{
/*border:1px solid red;*/
font-size: 35px;
font-weight: bold;
}
.top .logo img{
width: 100px;
vertical-align: middle;
}
.top .top-nav{
/*border:1px solid red;*/
font-size: 25px;
font-weight: bold;
}
.top .top-nav a{
text-decoration: none;
}
/* nav */
.nav {
background-color:#333;
display: flex;
justify-content: center;
}
.nav ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
.nav li {
float: left;
}
.nav li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.nav li a:hover {
background-color: #111;
}
/*下拉式選單*/
.dropdown:hover .dropdown-content {
display: block; /*使用block呈現上下排列*/
}
li.dropdown:hover{
background-color: #333; /*設定背景顏色*/
}
.dropdown-content { /*設定下拉選單內容格式*/
display: none;
position: absolute;
background-color: #333;
min-width: 160px;
z-index: 1;
}
.dropdown-content a {/*設定下拉選單連結內容格式*/
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
/* slider */
.slider{
background-color: black;
}
/* banner*/
.banner{
background-image: linear-gradient(#ABDCFF,#0396FF);
padding:30px;
}
.banner h1{
padding: 20px;
}
/*faculty*/
.faculty {
display: block;
justify-content: center;
background-color:white;
padding:40px;
}
.faculty h2 {
font-size: 25px;
color: rgb(50,51,52);
padding-bottom:40px;
}
.faculty .container {
/*border:1px solid red;*/
display: flex;
justify-content: space-around;
align-items: center;
}
.faculty .teacher{
/*border:1px solid blue;*/
display:block;
text-decoration: none;
}
.faculty .teacher img{
height: 200px;
width: 200px;
}
.faculty .teacher h3{
color: White;
background-color: rgba(39,40,34,.500);
text-align: center;
}
/*contact*/
.contact {
display: block;
justify-content: center;
margin-top: 30px;
margin-bottom: 30px;
}
.contact h2{
color: rgb(54, 82, 110);
font-size: 25px;
}
.contact .infos{
display:flex;
margin-top: 30px;
justify-content: center;
}
.contact .infos .left{
display:block;
text-align: left;
margin-right: 30px;
}
.contact .infos .left b{
display:block;
text-align: left;
margin-top: 10px;
text-decoration: bold;
color: Gray;
font-size: 18px;
line-height: 18px;
}
.contact .infos .left span{
display:block;
text-align: left;
margin-top: 10px;
color: rgba(39,40,34,0.5);
font-size: 16px;
padding-left: 27px;
}
.contact .infos .right{
height: 200px;
}
.contact .infos .right iframe{
width: 100%;
height: 100%;
border: 1px solid rgba(39,40,34,0.50);
}
/*footer*/
.footer{
display: flex;
justify-content: center;
background-color: rgb(25,26,30);
padding: 30px 0;
}
/*登入畫面css*/
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
right: 50;
top: 50;
width: 20%; /* Full width */
height: 20%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgba(255,255,255,0.9); /* Black w/ opacity */
padding-top: 50px;
} /*登入畫面css*/
/*佈告欄*/
.bulletin{
display: block;
justify-content: center;
background-color: rgb(255,204,153);
padding: 30px 0;
}
.bulletin h1{
padding:10px;
}
.bulletin table{
border-collapse:collapse;
font-family: 微軟正黑體;
font-size:16px;
border:1px solid #000;
}
.bulletin table th{
background-color: #abdcff;
color: #ffffff;
}
.bulletin table td{
background-color: #ffffff;
color: #0396ff;
}
</style>
</head>
<body>
<div class="top">
<div class="container">
<div class="logo">
<img src="https://github.com/shhuangmust/html/raw/111-1/IMMUST_LOGO.JPG">
明新科技大學資訊管理系
</div>
<div class="top-nav">
<a href=>明新科大</a>
<a href=>明新管理學院</a>
<!---跳出登入畫面-->
<label onclick="document.getElementById('login').style.display='block'">登入</label>
<div id="login" class="modal">
<span onclick="document.getElementById('login').style.display='none'">× 管理系統登入</span>
<form method=post action="10.login.php">
帳號:<input type=text name="id"><br />
密碼:<input type=password name="pwd"><p></p>
<input type=submit value="登入"> <input type=reset value="清除">
</form>
</div>
<!---登入畫面-->
</div>
</div>
</div>
<div class="nav">
<ul>
<li><a href="#home">首頁</a></li>
<li><a href="#introduction">系所簡介</a></li>
<li class="dropdown"><a href="#faculty">成員簡介</a>
<div class="dropdown-content">
<a href="#faculty">黃老師</a>
<a href="#faculty">李老師</a>
<a href="#faculty">應老師</a>
</div>
</li>
<li><a href="#about">相關資訊</a></li>
</ul>
</div>
<div class="slider">
<div class="flexslider">
<ul class="slides">
<li><img src="https://github.com/shhuangmust/html/raw/111-1/slider1.JPG" /></li>
<li><img src="https://github.com/shhuangmust/html/raw/111-1/slider2.JPG" /></li>
<li><img src="https://github.com/shhuangmust/html/raw/111-1/slider3.JPG" /></li>
</ul>
</div>
</div>
<!---佈告欄--->
<div class="bulletin">
<h1>最新公告</h1>
<?php
$conn=mysqli_connect("db4free.net", "immust", "immustimmust", "immust");
$result=mysqli_query($conn, "select * from bulletin");
echo "<table border=2><tr><th>佈告編號</th><th>佈告類別</th><th>標題</th><th>佈告內容</th><th>發佈時間</th></tr>";
while ($row=mysqli_fetch_array($result)){
echo "<tr><td>";
echo $row["bid"];
echo "</td><td>";
if ($row["type"]==1) echo "系上公告";
if ($row["type"]==2) echo "獲獎資訊";
if ($row["type"]==3) echo "徵才資訊";
echo "</td><td>";
echo $row["title"];
echo "</td><td>";
echo $row["content"];
echo "</td><td>";
echo $row["time"];
echo "</td></tr>";
}
echo "</table>";
?>
</div>
<!---佈告欄--->
<div class="banner" id="introduction">
<h1>系所簡介</h1>
<h1>歷年教育部評鑑皆榮獲一等</h1>
<h1>明新科技大學資訊管理系</h1>
<h1>全國私立科大第一資管系</h1>
</div>
<div class="faculty" id="faculty">
<h2>師資介紹</h2>
<div class="container">
<a class="teacher" href="">
<img src="https://github.com/shhuangmust/html/raw/111-1/faculty1.jpg" />
<h3>黃老師</h3>
</a>
<a class="teacher" href="">
<img src="https://github.com/shhuangmust/html/raw/111-1/faculty2.jpg" />
<h3>李老師</h3>
</a>
<a class="teacher" href="">
<img src="https://github.com/shhuangmust/html/raw/111-1/faculty3.jpg" />
<h3>應老師</h3>
</a>
</div>
</div>
<div class="contact" id="about">
<h2>相關資訊</h2>
<div class="infos">
<div class="left">
<b>明新科技大學管理學院大樓二樓</b>
<span>304新竹縣新豐鄉新興路1號</span>
<b> 電話:03-5593142</b>
<span>分機:3431、3432、3433</span>
<b> 傳真:03-5593142</b>
<span>分機:3440</span>
</div>
<div class="right">
<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3044.185885150929!2d120.98912333466727!3d24.86332844316392!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x34683154faa8283b%3A0x92cb1c5564a574ef!2z5piO5paw56eR5oqA5aSn5a24!5e0!3m2!1szh-TW!2stw!4v1536665837954" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
</div>
</div>
<div class="footer">
©Copyright 2022 Department of Information Management, MUST. All rights reserved. 維護者 Tony SHHuang
</div>
</body>
</html>