-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinfo.php
181 lines (159 loc) · 6.89 KB
/
info.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
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
181
<?php include "./checkSession.php"; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- META SECTION -->
<title>Info - Admin Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="./logo.jpg" type="image/x-icon" />
<!-- END META SECTION -->
<!-- CSS INCLUDE -->
<link rel="stylesheet" type="text/css" id="theme" href="./admin/css/<?php getTheme(); ?>" />
<?php
include "./dataTableCSS.php";
?>
<style>
label {
font-weight: 900;
}
</style>
<!-- CSS -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/alertifyjs@1.11.2/build/css/alertify.min.css" />
<!-- JavaScript -->
<script src="//cdn.jsdelivr.net/npm/alertifyjs@1.11.2/build/alertify.min.js"></script>
<!-- EOF CSS INCLUDE -->
</head>
<body>
<!-- START PAGE CONTAINER -->
<div class="page-container">
<?php include "./header.php"; ?>
<!-- START BREADCRUMB -->
<ul class="breadcrumb">
<li><a href="dashboard.php">Dashboard</a></li>
<li class="active">Info</li>
</ul>
<!-- END BREADCRUMB -->
<!-- PAGE CONTENT WRAPPER -->
<div class="page-content-wrap container">
<span style="padding:10px;background:#000066;color:#fff;text-align:left;font-weight:600;font-size:17px;width:100%;margin-bottom:10px;display:block;">
<i class="fa fa-info-circle"></i> User Info
</span>
<div class="row">
<!---row--->
<?php
include "./db.php";
$emp_id = $_SESSION["emp_id"];
$sql = "SELECT * FROM employee WHERE emp_id='$emp_id'";
$result = $conn->query($sql);
if ($row = $result->fetch_assoc()) {
?>
<div class="col-md-3">
<!---col--->
<div class="form-group">
<label>Emp_ID:</label>
<input type="text" style="color:#26ae60" class="form-control" value="<?php echo $row["emp_id"]; ?>" readonly disabled>
</div>
</div>
<!---col--->
<div class="col-md-3">
<!---col--->
<div class="form-group">
<label>Name:</label>
<input type="text" style="color:#26ae60" class="form-control" value="<?php echo $row["emp_name"]; ?>" readonly disabled>
</div>
</div>
<!---col--->
<div class="col-md-3">
<!---col--->
<div class="form-group">
<label>Email:</label>
<input type="text" style="color:#26ae60" class="form-control" value="<?php echo $row["emp_email"]; ?>" readonly disabled>
</div>
</div>
<!---col--->
<div class="col-md-3">
<!---col--->
<div class="form-group">
<label>Designation:</label>
<input type="text" style="color:#26ae60" class="form-control" value="<?php echo $row["emp_position"]; ?>" readonly disabled>
</div>
</div>
<!---col--->
</div>
<div class="row" style="margin-top:10px">
<div class="col-md-3">
<!---col--->
<div class="form-group">
<label>DOB:</label>
<input type="text" style="color:#26ae60" class="form-control" value="<?php echo date('d-m-Y', strtotime($row["emp_dob"])); ?>" readonly disabled>
</div>
</div>
<!---col--->
<div class="col-md-3">
<!---col--->
<div class="form-group">
<label>Joining Date:</label>
<input type="text" style="color:#26ae60" class="form-control" value="<?php echo date('d-m-Y', strtotime($row["emp_joining_date"])); ?>" readonly disabled>
</div>
</div>
<!---col--->
<div class="col-md-3">
<!---col--->
<div class="form-group">
<label>Profile Created On:</label>
<input type="text" style="color:#26ae60" class="form-control" value="<?php echo date('d-m-Y', strtotime($row["cid"])); ?>" readonly disabled>
</div>
</div>
<!---col--->
<div class="col-md-3">
<!---col--->
<div class="form-group">
<label>Profile Updated On:</label>
<input type="text" style="color:#26ae60" class="form-control" value="<?php echo date('d-m-Y', strtotime($row["uid"])); ?>" readonly disabled>
</div>
</div>
<!---col--->
<?php
} else {
?>
<center>
<h3>Sorry Data Not Found!!!</h3>
</center>
<?php
}
?>
</div>
<!---row end--->
<!-- END PAGE CONTENT WRAPPER -->
</div>
<!-- END PAGE CONTENT -->
</div>
<!-- END PAGE CONTAINER -->
<!-- MESSAGE BOX-->
<div class="message-box animated fadeIn" data-sound="alert" id="mb-signout">
<div class="mb-container">
<div class="mb-middle">
<div class="mb-title"><span class="fa fa-sign-out"></span> Log <strong>Out</strong> ?</div>
<div class="mb-content">
<p>Are you sure you want to log out?</p>
<p>Press No if youwant to continue work. Press Yes to logout current user.</p>
</div>
<div class="mb-footer">
<div class="pull-right">
<a href="./logout.php" class="btn btn-success btn-lg">Yes</a>
<button class="btn btn-default btn-lg mb-control-close">No</button>
</div>
</div>
</div>
</div>
</div>
<!-- END MESSAGE BOX-->
<?php include "./preload.php"; ?>
<?php include "./mainScripts.php"; ?>
</body>
</html>
<?php
include "./dataTableScript.php";
?>