Updated Pure to 0.6, added pagination, don't think I broke anything...
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
if (isset($_SESSION['user_id'])): $session_user = getUserInfo($db, $_SESSION['user_id']); endif;
|
||||
if (isset($_SESSION['user_id'])): $session_user = getUserInfo($db, $_SESSION['user_id'], "1", "0"); endif;
|
||||
$session_status = getSessionStatus();
|
||||
?>
|
||||
<!-- SIDE MENU -->
|
||||
@@ -7,22 +7,22 @@ $session_status = getSessionStatus();
|
||||
<div id="menu">
|
||||
<div class="pure-menu pure-menu-open">
|
||||
<a class="pure-menu-heading" href="index.php"><?php echo $yaptc_company; ?></a>
|
||||
<ul>
|
||||
<ul class="pure-menu-list">
|
||||
<?php if ($session_status == false): ?>
|
||||
<!-- MENU FOR ALL LOGGED OUT -->
|
||||
<li class="<?php if ($yaptc_pagename==lang('LOGIN')): echo "pure-menu-selected"; endif; ?>"><a href="login.php"><?php echo lang('LOGIN'); ?></a></li>
|
||||
<li class="pure-menu-item <?php if ($yaptc_pagename==lang('LOGIN')): echo "pure-menu-selected"; endif; ?>"><a href="login.php" class="pure-menu-link"><?php echo lang('LOGIN'); ?></a></li>
|
||||
<?php elseif ($session_status == true): ?>
|
||||
<!-- MENU FOR ALL LOGGED IN -->
|
||||
<li class="<?php if ($yaptc_pagename==lang('HOME')): echo "pure-menu-selected"; endif; ?>"><a href="index.php"><?php echo lang('HOME'); ?></a></li>
|
||||
<li class="<?php if ($yaptc_pagename==lang('ACCOUNT')): echo "pure-menu-selected"; endif; ?>"><a href="profile.php"><?php echo lang('ACCOUNT'); ?></a></li>
|
||||
<li class="pure-menu-item <?php if ($yaptc_pagename==lang('HOME')): echo "pure-menu-selected"; endif; ?>"><a href="index.php" class="pure-menu-link"><?php echo lang('HOME'); ?></a></li>
|
||||
<li class="pure-menu-item <?php if ($yaptc_pagename==lang('ACCOUNT')): echo "pure-menu-selected"; endif; ?>"><a href="profile.php" class="pure-menu-link"><?php echo lang('ACCOUNT'); ?></a></li>
|
||||
<?php if ($session_user["0"]["usertype"] == "Administrator"): ?>
|
||||
<!-- ADDITIONAL MENU IF LOGGED IN AS ADMIN -->
|
||||
<li class="<?php if ($yaptc_pagename==lang('USERS')): echo "pure-menu-selected"; endif; ?>"><a href="users.php"><?php echo lang('USERS'); ?></a></li>
|
||||
<li class="<?php if ($yaptc_pagename==lang('PUNCH_EDITOR')): echo "pure-menu-selected"; endif; ?>"><a href="manualpunch.php"><?php echo lang('PUNCH_EDITOR'); ?></a></li>
|
||||
<li class="<?php if ($yaptc_pagename==lang('REPORTS')): echo "pure-menu-selected"; endif; ?>"><a href="reports.php"><?php echo lang('REPORTS'); ?></a></li>
|
||||
<li class="pure-menu-item <?php if ($yaptc_pagename==lang('USERS')): echo "pure-menu-selected"; endif; ?>"><a href="users.php" class="pure-menu-link"><?php echo lang('USERS'); ?></a></li>
|
||||
<li class="pure-menu-item <?php if ($yaptc_pagename==lang('PUNCH_EDITOR')): echo "pure-menu-selected"; endif; ?>"><a href="manualpunch.php" class="pure-menu-link"><?php echo lang('PUNCH_EDITOR'); ?></a></li>
|
||||
<li class="pure-menu-item <?php if ($yaptc_pagename==lang('REPORTS')): echo "pure-menu-selected"; endif; ?>"><a href="reports.php" class="pure-menu-link"><?php echo lang('REPORTS'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
<!-- MENU FOR ALL LOGGED IN - BOTTOM END -->
|
||||
<li class="<?php if ($yaptc_pagename==lang('LOGOUT')): echo "pure-menu-selected"; endif; ?>"><a href="logout.php"><?php echo lang('LOGOUT'); ?></a></li>
|
||||
<li class="pure-menu-item <?php if ($yaptc_pagename==lang('LOGOUT')): echo "pure-menu-selected"; endif; ?>"><a href="logout.php" class="pure-menu-link"><?php echo lang('LOGOUT'); ?></a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user