-
Notifications
You must be signed in to change notification settings - Fork 22
/
employee_profile.php
91 lines (59 loc) · 3.17 KB
/
employee_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
<?php
include_once 'header_h.php';
?>
<?php
include_once 'roles.php';
?>
<form action="#" method="post" id="Employee_profile">
<section class="content">
<div class="container-fluid">
<div class="block-header">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
<h2>
<b><?php echo $_SESSION['emp_name']."'s"; ?> PROFILE
</h2>
</div>
<div class="body table-responsive">
<?php
include_once 'config/config.php';
$enm=$_SESSION['emp_name'];
$e=$_SESSION['employee_id'];
$q="Select * from employee where Employee_id=".$e.";";//here join entry from others tables will also come for various other id's
$status = mysqli_query($connection_obj,$q);
if($status)
{
while ($row = mysqli_fetch_assoc($status))
{
echo "ID:<b>".$row['Employee_id']."</b><br>";
echo "NAME:".$row['Employee_name']."<br>";
echo "EMAIL:".$row['Email']."<br>";
echo "PASSWORD:".$row['Password']."<br>";
echo "JOINING DATE:".$row['Joining_date']."<br>";
echo "ROLE:".$row['Roles']."<br>";
echo "DEPARTMENT ID:".$row['Department_id']."<br>";
echo "BRANCH ID:".$row['Branch_id']."<br>";
echo "DESIGNATION ID:".$row['Designation_id']."<br>";
echo "SHIFT ID:".$row['Shift_id']."<br>";
}
}
else
{
echo "error".mysqli_error($connection_obj);
}
?>
</div></td>
</div>
</div>
</div>
</div>
</div>
<center>
<input class="btn btn-primary waves-effect" name="close" type="SUBMIT" value="CLOSE" formaction="./dashbord.php"></a></button>
</center>
</section>
</form>
<?php
include_once 'footer_h.php';
?>