-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocuments.php
More file actions
130 lines (122 loc) · 4.93 KB
/
documents.php
File metadata and controls
130 lines (122 loc) · 4.93 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CampusConnect <Details></Details></title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="documents.css">
<style>
.error {
color: red;
}
</style>
</head>
<body>
<header>
<div class="navbar">
<div class="nav-logo">
<div class="logo"></div>
<div class="logo-text">
<p class="nav-logo-name">CAMPUS CONNECT</p>
<p class="nav-logo-tagline">UNLOCK YOUR FUTURE</p>
</div>
</div>
<div class="email-user-display" style="margin-left: 800px;">
<p id="msg"></p>
</div>
<div class="nav-btn-box">
<button class="btn" type="button" id="signOutBtn">Sign Out</button>
</div>
</div>
</header>
<main>
<div class="container">
<form action="documents_ajax.php" name='frm' method="post" enctype="multipart/form-data">
<div class="title">
<h3>Upload Your Documents</h3>
</div>
<div class="education-details">
<div class="input-box">
<label for="resume">Resume</label>
<input type="file" name="resume" id="resume" class="form-control" accept=".pdf,.docx">
<span class="error" id="fileError"></span>
<br>
</div>
<div class="input-box">
<label for="schoolLeaving">School Leaving Certificate</label>
<input type="file" name="schoolLeaving" id="schoolLeaving" class="form-control" accept=".pdf,.docx">
<span class="error" id="fileError"></span>
<br>
</div>
<div class="input-box">
<label for="tc">Transfer Certificate</label>
<input type="file" name="tc" id="tc" class="form-control" accept=".pdf,.docx">
<span class="error" id="fileError"></span>
<br>
</div>
<div class="input-box">
<label for="12">Class XII Marksheet</label>
<input type="file" name="12" id="12" class="form-control" accept=".pdf,.docx">
<span class="error" id="fileError"></span>
<br>
</div>
<div class="input-box">
<label for="10">Class X Marksheet</label>
<input type="file" name="10" id="10" class="form-control" accept=".pdf,.docx">
<span class="error" id="fileError"></span>
<br>
</div>
<div class="input-box">
<label for="intern">Internship Certificate</label>
<input type="file" name="intern" id="intern" class="form-control" accept=".pdf,.docx">
<span class="error" id="fileError"></span>
<br>
</div>
</div>
<div class="btn-box">
<button type="submit"> Submit </button>
</div>
</form>
</div>
</main>
<footer>
<div class="foot-top">
<a class="going-top" href="#" style="text-decoration: none; color:aliceblue">Back to top <i class="fa-solid fa-angles-up"></i></a>
</div>
<div class="foot-options">
<ul>
<a href="#" style="text-decoration: none; color:aliceblue"> Legal disclosure</a>
<a href="#" style="text-decoration: none; color:aliceblue"> Terms and Conditions</a>
<a href="#" style="text-decoration: none; color:aliceblue"> Privacy Policy</a>
<a href="#" style="text-decoration: none; color:aliceblue"> Contact Us</a>
</ul>
<p>© 2025 CampusConnect</p>
</div>
</footer>
<script>
let signOutBtn=document.getElementById('signOutBtn');
let Signout=()=>{
sessionStorage.removeItem("user-creds");
window.location.href='index.html';
}
signOutBtn.addEventListener('click',Signout);
</script>
<script>
let userCreds=JSON.parse(sessionStorage.getItem("user-creds"));
let msg=document.getElementById('msg');
let CheckCreds=()=>{
if(!sessionStorage.getItem("user-creds")){
console.log("could not fetch user email");
}
else{
msg.innerText= `${userCreds.email}`;
}
}
window.addEventListener('load', CheckCreds);
</script>
</body>
</html>