397 lines
14 KiB
PHP
397 lines
14 KiB
PHP
<div class="sidebar-wrapper" data-simplebar="true">
|
|
<div class="sidebar-header">
|
|
<div>
|
|
<img src="assets/images/logo-zibo.svg" class="logo-icon" alt="logo icon">
|
|
</div>
|
|
<div>
|
|
<h4 class="logo-text"><?= htmlspecialchars('ZIBOGOMMA', ENT_QUOTES, 'UTF-8'); ?></h4>
|
|
</div>
|
|
<div class="toggle-icon ms-auto">
|
|
<i class='bx bx-arrow-back'></i>
|
|
</div>
|
|
</div>
|
|
|
|
<!--navigation-->
|
|
<ul class="metismenu" id="menu">
|
|
|
|
<?php if (userCan('production.dashboard.view')) : ?>
|
|
<li>
|
|
<a href="production_dashboard.php">
|
|
<div class="parent-icon">
|
|
<i class="bx bx-home-alt"></i>
|
|
</div>
|
|
<div class="menu-title">Dashboard</div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php
|
|
$canSeeProgramming =
|
|
userCan('production.programming.view')
|
|
|| userCan('templates.dashboard.view')
|
|
|| userCan('templates.create.view');
|
|
?>
|
|
|
|
<?php if ($canSeeProgramming) : ?>
|
|
<li>
|
|
<a href="javascript:;" class="has-arrow">
|
|
<div class="parent-icon">
|
|
<i class="bx bx-category"></i>
|
|
</div>
|
|
<div class="menu-title">Programmazione</div>
|
|
</a>
|
|
|
|
<ul>
|
|
<?php if (userCan('templates.dashboard.view')) : ?>
|
|
<li>
|
|
<a href="templates_dashboard.php">
|
|
<i class='bx bx-radio-circle'></i>
|
|
<?= htmlspecialchars($dashtemplate, ENT_QUOTES, 'UTF-8'); ?>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('templates.create.view')) : ?>
|
|
<li>
|
|
<a href="insert_template_xls.php">
|
|
<i class='bx bx-radio-circle'></i>
|
|
<?= htmlspecialchars($insertnewtemplatexls, ENT_QUOTES, 'UTF-8'); ?>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('production.programming.view')) : ?>
|
|
<li>
|
|
<a href="produzione_programmazione_drag.php">
|
|
<i class='bx bx-radio-circle'></i>
|
|
Programmazione Produzione
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php
|
|
$canSeeFunctions =
|
|
userCan('masterdata.mescole.view')
|
|
|| userCan('masterdata.matrici.view')
|
|
|| userCan('masterdata.linee.view')
|
|
|| userCan('masterdata.packaging.view')
|
|
|| userCan('masterdata.suppliers.view')
|
|
|| userCan('masterdata.lookup.view')
|
|
|| userCan('masterdata.worksheets.view');
|
|
?>
|
|
|
|
<?php if ($canSeeFunctions) : ?>
|
|
<li>
|
|
<a href="javascript:;" class="has-arrow">
|
|
<div class="parent-icon">
|
|
<i class="bx bx-category"></i>
|
|
</div>
|
|
<div class="menu-title">Funzioni</div>
|
|
</a>
|
|
|
|
<ul>
|
|
<?php if (userCan('masterdata.mescole.view')) : ?>
|
|
<li>
|
|
<a href="mescole.php">
|
|
<i class='bx bx-radio-circle'></i>Mescole
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('masterdata.matrici.view')) : ?>
|
|
<li>
|
|
<a href="matrici.php">
|
|
<i class='bx bx-radio-circle'></i>Matrici
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('masterdata.linee.view')) : ?>
|
|
<li>
|
|
<a href="linee.php">
|
|
<i class='bx bx-radio-circle'></i>Linee di produzione
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('masterdata.packaging.view')) : ?>
|
|
<li>
|
|
<a href="packaging_items.php">
|
|
<i class='bx bx-radio-circle'></i>Imballaggi
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('masterdata.suppliers.view')) : ?>
|
|
<li>
|
|
<a href="suppliers.php">
|
|
<i class='bx bx-radio-circle'></i>Suppliers
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('masterdata.lookup.view')) : ?>
|
|
<li>
|
|
<a href="lookup_values.php">
|
|
<i class='bx bx-radio-circle'></i>Setup
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('masterdata.worksheets.view')) : ?>
|
|
<li>
|
|
<a href="worksheets.php">
|
|
<i class='bx bx-radio-circle'></i>Fogli di lavoro
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php
|
|
$canSeeProduction =
|
|
userCan('production.line_view.view')
|
|
|| userCan('production.stats.view')
|
|
|| userCan('production.manager.view')
|
|
|| userCan('production.manager_stats.view')
|
|
|| userCan('warehouse.dashboard.view');
|
|
?>
|
|
|
|
<?php if ($canSeeProduction) : ?>
|
|
<li>
|
|
<a href="javascript:;" class="has-arrow">
|
|
<div class="parent-icon">
|
|
<i class="bx bx-line-chart"></i>
|
|
</div>
|
|
<div class="menu-title">Produzione</div>
|
|
</a>
|
|
|
|
<ul>
|
|
<?php if (userCan('production.line_view.view')) : ?>
|
|
<li>
|
|
<a href="production_line_view2.php">
|
|
<i class='bx bx-radio-circle'></i>Line View
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('production.stats.view')) : ?>
|
|
<li>
|
|
<a href="production_stats.php">
|
|
<i class='bx bx-radio-circle'></i>Statistiche
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('production.manager.view')) : ?>
|
|
<li>
|
|
<a href="manager_produzione.php">
|
|
<i class='bx bx-radio-circle'></i>Manager
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('production.manager_stats.view')) : ?>
|
|
<li>
|
|
<a href="manager_stats.php">
|
|
<i class='bx bx-radio-circle'></i>Manager Stats
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('warehouse.dashboard.view')) : ?>
|
|
<li>
|
|
<a href="warehouse_dashboard.php">
|
|
<i class='bx bx-radio-circle'></i>Magazzino
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php
|
|
$canSeeServices =
|
|
userCan('services.status.view')
|
|
|| userCan('services.pause_reasons.view')
|
|
|| userCan('services.tools.view');
|
|
?>
|
|
|
|
<?php if ($canSeeServices) : ?>
|
|
<li>
|
|
<a href="javascript:;" class="has-arrow">
|
|
<div class="parent-icon">
|
|
<i class="bx bx-wrench"></i>
|
|
</div>
|
|
<div class="menu-title">Servizi</div>
|
|
</a>
|
|
|
|
<ul>
|
|
<?php if (userCan('services.status.view')) : ?>
|
|
<li>
|
|
<a href="production_status.php">
|
|
<i class='bx bx-radio-circle'></i>Status
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('services.pause_reasons.view')) : ?>
|
|
<li>
|
|
<a href="production_pause_reasons.php">
|
|
<i class='bx bx-radio-circle'></i>Cause di Pausa
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('services.tools.view')) : ?>
|
|
<li>
|
|
<a href="production_tools.php">
|
|
<i class='bx bx-radio-circle'></i>Attrezzature
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php
|
|
$canSeeHr =
|
|
userCan('hr.employees.view')
|
|
|| userCan('hr.departments.view')
|
|
|| userCan('hr.job_roles.view')
|
|
|| userCan('hr.training_topics.view')
|
|
|| userCan('hr.trainings.view')
|
|
|| userCan('hr.skills.view');
|
|
?>
|
|
|
|
<?php if ($canSeeHr) : ?>
|
|
<li>
|
|
<a href="javascript:;" class="has-arrow">
|
|
<div class="parent-icon">
|
|
<i class="bx bx-group"></i>
|
|
</div>
|
|
<div class="menu-title">Personale</div>
|
|
</a>
|
|
|
|
<ul>
|
|
<?php if (userCan('hr.employees.view')) : ?>
|
|
<li>
|
|
<a href="employees.php">
|
|
<i class='bx bx-radio-circle'></i>Dipendenti
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('hr.departments.view')) : ?>
|
|
<li>
|
|
<a href="departments.php">
|
|
<i class='bx bx-radio-circle'></i>Reparti
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('hr.job_roles.view')) : ?>
|
|
<li>
|
|
<a href="job_roles.php">
|
|
<i class='bx bx-radio-circle'></i>Mansioni
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('hr.training_topics.view')) : ?>
|
|
<li>
|
|
<a href="training_topics.php">
|
|
<i class='bx bx-radio-circle'></i>Corsi di Formazione
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('hr.trainings.view')) : ?>
|
|
<li>
|
|
<a href="trainings.php">
|
|
<i class='bx bx-radio-circle'></i>Storico Formazione
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="training_calendar.php">
|
|
<i class='bx bx-radio-circle'></i>Calendario Formazione
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
<?php if (userCan('hr.skills.view')) : ?>
|
|
<li>
|
|
<a href="skills.php">
|
|
<i class='bx bx-radio-circle'></i>Skills
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
|
|
<?php if (userCan('deadlines.view')) : ?>
|
|
<li>
|
|
<a href="javascript:;" class="has-arrow">
|
|
<div class="parent-icon">
|
|
<i class="bx bx-calendar-check"></i>
|
|
</div>
|
|
<div class="menu-title">Scadenzario</div>
|
|
</a>
|
|
|
|
<ul>
|
|
<li>
|
|
<a href="scadenzario/index.php">
|
|
<i class='bx bx-radio-circle'></i>Lista Scadenze
|
|
</a>
|
|
</li>
|
|
|
|
<li>
|
|
<a href="scadenzario/calendar.php">
|
|
<i class='bx bx-radio-circle'></i>Calendario
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
|
|
<li class="menu-label">Others</li>
|
|
|
|
<li>
|
|
<a href="https://helpdesk.cesoft.io" target="_blank">
|
|
<div class="parent-icon">
|
|
<i class="bx bx-support"></i>
|
|
</div>
|
|
<div class="menu-title">Support</div>
|
|
</a>
|
|
</li>
|
|
|
|
|
|
<?php if (userCan('users.manage')) : ?>
|
|
<li class="menu-label">Admin Menù</li>
|
|
|
|
<li>
|
|
<a href="../" target="_blank">
|
|
<div class="parent-icon">
|
|
<i class="bx bx-user-circle"></i>
|
|
</div>
|
|
<div class="menu-title">User Management</div>
|
|
</a>
|
|
</li>
|
|
<?php endif; ?>
|
|
|
|
</ul>
|
|
<!--end navigation-->
|
|
</div>
|