You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
2.5 KiB
93 lines
2.5 KiB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
|
|
<title>创建账户</title>
|
|
<style>
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #f3f3f3;
|
|
}
|
|
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 50px auto;
|
|
padding: 20px;
|
|
background-color: #ffffff;
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
text-align: center;
|
|
}
|
|
|
|
h2 {
|
|
color: #E25822;
|
|
font-size: 28px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
form {
|
|
text-align: left;
|
|
}
|
|
|
|
input[type="text"], input[type="passwd"], select, input[type="email"] {
|
|
width: calc(100% - 22px);
|
|
padding: 10px;
|
|
margin-bottom: 15px;
|
|
border: 1px solid #dddddd;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
button {
|
|
width: calc(100% - 22px);
|
|
padding: 10px;
|
|
background-color: #D2B48C;
|
|
color: #A0522D;
|
|
border: none;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.success-popup {
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
background-color: #ffffff;
|
|
padding: 20px;
|
|
border-radius: 5px;
|
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
|
|
z-index: 9999;
|
|
display: none;
|
|
}
|
|
|
|
.success-popup p {
|
|
color: #E25822;
|
|
font-size: 18px;
|
|
margin-bottom: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h2>创建用户</h2>
|
|
<form action="/insertrecord" method="post">
|
|
<input type="text" name="name" placeholder="用户名" required><br>
|
|
<input type="passwd" name="passwd" placeholder="密码" required><br>
|
|
<input type="passwd" name="confirm-passwd" placeholder="确认密码" required><br>
|
|
<select name="id" required>
|
|
<option value="" disabled selected>选择身份</option>
|
|
<option value="user">用户</option>
|
|
<option value="admin">管理员</option>
|
|
</select><br>
|
|
<input type="email" name="msg" placeholder="电子邮件" required><br>
|
|
<button type="submit">创建</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="success-popup" id="successPopup">
|
|
<p>用户创建成功!</p>
|
|
</div>
|
|
</body>
|
|
</html> |