notification link only for bm and admin
parent
5a12de1c64
commit
4b7dc82f29
|
@ -203,21 +203,18 @@ $conn->close();
|
|||
?>
|
||||
</li>
|
||||
<li><a href="/Admin/Signout">Signout</a></li>
|
||||
<li>
|
||||
<a href="/Admin/notification" style="position: relative; display: inline-block; padding: 8px;">
|
||||
<?php if($pendingCount > 0) { ?>
|
||||
<div style="width: 18px; height: 18px; border-radius: 50%; background-color: #ff4444; position: absolute; top: 2px; right: 2px; z-index: 10; box-shadow: 0 0 0 2px rgba(255,255,255,0.8); font-size: 11px; font-weight: bold; color: white; text-align: center; line-height: 18px;">
|
||||
<?= $pendingCount > 99 ? '99+' : $pendingCount ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 64 64" fill="#4a5568" style="filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));">
|
||||
<g>
|
||||
<path fill="currentColor" d="M56,44c-1.832,0-4-2.168-4-4V20C52,8.973,43.027,0,32,0S12,8.973,12,20v20c0,1.793-2.207,4-4,4 c-2.211,0-4,1.789-4,4s1.789,4,4,4h48c2.211,0,4-1.789,4-4S58.211,44,56,44z"></path>
|
||||
<path fill="currentColor" d="M32,64c4.418,0,8-3.582,8-8H24C24,60.418,27.582,64,32,64z"></path>
|
||||
</g>
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
<?php if ($userType === 'admin' || $userType === 'bm' ) { ?>
|
||||
<li>
|
||||
<a href="/Admin/notification" style="position: relative; display: inline-block; padding: 8px;">
|
||||
<?php if($pendingCount > 0) { ?>
|
||||
<div style="width: 18px; height: 18px; border-radius: 50%; background-color: #ff4444; position: absolute; top: 2px; right: 2px; z-index: 10; box-shadow: 0 0 0 2px rgba(255,255,255,0.8); font-size: 11px; font-weight: bold; color: white; text-align: center; line-height: 18px;">
|
||||
<?= $pendingCount > 99 ? '99+' : $pendingCount ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 64 64" fill="#4a5568" style="filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));"><g><path fill="currentColor" d="M56,44c-1.832,0-4-2.168-4-4V20C52,8.973,43.027,0,32,0S12,8.973,12,20v20c0,1.793-2.207,4-4,4 c-2.211,0-4,1.789-4,4s1.789,4,4,4h48c2.211,0,4-1.789,4-4S58.211,44,56,44z"></path><path fill="currentColor" d="M32,64c4.418,0,8-3.582,8-8H24C24,60.418,27.582,64,32,64z"></path></g></svg>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue