|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>考勤工具</title>
- <style>
- body {
- font-family: Arial, sans-serif;
- padding: 20px;
- background-color: #f0f2f5;
- }
- .container {
- max-width: 400px;
- margin: 0 auto;
- background: white;
- padding: 20px;
- border-radius: 8px;
- box-shadow: 0 2px 4px rgba(0,0,0,0.1);
- }
- .form-group {
- margin-bottom: 15px;
- }
- label {
- display: block;
- margin-bottom: 5px;
- }
- input[type="text"],
- input[type="password"] {
- width: 100%;
- padding: 8px;
- border: 1px solid #ddd;
- border-radius: 4px;
- box-sizing: border-box;
- }
- .checkbox-group {
- margin: 10px 0;
- }
- button {
- background-color: #1890ff;
- color: white;
- padding: 10px 15px;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- width: 100%;
- margin-bottom: 10px;
- }
- button:hover {
- background-color: #40a9ff;
- }
- .attendance-buttons {
- display: none;
- margin-top: 20px;
- }
- #checkInBtn {
- background-color: #52c41a;
- }
- #checkOutBtn {
- background-color: #f5222d;
- }
- .status {
- margin-top: 10px;
- text-align: center;
- color: #666;
- }
- .user-info {
- display: none;
- margin: 15px 0;
- padding: 10px;
- background-color: #f8f9fa;
- border-radius: 4px;
- }
- .user-info p {
- margin: 5px 0;
- color: #333;
- }
- .attendance-status {
- margin-top: 10px;
- font-size: 0.9em;
- color: #666;
- }
- .time-info {
- color: #1890ff;
- font-weight: bold;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <h2>考勤系统</h2>
- <div id="loginForm">
- <div class="form-group">
- <label for="username">用户名:</label>
- <input type="text" id="username" required>
- </div>
- <div class="form-group">
- <label for="password">密码:</label>
- <input type="password" id="password" required>
- </div>
- <div class="checkbox-group">
- <input type="checkbox" id="remember">
- <label for="remember">记住账号密码</label>
- </div>
- <button id="loginBtn">登录</button>
- </div>
-
- <div id="userInfo" class="user-info">
- <p>欢迎,<span id="userName">-</span></p>
- <div class="attendance-status">
- <p>上班打卡时间: <span id="checkInTime" class="time-info">-</span></p>
- <p>下班打卡时间: <span id="checkOutTime" class="time-info">-</span></p>
- </div>
- </div>
-
- <div id="attendanceButtons" class="attendance-buttons">
- <button id="checkInBtn">上班打卡</button>
- <button id="checkOutBtn">下班打卡</button>
- </div>
-
- <div id="status" class="status"></div>
- </div>
-
- <script src="renderer.js"></script>
- </body>
- </html>
|