-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathview_profile.php
More file actions
49 lines (49 loc) · 1.74 KB
/
view_profile.php
File metadata and controls
49 lines (49 loc) · 1.74 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
<?php
require_once 'includes/header.php';
LogInCheck();
require_once 'includes/admin_nav.php';
//var_dump($_SESSION);
?>
<?php
//connect db
require_once 'db.php';
$sql = "SELECT * FROM `department` WHERE `dept_id`='" . $_SESSION['dept_id'] . "'";
//print_r($sql);
$query = $conn->query($sql);
$row = $query->fetch_assoc();
//var_dump($row);
$conn->close();
?>
<!--profile view code begin-->
<div class="container">
<div class="row">
<div class="col-md-offset-2">
<div class="panel panel-primary">
<div class="panel-body">
<h3 class="text-center text-info"><?php echo $_SESSION['dept_name'] .' PROFILE'; ?></h3>
</div>
<div class="panel-footer">
<div class="row">
<div class="well well-lg text-center text-capitalize">
<div class="well well-sm">
<b>DEPARTMENT ID :</b><em><?php echo $row['dept_id'] ;?></em> <a href='#' class='btn btn-success btn-sm'><span class='glyphicon glyphicon-edit'></span></a>
</div>
<div class="well well-sm">
<b>DEPARTMENT NAME :</b><em><?php echo $row['dept_name'] ;?></em> <a href='#' class='btn btn-success btn-sm'><span class='glyphicon glyphicon-edit'></span></a>
</div>
<div class="well well-sm">
<b>DETAIL :</b><em><?php echo $row['dept_details'] ;?></em> <a href='#' class='btn btn-success btn-sm'><span class='glyphicon glyphicon-edit'></span></a>
</div>
<div class="well well-sm">
<b>ADDED AT :</b><em><?php echo $row['added_at'] ;?></em> <a href='#' class='btn btn-success btn-sm'><span class='glyphicon glyphicon-edit'></span></a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end profile-->
<hr>
<?php require_once 'includes/footer.php'; ?>