Initial Commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<div class="content-header">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h4 class="m-0 text-dark">
|
||||
<i class="fa fa-fw <?= $this->iconTitle; ?>"></i>
|
||||
<?= $this->pageTitle; ?> <?= ($this->subTitle) ? ' - ' . $this->subTitle : ''; ?>
|
||||
</h4>
|
||||
</div><!-- /.col -->
|
||||
<div class="col-md-6">
|
||||
<ol class="breadcrumb float-sm-right">
|
||||
<li class="breadcrumb-item"><a href="<?= $this->url(array('controller'=>(($this->controllerName) ? $this->controllerName:'index'),'action'=>'index'),(($this->moduleName) ? $this->moduleName:'admin'),true); ?>"><i class="fa fa-tachometer-alt"></i> Home</a></li>
|
||||
<?php if($this->secondLevelAction != null): ?>
|
||||
<li class="breadcrumb-item"><a href="<?= $this->url(array('controller'=>(($this->controllerName) ? $this->controllerName:'index'),'action'=>$this->secondLevelAction),(($this->moduleName) ? $this->moduleName:'default'),true); ?>"><?= $this->secondLevel; ?></a></li>
|
||||
<?php endif; ?>
|
||||
<li class="breadcrumb-item active"><?= $this->pageTitle; ?></li>
|
||||
</ol>
|
||||
</div><!-- /.col -->
|
||||
</div><!-- /.row -->
|
||||
</div><!-- /.container-fluid -->
|
||||
</div>
|
||||
@@ -0,0 +1,10 @@
|
||||
<footer class="main-footer">
|
||||
<div class="float-right d-xs-none">
|
||||
<?php if($this->moduleName == 'monitoring'): ?>
|
||||
Pannello Di Monitoraggio
|
||||
<?php else: ?>
|
||||
Pannello Amministrazione
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<strong><?= $this->datiAziendali['RagioneSociale']; ?></strong>
|
||||
</footer>
|
||||
@@ -0,0 +1,61 @@
|
||||
<nav class="main-header navbar navbar-expand navbar-dark navbar-dark-brand" role="navigation">
|
||||
|
||||
<!-- Left navbar links -->
|
||||
<ul class="navbar-nav">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="navbar-nav ml-auto">
|
||||
|
||||
<?php if ($this->enableTestSdk): ?>
|
||||
<li class="nav-item dev-block">
|
||||
<span style="padding: 5px;" class="alert alert-warning ml-5"><i
|
||||
class="fa fa-exclamation-triangle fa-fw"></i> STAI VISUALIZZANDO I DATI DI TEST</span>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Notifications Dropdown Menu -->
|
||||
<li class="nav-item dropdown">
|
||||
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||
<i class="far fa-bell"></i>
|
||||
<?php if ($this->notification > 0): ?>
|
||||
<span class="badge badge-warning navbar-badge"><?= $this->notification; ?></span>
|
||||
<?php endif; ?>
|
||||
</a>
|
||||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
||||
<?php if ($this->notification > 0): ?>
|
||||
<span class="dropdown-header"><?= $this->notification; ?> Notifiche Totali</span>
|
||||
<div class="dropdown-divider"></div>
|
||||
<?php foreach ((array) $this->notificationlist as $key => $value): ?>
|
||||
<?= $this->partial('index/partial/notify.phtml', $value); ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php else: ?>
|
||||
<a class="dropdown-item dropdown-footer">Non ci sono nuove notifiche</a>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->AuthInfo()->checkPermission('admin')): ?>
|
||||
<div class="dropdown-divider"></div>
|
||||
<?php if ($this->moduleName == 'monitoring'): ?>
|
||||
<a class="dropdown-item dropdown-footer"
|
||||
href="<?= $this->url(array('action' => 'index'), 'admin', true); ?>"><i
|
||||
class="fas fa-fw fa-dashboard"></i> VAI ALL' ADMIN</a>
|
||||
<?php else: ?>
|
||||
<a class="dropdown-item dropdown-footer"
|
||||
href="<?= $this->url(array('action' => 'index'), 'monitoring', true); ?>"><i
|
||||
class="fas fa-fw fa-tasks"></i> VAI AL MONITORING</a>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link"
|
||||
href="<?= $this->url(array('action' => 'logout'), 'admin', true); ?>" role="button"><i
|
||||
class="fas fa-power-off"></i> Logout</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</nav>
|
||||
@@ -0,0 +1,52 @@
|
||||
<!-- sidebar: style can be found in sidebar.less -->
|
||||
<div class="sidebar">
|
||||
|
||||
<!-- Sidebar user panel (optional) -->
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="image">
|
||||
<img src="img/<?= $this->AuthInfo('role'); ?>.svg" class="img-circle" alt="User Image">
|
||||
</div>
|
||||
<div class="info">
|
||||
<a href="#" class="d-block"><?= $this->AuthInfo('RagioneSociale'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar Menu -->
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu">
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?= ($this->menu == 'dashboard') ? 'active' : ''; ?>"
|
||||
href="<?= $this->url(array('action' => 'index'), 'admin', true); ?>">
|
||||
<i class="nav-icon fas fa-tachometer-alt "></i>
|
||||
<p> Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item has-treeview <?= (in_array($this->menu, array('settings', 'emailtemplate'))) ? 'menu-open' : ''; ?>">
|
||||
<a href="#"
|
||||
class="nav-link <?= (in_array($this->menu, array('settings', 'emailtemplate'))) ? 'active' : ''; ?>">
|
||||
<i class="nav-icon fas fa-cog "></i>
|
||||
<p> Impostazioni <i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="<?= $this->url(array('action' => 'settings'), 'admin', true); ?>"
|
||||
class="nav-link <?= ($this->menu == 'settings') ? 'active' : ''; ?>">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>Generali</p></a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="<?= $this->url(array('action' => 'listemailtemplate'), 'admin', true); ?>"
|
||||
class="nav-link <?= ($this->menu == 'emailtemplate') ? 'active' : ''; ?>">
|
||||
<i class="far fa-envelope nav-icon"></i>
|
||||
<p>Gestione Email Template</p></a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.sidebar-menu -->
|
||||
</div>
|
||||
<!-- /.sidebar -->
|
||||
@@ -0,0 +1,52 @@
|
||||
<div class="sidebar">
|
||||
|
||||
<div class="user-panel mt-3 pb-3 mb-3 d-flex">
|
||||
<div class="image">
|
||||
<img src="img/admin.svg" class="img-circle" alt="Admin Image">
|
||||
</div>
|
||||
<div class="info">
|
||||
<a href="#" class="d-block"><?= $this->AuthInfo('RagioneSociale'); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sidebar Menu -->
|
||||
<nav class="mt-2">
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?= ($this->menu == 'dashboard') ? 'active' : ''; ?>"
|
||||
href="<?= $this->url(array('action' => 'index'), 'monitoring', true); ?>">
|
||||
<i class="nav-icon fas fa-tachometer-alt"></i>
|
||||
<p> Dashboard</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?= ($this->menu == 'accesslog') ? 'active' : ''; ?>"
|
||||
href="<?= $this->url(array('action' => 'listaccesslog'), 'monitoring', true); ?>">
|
||||
<i class="nav-icon fas fa-sign-in-alt"></i>
|
||||
<p> Controllo Accessi</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<a class="nav-link <?= ($this->menu == 'errorlog') ? 'active' : ''; ?>"
|
||||
href="<?= $this->url(array('action' => 'listerrorlog'), 'monitoring', true); ?>">
|
||||
<i class="nav-icon fas fa-hashtag"></i>
|
||||
<p> Log Errori</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-header"></li>
|
||||
<li class="nav-item">
|
||||
<a href="<?= $this->url(array('action' => 'index'), 'admin', true); ?>" class="nav-link">
|
||||
<i class="nav-icon far fa-circle text-success"></i>
|
||||
<p class="text">VAI SU ADMIN</p>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</nav>
|
||||
<!-- /.sidebar-menu -->
|
||||
</div>
|
||||
<!-- /.sidebar -->
|
||||
@@ -0,0 +1,49 @@
|
||||
<div class="wrapper">
|
||||
|
||||
<!-- Header Navbar -->
|
||||
<?= $this->render('admin/_navbarAdmin.phtml') ?>
|
||||
|
||||
<!-- Left side column. contains the logo and sidebar -->
|
||||
<aside class="main-sidebar sidebar-dark-brand elevation-4">
|
||||
|
||||
<!-- Brand Logo -->
|
||||
<a href="<?= $this->url(array(), 'default', true); ?>" class="brand-link navbar-dark-brand">
|
||||
<!--<img src="../baseImg/logo.png" alt="Brand Logo" class="brand-image">-->
|
||||
<span class="brand-text ml-10">Gestione Spiaggia</span>
|
||||
</a>
|
||||
|
||||
<?php switch ($this->moduleName):
|
||||
case'monitoring': ?>
|
||||
<?= $this->render('admin/_sidebarMonitoring.phtml') ?>
|
||||
<?php break;
|
||||
default: ?>
|
||||
<?= $this->render('admin/_sidebarAdmin.phtml') ?>
|
||||
<?php break;
|
||||
endswitch; ?>
|
||||
|
||||
</aside>
|
||||
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<?php if ($this->action != 'index'): ?>
|
||||
<?= $this->render('admin/_contentHeaderAdmin.phtml') ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Main content -->
|
||||
<div class="content <?= (preg_match('/^list/', $this->action) ? 'list' : ''); ?>">
|
||||
|
||||
<?php echo $this->layout()->content ?>
|
||||
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
<!-- Main Footer -->
|
||||
<?php if (!preg_match('/^list/', $this->action)): ?>
|
||||
<?= $this->render('admin/_footerAdmin.phtml'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,72 @@
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
|
||||
<?php /*if(file_exists(APPLICATION_PATH . "/../public/baseImg/logo.png")): */?><!--
|
||||
<img class="center-block" src="../baseImg/logo.png" />
|
||||
<?php /*else: */?>
|
||||
<img class="center-block" src="../baseImg/no_logo.png" />
|
||||
--><?php /*endif; */?>
|
||||
|
||||
<?php $nomeSito = explode('.',$this->datiAziendali['NomeBreve']); ?>
|
||||
<?php if(count($nomeSito) > 1): ?>
|
||||
<a href="<?= $this->url(array(),'default',true); ?>"><b><?= ucfirst($nomeSito[0]); ?></b>.<?= $nomeSito[1] ?></a>
|
||||
<?php else: ?>
|
||||
<a href="<?= $this->url(array(),'default',true); ?>"><b><?= ucfirst($nomeSito[0]); ?></b></a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- /.login-logo -->
|
||||
|
||||
<div class="card-body login-card-body">
|
||||
<p class="login-box-msg">LOG IN</p>
|
||||
|
||||
<?php if($this->error): ?>
|
||||
<div class="alert alert-danger"><?= $this->error; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form action="<?= $this->url(array(), 'authenticate',true); ?>" method="post" autocomplete="off">
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<input type="text" class="form-control" value="<?= $this->formData['username']; ?>" autocomplete="off"
|
||||
name="username" placeholder="Nome Utente"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-envelope"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<input type="password" class="form-control" value="<?= $this->formData['password']; ?>" autocomplete="off"
|
||||
name="password" placeholder="Password"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-lock"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<div class="icheck-primary">
|
||||
<input id="ricorda_password" name="ricorda_password" autocomplete="off" <?= ($this->formData['ricorda_password'] == 'on') ? 'checked':'' ?>
|
||||
type="checkbox">
|
||||
<label for="ricorda_password" class="form-check-label">
|
||||
Memorizza Accesso
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
<div class="col-4">
|
||||
<button type="submit" class="btn btn-brand btn-block">Accedi</button>
|
||||
</div>
|
||||
<!-- /.col -->
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="mb-1 center-block mt-15">
|
||||
<a class="center-block text-center text-muted" href="<?= $this->url(array(),'resetpassword',true) ?>">Recupera Password</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="footer-login text-muted">© Copyright <?= date('Y');?> - Adriatica Sistemi soc. coop.</p>
|
||||
</div>
|
||||
@@ -0,0 +1,100 @@
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
|
||||
<?php if(file_exists(APPLICATION_PATH . "/../public/baseImg/logo.png")): ?>
|
||||
<img class="center-block" src="../baseImg/logo.png" />
|
||||
<?php else: ?>
|
||||
<img class="center-block" src="../baseImg/no_logo.png" />
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $nomeSito = explode('.',$this->datiAziendali['NomeBreve']); ?>
|
||||
<?php if(count($nomeSito) > 1): ?>
|
||||
<a href="<?= $this->url(array(),'default',true); ?>"><b><?= ucfirst($nomeSito[0]); ?></b>.<?= $nomeSito[1] ?></a>
|
||||
<?php else: ?>
|
||||
<a href="<?= $this->url(array(),'default',true); ?>"><b><?= ucfirst($nomeSito[0]); ?></b></a>
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- /.login-logo -->
|
||||
|
||||
<div class="card-body login-card-body">
|
||||
|
||||
<?php if(!$this->rcode): ?>
|
||||
<p class="login-box-msg">Inserisci l'email con cui sei registrato per il reset password</p>
|
||||
<?php else: ?>
|
||||
<p class="login-box-msg">Inserisci la nuova password</p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->errorMessage): ?>
|
||||
<div class="alert alert-danger"><?= $this->errorMessage; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->warningMessage): ?>
|
||||
<div class="alert alert-warning"><?= $this->warningMessage; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->successMessage): ?>
|
||||
<div class="alert alert-success"><?= $this->successMessage; ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if(!$this->rcode && !$this->hideForm): ?>
|
||||
|
||||
<form action="<?= $this->url(array(), 'resetpassword',true); ?>" method="post" autocomplete="off">
|
||||
<div class="input-group mb-3">
|
||||
<input type="email" class="form-control" value="<?= $this->formData['Email']; ?>" autocomplete="off"
|
||||
name="Email" placeholder="Email"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-envelope"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-brand btn-block text-uppercase">Richiedi Reset</button>
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if($this->rcode && !$this->hideForm): ?>
|
||||
|
||||
<form action="<?= $this->url(array('rcode'=>$this->rcode), 'resetpassword',true); ?>" method="post" autocomplete="off">
|
||||
<div class="input-group mb-3">
|
||||
<input type="password" class="form-control <?= ($this->errorForm['password']) ? 'is-invalid' : ''; ?>" value="" autocomplete="off" id="password"
|
||||
name="password" placeholder="Nuova password"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-lock"></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php foreach ((array)$this->errorForm['password'] as $error): ?>
|
||||
<span class="error invalid-feedback text-right"><?= $error; ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<div class="input-group mb-3">
|
||||
<input type="password" class="form-control <?= ($this->errorForm['password2']) ? 'is-invalid' : ''; ?>" value="" autocomplete="off" id="password2"
|
||||
name="password2" placeholder="Ripeti password"/>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-lock"></span>
|
||||
</div>
|
||||
</div>
|
||||
<?php foreach ((array)$this->errorForm['password2'] as $error): ?>
|
||||
<span class="error invalid-feedback text-right"><?= $error; ?></span>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<button type="submit" class="btn btn-brand btn-block text-uppercase">Reimposta Password</button>
|
||||
</div><!-- /.col -->
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</div><!-- /.login-box-body -->
|
||||
<p class="footer-login text-muted">© Copyright <?= date('Y');?> - Adriatica Sistemi soc. coop.</p>
|
||||
</div><!-- /.login-box -->
|
||||
Reference in New Issue
Block a user