-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhod_profile.php
More file actions
180 lines (162 loc) · 5.64 KB
/
hod_profile.php
File metadata and controls
180 lines (162 loc) · 5.64 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?php
session_start();
require 'dbconnect.php';
if ( $_SESSION['login'] != 1 ) {
$_SESSION['message'] = "You must log in before viewing your profile page!";
header("location: error.php");
}//to make sure that user may not open the profile page with link
else {
$name = $_SESSION['name'];
$email = $_SESSION['email'];
$result1=$mysqli->query("SELECT * from hod WHERE offemail = '$email' ");
$row1=mysqli_fetch_array($result1);
$name=$row1['name'];
$_SESSION['code']=$row1['code'];
$_SESSION['branchcode']=$row1['branchcode'];
$active = $_SESSION['active'];
}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Welcome <?= $name?></title>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- jQuery (necessary JavaScript plugins) -->
<script src="js/bootstrap.js"></script>
<!-- Custom Theme files -->
<link rel="stylesheet" href="css/touchTouch.css" type="text/css" media="all" />
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Custom Theme files -->
<!--//theme-style-->
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="University Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.js"></script>
</head>
<body>
<!-- banner -->
<div class="banner2">
<div class="header">
<div class="top-menu">
<span class="menu"></span>
<ul class="navig">
<li><a href="index.php">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="examination.php">Examination</a></li>
</ul>
</div>
<!-- script-for-menu -->
<script>
$("span.menu").click(function(){
$("ul.navig").slideToggle("slow" , function(){
});
});
</script>
<!-- script-for-menu -->
<div class="clearfix"></div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-xs-6 col-xs-push-8">
<form action="logout.php" method="post" autocomplete="off">
<div class="form_details">
<div class="sub-button">
<input type="submit" name="logout" value="Log Out">
</div>
</div>
</form>
</div>
<div class="contact">
<div class="col-xs-6 col-xs-pull-4">
<h2>Welcome <?php echo $name?><sub>(<?= $email ?>)</sub></h2>
</div>
</div>
</div>
</div>
<?php
if ( !$active ){
echo "<center><br> Your account is not verified yet.. <br><br><br><br><b>Contents not available</b></center>";
}else{
$result= $mysqli->query("SELECT * FROM hod WHERE offemail = '$email'");
$row=mysqli_fetch_array($result);
//$row['name'] ;
$clgname=$row['clgname'];
$branch=$row['branch'];
$mobile=$row['mobile'];
$doj=$row['doj'];
$exp=$row['experience'];
$pe=$row['peremail'];
/*echo '<a href="hod_update.php"><button class="button button-block" name="update">UPDATE</button></a>';*/
echo '<div class="container-fluid">
<div class="col-md-3">
</div>
<div class="col-md-6">
<center><h2>Profile</h2><br></center>
<table class="table table-hover">
<thead>
<tr>
<th></th>
<th></th>
</tr>
</thead>
<tbody>
<tr>
<td><label>Name</label></td>
<td>'.$name.'</td>
</tr>
<tr>
<td><label>Branch</label></td>
<td>'.$branch.'</td>
</tr>
<tr>
<td><label>College Name</label></td>
<td>'.$clgname.'</td>
</tr>
<tr>
<td><label>Mobile Number</label></td>
<td>'.$mobile.'</td>
</tr>
<tr>
<td><label>Official email id</label></td>
<td>'.$email.'</td>
</tr>
<tr>
<td><label>Personal email id</label></td>
<td>'.$pe.'</td>
</tr>
</tbody>
</table>
</div>
<div class="col-md-3">
</div> ';
echo'
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<center>
<form action="hod_update.php" method="post" autocomplete="off">
<div class="form_details">
<div class="sub-button">
<input type="submit" name="update" value="Update">
</div>
</div>
</form>
<form action="frwd_faculty.php" method="post" autocomplete="off">
<div class="form_details">
<div class="sub-button">
<input type="submit" name="update" value="Confirm Faculty">
</div>
</div>
</form>
</center>
</div>
</div>
</div>';
}
?>
</body>
</html>