You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
5.2 KiB

7 years ago
5 years ago
<?php
function checkAdminSections($sec) {
$s = $_SESSION['ADMAUTH']['sections'];
$sa = explode(',',$s);
$return = '';
if($s == 'ALL') {
$return = '';
} else {
if(!in_array($sec,$sa)) {
$return = 'd-none';
}
}
return $return;
}
?>
7 years ago
<div id="menuLeft" class="col-12 col-md-2 p-2">
5 years ago
<div class="dropdown <?= $getQ[1]=="user" ? "active":"" ?> <?= checkAdminSections("user");?>">
<div class="title">Gestione iscritti</div>
7 years ago
<ul class="items">
<li><a href="<?= $BASE_URL ?>/sheets/user/list">Elenco iscritti </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/user/add">Aggiungi iscritto </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/user/mod">Modifica iscritto </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/user/del">Elimina iscritto </a></li>
5 years ago
<li><a href="<?= $BASE_URL ?>/sheets/user/import">Importa da file </a></li>
7 years ago
</ul>
</div>
5 years ago
<div class="dropdown <?= $getQ[1]=="news" ? "active":"" ?> <?= checkAdminSections("news");?>">
<div class="title">Notizie</div>
7 years ago
<ul class="items">
<li><a href="<?= $BASE_URL ?>/sheets/news/add">Aggiungi notizia </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/news/mod">Modifica notizia </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/news/del">Elimina notizia </a></li>
7 years ago
</ul>
</div>
5 years ago
<div class="dropdown <?= $getQ[1]=="email" ? "active":"" ?> <?= checkAdminSections("email");?>">
<div class="title">E-mail</div>
<ul class="items">
<li><a href="<?= $BASE_URL ?>/sheets/email/send">Invia e-mail </a></li>
</ul>
</div>
<div class="dropdown <?= $getQ[1]=="files" ? "active":"" ?> <?= checkAdminSections("files");?>">
<div class="title">Files</div>
<ul class="items">
5 years ago
<li><a href="<?= $BASE_URL ?>/sheets/files/list">Elenco files </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/files/add">Aggiungi file </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/files/del">Elimina file </a></li>
</ul>
</div>
5 years ago
<div class="dropdown <?= $getQ[1]=="links" ? "active":"" ?> <?= checkAdminSections("links");?>">
7 years ago
<div class="title">Links utili</div>
<ul class="items">
<li><a href="<?= $BASE_URL ?>/sheets/links/add">Aggiungi link </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/links/del">Elimina link </a></li>
</ul>
</div>
5 years ago
<div class="dropdown <?= $getQ[1]=="advertisement" ? "active":"" ?> <?= checkAdminSections("advertisement");?>">
<div class="title">Inserzioni</div>
<ul class="items">
<li><a href="<?= $BASE_URL ?>/sheets/advertisement/list">Elenco inserzioni </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/advertisement/add">Aggiungi inserzione </a></li>
<!-- <li><a href="<?= $BASE_URL ?>/sheets/advertisement/mod">Modifica inserzione </a></li> -->
<!-- <li><a href="<?= $BASE_URL ?>/sheets/advertisement/del">Elimina inserzione </a></li> -->
5 years ago
</ul>
</div>
7 years ago
5 years ago
<div class="dropdown <?= $getQ[1]=="pharmacy" ? "active":"" ?> <?= checkAdminSections("pharmacy");?>">
<div class="title">Farmacie</div>
<ul class="items">
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/list">Elenco farmacie </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/add">Aggiungi farmacia </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/mod">Modifica farmacia </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/del">Elimina farmacia </a></li>
5 years ago
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/import">Importa da file </a></li>
</ul>
</div>
5 years ago
<div class="dropdown <?= $getQ[1]=="parapharmacy" ? "active":"" ?> <?= checkAdminSections("parapharmacy");?>">
<div class="title">Parafarmacie</div>
<ul class="items">
<li><a href="<?= $BASE_URL ?>/sheets/parapharmacy/list">Elenco parafarmacie </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/parapharmacy/add">Aggiungi parafarmacia </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/parapharmacy/mod">Modifica parafarmacia </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/parapharmacy/del">Elimina parafarmacia </a></li>
5 years ago
<li><a href="<?= $BASE_URL ?>/sheets/parapharmacy/import">Importa da file </a></li>
</ul>
</div>
<div class="dropdown <?= $getQ[1]=="ftp" ? "active":"" ?> <?= checkAdminSections("ftp");?>">
<div class="title">Archivio FTP</div>
<ul class="items">
<li><a href="<?= $BASE_URL ?>/sheets/ftp/list">Elenco files </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/ftp/add">Aggiungi file </a></li>
</ul>
</div>
<div class="dropdown mt-4 <?= $getQ[1]=="access" ? "active":"" ?> <?= checkAdminSections("access");?>">
<div class="title">Gestione accessi</div>
<ul class="items">
<li><a href="<?= $BASE_URL ?>/sheets/access/add">Aggiungi accesso </a></li>
<li><a href="<?= $BASE_URL ?>/sheets/access/list">Elenco accessi </a></li>
</ul>
</div>
7 years ago
</div>