reserve/views/index.ejs
2023-09-24 14:31:12 +08:00

141 lines
5.9 KiB
Plaintext

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>排练室预约系统</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<link href="/my.css" rel="stylesheet">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
<script src="/jquery-3.7.1.min.js"></script>
<nav class="navbar navbar-expand-lg navbar-light" style="background-color: #e3f2fd;">
<div class="container-fluid">
<a class="navbar-brand" href="/">排练室预约系统</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/">首页</a>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="/info">预约信息</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/admin">管理后台</a>
</li>
</ul>
</div>
</div>
</nav>
<div id="main" class="container">
<br />
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label">选择预约日期</label>
<select id="select-day" class="form-select" aria-label="Default select example" required>
<option value="1">周一</option>
<option value="2">周二</option>
<option value="3">周三</option>
<option value="4">周四</option>
<option value="5">周五</option>
<option value="6">周六</option>
<option value="7">周日</option>
</select>
<div id="select-day-error" class="invalid-feedback">请选择预约日期</div>
</div>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label">选择预约时间段</label>
<div class="form-check">
<input id="radio-1" class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1" required>
<label id="reserve-1" class="form-check-label" for="radio-1">
08:30-10:10
</label>
</div>
<div class="form-check">
<input id="radio-2" class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
<label id="reserve-2" class="form-check-label" for="radio-2">
10:30-12:10
</label>
</div>
<div class="form-check">
<input id="radio-3" class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
<label id="reserve-3" class="form-check-label" for="radio-3">
13:30-15:10
</label>
</div>
<div class="form-check">
<input id="radio-4" class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
<label id="reserve-4" class="form-check-label" for="radio-4">
15:30-17:10
</label>
</div>
<div class="form-check">
<input id="radio-5" class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
<label id="reserve-5" class="form-check-label" for="radio-5">
18:10-19:50
</label>
</div>
<div class="form-check">
<input id="radio-6" class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1">
<label id="reserve-6" class="form-check-label" for="radio-6">
20:10-21:50
</label>
</div>
<div id="select-time-error" class="invalid-feedback">请选择预约时间段</div>
</div>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label">预约密码</label>
<input id="password" class="form-control" id="exampleFormControlInput1" placeholder="" required>
<div id="password-error" class="invalid-feedback">请输入预约密码</div>
</div>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label">预约人</label>
<input id="name" class="form-control" id="exampleFormControlInput1" placeholder="" required>
<div id="name-error" class="invalid-feedback">请输入预约人姓名</div>
</div>
<div class="mb-3">
<label for="exampleFormControlInput1" class="form-label">手机号</label>
<input id="phone" type="number" class="form-control" id="exampleFormControlInput1" placeholder="" required>
<div id="phone-error" class="invalid-feedback">请输入手机号码</div>
</div>
<div class="mb-3">
<button id="submit-btn" type="button" class="btn btn-primary" disabled>预约</button>
</div>
</div>
<div id="pending" class="container" style="display: none;">
<h1> </h1>
<div class="card">
<div id="server-message" class="card-body">
等待中...
</div>
</div>
<hr />
<div class="mb-3">
<button id="back-btn" type="button" class="btn btn-primary">返回</button>
</div>
</div>
</body>
<script src="index.js"></script>
</html>