-
Notifications
You must be signed in to change notification settings - Fork 0
/
stuacc.php
100 lines (97 loc) · 2.98 KB
/
stuacc.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
<?php
include("php/config.php");
include("php/onTablefunc.php");
session_start();
if(!isset($_SESSION['stu_Id'])) {
header("Location:/project/index.php");
exit();
}
$id = $_SESSION['stu_Id'];
$Qre = mysql_query("select * from users where id = $id",$con);
// Storing the details of the student
while($data = mysql_fetch_array($Qre)){
$F_name = $data['First_name'];
$L_name = $data['Last_name'];
$dpname = getDepartment($data['Department_id'],$con);
$yrname = getYear($data['Year_id'],$con);
$gender = $data['Gender'];
$phno = $data['Phone_no'];
$email =$data['Email'];
$stuname = $data['First_name']." ".$data['Last_name'];
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" type="text/css" href="css/userpanel.css">
<link rel="stylesheet" type="text/css" href="css/stuacc.css">
<link rel="stylesheet" type="text/css" href="css/all.min.css">
<link rel="stylesheet" type="text/css" href="css/fontawesome.min.css">
</head>
<body>
<div class="main_container">
<div class="topbar">
<div>
<a href="php/stulogin.php"><img src="images/voteicon.png"></a>
<div class="menu_Items">
<div class="election">
<a href=""><button class="btn election " style="background:#778ca3; color:white;">Election</button></a>
</div>
<div class="cand_Apply">
<a href=""><button class="btn Apply" >Apply</button></a>
</div>
<div class="result_View">
<a href="php/resultcheck.php"><button class="btn result">Result</button></a>
</div>
</div>
</div>
<div class="stu_Info">
<a class ="acc" href="stuacc
.php">
<span><?php echo $stuname; ?></span>
<img src="images/stuinfo.png">
</a>
<a href="php/logout.php"><i class="fas fa-sign-out-alt"></i></a>
</div>
</div>
<div class="center_Portion">
<form>
<div class="profile">
<div class="details">
<div class="stu_Img"></div>
<div>
<input type="text" name="f_Name" placeholder="<?php echo $F_name; ?>" readonly>
</div>
<div>
<input type="text" name="l_Name" placeholder="<?php echo $L_name; ?>" readonly>
</div>
<div class="drop-area">
<select name="Gender" readonly>
<option value="<?php echo $gender; ?>"><?php echo $gender; ?></option>
</select>
<select class="dept-drop" name="Department" readonly>
<option value="<?php echo $dpname; ?>"><?php echo $dpname; ?></option>
</select>
<select class="year-drop" name="Year" readonly>
<option value="<?php echo $yrname; ?>"><?php echo $yrname; ?></option>
</select>
</div>
<div>
<input type="text" name="p_No" placeholder="<?php echo $phno; ?>" readonly>
</div>
<div>
<input type="text" name="email" placeholder="<?php echo $email; ?>" readonly>
</div>
<div class="options">
<a class="edit" href="stuedit.php">Edit</a>
<a class="c_Pass" href="stupass.php">Change Password</a>
</div>
</div>
</div>
</form>
</div>
</div>
</body>
</html>