菜鸟的博客

纵有疾风起,人生不言弃。

导航

又写了一天极限测试

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>Login Page</title>
  <style>
    body {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      margin: 0;
    }

    .login-box {
      background-color: #f5f5f5;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    label {
      display: block;
      margin-bottom: 8px;
    }

    input, select {
      width: 100%;
      padding: 8px;
      margin-bottom: 16px;
      box-sizing: border-box;
    }

    input[type="submit"] {
      background-color: #4caf50;
      color: white;
      cursor: pointer;
    }
  </style>
</head>
<body>

<div class="login-box">
  <h2>Login</h2>

  <form action="LoginServlet" method="post">
    <label for="jobId">工号:</label>
    <input type="text" id="jobId" name="jobId" required><br>

    <label for="password">密码:</label>
    <input type="password" id="password" name="password" required><br>

    <label for="role">身份:</label>
    <select id="role" name="role" required>
      <option value="employee">Employee</option>
      <option value="admin">Admin</option>
      <option value="manager">Manager</option>
    </select><br>

    <input type="submit" value="登录">
  </form>
</div>

</body>
</html>

 

posted on 2023-11-22 22:12  hhmzd233  阅读(3)  评论(0编辑  收藏  举报