-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheditStudent.html
More file actions
153 lines (133 loc) · 5.28 KB
/
Copy patheditStudent.html
File metadata and controls
153 lines (133 loc) · 5.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Project Database</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="Free HTML Templates" name="keywords" />
<meta content="Free HTML Templates" name="description" />
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon" />
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@500;600;700&family=Open+Sans:wght@400;600&display=swap"
rel="stylesheet" />
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet" />
<!-- Libraries Stylesheet -->
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet" />
<!-- Customized Bootstrap Stylesheet -->
<link href="css/style.css" rel="stylesheet" />
</head>
<body>
<!-- Navbar Start -->
<div class="container-fluid p-0">
<nav class="navbar navbar-expand-lg bg-white navbar-light py-3 py-lg-0 px-lg-5">
<a href="index.html" class="navbar-brand ml-lg-3">
<h1 class="m-0 text-uppercase text-primary">
<i class="fa fa-book-reader mr-3"></i>Group 12
</h1>
</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-between px-lg-3" id="navbarCollapse">
<div class="navbar-nav mx-auto py-0">
<a href="index.html" class="nav-item nav-link">Home</a>
<div class="nav-item dropdown active">
<a href="#" class="nav-link dropdown-toggle active" data-toggle="dropdown">Portal</a>
<div class="dropdown-menu m-0">
<a href="portal-rieng.html" class="dropdown-item active">Riêng</a>
<a href="portal-chung.html" class="dropdown-item">Chung</a>
</div>
</div>
<a href="dangKyHoc.html" class="nav-item nav-link">Đăng ký học</a>
<a href="qldt.html" class="nav-item nav-link">Quản lý đào tạo</a>
</div>
<!-- <a href="" class="btn btn-primary py-2 px-4 d-none d-lg-block">Join Us</a> -->
</div>
</nav>
</div>
<!-- Navbar End -->
<div class="container-fluid">
<div class="row mx-0 justify-content-center px-5">
<div class="col-lg-8">
<div class="section-title text-center position-relative my-5">
<h1 class="display-4">Chỉnh sửa sinh viên</h1>
</div>
</div>
</div>
<div class="infor">
<form action="#" method="">
<div class="row">
<div class="col-sm-2">
<div class="form-group">
<label for="">MSSV</label>
<input id="student_id" type="text" class="form-control" name="student_d" required>
</div>
</div>
<div class="col-sm-3">
<div class="form-group">
<label for="">Họ và tên</label>
<input id="student_name" type="text" class="form-control" name="fullname" required>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-2">
<div class="form-group">
<label for="date_of_birth">Ngày sinh</label>
<input id="date_of_birth" type="text" class="form-control" name="dob" placeholder="yyyy-mm-dd" required>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<p class="text-danger">
<?= $err_msg?>
</p>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<button id="Save" type="submit" class="btn btn-primary" name="save">Lưu</button>
<a href="portal-rieng.html" class="btn btn-secondary">Trở về</a>
</div>
</div>
</form>
</div>
</div>
<!-- Back to Top -->
<a href="#" class="btn btn-lg btn-primary rounded-0 btn-lg-square back-to-top"><i
class="fa fa-angle-double-up"></i></a>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/waypoints/waypoints.min.js"></script>
<script src="lib/counterup/counterup.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<!-- Template Javascript -->
<script src="js/editStudent.js"></script>
</body>
</html>
<script>
// Wait for the DOM to be ready
document.addEventListener("DOMContentLoaded", function () {
// Get the Save button
var saveBtn = document.getElementById('Save');
// Attach a click event listener to the Save button
saveBtn.addEventListener('click', function (event) {
event.preventDefault(); // Prevent the default form submission
// Call the editStudent function when the Save button is clicked
editStudent(function (data) {
// Handle the response data if needed
console.log(data);
});
});
});
</script>
</body>
</html>