-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
202 lines (190 loc) · 8.05 KB
/
admin.html
File metadata and controls
202 lines (190 loc) · 8.05 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!doctype html>
<html lang="en">
<head>
<title>VTC | Admin</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/admin.css" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
</head>
<body id="pagebody">
<nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #3a29cc">
<a class="navbar-brand" href="#">VTC</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-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 mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="enroll.html">Enroll</a>
</li>
<li class="nav-item">
<a class="nav-link" href="placement.html">Placements</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#">Admin <span class="sr-only">(current)</span></a>
</li>
</ul>
</div>
</nav>
<!-- Placement Form Modal Button -->
<div class="text-center button_position">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal" style="background-color: #3a29cc;">Placement Form</button>
</div>
<!-- Placement Form Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Enter Placement Company details</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="alert text-center">
Form has been Submited!
</div>
<form id="companyform">
<div class="form-group">
<label for="company-name" class="col-form-label">Company Name:</label>
<input type="text" class="form-control" placeholder="Company Name" id="company-name" required>
</div>
<div class="form-group">
<label for="worker-type" class="col-form-label">Type of workers required:</label>
<input type="text" class="form-control" id="worker-type" placeholder="Type" required>
</div>
<div class="form-group">
<label for="wages" class="col-form-label">Wages Per Day(in Rupees):</label>
<input type="number" class="form-control" placeholder="Wages per Day" id="wages" required>
</div>
<div class="form-group">
<label for="worker-no" class="col-form-label">No. of Workers Required:</label>
<input type="number" class="form-control" id="worker-no" placeholder="Number" required>
</div>
<div style="padding-top: 20px;">
<button type="submit" class="btn btn-primary" style="background-color: #3a29cc;">Submit</button>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Enrollment Table -->
<div class="text-center">
<button onclick="show_enroll()" type="button" class="btn btn-primary" style="background-color: #3a29cc; margin-top: 20px;">Enrollment Table</button>
</div>
<div id="enrollment_table">
<div class="text-center title_">
<h1>Enrollment Table</h1>
</div>
<div class="container">
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Contact No.</th>
<th>Age</th>
<th>Sex</th>
<th>Course</th>
<th>Address</th>
<th>Aadhar Card</th>
<th>School Pass Certificate</th>
<th>Caste Certificate</th>
<th>UID</th>
</tr>
</thead>
<tbody id="table_body">
</tbody>
</table>
</div>
</div>
<!-- Placed Table -->
<div class="text-center">
<button onclick="show_enroll2()" type="button" class="btn btn-primary" style="background-color: #3a29cc; margin-top: 30px;">Placed Table</button>
</div>
<div id="placed_table">
<div class="text-center title_">
<h1>Placed Table</h1>
</div>
<div class="container">
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Contact No.</th>
<th>Certificate No.</th>
<th>Company Name</th>
<th>Job No.</th>
</tr>
</thead>
<tbody id="table_body2">
</tbody>
</table>
</div>
</div>
<!-- Delete Modal Button -->
<div class="text-center button_position">
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#deleteModal" style="background-color: #3a29cc;">Delete Dataset</button>
</div>
<!-- Delete Modal -->
<div class="modal fade" id="deleteModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Enter Details</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="text-center" id="alert">
Deleted if Dataset existed.
</div>
<form id="deleteform">
<div class="form-group">
<label for="table_select" class="col-form-label">Select Data Table:</label>
<select class="form-control" id="table_select" required>
<option>
Placement Company
</option>
<option>
Enrollment Forms
</option>
<option>
Placed Workers
</option>
</select>
</div>
<div class="form-group">
<label for="data_id" class="col-form-label">UID of Dataset:</label>
<input type="text" class="form-control" id="data_id" placeholder="UID" required>
</div>
</form>
<div style="padding-top: 20px;">
<button type="button" onclick="delete_dataset()" class="btn btn-primary" style="background-color: #3a29cc;">Delete</button>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="https://www.gstatic.com/firebasejs/4.8.1/firebase.js"></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script src="js/admin.js"></script>
</body>
</html>