29 lines
1.1 KiB
PHP
29 lines
1.1 KiB
PHP
|
|
<!-- Menu -->
|
|
<div class="menu-container">
|
|
<ul class="menu-left">
|
|
<button class="btn btn-primary mb-3" type="button" data-toggle="collapse" data-target="#sidebar" aria-expanded="false" aria-controls="sidebar">
|
|
sidebar
|
|
</button>
|
|
|
|
<li><a href="index.php">home</a></li>
|
|
<?php if ( isset($_SESSION['username']) ) { ?>
|
|
<li><a href="?page=config">config</a></li>
|
|
<li><a href="?page=conferences">conferences</a></li>
|
|
<li><a href="?page=participants">participants</a></li>
|
|
<li><a href="?page=components">components</a></li>
|
|
<?php } ?>
|
|
</ul>
|
|
|
|
<ul class="menu-right">
|
|
<?php if ( isset($_SESSION['username']) ) { ?>
|
|
<li><a href="?page=profile"><?= $user ?></a></li>
|
|
<li><a href="?page=logout">logout</a></li>
|
|
<?php } else { ?>
|
|
<li><a href="?page=login">login</a></li>
|
|
<li><a href="?page=register">register</a></li>
|
|
<?php } ?>
|
|
</ul>
|
|
</div>
|
|
<!-- /Menu -->
|