|
|
|
|
|
|
|
<?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;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div id="menuLeft" class="col-12 col-md-2 p-2">
|
|
|
|
|
|
|
|
<div class="dropdown <?= $getQ[1]=="user" ? "active":"" ?> <?= checkAdminSections("user");?>">
|
|
|
|
<div class="title">Gestione iscritti</div>
|
|
|
|
<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>
|
|
|
|
<li><a href="<?= $BASE_URL ?>/sheets/user/import">Importa da file </a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="dropdown <?= $getQ[1]=="news" ? "active":"" ?> <?= checkAdminSections("news");?>">
|
|
|
|
<div class="title">Notizie</div>
|
|
|
|
<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>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<div class="dropdown <?= $getQ[1]=="links" ? "active":"" ?> <?= checkAdminSections("links");?>">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<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> -->
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<li><a href="<?= $BASE_URL ?>/sheets/pharmacy/import">Importa da file </a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|