forked from hamdichau/autumnrecruitment2016
-
Notifications
You must be signed in to change notification settings - Fork 1
/
adminreg.html
159 lines (155 loc) · 5.51 KB
/
adminreg.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
<!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=utf8" />
<title>CDMG</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- <link href="../default.css" rel="stylesheet" type="text/css" /> -->
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
<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>
<style type="text/css">
body{
background: #CCC
}
html{font-size:11px;}
fieldset{width:520px; margin: 0 auto;}
legend{font-weight:bold; font-size:14px;}
label{float:left; width:70px; margin-left:10px;}
.left{margin-left:80px;}
.input{width:150px;}
span{color: #666666;}
</style>
</head>
<body>
<h1>CDMG后台</h1>
<div class="navbar navbar-inverse" role="navigation">
<div class="navbar-header">
<a class="navbar-brand" href="../index.html">CDMG</a>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#collapse">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="collapse">
<ul class="nav navbar-nav">
<li><a href="../index.html">首页</a></li>
<li class="active"><a href="reg.html">用户注册</a></li>
<li><a href="login.html">用户登录</a></li>
<li><a href="../adminlogin.html">管理员入口</a></li>
</ul>
</div>
</div>
<div class="container-fluid" style="background:white; padding-bottom:20px; margin-bottom:10px">
<div class="col-lg-4 col-lg-offset-4 col-md-4 col-md-offset-4 col-sm-4 col-sm-offset-4 col-xs-12" style="background:white;">
<h2 class="page-header">管理员注册</h2>
<form action="adminreg.php" method="post" role="form" name="RegForm" onSubmit="return InputCheck(this)">
<div class="form-group">
<label for="username">用户名</label>
<!-- <div class="col-md-8 col-sm-8 col-xs-8 col-lg-8"> -->
<input type="text" name="username" class="form-control" id="username" placeholder="请输入用户名">
<!-- </div> -->
</div>
<div class="form-group">
<label for="password">密码</label>
<!-- <div class="col-md-8 col-sm-8 col-xs-8 col-lg-8"> -->
<input type="password" class="form-control" id="password" placeholder="请输入密码">
<!-- </div> -->
</div>
<div class="form-group">
<label for="repass">重复密码</label>
<!-- <div class="col-md-8 col-sm-8 col-xs-8 col-lg-8"> -->
<input type="password" class="form-control" name="repass" id="repass" placeholder="请再次输入密码">
<!-- </div> -->
</div>
<div class="form-group" style="margin-left: 0;">
<div class="col-md-4 col-md-offset-4 col-sm-4 col-sm-offset-4 col-xs-4 col-xs-offset-4 col-lg-4 col-lg-offset-4">
<input type="submit" class="form-control btn-success" name="submit" value="提交注册" style="min-width:80px"></div>
</div>
</form>
</div>
</div>
<!-- <table width="100%" height="520" border="0" cellpadding="8" cellspacing="1" bgcolor="#000000">
<tr>
<td width="837" valign="top" bgcolor="#FFFFFF"><table width="900" border="0" cellpadding="8" cellspacing="1" bgcolor="#000000" align=center> -->
<script language=JavaScript>
<!--
function InputCheck(RegForm)
{
if (RegForm.username.value == "")
{
alert("用户名不可为空!");
RegForm.username.focus();
return (false);
}
if (RegForm.password.value == "")
{
alert("必须设定登陆密码!");
RegForm.password.focus();
return (false);
}
if (RegForm.repass.value != RegForm.password.value)
{
alert("两次密码不一致!");
RegForm.repass.focus();
return (false);
}
/*
if (RegForm.email.value == "")
{
alert("电子邮箱不可为空!");
RegForm.email.focus();
return (false);
}
*/
}
//-->
</script>
<!--</head>-->
<!-- <div>
<fieldset>
<legend>用户注册</legend>
<form name="RegForm" method="post" action="adminreg.php" onSubmit="return InputCheck(this)">
<p>
<label for="username" class="label">用户名:</label>
<input id="username" name="username" type="text" class="input" />
<span>(必填,3-15字符长度,支持汉字、字母、数字)</span>
<p/>
<p>
<label for="password" class="label">密 码:</label>
<input id="password" name="password" type="password" class="input" />
<span>(必填,不得少于6位)</span>
<p/>
<p>
<label for="repass" class="label">重复密码:</label>
<input id="repass" name="repass" type="password" class="input" />
<p/>
<p> -->
<!--
<label for="email" class="label">电子邮箱:</label>
<input id="email" name="email" type="text" class="input" />
<span>(必填)</span>
<p/>
<p>
-->
<!-- <input type="submit" name="submit" value=" 提交注册 " class="left" />
</p>
</form>
</fieldset>
</div>
</td>
</tr>
</table> -->
<div class="container-fluid">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" style="text-align:center">
<foot>
版权所有 2017 @CDMG
</foot>
</div>
</div>
</body>
</html>