Repository navigation
Expand file tree
/
Copy pathheader-inventory.php
More file actions
36 lines (30 loc) · 1.69 KB
/
Copy pathheader-inventory.php
File metadata and controls
36 lines (30 loc) · 1.69 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
<?php
?>
<div class="header-wrapper flex p-1 justify-between items-center">
<div style="width:50px; height:50px;" >
<img class="logo" style="width: 100%; height:100%; object-fit: cover;" src="./public/assets/images/NFTlogo.png" alt="NFT logo">
</div>
<h1 id="title-header" style="justify-content : space-around" class="dashboard-text text-white cursor-pointer ">Dashboard</h1>
<div class="flex gap-3">
<!-- <span id="hello" class="text-white">Hello <?php echo explode('@' ,$_SESSION['user'])[0]; ?></span> -->
<form class="search-wrapper flex gap-3 bg-dark-blue rounded-sm ">
<input id="search" name="search" class="bg-dark-blue p-1 outline-none rounded-sm text-white font-sm" type="text" placeholder=" Search..">
<button style="margin-right:0.5rem;" class="bg-dark-blue outline-none rounded-sm text-white font-sm">
<i class="fas fa-search text-white"></i>
</button>
</form>
<form method="POST" action="/ShopNow/logout.php" id="checkLogout" class="user bg-violet p-1 cursor-pointer rounded-full">
<button style="background: #00000000;" class="outline-none border-none" type="submit" >
<i class="fas fa-user text-white cursor-pointer"></i>
</button>
</form>
</div>
</div>
<!-- <script>
setTimeout(()=>{
$('#hello').remove()
}, 2000);
</script> -->
<script>
(location.pathname.toLowerCase().includes('statistic')) ? document.querySelector('#title-header').innerHTML='Statistics' : (location.pathname.toLowerCase().includes('inventory')) ? document.querySelector('#title-header').innerHTML='Inventory' : null
</script>