mirror of https://github.com/itflow-org/itflow
Reworked the Dashboard so only 1 Dashboard shows on the Side nav and now has a top nav to select dasbords, Personal Dashboard coming
This commit is contained in:
parent
4a4924f4f6
commit
8a5f51845c
|
|
@ -0,0 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once "inc_all.php";
|
||||
|
||||
require_once "dashboard_nav.php";
|
||||
|
||||
require_once "footer.php";
|
||||
|
|
@ -1,6 +1,8 @@
|
|||
<?php
|
||||
require_once "inc_all.php";
|
||||
|
||||
require_once "dashboard_nav.php";
|
||||
|
||||
|
||||
// Enforce accountant / admin role for the financial dashboard
|
||||
if ($_SESSION['user_role'] != 3 && $_SESSION['user_role'] != 1) {
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
<div class="row mb-3">
|
||||
<div class="col-md-12">
|
||||
<div class="btn-group btn-group-lg btn-block">
|
||||
<a href="dashboard.php" class="btn btn-<?php if (basename($_SERVER["PHP_SELF"]) == "dashboard.php") { echo "dark"; } else { echo "secondary"; } ?>">Personal <small>(WIP)</small></a>
|
||||
<a href="dashboard_financial.php" class="btn btn-<?php if (basename($_SERVER["PHP_SELF"]) == "dashboard_financial.php") { echo "dark"; } else { echo "secondary"; } ?>">Administrative</a>
|
||||
<a href="dashboard_technical.php" class="btn btn-<?php if (basename($_SERVER["PHP_SELF"]) == "dashboard_technical.php") { echo "dark"; } else { echo "secondary"; } ?>">Technical</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
require_once "inc_all.php";
|
||||
|
||||
require_once "dashboard_nav.php";
|
||||
|
||||
if (isset($_GET['year'])) {
|
||||
$year = intval($_GET['year']);
|
||||
|
|
|
|||
36
side_nav.php
36
side_nav.php
|
|
@ -13,37 +13,17 @@
|
|||
|
||||
<ul class="nav nav-pills nav-sidebar flex-column mt-3" data-widget="treeview" data-accordion="false">
|
||||
|
||||
<!-- Dashboard item (tech/financial) -->
|
||||
<?php if ($session_user_role == 2 || $config_module_enable_accounting == 0) { ?>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="dashboard_technical.php" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "dashboard_technical.php") { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="dashboard_financial.php" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "dashboard_financial.php") { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p>Administrative Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="dashboard_technical.php" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "dashboard_technical.php") { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-cogs"></i>
|
||||
<p>Technical Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
<?php } ?>
|
||||
<!-- End dashboard item (tech/financial) -->
|
||||
<li class="nav-item">
|
||||
<a href="dashboard_technical.php" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "dashboard.php" || basename($_SERVER["PHP_SELF"]) == "dashboard_technical.php" || basename($_SERVER["PHP_SELF"]) == "dashboard_financial.php") { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p>Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a href="clients.php" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "clients.php") { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-user-friends"></i>
|
||||
<p>Client Management</p>
|
||||
<p>Clients</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
|
|
@ -53,7 +33,7 @@
|
|||
<li class="nav-item">
|
||||
<a href="tickets.php" class="nav-link <?php if (basename($_SERVER["PHP_SELF"]) == "tickets.php" || basename($_SERVER["PHP_SELF"]) == "ticket.php") { echo "active"; } ?>">
|
||||
<i class="nav-icon fas fa-life-ring"></i>
|
||||
<p>Support Tickets</p>
|
||||
<p>Tickets</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
|
|
|
|||
Loading…
Reference in New Issue