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.
150 lines
4.9 KiB
150 lines
4.9 KiB
|
1 day ago
|
<!DOCTYPE html>
|
||
|
|
<html lang="zh-CN">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>注册页面</title>
|
||
|
|
<style>
|
||
|
|
* {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
body {
|
||
|
|
font-family: Arial, sans-serif;
|
||
|
|
line-height: 1.6;
|
||
|
|
color: #333;
|
||
|
|
background-color: #f5f5f5;
|
||
|
|
display: flex;
|
||
|
|
justify-content: center;
|
||
|
|
align-items: center;
|
||
|
|
min-height: 100vh;
|
||
|
|
}
|
||
|
|
.register-container {
|
||
|
|
background-color: white;
|
||
|
|
padding: 40px;
|
||
|
|
border-radius: 8px;
|
||
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
||
|
|
width: 100%;
|
||
|
|
max-width: 500px;
|
||
|
|
}
|
||
|
|
h2 {
|
||
|
|
text-align: center;
|
||
|
|
margin-bottom: 30px;
|
||
|
|
color: #3498db;
|
||
|
|
}
|
||
|
|
.form-group {
|
||
|
|
margin-bottom: 20px;
|
||
|
|
}
|
||
|
|
label {
|
||
|
|
display: block;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
font-weight: bold;
|
||
|
|
}
|
||
|
|
input {
|
||
|
|
width: 100%;
|
||
|
|
padding: 10px;
|
||
|
|
border: 1px solid #ddd;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-size: 16px;
|
||
|
|
}
|
||
|
|
select {
|
||
|
|
width: 100%;
|
||
|
|
padding: 10px;
|
||
|
|
border: 1px solid #ddd;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-size: 16px;
|
||
|
|
}
|
||
|
|
.button {
|
||
|
|
width: 100%;
|
||
|
|
padding: 12px;
|
||
|
|
background-color: #3498db;
|
||
|
|
color: white;
|
||
|
|
border: none;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-size: 16px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: background-color 0.3s;
|
||
|
|
}
|
||
|
|
.button:hover {
|
||
|
|
background-color: #2980b9;
|
||
|
|
}
|
||
|
|
.error-message {
|
||
|
|
color: red;
|
||
|
|
margin-top: 10px;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.success-message {
|
||
|
|
color: green;
|
||
|
|
margin-top: 10px;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
.login-link {
|
||
|
|
display: block;
|
||
|
|
text-align: center;
|
||
|
|
margin-top: 20px;
|
||
|
|
color: #3498db;
|
||
|
|
text-decoration: none;
|
||
|
|
}
|
||
|
|
.login-link:hover {
|
||
|
|
text-decoration: underline;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
</head>
|
||
|
|
<body>
|
||
|
|
<div class="register-container">
|
||
|
|
<h2>用户注册</h2>
|
||
|
|
<form id="register-form">
|
||
|
|
<div class="form-group">
|
||
|
|
<label for="company">公司</label>
|
||
|
|
<select id="company" name="company" required>
|
||
|
|
<option value="">请选择公司</option>
|
||
|
|
<option value="1">示例科技有限公司</option>
|
||
|
|
<option value="2">测试企业集团</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label for="department">部门</label>
|
||
|
|
<select id="department" name="department" required>
|
||
|
|
<option value="">请选择部门</option>
|
||
|
|
<option value="1">销售部</option>
|
||
|
|
<option value="2">技术部</option>
|
||
|
|
<option value="3">财务部</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label for="position">职位</label>
|
||
|
|
<select id="position" name="position" required>
|
||
|
|
<option value="">请选择职位</option>
|
||
|
|
<option value="1">经理</option>
|
||
|
|
<option value="2">主管</option>
|
||
|
|
<option value="3">员工</option>
|
||
|
|
</select>
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label for="organization">组织</label>
|
||
|
|
<input type="text" id="organization" name="organization" placeholder="请输入组织名称" required>
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label for="emp_name">姓名</label>
|
||
|
|
<input type="text" id="emp_name" name="emp_name" placeholder="请输入姓名" required>
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label for="mobile">电话号码</label>
|
||
|
|
<input type="text" id="mobile" name="mobile" placeholder="请输入电话号码" required>
|
||
|
|
</div>
|
||
|
|
<div class="form-group">
|
||
|
|
<label for="pwd">密码</label>
|
||
|
|
<input type="password" id="pwd" name="pwd" placeholder="请输入密码" required>
|
||
|
|
</div>
|
||
|
|
<button type="submit" class="button">注册</button>
|
||
|
|
<div id="message" class="error-message"></div>
|
||
|
|
<a href="login.html" class="login-link">已有账号?点击登录</a>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
<script src="../models/employee.js"></script>
|
||
|
|
<script src="../framework.js"></script>
|
||
|
|
<script src="../api/api.js"></script>
|
||
|
|
<script src="register.js"></script>
|
||
|
|
</body>
|
||
|
|
</html>
|