-
Notifications
You must be signed in to change notification settings - Fork 5
/
student-index.php
executable file
·132 lines (120 loc) · 4.62 KB
/
student-index.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
<?php
include_once 'includes/db_connect.php';
session_start();
$_SESSION['passmsg']="";
if (!isset($_SESSION['asi'])){
header("Location: login-index.php");
}
$userid = $_SESSION['id'];
$stf = $_SESSION['stf'];
$sinfo="SELECT * FROM `{$stf}` WHERE userid = '$userid'";
$sinfo_q = $conn->query($sinfo);
$row = mysqli_fetch_array($sinfo_q);
$_SESSION['fname']=$row['fname'];
$_SESSION['mname']=$row['mname'];
$_SESSION['lname']=$row['lname'];
$_SESSION['email']=$row['email'];
$_SESSION['address']=$row['address'];
$_SESSION['class']=$row['year']."-".$row['dept'];
$_SESSION['examfees']=$row['examfees'];
$_SESSION['libraryfine']=$row['libraryfine'];
$_SESSION['otherfees']=$row['otherfees'];
$_SESSION['totalfees']=$row['examfees']+$row['libraryfine']+$row['otherfees'];
$_SESSION['image']=$row['image'];
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/student-index.css">
<link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet">
<link rel="shortcut icon" href="images/sis-favicon.ico" type="image/x-icon">
<title>Student</title>
</head>
<body class="bg">
<div class="topnav pullUp">
<a href="#">About</a>
<a href="#">Help</a>
<a href="#">Developed By</a>
</div>
<div class="admincard-bck">
<!--Only For Login card Background-->
</div>
<div class="admincard">
<form action="">
<div class="containertitle"><div class="profile-image" style="background-image: url('<?php echo $_SESSION['image'];?>'); background-repeat: no-repeat;background-position: center;">
</div>WELCOME <?php echo $row['fname']; ?>
<div class="logout-button">
<a href="?logout">Logout</a>
<?php
if(isset($_GET['logout'])) {
session_unset();
header("Location: login-index.php");
}
?>
</div>
</div>
<div class="container-tabs">
<div class="tabs">
<!--<div class="pic" style="background-image: url(<?php echo $_SESSION['profile_img'];?>); background-repeat: no-repeat;background-position: center; ">
</div>-->
<div class="tabinfo">
<li>
<b><u>Personal Details</u></b>
</li>
<br>
<li>
Name: <?php echo $row['fname']." ".$row['mname']." ".$row['lname']; ?>
</li>
<br>
<li>
Email: <?php echo $row['email']; ?>
</li>
<br>
<li>
Address: <?php echo $row['address']; ?>
</li>
<br>
</div>
</div>
<div class="tabs">
<div id="tab-click" class="tabss blue tt-icon">
<h1>My TimeTable</h1>
<a href="#"><span></span></a>
</div>
<div id="tab-click" class="tabss red attend-icon">
<h1>My Attendance</h1>
<a href="view-attendance.php"><span></span></a>
</div>
</div>
</div>
<div class="container-tabs">
<div class="tabs">
<div class="button-div">
<div class="updateprofile ">
<a href="update-profile-student.php">Edit Profile</a>
</div>
<div class="updatepassword">
<a href="change-password.php">Change Password</a>
</div>
</div>
</div>
<div class="tabs">
<div id="tab-click" class="tabss orange fees-icon">
<h1>Fees: Rs.<?php echo $_SESSION['totalfees']; ?></h1>
<a href="student-view-fees.php"><span></span></a>
</div>
<div id="tab-click" class="tabss green notes-icon">
<h1>My Notes</h1>
<a href="download-php.php"><span></span></a>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="footer">
<p> Copyright 2017. All Rights Reserved. Developed by SSA</p>
</div>
</body>
</html>