-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFyp.aspx
361 lines (304 loc) · 9.96 KB
/
Fyp.aspx
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
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Fyp.aspx.cs" Inherits="Fyp" %>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FYP MENU</title>
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
<style>
* {
margin: 0 14px 0 2px;
padding: 0;
text-decoration: none;
}
:root {
--accent-color: #fff;
--gradient-color: #FBFBFB;
}
body {
width: 100vw;
height: 100vh;
background-image: linear-gradient(-45deg, #e3eefe 0%, #2fa144 100%);
position: relative;
top: 0px;
left: -8px;
}
.sidebar {
position: fixed;
width: 240px;
left: -240px;
height: 100%;
background-color: #fff;
transition: all .5s ease;
}
.sidebar header {
font-size: 28px;
color: #353535;
line-height: 70px;
text-align: center;
background-color: #fff;
user-select: none;
font-family: 'Lato', sans-serif;
}
.sidebar button {
display: block;
height: 65px;
width: 100%;
color: #353535;
line-height: 65px;
padding-left: 30px;
box-sizing: border-box;
border-left: 5px solid transparent;
font-family: 'Lato', sans-serif;
transition: all .5s ease;
border: none;
background: none;
cursor: pointer;
text-align: left;
}
button.active, button:hover {
border-left: 5px solid var(--accent-color);
color: #fff;
background: linear-gradient(to left, var(--accent-color), var(--gradient-color));
}
.sidebar button i {
font-size: 23px;
margin-right: 16px;
}
.sidebar button span {
letter-spacing: 1px;
text-transform: uppercase;
}
#check {
display: none;
}
label #btn, label #cancel {
position: absolute;
left: 10px; /* Adjusted position */
top: 10px; /* Adjusted position */
cursor: pointer;
color: #1b7318;
border-radius: 5px;
margin: 0; /* Removed margin */
font-size: 29px;
background-color: #e8d1ff;
box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), inset -7px -7px 10px 0px rgba(0, 0, 0, .1), 3.5px 3.5px 20px 0px rgba(0, 0, 0, .1), 2px 2px 5px 0px rgba(0, 0, 0, .1);
height: 45px;
width: 45px;
text-align: center;
text-shadow: 2px 2px 3px rgba(255, 255, 255, 0.5);
line-height: 45px;
transition: all .5s ease;
}
label #cancel {
opacity: 0;
visibility: hidden;
}
#check:checked ~ .sidebar {
left: 0;
}
#check:checked ~ label #btn {
margin-left: 245px;
opacity: 0;
visibility: hidden;
}
#check:checked ~ label #cancel {
margin-left: 245px;
opacity: 1;
visibility: visible;
}
.sidebar button:hover {
background-color: #e6ffe6;
}
.sidebar button:hover span {
opacity: 1;
visibility: visible;
}
.sidebar > button.active, .sidebar > button:hover:nth-child(even) {
--accent-color: rgb(31, 108, 34);
--gradient-color: #1b7318;
}
.sidebar button.active, .sidebar > button:hover:nth-child(odd) {
--accent-color: #1b7318;
--gradient-color: #1b7318;
}
.frame {
width: 50%;
height: 30%;
margin: auto;
text-align: center;
}
h2 {
position: relative;
text-align: center;
color: #353535;
font-size: 60px;
font-family: 'Lato', sans-serif;
margin: 0;
color: #1b7318;
}
p {
font-family: 'Lato', sans-serif;
font-weight: 300;
text-align: center;
font-size: 30px;
color: #1b7318;
margin: 0;
}
.centered-card {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1; /* Ensure the card is above the sidebar */
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.card {
width: 250px;
max-width: 600px;
background-color: #ffffff;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
transition: 0.3s;
/* Center the card */
margin-top: 20px;
padding: 20px;
border-radius: 10px;
height: 349px;
background-color: mediumseagreen;
display: none;
margin-left: auto;
margin-right: auto;
margin-bottom: auto;
}
.card.active {
display: block; /* Show the card when active class is applied */
}
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
.card-header {
font-size: 24px;
font-weight: bold;
margin-bottom: 10px;
}
.card-row {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
.card-label {
font-weight: bold;
flex: 1;
}
.card-data {
flex: 2;
}
.action-buttons {
display: flex;
justify-content: center;
margin-top: 50px;
}
.action-button {
margin: 0 10px;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s, color 0.3s; /* Added color transition */
font-size: 20px;
}
.action-button.accept {
background-color: seagreen; /* Darker color for Accept button */
color: white;
}
.action-button.reject {
background-color: #f44336;
color: white;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<input type="checkbox" id="check" checked>
<label for="check">
<i class="fas fa-bars" id="btn"></i>
<i class="fas fa-times" id="cancel"></i>
</label>
<div class="sidebar">
<header>FYP Menu</header>
<button class="active">
<i class="fas fa-qrcode"></i>
<span>Dashboard</span>
</button>
<button>
<i class="fas fa-sign-out-alt"></i>
<span>LogOut</span>
</button>
</div>
<asp:PlaceHolder ID="CardPlaceholder" runat="server"></asp:PlaceHolder>
<div class="centered-card">
<div class="card active" id="Card">
<div class="card-header">Token Details</div>
<asp:DropDownList ID="tokenDropdown" runat="server" AutoPostBack="true" OnSelectedIndexChanged="tokenDropdown_SelectedIndexChanged"></asp:DropDownList>
<br />
<div class="card-row">
<div class="card-label">
Token ID:
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
<!-- Placeholder for Token ID -->
</div>
<div class="card-row">
<div class="card-label">
Form ID:
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
</div>
<!-- Placeholder for Form ID -->
</div>
<div class="card-row">
<div class="card-label">
FYP Decision:
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
</div>
<!-- Placeholder for FYP Decision -->
</div>
<div class="card-row">
<div class="card-label">
FYP Comment:
<asp:TextBox ID="TextBox1" runat="server" Height="77px" Width="245px"></asp:TextBox>
<div class="action-buttons">
<asp:Button ID="AcceptButton" runat="server" Text="Accept" OnClick="AcceptButton_Click" CssClass="action-button accept" />
<asp:Button ID="RejectButton" runat="server" Text="Reject" OnClick="RejectButton_Click" CssClass="action-button reject" />
</div>
</div>
</div>
</div>
</div>
<script>
const buttons = document.querySelectorAll('.sidebar button');
buttons.forEach(button => {
button.addEventListener('click', () => {
buttons.forEach(b => b.classList.remove('active'));
button.classList.add('active');
});
});
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
</script>
<p>
</p>
</form>
</body>
</html>