-
Notifications
You must be signed in to change notification settings - Fork 3
/
office_profile.php
99 lines (65 loc) · 1.98 KB
/
office_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
<!DOCTYPE html>
<html>
<style>
button {
background-color: #4CAF50;
color: white;
padding: 14px 20px;
font-size:20px;
margin: 4px 20px;
border: none;
cursor: pointer;
border-radius: 10px;
width: 20%;
box-shadow: 0px 0px 20px rgba(0, 0, 0, 7);
position: relative;
left: 600px;
}
body{
background-image: url("back.jpg");
}
h1{
position: relative;
left: 500px;
}
h2{
position: relative;
left: 600px;
}
</style>
<head>
<title>My Profile</title>
</head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<body>
<?php
include "config.php";
session_start();
if(isset($_SESSION['userid'])==false)
{
header("location:/project/index.html");
}
$uid=$_SESSION['userid'];
$query = "SELECT ID,NAME,DESIGNATION,PASSWORD FROM OFFICE WHERE ID = '$uid' ";
$result = mysqli_query($db,$query);
$row = mysqli_fetch_array($result,MYSQLI_ASSOC);
$count = mysqli_num_rows($result);
$name = $row["NAME"];
$id = $row["ID"];
$desg = $row["DESIGNATION"];
echo "<h1><u>My Profile</u></h1>";
echo "<h2> Name : ".$name."</h2>";
echo "<h2> ID Number : ".$id."</h2>";
echo "<h2> Designation : ".$desg."</h2>";
?>
<div class="butt">
<form action="http://localhost/project/office_pass.php" method = "post" >
<button input type=submit value="" name= "pass" style="top:20px;">Change Password</button>
</form>
</div>
<ul class="nav nav-pills" style="position: fixed;top: 600px;left: 45%;">
<li class="nav-item">
<a class="nav-link active" href="office.php">Go Back!</a> </li>
</ul>
</body>
</html>