hyteck-blog/static/views/navigation.php

30 lines
1.5 KiB
PHP
Raw Normal View History

2019-11-12 11:17:21 +00:00
<?php
$navigation ='
<ul>
<li><a href="index.php">'.$this->oLang->texts['HOME'].'</a></li>
<li><a href="index.php?ac=book_show">'.$this->oLang->texts['ALL_BOOKS'].'</a></li>
<li><a href="index.php?ac=material_show">'.$this->oLang->texts['ALL_MATERIAL'].'</a></li>
<li><a href="index.php?ac=open_show">'.$this->oLang->texts['OPENING_HOURS'].'</a></li>';
if ($_SESSION['admin'] ==1){
$navigation .= '
<li><a href="index.php?ac=user_show">'.$this->oLang->texts['ALL_USER'].'</a></li>
<li><a href="index.php?ac=user_search">'.$this->oLang->texts['SEARCH_USER'].'</a></li>
<li><a href="index.php?ac=user_new">'.$this->oLang->texts['NEW_USER'].'</a></li>
<li><a href="index.php?ac=open_change">'.$this->oLang->texts['CHANGE_OPENING_HOURS'].'</a></li>
<li><a href="index.php?ac=loan_show">'.$this->oLang->texts['ALL_LOAN'].'</a></li>
<li><a href="index.php?ac=loan_new">'.$this->oLang->texts['NEW_LOAN'].'</a></li>
<li><a href="index.php?ac=book_show_itemized">'.$this->oLang->texts['SHOW_BOOKS_ITEMIZED'].'</a></li>
<li><a href="index.php?ac=material_show_itemized">'.$this->oLang->texts['SHOW_MATERIAL_ITEMIZED'].'</a></li>
<li><a href="index.php?ac=presence_show_all">'.$this->oLang->texts['SHOW_PRESENCE'].'</a></li>
';
}
$navigation .= '
<li><a href="index.php?ac=user_self">'.$this->oLang->texts['MY_PROFIL'].'</a></li>
<li><a href="index.php?ac=loan_self">'.$this->oLang->texts['MY_LOANS'].'</a></li>
<li><a href="index.php?ac=logo">'.$this->oLang->texts['LOGOUT'].'</a></li>
</ul>';
echo $navigation;
?>