-
Notifications
You must be signed in to change notification settings - Fork 3
/
index2.htm
executable file
·274 lines (237 loc) · 6.74 KB
/
index2.htm
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
<!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="/dist/css/bootstrap.css" rel="stylesheet">
<link href="/dist/css/justified-nav.css" rel="stylesheet">
<script src="/code.jquery.com/jquery.js"></script>
<script src="/dist/js/bootstrap.min.js"></script>
<script src="./js/jquery-1.7.1.min.js" type="text/javascript"></script><style type="text/css"></style>
<script>
function getUrlParam(name) {
var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r!=null) {
return unescape(r[2]);
}
return null;
}
$(document).ready(function() {
var msg = getUrlParam("msg");
if(msg != null) {
if(msg == "errpass") {
$("#msg").text("用户名密码错误!");
}
}
/*
$("#loginbutton").click(function() {
var username = $.trim( $("#username").val() );
var password = $.trim( $("#password").val() );
if( (username == "") || (password == "") ) {
alert("请输入用户名密码");
return;
}
$("#lf").submit();
});
*/
$( "form" ).submit(function() {
var username = $.trim( $("#username").val() );
var password = $.trim( $("#password").val() );
if( (username == "") || (password == "") ) {
alert("请输入用户名密码");
return false;
}
return true;
});
});
</script>
<style>
body{
background:#3580FF url("images/xs-bkg2.jpg") no-repeat;
font:1.03em 微软雅黑,Arial,Helvetica,sans-serif;
color:white;
position: absolute;
height: 99%;
min-width: 100%;
margin:0;
padding:0px;
}
#wrap{
position:relative;
min-height:99%;
}
#header{
height:100px;
width:100%;
}
#middle{
width:100%;
}
#mld{
margin-top:0px;/*1.margin-top of login area */
/*border-top:2px solid white;*/
padding-top:30px;
padding-right:140px;
padding-bottom:100px;
}
div#h1-con{
}
#t-line{
border-bottom:2px solid white;
text-align:right;
width:500px;
}
#login-l{
width:271px;
padding:20px;
margin-top:30px;
border:2px solid white;
float:right;
}
#login-b-l{
/*float:right;*/
background-color:#FFAF20;
border-top:2px solid white;
border-right:2px solid #4E78BF;
border-left:2px solid white;
border-bottom:2px solid #4E78BF;
}
#login-b-l:active{
border-top:2px solid #4E78BF;
border-right:2px solid white;
border-left:2px solid #4E78BF;
border-bottom:2px solid white;
}
.ui-state-default{
border:1px solid white;
width:200px;
height:18px;
line-height:14px;
/*text-align:center;*/
}
table.fill tr{
height:40px;
}
#loginbutton{
background:none repeat scroll 0 0 transparent;
width:100%;
overflow:hidden;
border:0 none;
color:white;
height:35px;
line-height:35px;
font:1.03em 微软雅黑,Arial,Helvetica,sans-serif;
}
.floatright{
float:right;
}
#footer{
/*clear:both;*/
width:100%;
display:block;
min-width:900px;
position:absolute;
bottom:10px;
overflow:hidden;
}
#foot{
width:100%;
margin:auto;
background: url(http://www.sysu.edu.cn/2011/images/foot_bg.gif) bottom repeat-x;
height:45px;
}
#footL,#footM,#footR {
float:left;
color:#999999;
margin-top:7px;
font-size:10px;
}
#foot-con{
width:960px;
margin:auto;
}
#footL {
width:200px;
margin-left:40px;
}
#footM {
width:300px;
}
#footR {
width:350px;
}
#footB {
color:#999999;
width:450px;
margin:auto;
clear:both;
font-size:10px;
display:none;
}
#footB span {
padding-left:60px;
}
#footB a {
color:#999999;
font-size:10px;
}
</style>
</head>
<body>
<!--
<div id="proxyFail" title="错误提示">
<p>获取单点登录信息失败, 请稍后再试。</p>
</div>
-->
<div id="wrap">
<div id="maincontainer">
<div id="header"></div>
<div id="middle">
<div id="mld">
<div id="h1-con" class="floatright"><h1>数据库在线答题系统</h1></div>
<div style="clear:both;"></div>
<div id="t-line" class="floatright"></div>
<div style="clear:both;"></div>
<div id="login-l">
<div id="msg" style="color:red"></div>
<form id="lf" method="post" action="./docs/studentLogin.php">
<table class="fill">
<tbody><tr>
<td>用户名:</td>
<td><span class="ipt"><input id="username" name="username" value="" type="text" class="ui-state-default"></span></td>
</tr>
<tr>
<td>密 码:</td>
<td><span class="ipt"><input id="password" name="password" value="" type="password" class="ui-state-default"></span></td>
</tr>
</tbody></table>
<div id="login-b-l"><span class="btn"><input type="submit" id="loginbutton" value="登录"></span></div>
<div style="clear:both;"></div>
<!--<a href="./docs/studentRegister.php" target="_bank">注册</a>-->
<input type="hidden" id="lt" name="lt">
<input type="hidden" id="_eventId" name="_eventId" value="submit">
</form>
</div>
<div style="clear:both;"></div>
</div>
<iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe></div><!--middle end-->
</div>
<div id="footer">
<div id="foot">
<div id="foot-con">
<div id="footL">
<a href="http://www.sysu.edu.cn"><img src="./js/slogo.gif" border="0" height="26" width="88"></a>
</div>
<div id="footM">
通讯地址:广州市新港西路135号 邮编:510275 <br> E-mail: zawdd@163.com
</div>
<div id="footR">
Address: Sun Yat-sen University, Guangzhou, China, 510275 <br>
</div>
<div id="footB">
<span>中山大学 版权所有 <a href="http://www.sysu.edu.cn">联系我们</a>-粤ICP备05008892号</span>
</div>
</div>
</div>
</div>
</div>
<style>.myToolbar {z-index:100000} .myToolbar .tb_btn {cursor:pointer;border:1px solid #555;padding:3px} .tb_highlight{background-color:yellow} .tb_hide {visibility:hidden}</style><style>.tb_button {padding:2px;cursor:pointer;border-right: 1px solid #8b8b8b;border-left: 1px solid #FFF;border-bottom: 1px solid #fff;}.tb_button.hover {borer:2px outset #def; background-color: #f8f8f8 !important;}</style><div id="GOOGLE_INPUT_CHEXT_FLAG" style="display: none;" input="" input_stat="{}"></div></body></html>