-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
159 lines (150 loc) · 8.81 KB
/
dashboard.php
File metadata and controls
159 lines (150 loc) · 8.81 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
<?php
include('database.php');
session_start();
error_reporting(0);
$email1 = $_SESSION['login'];
if(!isset($_SESSION['login']))
{
header("location:login.php");
exit;
}
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Latest compiled CSS -->
<link href='https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.1/font/bootstrap-icons.css' rel='stylesheet'>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fullcalendar@5.11.0/main.min.css">
<!-- Latest compiled JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<title>Scheduled Tasks</title>
<link rel="icon" href="https://www.freeiconspng.com/uploads/schedule-icon-8.png" type="image/x-icon">
<link href='login.css' rel='stylesheet' />
</head>
<body>
<div style="margin-bottom: .5em;" class="container-fluid">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">
<img src="https://www.freeiconspng.com/uploads/schedule-icon-8.png" width="30" height="30" class="d-inline-block align-top" alt=""> <strong>Scheduled Events</strong>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarText" aria-controls="navbarText" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarText">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="index.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="dashboard.php">Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link" href="password.php">Change Password</a>
</li>
</ul>
</div>
</div>
<a class="navbar-text nav-link" href="logout.php">Logout</a>
</nav>
</div>
<div class="container-xl px-4 mt-4">
<div class="row">
<div class="container">
<div class="card mb-4">
<div class="card-header">Student Details</div>
<div class="card-body">
<form>
<?php
include 'database.php';
$query = "SELECT * FROM studata WHERE email='".$email1."'";
$result = mysqli_query($conn,$query);
while($details = mysqli_fetch_assoc($result))
{
?>
<fieldset disabled="disabled">
<!-- Form Group (username)-->
<div class="mb-3">
<label class="small mb-1" for="name">Name</label>
<input class="form-control" id="name" type="text" value="<?php echo $details['names']; ?>">
</div>
<!-- Form Row-->
<div class="row gx-3 mb-3">
<!-- Form Group (first name)-->
<div class="col-md-6">
<label class="small mb-1" for="regno">Registration Number</label>
<input class="form-control" id="regno" type="text" value="<?php echo $details['regno']; ?>">
</div>
<!-- Form Group (last name)-->
<div class="col-md-6">
<label class="small mb-1" for="appno">Application Number</label>
<input class="form-control" id="appno" type="text" value="<?php echo $details['appno']; ?>">
</div>
</div>
<!-- Form Row -->
<div class="row gx-3 mb-3">
<!-- Form Group (organization name)-->
<div class="col-md-6">
<label class="small mb-1" for="sem">Semester</label>
<input class="form-control" id="sem" type="text" value="<?php echo $details['sem']; ?>">
</div>
<!-- Form Group (location)-->
<div class="col-md-6">
<label class="small mb-1" for="cgpa">CGPA</label>
<input class="form-control" id="cgpa" type="text" value="<?php echo $details['cgpa']; ?>">
</div>
</div>
<!-- Form Row -->
<div class="row gx-3 mb-3">
<!-- Form Group (organization name)-->
<div class="col-md-6">
<label class="small mb-1" for="rollno">Roll Number</label>
<input class="form-control" id="rollno" type="text" value="<?php echo $details['rollno']; ?>">
</div>
<!-- Form Group (location)-->
<div class="col-md-6">
<label class="small mb-1" for="sec">Section</label>
<input class="form-control" id="sec" type="text" value="<?php echo $details['sec']; ?>">
</div>
</div>
<!-- Form Group (email address)-->
<div class="mb-3">
<label class="small mb-1" for="email">Email address</label>
<input class="form-control" id="email" type="email" value="<?php echo $details['email']; ?>">
</div>
<!-- Form Row-->
<div class="row gx-3 mb-3">
<!-- Form Group (phone number)-->
<div class="col-md-6">
<label class="small mb-1" for="tgnum">Teacher Guardian Mobile</label>
<input class="form-control" id="tgnum" type="tel" value="<?php echo $details['tgnum']; ?>">
</div>
<!-- Form Group (birthday)-->
<div class="col-md-6">
<label class="small mb-1" for="tgname">Teacher Guardian Name</label>
<input class="form-control" id="tgname" type="text" value="<?php echo $details['tgname']; ?>">
</div>
</div>
</fieldset>
<?php
}
?>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@5.11.0/main.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@5.11.0/locales-all.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@5.11.0/locales-all.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/fullcalendar@5.11.0/main.min.js"></script>
</body>
</html>