-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattainmenta.html
More file actions
395 lines (358 loc) · 13.6 KB
/
attainmenta.html
File metadata and controls
395 lines (358 loc) · 13.6 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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"> </script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<link href="https://unpkg.com/boxicons@2.1.4/css/boxicons.min.css" rel="stylesheet" />
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="navigation-strip">
<!-- Hamburger Icon to Open Sidebar -->
<i class="bx bx-menu" id="sidebarOpen"></i>
<!-- Menu Options -->
<div class="navbar_content">
<i class='bx bx-sun' id="darkLight"></i>
</div>
<img class="logo" src="LOGO.jpg" alt="Flowers in Chania">
<div class="contact-us-container">
Welcome<h4 id="username">User Name</h4></h4>
</div>
<span class="user-info-button">User Info</span>
<!-- User Info Popup -->
<div class="user-info-popup">
<!-- Add user information here -->
<h4 id="username1">User Name</h4>
<div><h7 id="userrole">User Role</h7></div>
<div><h8 id="course_code">Course Name</h8></div>
</div>
</div>
<!-- sidebar -->
<nav class="sidebar">
<div class="menu_content">
<ul class="menu_items">
<div class="menu_title menu_dahsboard"></div>
<!-- duplicate or remove this li tag if you want to add or remove navlink with submenu -->
<!-- start -->
<li class="item">
<a href="/teacherhome" class="nav_link">
<span class="navlink_icon">
<i class="bx bx-home-alt"></i>
</span>
<span class="navlink">Home</span></a>
</li>
<!-- end -->
<!-- duplicate this li tag if you want to add or remove navlink with submenu -->
<!-- start -->
<li class="item">
<div href="#" class="nav_link submenu_item">
<span class="navlink_icon">
<i class="bx bx-user"></i>
</span>
<span class="navlink">Attainment</span>
<i class="bx bx-chevron-right arrow-left"></i>
</div>
<ul class="menu_items submenu">
<a href="/attainmentt1" class="nav_link sublink">T1</a>
<a href="/attainmentt2" class="nav_link sublink">T2</a>
<a href="/attainmentt3" class="nav_link sublink">T3</a>
<a href="/attainmentta" class="nav_link sublink">TA</a>
<a href="/atcourseexit" class="nav_link sublink">Course Exit Survey</a>
<a href="/atcopsomap" class="nav_link sublink">CO-PO Attainment</a>
</ul>
</li>
</ul>
<ul class="menu_items">
<div class="menu_title menu_setting"></div>
<li class="item">
<a href="/logout" class="nav_link">
<span class="navlink_icon">
<i class="bx bx-log-out"></i>
</span>
<span class="navlink">Logout</span>
</a>
</li>
<!-- Sidebar Open / Close -->
<div class="bottom_content">
<div class="bottom expand_sidebar">
<span> Expand</span>
<i class='bx bx-log-in' ></i>
</div>
<div class="bottom collapse_sidebar">
<span> Collapse</span>
<i class='bx bx-log-out'></i>
</div>
</div>
</div>
</nav>
<div class="upper-container d-flex align-items-center justify-content-start">
<div class="institute-logo">
<img src="logojiit.jpg" alt="Institute Logo">
</div>
<div class="institute-details">
<h1>Jaypee Institute of Information Technology</h1>
<p>Declared Deemed to be University under Sec 3 of UGC Act 1956</p>
<p>Exam Event: TA</p>
</div>
</div>
<div class="exam-date">
<p>Date & Time: <span id="datePlaceholder"></span> & <span id="timePlaceholder"></span></p>
</div>
<div class="container mt-5"></div>
<div class="box-heading1">
<h5>T3 Attainment Data</h5>
</div>
<!--<div class="box-heading">
<h5>Lecture Wise Breakup</h5>
</div>-->
<table class="table" id="course_table">
<thead>
<tr>
<th>Course Code</th>
<td>
<span id="co_code" class="form-control"></span>
</td>
<th>Semester</th>
<td>
<span id="sem" class="form-control"></span>
</td>
</tr>
<tr>
<th>Course Name</th>
<td colspan="3">
<span id="co_name" class="form-control"></span>
</td>
</tr>
<tr>
<th>Credits</th>
<td>
<span id="credits" class="form-control"></span>
</td>
<th>Contact Hours</th>
<td>
<span id="contact_hours" class="form-control"></span>
</td>
</tr>
<tr>
<th>NBA Code</th>
<td>
<span id="credits" class="form-control">00</span>
</td>
<th>Examination</th>
<td>
<span id="contact_hours" class="form-control">T3</span>
</td>
</tr>
<tr>
<th rowspan="2" colspan="2" class="top">Faculty (Names)</th>
<th>Faculty Coordinator</th>
<td>
<span id="coordinators" class="form-control"></span>
</td>
</tr>
<tr>
<th>Teacher(s) Alphabetically</th>
<td>
<span id="teacher" class="form-control"></span>
</td>
</tr>
</thead>
<!-- ... Your table body here ... -->
</table>
<tbody id="cd_data">
<!-- Data will be added here dynamically -->
</tbody>
</table>
<table class="table" id="attainment-table">
<thead>
</thead>
<tbody id="attainment-data">
<!-- Data will be added here dynamically -->
</tbody>
</table>
<div class="table-buttons text-end mt-3">
<button class="btn btn-info add-qcolumn-buttonat">Add Question Columns</button>
<button class="btn btn-info add-acolumn-buttonat">Add Attainment Columns</button>
<button class="btn btn-info add-row-buttonat">Add New Row</button>
<button class="btn btn-info save-buttonat">Save</button>
</div>
</div>
<div class="container mt-5">
<form id="uploadForm" enctype="multipart/form-data">
<div class="form-group">
<label for="file">Choose an Excel file:</label>
<input type="file" class="form-control-file" id="file" name="file" accept=".xlsx">
</div>
<button type="button" class="btn btn-primary" onclick="confirmUpload()">Confirm Upload</button>
</form>
<div class="container mt-5">
<a href="/generate-sample-excel" class="btn btn-primary">Download Sample Excel</a>
</div>
<div id="tableContainer" class="mt-4">
<!-- The table will be displayed here -->
</div>
</div>
<div class="table-buttons text-end mt-3">
<button class="print-button" onclick="savePage()">Save</button></div>
<button class="print-button" onclick="printPage()">Print</button></div>
<!-- ... (your existing HTML code) ... -->
<!-- Progress Buttons -->
<div class="footer">
<p>Copyright © 2023 OBE Accreditation. All rights reserved.</p>
<p>Address: JIIT-128,Sector 128,Noida,Uttar Pradesh,India</p>
<p>Email: contact@example.com</p>
</div>
<div class="footer-container">
<section class="footer-subscription">
<p class="footer-subscription-heading">
Join our Gmail Channel for regular Updates.
</p>
<p class="footer-subscription-text">
You can unsubscribe at any time.
</p>
<div class="input-areas">
<form id="subscription-form">
<input
class="footer-input"
name="email"
type="email"
placeholder="Your Email"
/>
<button type="submit" class="btn btn--outline">Subscribe</button>
</form>
</div>
</section>
<div class="footer-links">
<div class="footer-link-wrapper">
<div class="footer-link-items">
<h2>About Us</h2>
<a href="/sign-up">How it works</a>
<a href="/">Clients</a>
<a href="/">F</a>
<a href="/">Investors</a>
<a href="/">Terms of Service</a>
</div>
<div class="footer-link-items">
<h2>Contact Us</h2>
<a href="/">Contact</a>
<a href="/">Support</a>
<a href="/">Destinations</a>
<a href="/">Sponsorships</a>
</div>
</div>
<div class="footer-link-wrapper">
<div class="footer-link-items">
<h2>Videos</h2>
<a href="/">Submit Video</a>
<a href="/">Ambassadors</a>
<a href="/">Agency</a>
<a href="/">Influencer</a>
</div>
<div class="footer-link-items">
<h2>Social Media</h2>
<a href="/">Instagram</a>
<a href="/">Facebook</a>
<a href="/">Youtube</a>
<a href="/">Twitter</a>
</div>
</div>
</div>
<section class="social-media">
<div class="social-media-wrap">
<div class="footer-logo">
<a href="/" class="social-logo">
<i class="fab fa-typo3"></i>
</a>
</div>
<small class="website-rights">OBE Accreditation © 2023</small>
<div class="social-icons">
<a
class="social-icon-link facebook"
href="/"
target="_blank"
aria-label="Facebook"
>
<i class="fab fa-facebook-f"></i>
</a>
<a
class="social-icon-link instagram"
href="/"
target="_blank"
aria-label="Instagram"
>
<i class="fab fa-instagram"></i>
</a>
<a
class="social-icon-link youtube"
href="/"
target="_blank"
aria-label="Youtube"
>
<i class="fab fa-youtube"></i>
</a>
<a
class="social-icon-link twitter"
href="/"
target="_blank"
aria-label="Twitter"
>
<i class="fab fa-twitter"></i>
</a>
<a
class="social-icon-link twitter"
href="/"
target="_blank"
aria-label="LinkedIn"
>
<i class="fab fa-linkedin"></i>
</a>
</div>
</div>
</section>
</div>
<!-- Add more buttons for additional pages as needed -->
</div>
<!-- Add more buttons for additional pages as needed -->
</div>
<script src="dataval.js"></script>
<script src="scriptta.js"></script>
<script>
const currentDate = new Date();
// Define the fixed date you want to display
const fixedDate = new Date('2023-09-28'); // Set the fixed date here (Year, Month - 1, Day)
// Function to format time with leading zeros
const formatTime = (value) => (value < 10 ? `0${value}` : value);
// Function to format date as dd/mm/yyyy
const formatDate = (date) => {
const day = formatTime(date.getDate());
const month = formatTime(date.getMonth() + 1);
const year = date.getFullYear();
return `${day}/${month}/${year}`;
};
// Check if the current date is the fixed date
if (
currentDate.getFullYear() === fixedDate.getFullYear() &&
currentDate.getMonth() === fixedDate.getMonth() &&
currentDate.getDate() === fixedDate.getDate()
) {
// Display the fixed date
document.getElementById('datePlaceholder').textContent = formatDate(fixedDate);
} else {
// Display the current date
document.getElementById('datePlaceholder').textContent = formatDate(currentDate);
}
// Display the current time
const hours = formatTime(currentDate.getHours());
const minutes = formatTime(currentDate.getMinutes());
const seconds = formatTime(currentDate.getSeconds());
document.getElementById('timePlaceholder').textContent = `${hours}:${minutes}:${seconds}`;
function printPage() {
// Call the window.print() method to initiate printing
window.print();
}</script>
</body>
</html>