-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplates.php
More file actions
688 lines (657 loc) · 50.6 KB
/
templates.php
File metadata and controls
688 lines (657 loc) · 50.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
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Templates</title>
<!-- Tailwind CSS -->
<script src="https://cdn.tailwindcss.com"></script>
<link href="/src/trae-theme.css" rel="stylesheet">
<!-- FontAwesome Icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/js/all.min.js" crossorigin="anonymous"></script>
<style>
body {
background: linear-gradient(135deg, #1E1E2E 0%, #2E2E4E 100%);
min-height: 100vh;
overflow-x: hidden;
}
/* Glassmorphic Effects */
.glass-effect {
background: rgba(46, 46, 78, 0.2);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid rgba(74, 30, 115, 0.2);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.sidebar {
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
will-change: transform, opacity;
background: rgba(46, 46, 78, 0.3);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border-right: 1px solid rgba(74, 30, 115, 0.3);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
height: 100vh;
overflow-y: auto;
}
.trae-sidebar-item {
transition: all 0.3s ease;
border: 1px solid transparent;
background: rgba(46, 46, 78, 0.2);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
}
.trae-sidebar-item.active {
background: linear-gradient(135deg, rgba(74, 30, 115, 0.5), rgba(215, 109, 119, 0.5));
border: 1px solid rgba(215, 109, 119, 0.3);
}
.trae-sidebar-item:hover {
background: linear-gradient(135deg, rgba(74, 30, 115, 0.5), rgba(215, 109, 119, 0.5));
border: 1px solid rgba(215, 109, 119, 0.2);
transform: translateX(5px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.sidebar-hidden { transform: translateX(-100%); }
.sidebar-visible { transform: translateX(0); }
.toggle-moved { transform: translateX(16rem) translateY(-50%); }
.toggle-default { transform: translateX(0) translateY(-50%); }
.content-shifted { margin-left: 16rem; }
.content-full { margin-left: 0; }
/* Custom scrollbar */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(215, 109, 119, 0.5);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(215, 109, 119, 0.7);
}
#mainContent {
height: 100vh;
overflow-y: auto;
padding-bottom: 2rem;
}
.template-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 2rem;
padding: 1rem;
}
</style>
</head>
<body class="bg-[#1E1E2E] text-[#F0F0F0]">
<div class="flex h-screen overflow-hidden relative z-0">
<!-- Background gradient shapes -->
<div class="absolute -top-[300px] -right-[300px] w-[600px] h-[600px] bg-gradient-to-r from-[rgba(74,30,115,0.3)] to-[rgba(215,109,119,0.3)] rounded-full blur-3xl -z-10 animate-pulse-slow"></div>
<div class="absolute -bottom-[200px] -left-[200px] w-[500px] h-[500px] bg-gradient-to-r from-[rgba(215,109,119,0.2)] to-[rgba(74,30,115,0.2)] rounded-full blur-3xl -z-10 "></div>
<!-- Sidebar -->
<aside id="sidebar" class="sidebar fixed w-64 text-white p-5 flex flex-col h-full z-40 sidebar-visible">
<div class="flex items-center justify-between mb-5">
<div class="flex items-center space-x-4 w-full">
<div class="w-12 h-12 rounded-full bg-gradient-to-r from-[#4A1E73] to-[#D76D77] flex items-center justify-center overflow-hidden flex-shrink-0">
<?php
if (isset($_SESSION['profile_image']) && !empty($_SESSION['profile_image'])) {
echo '<img src="' . htmlspecialchars($_SESSION['profile_image']) . '" class="w-full h-full object-cover profile-image" alt="Profile Picture">';
} else {
echo '<i class="fa-solid fa-user text-xl text-white"></i>';
}
?>
</div>
<div class="flex-grow">
<span class="text-lg font-bold text-gradient"><?php
if (!isset($_SESSION)) { session_start(); }
$firstName = isset($_SESSION['first_name']) ? htmlspecialchars($_SESSION['first_name']) : '';
$lastName = isset($_SESSION['last_name']) ? htmlspecialchars($_SESSION['last_name']) : '';
echo !empty($firstName) || !empty($lastName) ? trim("$firstName $lastName") : 'User Name';
?></span>
</div>
<!-- Removed welcome message -->
</div>
</div>
<nav>
<ul>
<li class="trae-sidebar-item p-3 rounded flex items-center space-x-2 cursor-pointer" onclick="window.location.href='dashboard.php'">
<i class="fa-solid fa-house"></i> <span>Home</span>
</li>
<li class="trae-sidebar-item p-3 rounded flex items-center space-x-2 cursor-pointer" onclick="window.location.href='report.php'">
<i class="fa-solid fa-file"></i> <span>Reports</span>
</li>
<li class="trae-sidebar-item p-3 rounded flex items-center space-x-2 cursor-pointer" onclick="window.location.href='analytics.php'">
<i class="fa-solid fa-chart-bar"></i> <span>Analytics</span>
</li>
<li class="trae-sidebar-item p-3 rounded flex items-center space-x-2 cursor-pointer" onclick="window.location.href='map.php'">
<i class="fa-solid fa-map"></i> <span>Map</span>
</li>
<li class="trae-sidebar-item p-3 rounded flex items-center space-x-2 cursor-pointer" onclick="window.location.href='safespace.php'">
<i class="fa-solid fa-shield-heart"></i> <span>Safe Space</span>
</li>
<li class="trae-sidebar-item p-3 rounded flex items-center space-x-2 cursor-pointer" onclick="window.location.href='walkwithus.php'">
<i class="fa-solid fa-person-walking"></i> <span>Walk With Us</span>
</li>
<li class="trae-sidebar-item active p-3 rounded flex items-center space-x-2">
<i class="fa-solid fa-file-lines"></i> <span>Templates</span>
</li>
<li class="trae-sidebar-item p-3 rounded flex items-center space-x-2 cursor-pointer" onclick="window.location.href='settings.php'">
<i class="fa-solid fa-gear"></i> <span>Settings</span>
</li>
<li class="trae-sidebar-item p-3 rounded flex items-center space-x-2 cursor-pointer" onclick="window.location.href='auth/logout.php'">
<i class="fa-solid fa-sign-out-alt"></i> <span>Logout</span>
</li>
</ul>
</nav>
</aside>
<!-- Sidebar Toggle Button -->
<button id="sidebarToggle" class="fixed left-0 top-1/2 glass-effect bg-gradient-to-r from-[rgba(74,30,115,0.5)] to-[rgba(215,109,119,0.5)] text-white p-3 rounded-r z-50 transition-transform duration-300 ease-in-out toggle-moved hover:shadow-lg">
<i class="fa-solid fa-bars"></i>
</button>
<!-- Main Content -->
<main id="mainContent" class="flex-1 p-8 transition-all duration-300 ease-in-out content-shifted overflow-y-auto h-screen">
<div id="content" class="min-h-full">
<h1 class="text-4xl font-bold text-gradient">Templates</h1>
<div class="absolute top-8 right-8 z-10 w-72">
<div class="relative">
<select class="w-full px-4 py-2 rounded-lg glass-effect bg-gradient-to-r from-[rgba(74,30,115,0.3)] to-[rgba(215,109,119,0.3)] text-white border-2 border-[rgba(215,109,119,0.3)] focus:outline-none focus:ring-2 focus:ring-[#D76D77] hover:border-[rgba(215,109,119,0.5)] transition-all duration-300" id="categoryFilter">
<option value="all" class="bg-[#1E1E2E]">All Categories</option>
<option value="Harassment" class="bg-[#1E1E2E]">Harassment</option>
<option value="Stalking" class="bg-[#1E1E2E]">Stalking</option>
<option value="Theft" class="bg-[#1E1E2E]">Theft</option>
<option value="Assault" class="bg-[#1E1E2E]">Assault</option>
</select>
<i class="fa-solid fa-search absolute right-3 top-3 text-white"></i>
</div>
</div>
<p class="mt-2">Manage your templates here.</p>
<div class="template-grid mt-10">
<!-- Template Cards with enhanced styling -->
<div class="trae-card p-6 rounded-xl transition-all duration-300 hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-[#D76D77] focus:ring-offset-2 border-2 border-[rgba(215,109,119,0.3)] backdrop-blur-lg shadow-xl flex flex-col h-[280px]" data-category="Harassment">
<div class="flex-grow">
<h2 class="text-xl font-semibold mb-3 text-white">Complaint Regarding Inadequate Response to Safety Concerns by University Staff</h2>
<p class="text-gray-300">Formal complaint template for reporting inadequate responses to safety concerns by university authorities.</p>
</div>
<div class="mt-4">
<button class="bg-gradient-to-r from-[#4A1E73] to-[#D76D77] text-white px-6 py-3 rounded-lg hover:from-[#3A1863] hover:to-[#C65D67] transition-all duration-300 focus:ring-2 focus:ring-[#D76D77] focus:ring-offset-2 template-button w-full">Use Template</button>
</div>
</div>
<div class="trae-card p-6 rounded-xl transition-all duration-300 hover:scale-[1.02] border-2 border-[rgba(215,109,119,0.3)] backdrop-blur-lg shadow-xl flex flex-col h-[280px]" data-category="Assault">
<div class="flex-grow">
<h2 class="text-xl font-semibold mb-3 text-white">Complaint Regarding Blackmail and Threat</h2>
<p class="text-gray-300">Template for reporting blackmail and and threat on campus.</p>
</div>
<div class="mt-4">
<button class="bg-gradient-to-r from-[#4A1E73] to-[#D76D77] text-white px-6 py-3 rounded-lg hover:from-[#3A1863] hover:to-[#C65D67] transition-all duration-300 focus:ring-2 focus:ring-[#D76D77] focus:ring-offset-2 template-button w-full">Use Template</button>
</div>
</div>
<div class="trae-card p-6 rounded-xl transition-all duration-300 hover:scale-[1.02] border-2 border-[rgba(215,109,119,0.3)] backdrop-blur-lg shadow-xl flex flex-col h-[280px]" data-category="Assault">
<div class="flex-grow">
<h2 class="text-xl font-semibold mb-3 text-white">Complaint Regarding Sexual Harassment Incident</h2>
<p class="text-gray-300">Formal template for documenting and reporting sexual harassment incidents with evidentiary support.</p>
</div>
<div class="mt-4">
<button class="bg-gradient-to-r from-[#4A1E73] to-[#D76D77] text-white px-6 py-3 rounded-lg hover:from-[#3A1863] hover:to-[#C65D67] transition-all duration-300 focus:ring-2 focus:ring-[#D76D77] focus:ring-offset-2 template-button w-full">Use Template</button>
</div>
</div>
<div class="trae-card p-6 rounded-xl transition-all duration-300 hover:scale-[1.02] mt-6 md:mt-0 border-2 border-[rgba(215,109,119,0.3)] backdrop-blur-lg shadow-xl flex flex-col h-[280px]" data-category="Stalking">
<div class="flex-grow">
<h2 class="text-xl font-semibold mb-3 text-white">Complaint Regarding Stalking Incident</h2>
<p class="text-gray-300">Template for reporting persistent stalking behavior with timeline documentation.</p>
</div>
<div class="mt-4">
<button class="bg-gradient-to-r from-[#4A1E73] to-[#D76D77] text-white px-6 py-3 rounded-lg hover:from-[#3A1863] hover:to-[#C65D67] transition-all duration-300 focus:ring-2 focus:ring-[#D76D77] focus:ring-offset-2 template-button w-full">Use Template</button>
</div>
</div>
<div class="trae-card p-6 rounded-xl transition-all duration-300 hover:scale-[1.02] mt-6 md:mt-0 border-2 border-[rgba(215,109,119,0.3)] backdrop-blur-lg shadow-xl flex flex-col h-[280px]" data-category="Stalking">
<div class="flex-grow">
<h2 class="text-xl font-semibold mb-3 text-white">Complaint Regarding Eve-Teasing</h2>
<p class="text-gray-300">Template for reporting instances of eve-teasing and street harassment.</p>
</div>
<div class="mt-4">
<button class="bg-gradient-to-r from-[#4A1E73] to-[#D76D77] text-white px-6 py-3 rounded-lg hover:from-[#3A1863] hover:to-[#C65D67] transition-all duration-300 focus:ring-2 focus:ring-[#D76D77] focus:ring-offset-2 template-button w-full">Use Template</button>
</div>
</div>
<div class="trae-card p-6 rounded-xl transition-all duration-300 hover:scale-[1.02] mt-6 md:mt-0 border-2 border-[rgba(215,109,119,0.3)] backdrop-blur-lg shadow-xl flex flex-col h-[280px]" data-category="Stalking">
<div class="flex-grow">
<h2 class="text-xl font-semibold mb-3 text-white">Complaint Regarding Offensive Comments or Remarks</h2>
<p class="text-gray-300">Template for documenting and reporting offensive verbal comments or derogatory remarks.</p>
</div>
<div class="mt-4">
<button class="bg-gradient-to-r from-[#4A1E73] to-[#D76D77] text-white px-6 py-3 rounded-lg hover:from-[#3A1863] hover:to-[#C65D67] transition-all duration-300 focus:ring-2 focus:ring-[#D76D77] focus:ring-offset-2 template-button w-full">Use Template</button>
</div>
</div>
</div>
</div>
</main>
</div>
<div id="templateModal" class="hidden fixed inset-0 bg-black/50 backdrop-blur-sm z-50 items-center justify-center p-4">
<div class="bg-[#2E2E4E] rounded-xl shadow-xl w-full max-w-3xl flex flex-col max-h-[80vh] overflow-y-auto scrollbar-none border-2 border-[#D76D77]">
<div class="sticky top-0 bg-[#2E2E4E] border-b p-6 flex justify-between items-center border-gradient">
<div class="flex items-center space-x-3">
<i class="fas fa-file-alt text-2xl text-[#F0F0F0]"></i>
<h2 class="text-3xl font-bold text-[#F0F0F0] bg-clip-text drop-shadow-lg">Complaint Template</h2>
</div>
<div class="flex items-center space-x-4">
<button onclick="copyApplication()" class="p-2 hover:bg-[#F9E9F0] rounded-full transition-colors duration-200 group relative" aria-label="Copy template">
<i class="fas fa-copy text-xl text-[#F0F0F0] group-hover:text-[#D76D77] transition-colors"></i>
<span class="absolute -bottom-8 right-0 bg-gray-800 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap shadow-lg">Copy template</span>
</button>
<button onclick="closeModal()" class="p-2 hover:bg-[#F9E9F0] rounded-full transition-colors duration-200 group relative" aria-label="Close modal">
<i class="fas fa-times text-xl text-[#F0F0F0] group-hover:text-[#D76D77] transition-colors"></i>
<span class="absolute -bottom-8 right-0 bg-gray-800 text-white text-sm px-2 py-1 rounded opacity-0 group-hover:opacity-100 transition-opacity shadow-lg">Close</span>
</button>
</div>
</div>
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-[#F0F0F0]" id="template-content">
<!-- Template content will be loaded dynamically -->
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Close modal when clicking outside
const templateModal = document.getElementById('templateModal');
templateModal.addEventListener('click', function(e) {
if (e.target === templateModal) {
closeModal();
}
});
// Add event listeners for template buttons
document.querySelectorAll('.template-button').forEach(button => {
button.addEventListener('click', () => {
showModal();
const templateName = button.parentElement.parentElement.querySelector('h2').textContent.trim();
const modalContent = document.querySelector('#template-content');
// Template content mapping
let templateHTML = '';
switch(templateName) {
case 'Complaint Regarding Eve-Teasing':
templateHTML = `
<div class="space-y-6">
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-[#F0F0F0]">
<p>To,</p>
<p>The Dean of Students,</p>
<p>[University Name],</p>
<p>[Address]</p>
<p class="mt-4">Subject: Complaint Regarding Eve-Teasing Incident</p>
<p class="mt-4">Respected Sir/Madam,</p>
<p class="mt-4">I, [Your Name / Anonymous], a student of [Department Name], enrolled in [Course Name], am submitting this complaint regarding an incident of eve-teasing/harassment that occurred on [Date] at [Location], involving a male student from [Name of Department/Year, if known].</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Details of the Incident:</h3>
<p>Type of Incident: Eve-Teasing / Harassment</p>
<p>Incident Description: On [Date], while I was [describe the situation], [Male Student’s Name] approached me and made inappropriate comments/gestures [give details].</p>
<p>Location: [Specific location in the campus]</p>
<p>Time: [Time of the incident]</p>
<p>Perpetrator: [Name if known]</p>
<p>Witnesses (if any): [Optional]</p>
<p class="mt-4">I request that the university authorities take swift action in addressing this incident and prevent recurrence. Attached evidence for reference.</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Attachments:</h3>
<p>[List of evidence]</p>
<div class="mt-8 pt-6 border-t border-gray-200">
<p class="font-medium">Sincerely,</p>
<p>[Your Name / Anonymous]</p>
<p>[Student ID and Department]</p>
</div>
</div>
</div>
`;
break;
case 'Complaint Regarding Offensive Comments or Remarks':
templateHTML = `
<div class="space-y-6">
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-[#F0F0F0]">
<p>To,</p>
<p>The Anti-Ragging Cell / Disciplinary Committee,</p>
<p>[University Name],</p>
<p>[University Address]</p>
<p class="mt-4">Subject: Formal Complaint Regarding Offensive Behavior by a Male Student</p>
<p class="mt-4">Respected Sir/Madam,</p>
<p class="mt-4">I, [Your Name / Anonymous], a student of [Department Name], am writing to formally report an incident of offensive and inappropriate behavior by a male student, [Offender’s Name (if known)], that took place on [Date] at [Location] within the university premises.</p>
<p class="mt-4">This incident has left me feeling unsafe and uncomfortable, and I strongly believe that immediate disciplinary action is necessary to ensure that such behavior is not repeated, either against me or any other female student on campus.</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Details of the Incident:</h3>
<p>Type of Incident: Offensive Behavior / Harassment / Misconduct</p>
<p>Incident Date: [DD/MM/YYYY]</p>
<p>Time of Incident: [HH:MM AM/PM]</p>
<p>Location: [Specify location]</p>
<p>Perpetrator’s Name (if known): [Student’s Name]</p>
<p>Student’s Department and Year (if known): [Department Name, Year of Study]</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Incident Description:</h3>
<p class="mt-4">On [Date], at approximately [Time], I was [mention activity] when I encountered [Offender’s Name]. Without any provocation, he [describe behavior details].</p>
<p class="mt-4">Despite my clear discomfort and efforts to ignore him, he continued to [describe persistent actions].</p>
<div class="mt-8 pt-6 border-t border-gray-200">
<p class="font-medium">Sincerely,</p>
<p>[Your Name / Anonymous]</p>
<p>[Your Contact Information (if comfortable sharing)]</p>
<p>[Department Name, University Name]</p>
</div>
</div>
</div>
`;
break;
case 'Complaint Regarding Inadequate Response to Safety Concerns by University Staff':
templateHTML = `
<div class="space-y-6">
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-[#F0F0F0]">
<p>To,</p>
<p>[University Authority Name]</p>
<p>[University Name]</p>
<p>[Address]</p>
<p class="mt-4">Subject: Complaint Regarding Inadequate Response to Safety Concerns by University Staff on [Date]</p>
<p class="mt-4">Respected Sir/Madam,</p>
<p class="mt-4">I, [Your Name / Anonymous], a student of [Department Name], am writing to report my dissatisfaction with the inadequate response from university staff regarding my previous safety concerns. On [Date], I approached [Staff Member's Name / Department] regarding [Nature of Concern], but the response was unsatisfactory and did not address my concerns adequately.</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Details of the Incident:</h3>
<p>Type of Concern: Inadequate Response to Safety Concern</p>
<p>Concern Description: [User Input]</p>
<p>Staff Involved (if known): [Optional Input]</p>
<p>Follow-Up (if any): [Optional Input]</p>
<p class="mt-6">I request that immediate action be taken to address the lack of response and that proper measures are put in place to ensure female students are supported effectively. I have attached evidence related to the incident.</p>
<p>Attachments: [Screenshots, Videos, etc.]</p>
<div class="mt-8 pt-6 border-t border-gray-200">
<p class="font-medium">Sincerely,</p>
<p>[Your Name / Anonymous]</p>
<p>[Your Contact Information (if comfortable sharing)]</p>
<p>[Department Name, University Name]</p>
</div>
</div>
</div>
`;
break;
case 'Complaint Regarding Offensive Comments or Remarks':
templateHTML = `
<div class="space-y-6">
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-[#F0F0F0]">
<p>To,</p>
<p>The Anti-Ragging Cell / Disciplinary Committee,</p>
<p>[University Name],</p>
<p>[University Address]</p>
<p class="mt-4">Subject: Formal Complaint Regarding Offensive Behavior by a Male Student</p>
<p class="mt-4">Respected Sir/Madam,</p>
<p class="mt-4">I, [Your Name / Anonymous], a student of [Department Name], am writing to formally report an incident of offensive and inappropriate behavior by a male student, [Offender’s Name (if known)], that took place on [Date] at [Location] within the university premises.</p>
<p class="mt-4">This incident has left me feeling unsafe and uncomfortable, and I strongly believe that immediate disciplinary action is necessary to ensure that such behavior is not repeated, either against me or any other female student on campus.</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Details of the Incident:</h3>
<p>Type of Incident: Offensive Behavior / Harassment / Misconduct</p>
<p>Incident Date: [DD/MM/YYYY]</p>
<p>Time of Incident: [HH:MM AM/PM]</p>
<p>Location: [Specify location]</p>
<p>Perpetrator’s Name (if known): [Student’s Name]</p>
<p>Student’s Department and Year (if known): [Department Name, Year of Study]</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Incident Description:</h3>
<p class="mt-4">On [Date], at approximately [Time], I was [mention activity] when I encountered [Offender’s Name]. Without any provocation, he [describe behavior details].</p>
<p class="mt-4">Despite my clear discomfort and efforts to ignore him, he continued to [describe persistent actions].</p>
</div>
</div>
`;
break;
case 'Complaint Regarding Sexual Harassment Incident':
templateHTML = `
<div class="space-y-6">
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-[#F0F0F0]">
<p>To,</p>
<p>[University Authority Name]</p>
<p>[University Name]</p>
<p>[Address]</p>
<p class="mt-4">Subject: Urgent Complaint Regarding Sexual Harassment Incident on [Date]</p>
<p class="mt-4">Respected Sir/Madam,</p>
<p class="mt-4">I, [Your Name / Anonymous], a student of [Department Name], am writing to formally report an incident of sexual harassment that took place on [Date] at [Location] within the university premises. This incident has caused me immense distress, and I request immediate action in accordance with the university’s anti-harassment policies.</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Incident Details:</h3>
<p>Type of Incident: Sexual Harassment</p>
<p>Date & Time: [Date] at [Time]</p>
<p>Location: [Specify exact location]</p>
<p>Perpetrator (if known): [Name/Description (if available)]</p>
<p>Witnesses (if any): [Names/Details (if available)]</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Incident Description:</h3>
<p class="text-[#F0F0F0]">[Provide a clear and concise account of what happened—describe the nature of the harassment (verbal, physical, non-verbal gestures, inappropriate messages, etc.), how it occurred, and how it made you feel. Mention if the harassment has been ongoing or if this was an isolated incident. If you tried to stop the behavior and the perpetrator continued, include that information.]</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Attachments (if any):</h3>
<p class="text-[#F0F0F0]">[Attach any relevant evidence, such as screenshots, emails, messages, photos, or video recordings.]</p>
<div class="mt-8 pt-6 border-t border-gray-200">
<p class="text-[#F0F0F0]">I request a prompt and serious response to this matter. Please confirm receipt of this complaint and inform me about the steps being taken. I am willing to cooperate in the investigation while maintaining confidentiality for my safety.</p>
<p class="font-medium text-[#F0F0F0] mt-4">Sincerely,</p>
<p>[Your Name / Anonymous]</p>
<p>[Your Contact Information (if comfortable sharing)]</p>
<p>[Department Name, University Name]</p>
</div>
</div>
</div>
`;
break;
case 'Complaint Regarding Blackmail and Threat':
templateHTML = `
<div class="space-y-6">
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-[#F0F0F0]">
<p>To,</p>
<p>The University Administration,</p>
<p>[University Name],</p>
<p>[University Address]</p>
<p class="mt-4">Subject: Formal Complaint Against Blackmail and Threats by a Student</p>
<p class="mt-4">Respected Sir/Madam,</p>
<p class="mt-4">I, [Your Name], a student of [Department Name], am writing to formally report a serious issue of blackmail and threats by [Offender’s Name], a fellow student at [University Name].</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Details of the Incident:</h3>
<ul class="list-disc pl-6 space-y-2">
<li>Nature of the Complaint: Blackmail / Intimidation</li>
<li>Date of Incident: [DD/MM/YYYY]</li>
<li>Location: [Specify]</li>
<li>Perpetrator’s Name (if known): [Name]</li>
</ul>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Incident Description:</h3>
<ul class="list-disc pl-6 space-y-2">
<li>[Offender’s Name] has obtained personal information/images/conversations related to me and is threatening to release them publicly unless I comply with [their demands].</li>
<li>The blackmail has caused severe mental distress.</li>
<li>The person has made multiple threats in person and online.</li>
<li>I fear for my privacy, security, and reputation on campus.</li>
</ul>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Requested Actions:</h3>
<ul class="list-disc pl-6 space-y-2">
<li>Investigate the source and nature of threats.</li>
<li>Take immediate disciplinary action against the offender.</li>
<li>Provide security assistance to ensure my safety.</li>
</ul>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Attachments:</h3>
<p class="mt-4">[Provide screenshots of threats/messages if available]</p>
<p class="mt-6">I request urgent intervention before the situation escalates further.</p>
<div class="mt-8 pt-6 border-t border-gray-200">
<p class="font-medium">Sincerely,</p>
<p>[Your Name]</p>
<p>[Student ID]</p>
<p>[Department Name]</p>
<p>[Email ID]</p>
<p>[Phone Number (Optional)]</p>
</div>
</div>
</div>
`;
break;
case 'Complaint Regarding Stalking Incident':
templateHTML = `
<div class="space-y-6">
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-gray-700 leading-relaxed">
<p>To,</p>
<p>[University Authority Name]</p>
<p>[University Name]</p>
<p>[Address]</p>
<p class="mt-4">Subject: Complaint Regarding Stalking Incident on [Date]</p>
<p class="mt-4">Respected Sir/Madam,</p>
<p class="mt-4">I, [Your Name / Anonymous], a student of [Department Name], am filing this complaint regarding a stalking incident that occurred on [Date] at [Location] within the university premises.</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Incident Details:</h3>
<p>Type of Incident: Stalking</p>
<p>Date & Time: [Date] at [Time]</p>
<p>Location: [Specific location]</p>
<p>Perpetrator (if known): [Optional]</p>
<p>Witnesses (if any): [Optional]</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Incident Description:</h3>
<p class="mt-4">[Provide a brief but clear account of what happened, including how you noticed the stalking, any repeated behavior, and how it made you feel.]</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Requested Action:</h3>
<p class="mt-4">I urge the university to take immediate action as per the anti-harassment policies, including:</p>
<ul class="list-disc pl-6 mt-2 text-[#F0F0F0]">
<li>Investigation of the incident (CCTV review, witness statements)</li>
<li>Strengthening security in the concerned area</li>
<li>Taking preventive measures to ensure student safety</li>
</ul>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Attachments (if any):</h3>
<p class="mt-4">[Relevant screenshots, videos, or any supporting evidence.]</p>
<p class="mt-6">I request a prompt response and appropriate action to address this serious concern.</p>
<p class="mt-8">Sincerely,</p>
<p>[Your Name / Anonymous]</p>
<p>[Your Contact Information (if comfortable sharing)]</p>
<p>[Department Name, University Name]</p>
</div>
</div>
`;
break;
case 'Complaint Regarding Offensive Comments or Remarks':
templateHTML = `
<h2 class="text-2xl font-bold mb-6 text-[#D12E79]">Complaint Regarding Offensive Comments or Remarks</h2>
<div class="space-y-6">
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-gray-700 leading-relaxed">
<p>To,</p>
<p>The Anti-Ragging Cell,</p>
<p>[University Name],</p>
<p>[Address]</p>
<p class="mt-4">Subject: Complaint Regarding Inappropriate Behavior by a Male Student</p>
<p class="mt-4">Respected Sir/Madam,</p>
<p class="mt-4">I, [Your Name / Anonymous], a student of [Department Name], am writing to report an incident involving inappropriate behavior by a male student, [Name if known], on [Date] at [Location]. The male student was [describe the inappropriate behavior, e.g., following, making unsolicited comments, etc.], which made me feel uncomfortable and unsafe on campus.</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Incident Details:</h3>
<p>Type of Incident: Inappropriate Behavior / Ragging</p>
<p>Incident Description: [Provide a detailed account of the behavior, e.g., harassment, derogatory comments]</p>
<p>Perpetrator: [Name of the student if known]</p>
<p>Location: [Location of the incident on campus]</p>
<p>Time of Incident: [Time of incident]</p>
<p>Witnesses (if any): [Optional]</p>
<p class="mt-4">I kindly request the Anti-Ragging Cell to take immediate action according to university regulations and ensure that this student's actions are addressed as per the law. I have attached any available evidence to substantiate my complaint.</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Supporting Documents:</h3>
<p>[List of documents or evidence, if any]</p>
<p class="mt-4">Thank you for your prompt attention to this matter. I hope to receive a response at the earliest.</p>
<div class="mt-8 pt-6 border-t border-gray-200">
<p class="font-medium text-gray-600">Sincerely,</p>
<p>[Your Name / Anonymous]</p>
<p>[Student ID and Department]</p>
<div class="sticky bottom-0 bg-white border-t p-4 mt-6">
<button onclick="copyApplication()" class="w-full bg-[#D12E79] text-white px-6 py-3 rounded-lg hover:bg-[#D76D77] transition-colors flex items-center justify-center space-x-2">
<i class="fas fa-copy"></i>
<span>Copy to Clipboard</span>
</button>
</div>
</div>
</div>
`;
break;
case 'Complaint Regarding Offensive Comments or Remarks':
templateHTML = `
<div class="space-y-6">
<div class="flex-1 overflow-y-auto p-6 space-y-6 text-[#F0F0F0]">
<p>To,</p>
<p>The Anti-Ragging Cell / Disciplinary Committee,</p>
<p>[University Name],</p>
<p>[University Address]</p>
<p class="mt-4">Subject: Formal Complaint Regarding Offensive Behavior by a Male Student</p>
<p class="mt-4">Respected Sir/Madam,</p>
<p class="mt-4">I, [Your Name / Anonymous], a student of [Department Name], am writing to formally report an incident of offensive and inappropriate behavior by a male student, [Offender’s Name (if known)], that took place on [Date] at [Location] within the university premises.</p>
<p class="mt-4">This incident has left me feeling unsafe and uncomfortable, and I strongly believe that immediate disciplinary action is necessary to ensure that such behavior is not repeated, either against me or any other female student on campus.</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Details of the Incident:</h3>
<p>Type of Incident: Offensive Behavior / Harassment / Misconduct</p>
<p>Incident Date: [DD/MM/YYYY]</p>
<p>Time of Incident: [HH:MM AM/PM]</p>
<p>Location: [Specify location]</p>
<p>Perpetrator’s Name (if known): [Student’s Name]</p>
<p>Student’s Department and Year (if known): [Department Name, Year of Study]</p>
<h3 class="text-lg font-semibold text-[#D76D77] mt-6">Incident Description:</h3>
<p class="mt-4">On [Date], at approximately [Time], I was [mention activity] when I encountered [Offender’s Name]. Without any provocation, he [describe behavior details].</p>
<p class="mt-4">Despite my clear discomfort and efforts to ignore him, he continued to [describe persistent actions].</p>
</div>
</div>
`;
}
modalContent.innerHTML = templateHTML;
document.getElementById('templateModal').classList.remove('hidden');
document.getElementById('templateModal').classList.add('flex');
});
});
const sidebar = document.getElementById('sidebar');
const toggleButton = document.getElementById('sidebarToggle');
const mainContent = document.getElementById('mainContent');
function setInitialState() {
if (window.innerWidth < 768) {
sidebar.classList.add('sidebar-hidden');
sidebar.classList.remove('sidebar-visible');
toggleButton.classList.add('toggle-default');
toggleButton.classList.remove('toggle-moved');
mainContent.classList.add('content-full');
mainContent.classList.remove('content-shifted');
} else {
sidebar.classList.remove('sidebar-hidden');
sidebar.classList.add('sidebar-visible');
toggleButton.classList.remove('toggle-default');
toggleButton.classList.add('toggle-moved');
mainContent.classList.remove('content-full');
mainContent.classList.add('content-shifted');
}
}
setInitialState();
window.addEventListener('resize', setInitialState);
toggleButton.addEventListener('click', function() {
if (sidebar.classList.contains('sidebar-hidden')) {
sidebar.classList.remove('sidebar-hidden');
sidebar.classList.add('sidebar-visible');
toggleButton.classList.remove('toggle-default');
toggleButton.classList.add('toggle-moved');
mainContent.classList.remove('content-full');
mainContent.classList.add('content-shifted');
} else {
sidebar.classList.add('sidebar-hidden');
sidebar.classList.remove('sidebar-visible');
toggleButton.classList.add('toggle-default');
toggleButton.classList.remove('toggle-moved');
mainContent.classList.add('content-full');
mainContent.classList.remove('content-shifted');
}
});
});
// Category filter functionality
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('categoryFilter').addEventListener('change', function() {
const selectedCategory = this.value;
document.querySelectorAll('[data-category]').forEach(card => {
const cardCategory = card.dataset.category;
card.style.display = (selectedCategory === 'all' || cardCategory === selectedCategory)
? ''
: 'none';
});
});
});
function copyApplication() {
const modalContent = document.querySelector('#template-content').innerText;
navigator.clipboard.writeText(modalContent).then(() => {
alert('Application copied to clipboard!');
closeModal();
});
}
function showModal() {
document.getElementById('templateModal').classList.remove('hidden');
document.getElementById('templateModal').classList.add('flex');
}
function closeModal() {
document.getElementById('templateModal').classList.add('hidden');
document.getElementById('templateModal').classList.remove('flex');
}
function useTemplate() {
// Add template usage logic here
closeModal();
}
</script>
</body>
</html>
<style>
.border-gradient {
border-bottom: 3px solid transparent;
border-image: linear-gradient(90deg, #D12E79 0%, #D76D77 100%);
border-image-slice: 1;
}
.fa-xmark {
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
</style>
</html>