-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
134 lines (123 loc) · 4.73 KB
/
profile.php
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
<?php
session_start();
include_once 'header.php';
include_once 'conn.php';
if(isset($_SESSION['student'])){
$email = $_SESSION['student'];
}else{
header('location: login.php');
}
?>
<main id="main">
<!-- ======= Breadcrumbs Section ======= -->
<section class="breadcrumbs">
<div class="container">
<div class="d-flex justify-content-between align-items-center">
<h2>Profile Page</h2>
<ol>
<li><a href="index.php">Home</a></li>
<li>Profile Page</li>
<li><a href="logout.php" class="appointment-btn scrollto">LOGOUT</a></li>
</ol>
</div>
</div>
</section><!-- End Breadcrumbs Section -->
<?php
$q = "SELECT * FROM scholar_user WHERE s_email='$email'";
$x = mysqli_query($conn,$q);
$row = mysqli_fetch_assoc($x);
$name = $row['s_name'];
?>
<?php
if(isset($_SESSION['msg'])){
echo "<h3 style='color:red;text-align:center;'>$_SESSION[msg] </h3>";
unset($_SESSION['msg']);
}
?>
<br>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="alert alert-danger alert-dismissible fade show">
<strong>Alert !</strong> Merit Cum Means Scholarship for Professional and Technical Courses CS (Minorities).
<button type="button" class="close" data-dismiss="alert">×</button>
</div>
<div class="alert alert-danger alert-dismissible fade show">
<strong>Alert !</strong> Central Sector Scheme of Scholarship for College and University Students.
<button type="button" class="close" data-dismiss="alert">×</button>
</div><div class="alert alert-danger alert-dismissible fade show">
<strong>Alert !</strong> ICTS – S. N. Bhatt Memorial Excellence Fellowship Program.
<button type="button" class="close" data-dismiss="alert">×</button>
</div><div class="alert alert-danger alert-dismissible fade show">
<strong>Alert !</strong> NIU Scholarship cum Admission Test (NSAT).
<button type="button" class="close" data-dismiss="alert">×</button>
</div><div class="alert alert-danger alert-dismissible fade show">
<strong>Alert !</strong>Undergraduate Scholarships – National Level Scholarships.
<button type="button" class="close" data-dismiss="alert">×</button>
</div>
</div>
</div>
</div>
<!-- ======= PROFILE Section ======= -->
<section id="appointment" class="appointment section-bg">
<div class="container" data-aos="fade-up">
<div class="section-title">
<h2>-: PROFILE :-</h2>
</div>
<div class="row">
<div class="col-md-6">
<div class="card mb-3">
<div class="card-body">
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0">Full Name</h6>
</div>
<div class="col-sm-9 text-secondary">
<?php echo $name; ?>
</div>
</div>
<hr>
<div class="row">
<div class="col-sm-3">
<h6 class="mb-0">Email</h6>
</div>
<div class="col-sm-9 text-secondary">
<?php echo $email; ?>
</div>
</div>
<hr>
<?php
if(!empty($msg)){
echo "<div class='row'>
<div class='col-sm-3'>
<h6 class='mb-0'>Notice</h6>
</div>
<div class='col-sm-9 text-secondary'>
<h6 style='color:red;'>$msg</h6>
</div>
</div>";
}
?>
</div>
</div>
</div>
<div class="col-md-4" style="margin-top: 10px;margin-left: 90px;">
<h4> -: SCHOLARSHIPS :-</h4>
<a href="scholarship.php" class="appointment-btn scrollto">
<span class="d-none d-md-inline">Fill</span> Scholarship Form</a>
<hr>
<a href="document.php" class="appointment-btn scrollto">
<span class="d-none d-md-inline"></span>Upload Documents</a>
<hr>
<a href="status.php" class="appointment-btn scrollto">
<span class="d-none d-md-inline"></span>Check Status Now</a>
<hr>
<a href="feedback.php" class="appointment-btn scrollto">
<span class="d-none d-md-inline"></span>Feedback</a>
</div>
</div>
</div>
</section><!-- End LOGIN Section -->
<?php
include_once 'footer.php';
?>