-
Notifications
You must be signed in to change notification settings - Fork 0
/
topbar.php
41 lines (37 loc) · 1.42 KB
/
topbar.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
<style>
.logo {
margin: auto;
font-size: 20px;
background: white;
padding: 7px 11px;
border-radius: 50% 50%;
color: #000000b3;
}
</style>
<nav class="navbar navbar-light fixed-top bg-primary" style="padding:0">
<div class="container-fluid mt-2 mb-2">
<div class="col-lg-12">
<div class="col-md-1 float-left" style="display: flex;">
</div>
<div class="col-md-4 float-left text-white">
<large><b><?php
// echo isset($_SESSION['system']['name']) ? $_SESSION['system']['name'] : ''
echo 'Hanuka Chai'
?></b></large>
</div>
<div class="float-right">
<div class=" dropdown mr-4">
<a href="#" class="text-white dropdown-toggle" id="account_settings" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php echo $_SESSION['login_name'] ?> </a>
<div class="dropdown-menu" aria-labelledby="account_settings" style="left: -2.5em;">
<a class="dropdown-item" href="javascript:void(0)" id="manage_my_account"><i class="fa fa-cog"></i> Manage Account</a>
<a class="dropdown-item" href="ajax.php?action=logout"><i class="fa fa-power-off"></i> Logout</a>
</div>
</div>
</div>
</div>
</nav>
<script>
$('#manage_my_account').click(function(){
uni_modal("Manage Account","manage_user.php?id=<?php echo $_SESSION['login_id'] ?>&mtype=own")
})
</script>