-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsignup.html
More file actions
162 lines (152 loc) · 6.77 KB
/
signup.html
File metadata and controls
162 lines (152 loc) · 6.77 KB
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta 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='icon' href='pics/logo.jpg' type='image/x-ico' />
<!-- 新 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
<!-- 可选的Bootstrap主题文件(一般不用引入) -->
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<link href="custom_css/index.css" rel="stylesheet">
</head>
<body>
<div class="col-md-2 logo">
<img src="pics/logo.jpg" height="130">
</div>
<div class="col-md-10">
<p class="chn-title"><b>国家重点研发计划——重要热带病传播相关的入侵媒介及其病原体的生物学特性研究</b></p>
<div class="row">
<div class="col-md-9 eng-title">
<p><b>National Research and Development Plan: Research on Biological Characteristics of the Tropical Disease Related Invasion vectors and Pathogens</b><p>
</div>
<div class="col-md-3 search-box">
</div>
</div>
<br/>
<br/>
<br/>
</div>
<br/>
<br/>
<div id="content" class="row">
<div class="form-horizontal">
<div class="form-group">
<label for="inputEmail3" class="col-sm-1 control-label col-sm-offset-3">账号</label>
<div class="col-sm-3">
<input type="text" class="form-control" id="inputAccount" placeholder="useraccount" name="user_account">
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-1 control-label col-sm-offset-3">昵称</label>
<div class="col-sm-3">
<input type="text" class="form-control" id="inputName" placeholder="username" name="user_name">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-1 control-label col-sm-offset-3">密码</label>
<div class="col-sm-3">
<input type="password" class="form-control" id="inputPassword" placeholder="password" name="password">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-1 control-label col-sm-offset-3">确定密码</label>
<div class="col-sm-3">
<input type="password" class="form-control" id="inputPassword2" placeholder="password" name="password">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-4 col-sm-10">
<button class="btn btn-default">Sign up</button>
</div>
</div>
</div>
<br/>
<br/>
<br/>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<footer class="footer">
<div class="row">
<div class="col-sm-8">
<div class="col-sm-7 project-introduction">
<p><b>相关链接</b></p>
<p><a href="http://zssom.sysu.edu.cn/">中山大学中山医学院</a></p>
<p><a href="http://www.ipd.org.cn/">中国疾病预防控制中心寄生虫病预防控制所</a></p>
<p><a href="http://life.fudan.edu.cn/ ">复旦大学生命科学学院</a></p>
<p><a href="http://www.ipd.org.cn/">南方医科大学公共卫生与热带医学学院</a></p>
</div>
<div class="col-sm-5">
<p><b>资源共享</b></p>
<p><a href="http://www.chinaias.cn/wjPart/index.aspx ">中国外来入侵物种数据库</a></p>
<p><a href="http://www.iucngisd.org/gisd/">全球入侵物种数据库GISD</a></p>
<p><a href="https://www.vectorbase.org/">人类病原体无脊椎动物媒介生物信息资源数据库(VectorBase)</a></p>
</div>
</div>
<div class="col-sm-3 col-sm-offset-1">
<div class=" QRcode-reminder">
<p>请关注我们的公众号:</p>
</div>
<!-- <div class="col-sm-4"> -->
<img src="pics/QRcode.png" height="105">
<!-- </div> -->
</div>
</div>
<div class="col-sm-6 col-sm-offset-3">
<p>Copyright © 2016 <a href="http://www.sysu.edu.cn/2012/cn/index.htm">中山大学</a>    
联系我们:<a href="mailto:wuzhd@mail2.sysu.edu.cn">wuzhd@mail2.sysu.edu.cn</a></p>
<p>地址:中国广州市中山二路74号中山大学北校区(邮政编码:510080)</p>
</div>
</footer>
</div> <!-- /container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="http://cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
var account = $("#inputAccount").val();
var name = $("#inputName").val();
var password = $("#inputPassword").val();
var password2 = $("#inputPassword2").val();
if (account.length < 6) {
alert("账号太短");
return;
} else if (name.length < 3) {
alert("用户名太短");
return;
} else if (password != password2) {
alert("两次密码不一致");
return;
} else if (password.length < 6) {
alert("密码太短");
return;
}
$.post("http://localhost/uml/public/index/login/signup", {"user_account":account,"user_name":name,"password":password,"class":3},function(data,status){
var datajson = eval("(" + data + ")");
console.log(data);
if(!datajson['type']){
alert(datajson['message']);
window.location.reload();
} else {
alert(datajson['message']);
window.location.href="index.html"
}
});
});
});
</script>
</body>
</html>