Initial Commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Description of Bootstrap
|
||||
*/
|
||||
class Monitoring_Bootstrap extends Zend_Application_Module_Bootstrap
|
||||
{
|
||||
public function _init()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function _initPersonalRouter(){
|
||||
|
||||
$router= Zend_Controller_Front::getInstance()->getRouter();
|
||||
|
||||
$router->addRoute(
|
||||
'monitoring',
|
||||
new Zend_Controller_Router_Route('monitoring/:controller/:action',
|
||||
array(
|
||||
'module'=>'monitoring',
|
||||
'controller'=>'index',
|
||||
'action'=>'index'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
class Monitoring_IndexController extends App_Controller_Sections_Section
|
||||
{
|
||||
|
||||
protected $_genericModel;
|
||||
protected $_authService;
|
||||
protected $_ipManager;
|
||||
|
||||
protected $_parametriSito;
|
||||
protected $_datiAziendali;
|
||||
|
||||
public $_configs;
|
||||
|
||||
public $_MENUITEM;
|
||||
public $_PAGETITLE;
|
||||
public $_ICONTITLE;
|
||||
public $_SECONDLEVEL;
|
||||
public $_SECONDLEVEL_ACTION;
|
||||
public $_SIDEBAR_COLLAPSED;
|
||||
|
||||
public $_EVENTLOADER;
|
||||
|
||||
public function init()
|
||||
{
|
||||
$this->_helper->layout->setLayout('admin');
|
||||
$this->_authService = new App_Service_Auth();
|
||||
$this->_genericModel = new Application_Model_Generic();
|
||||
$this->_configs = new App_Service_ConfigManager();
|
||||
$this->_ipManager = new App_Service_IpManager();
|
||||
|
||||
$this->_parametriSito = new App_Service_JsonConfiguration('parametri_sito');
|
||||
$this->_datiAziendali = new App_Service_JsonConfiguration('dati_aziendali');
|
||||
|
||||
$this->_MENUITEM = 'dashboard';
|
||||
$this->_PAGETITLE = 'DashBoard';
|
||||
$this->_ICONTITLE = 'fa-dashboard';
|
||||
|
||||
$this->_SECONDLEVEL = null;
|
||||
$this->_SECONDLEVEL_ACTION = null;
|
||||
|
||||
$this->_EVENTLOADER = FALSE;
|
||||
|
||||
}
|
||||
|
||||
public function preDispatch()
|
||||
{
|
||||
$this->view->moduleName = 'monitoring';
|
||||
|
||||
if ($this->_getParam('update')) {
|
||||
$this->view->update = $this->_getParam('update');
|
||||
} else {
|
||||
$this->view->update = '0';
|
||||
}
|
||||
|
||||
if ($this->_getParam('err')) {
|
||||
$this->view->error = $this->_getParam('err');
|
||||
} else {
|
||||
$this->view->error = '0';
|
||||
}
|
||||
|
||||
//Controllo delle notifiche
|
||||
$nNot = $this->_genericModel->countFiltered('Errorlog', array('state = ?' => 1));
|
||||
$this->view->notification = $nNot;
|
||||
if ($nNot > 0) {
|
||||
$this->view->notificationlist = $this->_genericModel->customQuery("SELECT COUNT(*) as tot, section, state FROM `error_log` WHERE state = '1' GROUP BY section");
|
||||
}
|
||||
|
||||
$this->_SIDEBAR_COLLAPSED = $_COOKIE['ui_sidebar_collapsed'];
|
||||
|
||||
$this->view->enableTestSdk = $this->_ipManager->controllaAbilitazioneTestSdk();
|
||||
}
|
||||
|
||||
public function postDispatch()
|
||||
{
|
||||
$this->view->action = $this->getRequest()->getActionName();
|
||||
|
||||
$this->view->menu = $this->_MENUITEM;
|
||||
$this->view->pageTitle = $this->_PAGETITLE;
|
||||
$this->view->iconTitle = $this->_ICONTITLE;
|
||||
|
||||
$this->view->secondLevel = $this->_SECONDLEVEL;
|
||||
$this->view->secondLevelAction = $this->_SECONDLEVEL_ACTION;
|
||||
|
||||
$this->view->sideBarCollapsed = $this->_SIDEBAR_COLLAPSED;
|
||||
|
||||
$this->view->eventLoader = $this->_EVENTLOADER;
|
||||
|
||||
$this->view->parametriSito = $this->_parametriSito->getAllParams();
|
||||
$this->view->datiAziendali = $this->_datiAziendali->getAllParams();
|
||||
}
|
||||
|
||||
public function logoutAction()
|
||||
{
|
||||
$this->_authService->clear();
|
||||
|
||||
return $this->_helper->redirector('index', 'index', 'default');
|
||||
}
|
||||
|
||||
public function indexAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*===============================================================================================
|
||||
* =========================== FUNZIONI PRIVATE DEL CONTROLLER =========================
|
||||
* =============================================================================================*/
|
||||
|
||||
public function getMainModel()
|
||||
{
|
||||
return $this->_genericModel;
|
||||
}
|
||||
|
||||
|
||||
} //Close Class
|
||||
@@ -0,0 +1,47 @@
|
||||
<?php if ($this->pageCount > 1): ?>
|
||||
<ul class="pagination pagination-sm float-right">
|
||||
<!-- Link alla prima pagina -->
|
||||
<?php if (isset($this->previous)): ?>
|
||||
<li class="page-item"><a class="page-link" href="<?= $this -> url(array('page' => $this -> first,'count' => $this -> count,'action'=>$this->action ,'module'=>$this->moduleName),'filterpager',true); ?>"><i class="fa fa-angle-double-left"></i></a>
|
||||
<?php else: ?>
|
||||
<li class="page-item disabled"><a class="page-link" href="#"><i class="fa fa-angle-double-left"></i></a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Link alla pagina precedente -->
|
||||
<?php if (isset($this->previous)): ?>
|
||||
<li class="page-item"><a class="page-link" href="<?= $this -> url(array('page' => $this -> previous,'count' => $this -> count,'action'=>$this->action, 'module'=>$this->moduleName),'filterpager',true); ?>"><i class="fa fa-angle-left"></i></a><li>
|
||||
<?php else: ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Link pagina numerata -->
|
||||
<?php foreach ($this->pagesInRange as $page): ?>
|
||||
<?php if ($page != $this->current): ?>
|
||||
<li class="page-item" style="font-size: 10px;"><a class="page-link" href="<?php echo $this -> url(array('page' => $page,'count' => $this -> count,'action'=>$this->action, 'module'=>$this->moduleName),'filterpager',false); ?>">
|
||||
<?php echo $page; ?>
|
||||
</a></li>
|
||||
<?php else: ?>
|
||||
<li class="active page-item" style="font-size: 10px;"><a class="page-link" href="<?php echo $this -> url(array('page' => $page,'count' => $this -> count,'action'=>$this->action, 'module'=>$this->moduleName),'filterpager',false); ?>"><?php echo $page; ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!-- Link alla pagina successiva -->
|
||||
<?php if (isset($this->next)): ?>
|
||||
<li class="page-item"><a class="page-link" href="<?= $this -> url(array('page' => $this -> next,'count' => $this -> count,'action'=>$this->action, 'module'=>$this->moduleName),'filterpager',false); ?>"><i class="fa fa-angle-right"></i></a></li>
|
||||
<?php else: ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Link all'ultima pagina -->
|
||||
<?php if (isset($this->next)): ?>
|
||||
<li class="page-item" style="margin-right:10px;"><a class="page-link" href="<?= $this -> url(array('page' => $this -> last,'count' => $this -> count,'action'=>$this->action),'filterpager',false); ?>"><i class="fa fa-angle-double-right"></i></a></li>
|
||||
<?php else: ?>
|
||||
<li class="page-item disabled"><a class="page-link" href="#"><i class="fa fa-angle-double-right"></i></a></li>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="text-counter">
|
||||
dal: <?php echo $this -> firstItemNumber; ?> - <?= $this -> lastItemNumber; ?> di <?= $this -> totalItemCount; ?>
|
||||
</div>
|
||||
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,54 @@
|
||||
<div class="modal fade" id="modal" data-form="modalForm" tabindex="-1" data-backdrop="false"
|
||||
role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
<div class="modal-content">
|
||||
|
||||
<div id="modal-loader" class="overlay d-none justify-content-center align-items-center">
|
||||
<i class="fas fa-2x fa-sync fa-spin"></i>
|
||||
</div>
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title flot-left" id="myModalLabel"><i
|
||||
class="fa fa-fw <?= ($this->iconTitle) ? $this->iconTitle : 'fa-pencil'; ?> modal_icon"></i>
|
||||
Log</h5>
|
||||
<button id="close-modal" type="button" class="close float-right" data-dismiss="modal"
|
||||
aria-hidden="true">×
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body pdb-0">
|
||||
|
||||
<form id="modalForm" name="modalForm" class="compact-form no-border-radius"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'salva' . $this->resourceName), $this->moduleName, true); ?>"
|
||||
data-get="<?= $this->url(array('controller' => 'index', 'action' => 'get' . $this->resourceName), $this->moduleName, true); ?>"
|
||||
data-delete="<?= $this->url(array('controller' => 'index', 'action' => 'delete' . $this->resourceName, 'id' => $this->id), $this->moduleName, true); ?>"
|
||||
method="post" role="form">
|
||||
|
||||
<input type="hidden" value="" class="form-control" id="id" name="id" form="modalForm" required>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-12">
|
||||
<div id="ErrorDescription" class="alert alert-warning alert-sm d-none"></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="undo" class="btn btn-default pull-left" data-dismiss="modal"><i
|
||||
class="fa fa-times"></i>
|
||||
Chiudi
|
||||
</button>
|
||||
<button type="button" id="save" op="insert" class="btn btn-success"><i class="fa fa-save"></i>
|
||||
Salva
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,26 @@
|
||||
|
||||
<div class="col-12 col-md-4 no-padding-r-sm">
|
||||
<input type="text" id="data_search" name="data" daterangepicker
|
||||
value="<?= $this->search_params['data']; ?>" class="form-control no-border-right-sm"
|
||||
placeholder="Data Inserimento"/>
|
||||
<input type="hidden" value="DATERANGE" name="dataOP" id="dataOP"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-6 no-padding-r-l-sm">
|
||||
<input type="text" id="ip_search" name="ip" value="<?= $this->search_params['ip']; ?>"
|
||||
class="form-control no-border-right-sm" placeholder="Ip"/>
|
||||
<input type="hidden" value="LIKE" name="ipOP" id="ipOP"/>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-2 no-padding-l-sm">
|
||||
<?php $totFilter = count($this->CleanFiltersParam($this->search_params)); ?>
|
||||
<div class="btn-group">
|
||||
<button type="submit" title="Cerca" class="btn btn-brand btn-flat"><i
|
||||
class="fa fa-search fa-fw"></i></button>
|
||||
<a href="<?= $this->url(array('module' => $this->moduleName, 'action' => 'list' . $this->resourceName, 'reset' => 'true'), 'default', true); ?>"
|
||||
data-toggle="tooltip" data-container="body" data-placement="right"
|
||||
title="Reset (Filtri attivi: <?= $totFilter; ?> )"
|
||||
class="btn btn-<?= ($totFilter > 0) ? 'danger' : 'info'; ?> btn-flat"
|
||||
type="button"><i class="fa fa-times fa-fw"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,170 @@
|
||||
<div class="box box-no-border box-no-shadow pd10 mb-0">
|
||||
|
||||
<div class="box-header">
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<!--FORM DI RICERCA-->
|
||||
<div class="float-left box-title search-left hidden-xs">
|
||||
|
||||
<form class="form-horizontal" id="searchForm" name="searchForm" method="post"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'list' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
|
||||
<div class="row">
|
||||
<?= $this->render("index/$this->resourceName/_searchBlock.phtml"); ?>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="order" name="order" class="hidden" value="<?= $this->order; ?>"/>
|
||||
<input type="hidden" id="tipoOrder" name="tipoOrder" class="hidden" value="<?= $this->tipoOrder; ?>"/>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<!--BLOCCO FUNZIONI LATO SINISTRA-->
|
||||
<div class="float-right box-title search-right">
|
||||
|
||||
<div class="btn-group">
|
||||
|
||||
<?php if ($this->isActiveNewInsert): ?>
|
||||
<button data-toggle="tooltip" title="Nuovo" id="new" class="btn btn-brand btn-flat" type="button"
|
||||
data-target="#Modal" data-toggle="modal"><i class="fa fa-plus"></i></button>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->isActiveFilterModal): ?>
|
||||
<button data-toggle="tooltip" title="Filtra" id="filterData" class="btn btn-brand btn-flat"
|
||||
type="button" data-target="#filterModal" data-toggle="modal">
|
||||
<?php if ($totFilter > 0): ?>
|
||||
<span class="badge bg-red"><?= $totFilter; ?></span>
|
||||
<?php endif; ?>
|
||||
<i class="fa fa-filter"></i>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-flat btn-brand dropdown-toggle" type="button" id="dropdownMenuButton"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="d-none-xs">Selezionati</span> <span class="caret"></span>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||
<a id="delete_select" class="dropdown-item"
|
||||
href="<?= $this->url(array('controller' => 'index', 'action' => 'deleteselect' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
<i class="fa fa-trash fa-fw"></i> Elimina</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- INIZIO TABELLA -->
|
||||
|
||||
<div class="box-body table-responsive table-wrapper">
|
||||
<table class="table table-border table-striped flot-header">
|
||||
|
||||
<thead>
|
||||
<?= $this->render("index/$this->resourceName/th.phtml") ?>
|
||||
</thead>
|
||||
|
||||
<tbody id="tablebody">
|
||||
<?php if (count($this->table) > 0): ?>
|
||||
<?php foreach ($this->table as $key => $value): ?>
|
||||
<?= $this->partial("index/$this->resourceName/td.phtml", $value) ?>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<?php if ($totFilter <= 0): ?>
|
||||
<td id="norows" class="no-rows" colspan="6">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
Nessun record presente
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td id="norows" class="no-rows" colspan="6">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
Nessun risultato trovato in base alla ricerca
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="box-footer clearfix">
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!--FUNZIONE MULTIPLE-->
|
||||
<div class="col-4 col-xs-12">
|
||||
<div class="btn-group btn-group-sm float-left dropup d-none-xs dropdown-multifunction-down">
|
||||
<button class="btn btn-default btn-flat" type="button">
|
||||
Selezionati
|
||||
</button>
|
||||
<button class="btn btn-default btn-flat dropdown-toggle" data-toggle="dropdown" type="button">
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a id="delete_select" class="dropdown-item"
|
||||
href="<?= $this->url(array('controller' => 'index', 'action' => 'deleteselect' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
<i class="fa fa-trash fa-fw"></i> Elimina</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-8 col-xs-12">
|
||||
<!--PAGINATOR FOOTER-->
|
||||
<?php if ($this->table instanceof Zend_Paginator): ?>
|
||||
<?= $this->paginationControl($this->table, 'Jumping', 'index/_paginator.phtml', array('action' => $this->action, 'count' => $this->count, 'moduleName'=>$this->moduleName)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="pagination-counter float-right">
|
||||
<form name="paginationCounter"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'list' . $this->resourceName, 'page' => $this->page, 'count' => $this->count), $this->moduleName, false); ?>"
|
||||
class="" method="post" role="form">
|
||||
<div class="input-group input-group-sm">
|
||||
<label class="text-right d-none-xs mb-1" for="count">
|
||||
<?php if ($this->totFiltrati != $this->totElementi): ?>
|
||||
<span>Filtrati <?= $this->totFiltrati ?> su <?= $this->totElementi; ?> totali </span>
|
||||
<?php else: ?>
|
||||
<span>Tot. <?= $this->totElementi; ?></span>
|
||||
<?php endif; ?>
|
||||
</label>
|
||||
<input type="text" class="form-control"
|
||||
id="count" aria-describedby="inputGroup-sizing-sm"
|
||||
value="" placeholder="<?= $this->count; ?>" name="count"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ($this->isActiveModalDetail): ?>
|
||||
<?= $this->render("index/$this->resourceName/_modal.phtml"); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->isActiveFilterModal): ?>
|
||||
<?= $this->render("index/$this->resourceName/_modalFilter.phtml"); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->idDetail > 0): ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
edit(<?= $this->idDetail; ?>);
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
<tr data-id="<?= $this->id ?>">
|
||||
<td class="text-center"><input type="checkbox" value="<?= $this->id ?>" name="select-items[]"
|
||||
id="select-items"></td>
|
||||
|
||||
<td class="text-center"><?= $this->ExtractData($this->data, 'withtime', true); ?></td>
|
||||
<td class="text-center"><?= $this->ip; ?></td>
|
||||
<td>
|
||||
<?php switch ($this->tipo):
|
||||
case'admin': ?>
|
||||
<span class="label label-danger">
|
||||
<?php break;
|
||||
case'monitoring': ?>
|
||||
<span class="label label-warning">
|
||||
<?php break;
|
||||
case'forum': ?>
|
||||
<span class="label label-info">
|
||||
<?php break;
|
||||
case 'bloggers': ?>
|
||||
<span class="label bg-fuchsia">
|
||||
<?php break;
|
||||
case 'rivenditori': ?>
|
||||
<span class="label bg-olive">
|
||||
<?php break;
|
||||
case'eWinfatt': ?>
|
||||
<span class="label label-success">
|
||||
<?php break; ?>
|
||||
<?php endswitch; ?>
|
||||
<?= ucfirst($this->tipo); ?></span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="text-center">
|
||||
<button id="delete" class="btn btn-sm btn-danger btn-flat" type="button" data-toggle="tooltip"
|
||||
data-container="body" title="Elimina">
|
||||
<span class="fa fa-trash fa-fw"></span>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<tr>
|
||||
<th style="width:60px;" class="text-center">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-default btn-sm dropdown-toggle dropdown-icon" type="button" id="dropdownMenuButton"
|
||||
data-boundary="window"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a id="select_all" class="dropdown-item" href="#"><i class="far fa-check-square fa-fw"></i> Tutti</a>
|
||||
<a id="deselect_all" class="dropdown-item" href="#"><i class="far fa-square fa-fw"></i> Nessuno</a>
|
||||
<a id="invert_all" class="dropdown-item" href="#"><i class="fa fa-check-square fa-fw"></i> Inverti</a>
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
|
||||
<th data-ord="data" style="width:120px;" class="text-center">Data</th>
|
||||
<th data-ord="ip" style="width:100px;"class="text-center">Ip</th>
|
||||
<th data-ord="tipo" class="">Tipo</th>
|
||||
|
||||
<th width="100px"></th>
|
||||
</tr>
|
||||
@@ -0,0 +1,45 @@
|
||||
<div class="modal fade" id="modal" data-form="modalForm" tabindex="-1" data-backdrop="false"
|
||||
role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
<div class="modal-content">
|
||||
|
||||
<div id="modal-loader" class="overlay d-none justify-content-center align-items-center">
|
||||
<i class="fas fa-2x fa-sync fa-spin"></i>
|
||||
</div>
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title flot-left" id="myModalLabel"><i
|
||||
class="fa fa-fw <?= ($this->iconTitle) ? $this->iconTitle : 'fa-pencil'; ?> modal_icon"></i>
|
||||
Log</h5>
|
||||
<button id="close-modal" type="button" class="close float-right" data-dismiss="modal"
|
||||
aria-hidden="true">×
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body pdb-0">
|
||||
|
||||
<form id="modalForm" name="modalForm" class="compact-form no-border-radius"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'salva' . $this->resourceName), $this->moduleName, true); ?>"
|
||||
data-get="<?= $this->url(array('controller' => 'index', 'action' => 'get' . $this->resourceName), $this->moduleName, true); ?>"
|
||||
data-delete="<?= $this->url(array('controller' => 'index', 'action' => 'delete' . $this->resourceName, 'id' => $this->id), $this->moduleName, true); ?>"
|
||||
method="post" role="form">
|
||||
|
||||
<div id="main_contenitor">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="undo" class="btn btn-default pull-left" data-dismiss="modal"><i
|
||||
class="fa fa-times"></i>
|
||||
Chiudi
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,32 @@
|
||||
<div class="col-12 col-md-4 no-padding-r-sm">
|
||||
<input type="text" daterangepicker id="data" name="data" value="<?= $this->search_params['data']; ?>" class="form-control no-border-right-sm"
|
||||
placeholder="Data Inserimento"/>
|
||||
<input type="hidden" value="DATERANGE" name="dataOP" id="dataOP" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-3 no-padding-r-l-sm">
|
||||
<input type="text" id="msg_search" name="msg" value="<?= $this->search_params['msg']; ?>" class="form-control no-border-right-sm" placeholder="Messaggio"/>
|
||||
<input type="hidden" value="LIKE" name="msgOP" id="msgOP" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-3 no-padding-r-l-sm">
|
||||
<select id="state" name="state" class="form-control no-border-right-sm">
|
||||
<option <?= ($this->search_params['state'] == '') ? 'selected':''; ?> value="">Stato...</option>
|
||||
<option <?= ($this->search_params['state'] == '1') ? 'selected':''; ?> value="1">New</option>
|
||||
<option <?= ($this->search_params['state'] == '2') ? 'selected':''; ?> value="2">Pending</option>
|
||||
<option <?= ($this->search_params['state'] == '3') ? 'selected':''; ?> value="3">Resolved</option>
|
||||
<option <?= ($this->search_params['state'] == '4') ? 'selected':''; ?> value="4">Viewed</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-2 no-padding-l-sm">
|
||||
<?php $totFilter = count($this->CleanFiltersParam($this->search_params)); ?>
|
||||
<div class="btn-group">
|
||||
<button type="submit" title="Cerca" class="btn btn-brand btn-flat"><i class="fa fa-search fa-fw"></i></button>
|
||||
<a href="<?= $this->url(array('module'=>$this->moduleName,'action'=>'list'.$this->resourceName,'reset'=>'true'),'default',true); ?>"
|
||||
data-toggle="tooltip" data-container="body" data-placement="right"
|
||||
title="Reset (Filtri attivi: <?= $totFilter; ?> )"
|
||||
class="btn btn-<?= ($totFilter > 0) ? 'danger':'info'; ?> btn-flat"
|
||||
type="button"><i class="fa fa-times fa-fw"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,63 @@
|
||||
|
||||
<p><i class="fa fa-fw fa-link"></i> Url: <br><?= $this->baseUrl; ?><?= $this->url; ?></p>
|
||||
|
||||
<?php if($this->section === 'web_service'): ?>
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<p><i class="fa fa-fw fa-database"></i> NomeDB: <br><?= $this->db_name; ?></p>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<p><i class="fa fa-fw fa-user"></i> Username: <br><?= $this->username; ?></p>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p><i class="fa fa-fw fa-key"></i> Token: <br><?= $this->token; ?></p>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div><i class="fa fa-fw fa-envelope"></i> Messaggio:</div>
|
||||
<div class="form-box-container" style="padding: 10px;">
|
||||
<?= $this->msg; ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div><i class="fa fa-fw fa-code"></i> Stack Trace:</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>File</th>
|
||||
<th>Line</th>
|
||||
<th>Function</th>
|
||||
<th>Class</th>
|
||||
</tr>
|
||||
<?php foreach ($this->trace as $key => $value): ?>
|
||||
<tr>
|
||||
<td title="<?= $value['file']; ?>"><?= $value['file']; ?></td>
|
||||
<td><?= $value['line']; ?></td>
|
||||
<td><?= $value['function']; ?></td>
|
||||
<td><?= $value['class']; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br>
|
||||
<div><i class="fa fa-fw fa-list"></i> Parametri:</div>
|
||||
<div class="table-responsive" style="padding: 0;">
|
||||
<table class="table table-striped">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Parametro</th>
|
||||
<th>Valore</th>
|
||||
</tr>
|
||||
<?php foreach ($this->params as $key => $value): ?>
|
||||
<tr>
|
||||
<td><?= $key; ?></td>
|
||||
<td><?= $value; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,173 @@
|
||||
<div class="box box-no-border box-no-shadow pd10 mb-0">
|
||||
|
||||
<div class="box-header">
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<!--FORM DI RICERCA-->
|
||||
<div class="float-left box-title search-left hidden-xs">
|
||||
|
||||
<form class="form-horizontal" id="searchForm" name="searchForm" method="post"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'list' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
|
||||
<div class="row">
|
||||
<?= $this->render("index/$this->resourceName/_searchBlock.phtml"); ?>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="order" name="order" class="hidden" value="<?= $this->order; ?>"/>
|
||||
<input type="hidden" id="tipoOrder" name="tipoOrder" class="hidden" value="<?= $this->tipoOrder; ?>"/>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<!--BLOCCO FUNZIONI LATO SINISTRA-->
|
||||
<div class="float-right box-title search-right">
|
||||
|
||||
<div class="btn-group">
|
||||
|
||||
<?php if ($this->isActiveNewInsert): ?>
|
||||
<button data-toggle="tooltip" title="Nuovo" id="new" class="btn btn-brand btn-flat" type="button"
|
||||
data-target="#Modal" data-toggle="modal"><i class="fa fa-plus"></i></button>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->isActiveFilterModal): ?>
|
||||
<button data-toggle="tooltip" title="Filtra" id="filterData" class="btn btn-brand btn-flat"
|
||||
type="button" data-target="#filterModal" data-toggle="modal">
|
||||
<?php if ($totFilter > 0): ?>
|
||||
<span class="badge bg-red"><?= $totFilter; ?></span>
|
||||
<?php endif; ?>
|
||||
<i class="fa fa-filter"></i>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-flat btn-brand dropdown-toggle" type="button" id="dropdownMenuButton"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="d-none-xs">Selezionati</span> <span class="caret"></span>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||
<a id="delete_select" class="dropdown-item"
|
||||
href="<?= $this->url(array('controller' => 'index', 'action' => 'deleteselect' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
<i class="fa fa-trash fa-fw"></i> Elimina</a>
|
||||
<a id="setstate_select" class="dropdown-item"
|
||||
href="<?= $this->url(array('controller' => 'index', 'action' => 'setstateselect' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
Imposta Stato</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- INIZIO TABELLA -->
|
||||
|
||||
<div class="box-body table-responsive table-wrapper">
|
||||
<table class="table table-border table-striped flot-header">
|
||||
|
||||
<thead>
|
||||
<?= $this->render("index/$this->resourceName/th.phtml") ?>
|
||||
</thead>
|
||||
|
||||
<tbody id="tablebody">
|
||||
<?php if (count($this->table) > 0): ?>
|
||||
<?php foreach ($this->table as $key => $value): ?>
|
||||
<?= $this->partial("index/$this->resourceName/td.phtml", $value) ?>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<?php if ($totFilter <= 0): ?>
|
||||
<td id="norows" class="no-rows" colspan="6">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
Nessun record presente
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td id="norows" class="no-rows" colspan="6">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
Nessun risultato trovato in base alla ricerca
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="box-footer clearfix">
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!--FUNZIONE MULTIPLE-->
|
||||
<div class="col-4 col-xs-12">
|
||||
<div class="btn-group btn-group-sm float-left dropup d-none-xs dropdown-multifunction-down">
|
||||
<button class="btn btn-default btn-flat" type="button">
|
||||
Selezionati
|
||||
</button>
|
||||
<button class="btn btn-default btn-flat dropdown-toggle" data-toggle="dropdown" type="button">
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a id="delete_select" class="dropdown-item"
|
||||
href="<?= $this->url(array('controller' => 'index', 'action' => 'deleteselect' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
<i class="fa fa-trash fa-fw"></i> Elimina</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-8 col-xs-12">
|
||||
<!--PAGINATOR FOOTER-->
|
||||
<?php if ($this->table instanceof Zend_Paginator): ?>
|
||||
<?= $this->paginationControl($this->table, 'Jumping', 'index/_paginator.phtml', array('action' => $this->action, 'count' => $this->count, 'moduleName'=>$this->moduleName)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="pagination-counter float-right">
|
||||
<form name="paginationCounter"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'list' . $this->resourceName, 'page' => $this->page, 'count' => $this->count), $this->moduleName, false); ?>"
|
||||
class="" method="post" role="form">
|
||||
<div class="input-group input-group-sm">
|
||||
<label class="text-right d-none-xs mb-1" for="count">
|
||||
<?php if ($this->totFiltrati != $this->totElementi): ?>
|
||||
<span>Filtrati <?= $this->totFiltrati ?> su <?= $this->totElementi; ?> totali </span>
|
||||
<?php else: ?>
|
||||
<span>Tot. <?= $this->totElementi; ?></span>
|
||||
<?php endif; ?>
|
||||
</label>
|
||||
<input type="text" class="form-control"
|
||||
id="count" aria-describedby="inputGroup-sizing-sm"
|
||||
value="" placeholder="<?= $this->count; ?>" name="count"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ($this->isActiveModalDetail): ?>
|
||||
<?= $this->render("index/$this->resourceName/_modal.phtml"); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->isActiveFilterModal): ?>
|
||||
<?= $this->render("index/$this->resourceName/_modalFilter.phtml"); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->idDetail > 0): ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
edit(<?= $this->idDetail; ?>);
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<tr data-id="<?= $this->id ?>" data-state="<?= $this->state ?>">
|
||||
<td class="text-center"><input type="checkbox" value="<?= $this->id ?>" name="select-elements[]" id="select-elements"></td>
|
||||
|
||||
<td class="text-center"><?= $this->ExtractData($this->data,'withtime',true); ?></td>
|
||||
<td><?= htmlspecialchars($this->msg); ?></td>
|
||||
<td><?= htmlspecialchars($this->username); ?></td>
|
||||
<td><?= htmlspecialchars($this->db_name); ?></td>
|
||||
<td><?php switch($this->state):
|
||||
case'1': ?>
|
||||
<span class="badge bg-red">New
|
||||
<?php break;
|
||||
case'2': ?>
|
||||
<span class="badge bg-warning">Pending
|
||||
<?php break;
|
||||
case'4': ?>
|
||||
<span class="badge bg-warning">Viewed
|
||||
<?php break;
|
||||
case'3': ?>
|
||||
<span class="badge bg-success">Resolved
|
||||
<?php break; ?>
|
||||
<?php endswitch; ?>
|
||||
</span></td>
|
||||
<td><span class="badge bg-gray"><?= $this->section; ?></span></td>
|
||||
<td>
|
||||
<div class="text-center">
|
||||
<button id="edit" class="btn btn-sm btn-brand btn-flat" type="button" data-toggle="tooltip" data-container="body" title="Dettaglio">
|
||||
<span class="fa fa-search-plus"></span>
|
||||
</button>
|
||||
|
||||
<?php switch($this->state):
|
||||
case'1': ?>
|
||||
<button id="set-state" class="btn btn-sm btn-warning btn-flat" type="button" data-toggle="tooltip" title="Visto" data-state="4" data-url="<?= $this -> url(array('controller' => 'index', 'action' => 'setstateerrorlog', 'id' => $this->id), 'monitoring', true); ?>">
|
||||
<span class="fa fa-eye"></span>
|
||||
</button>
|
||||
<?php break;
|
||||
case'2': ?>
|
||||
<button id="set-state" class="btn btn-sm btn-success btn-flat" type="button" data-toggle="tooltip" title="Risolvi" data-state="3" data-url="<?= $this -> url(array('controller' => 'index', 'action' => 'setstateerrorlog', 'id' => $this->id), 'monitoring', true); ?>">
|
||||
<span class="fa fa-check"></span>
|
||||
</button>
|
||||
<?php break;
|
||||
case'3': ?>
|
||||
<button id="set-state" class="btn btn-sm btn-warning btn-flat" type="button" data-toggle="tooltip" title="Attesa" data-state="2" data-url="<?= $this -> url(array('controller' => 'index', 'action' => 'setstateerrorlog', 'id' => $this->id), 'monitoring', true); ?>">
|
||||
<span class="fa fa-eye-slash"></span>
|
||||
</button>
|
||||
<?php break;
|
||||
case'4': ?>
|
||||
<button id="set-state" class="btn btn-sm btn-success btn-flat" type="button" data-toggle="tooltip" title="Risolvi" data-state="3" data-url="<?= $this -> url(array('controller' => 'index', 'action' => 'setstateerrorlog', 'id' => $this->id), 'monitoring', true); ?>">
|
||||
<span class="fa fa-check"></span>
|
||||
</button>
|
||||
<?php break; ?>
|
||||
<?php endswitch; ?>
|
||||
|
||||
<button id="delete" class="btn btn-sm btn-danger btn-flat" type="button" data-toggle="tooltip" title="Elimina">
|
||||
<span class="fa fa-trash"></span>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
<tr>
|
||||
<th style="width:60px;" class="text-center">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-default btn-sm dropdown-toggle dropdown-icon" type="button" id="dropdownMenuButton"
|
||||
data-boundary="window"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a id="select_all" class="dropdown-item" href="#"><i class="far fa-check-square fa-fw"></i> Tutti</a>
|
||||
<a id="deselect_all" class="dropdown-item" href="#"><i class="far fa-square fa-fw"></i> Nessuno</a>
|
||||
<a id="invert_all" class="dropdown-item" href="#"><i class="fa fa-check-square fa-fw"></i> Inverti</a>
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
|
||||
<th data-ord="data" style="width:135px;" class="text-center">Data</th>
|
||||
<th data-ord="msg" class="">Messaggio di errore</th>
|
||||
<th data-ord="username">Username</th>
|
||||
<th data-ord="username">Db Name</th>
|
||||
<th data-ord="state" style="min-width:100px;">Stato</th>
|
||||
<th data-ord="section" style="min-width:80px;">Section</th>
|
||||
|
||||
<th width="150px"></th>
|
||||
</tr>
|
||||
@@ -0,0 +1,45 @@
|
||||
<div class="modal fade" id="modal" data-form="modalForm" tabindex="-1" data-backdrop="false"
|
||||
role="dialog" aria-hidden="true">
|
||||
<div class="modal-dialog modal-lg">
|
||||
|
||||
<div class="modal-content">
|
||||
|
||||
<div id="modal-loader" class="overlay d-none justify-content-center align-items-center">
|
||||
<i class="fas fa-2x fa-sync fa-spin"></i>
|
||||
</div>
|
||||
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title flot-left" id="myModalLabel"><i
|
||||
class="fa fa-fw <?= ($this->iconTitle) ? $this->iconTitle : 'fa-pencil'; ?> modal_icon"></i>
|
||||
Log Invio</h5>
|
||||
<button id="close-modal" type="button" class="close float-right" data-dismiss="modal"
|
||||
aria-hidden="true">×
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body pdb-0">
|
||||
|
||||
<form id="modalForm" name="modalForm" class="compact-form no-border-radius"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'salva' . $this->resourceName), $this->moduleName, true); ?>"
|
||||
data-get="<?= $this->url(array('controller' => 'index', 'action' => 'get' . $this->resourceName), $this->moduleName, true); ?>"
|
||||
data-delete="<?= $this->url(array('controller' => 'index', 'action' => 'delete' . $this->resourceName, 'id' => $this->id), $this->moduleName, true); ?>"
|
||||
method="post" role="form">
|
||||
|
||||
<div id="main_contenitor">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" id="undo" class="btn btn-default pull-left" data-dismiss="modal"><i
|
||||
class="fa fa-times"></i>
|
||||
Chiudi
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,27 @@
|
||||
<div class="col-12 col-md-4 no-padding-r-sm">
|
||||
<input type="text" daterangepicker id="DataInvio_search" name="DataInvio" value="<?= $this->search_params['DataInvio']; ?>" class="form-control no-border-right-sm"
|
||||
placeholder="Data Invio"/>
|
||||
<input type="hidden" value="DATERANGE" name="DataInvioOP" id="DataInvioOP" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-3 no-padding-r-l-sm">
|
||||
<input type="text" id="message_search" name="message" value="<?= $this->search_params['message']; ?>" class="form-control no-border-right-sm" placeholder="Messaggio"/>
|
||||
<input type="hidden" value="LIKE" name="messageOP" id="messageOP" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-3 no-padding-r-l-sm">
|
||||
<input type="text" id="processed_emails_search" name="processed_emails" value="<?= $this->search_params['processed_emails']; ?>" class="form-control no-border-right-sm" placeholder="Processed"/>
|
||||
<input type="hidden" value="LIKE" name="processed_emailsOP" id="processed_emailsOP" />
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-2 no-padding-l-sm">
|
||||
<?php $totFilter = count($this->CleanFiltersParam($this->search_params)); ?>
|
||||
<div class="btn-group">
|
||||
<button type="submit" title="Cerca" class="btn btn-brand btn-flat"><i class="fa fa-search fa-fw"></i></button>
|
||||
<a href="<?= $this->url(array('module'=>$this->moduleName,'action'=>'list'.$this->resourceName,'reset'=>'true'),'default',true); ?>"
|
||||
data-toggle="tooltip" data-container="body" data-placement="right"
|
||||
title="Reset (Filtri attivi: <?= $totFilter; ?> )"
|
||||
class="btn btn-<?= ($totFilter > 0) ? 'danger':'info'; ?> btn-flat"
|
||||
type="button"><i class="fa fa-times fa-fw"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,64 @@
|
||||
|
||||
<p><i class="fa fa-fw fa-link"></i> Data: <br><?= $this->DataInvio; ?></p>
|
||||
|
||||
<div><i class="fa fa-fw fa-envelope"></i> Messaggio:</div>
|
||||
<div class="form-box-container" style="padding: 10px;">
|
||||
<?= $this->message; ?>
|
||||
</div>
|
||||
|
||||
<div><i class="fa fa-fw fa-code"></i> Processed:</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-bordered">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Email</th>
|
||||
<th>Stato Precedente</th>
|
||||
<th>Nuovo Stato</th>
|
||||
</tr>
|
||||
<?php if(count($this->processed_emails) <= 0): ?>
|
||||
<tr>
|
||||
<td colspan="4">Nessun invio</td>
|
||||
</tr>
|
||||
<?php else: ?>
|
||||
<?php foreach ($this->processed_emails as $key => $value): ?>
|
||||
<tr>
|
||||
<td><?= $value['EmailId']; ?></td>
|
||||
<td><?= $value['EmailDestinatario']; ?></td>
|
||||
<td><?= $value['StatoPrecedente']; ?></td>
|
||||
<td><?= $value['NuovoStato']; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br>
|
||||
<div><i class="fa fa-fw fa-list"></i> Errori:</div>
|
||||
<div class="table-responsive" style="padding: 0;">
|
||||
<table class="table table-striped">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>EmailId</th>
|
||||
<th>Email</th>
|
||||
<th>StatoPrecedente</th>
|
||||
<th>Message</th>
|
||||
</tr>
|
||||
<?php if(count($this->errors) <= 0): ?>
|
||||
<tr>
|
||||
<td colspan="4">Nessun errore</td>
|
||||
</tr>
|
||||
<?php else: ?>
|
||||
<?php foreach ($this->errors as $key => $value): ?>
|
||||
<tr>
|
||||
<td><?= $value['EmailId']; ?></td>
|
||||
<td><?= $value['EmailDestinatario']; ?></td>
|
||||
<td><?= $value['StatoPrecedente']; ?></td>
|
||||
<td><?= $value['message']; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@@ -0,0 +1,173 @@
|
||||
<div class="box box-no-border box-no-shadow pd10 mb-0">
|
||||
|
||||
<div class="box-header">
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<!--FORM DI RICERCA-->
|
||||
<div class="float-left box-title search-left hidden-xs">
|
||||
|
||||
<form class="form-horizontal" id="searchForm" name="searchForm" method="post"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'list' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
|
||||
<div class="row">
|
||||
<?= $this->render("index/$this->resourceName/_searchBlock.phtml"); ?>
|
||||
</div>
|
||||
|
||||
<input type="hidden" id="order" name="order" class="hidden" value="<?= $this->order; ?>"/>
|
||||
<input type="hidden" id="tipoOrder" name="tipoOrder" class="hidden" value="<?= $this->tipoOrder; ?>"/>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<!--BLOCCO FUNZIONI LATO SINISTRA-->
|
||||
<div class="float-right box-title search-right">
|
||||
|
||||
<div class="btn-group">
|
||||
|
||||
<?php if ($this->isActiveNewInsert): ?>
|
||||
<button data-toggle="tooltip" title="Nuovo" id="new" class="btn btn-brand btn-flat" type="button"
|
||||
data-target="#Modal" data-toggle="modal"><i class="fa fa-plus"></i></button>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->isActiveFilterModal): ?>
|
||||
<button data-toggle="tooltip" title="Filtra" id="filterData" class="btn btn-brand btn-flat"
|
||||
type="button" data-target="#filterModal" data-toggle="modal">
|
||||
<?php if ($totFilter > 0): ?>
|
||||
<span class="badge bg-red"><?= $totFilter; ?></span>
|
||||
<?php endif; ?>
|
||||
<i class="fa fa-filter"></i>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-flat btn-brand dropdown-toggle" type="button" id="dropdownMenuButton"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="d-none-xs">Selezionati</span> <span class="caret"></span>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuButton">
|
||||
<a id="delete_select" class="dropdown-item"
|
||||
href="<?= $this->url(array('controller' => 'index', 'action' => 'deleteselect' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
<i class="fa fa-trash fa-fw"></i> Elimina</a>
|
||||
<!--<a id="setstate_select" class="dropdown-item"
|
||||
href="<?/*= $this->url(array('controller' => 'index', 'action' => 'setstateselect' . $this->resourceName), $this->moduleName, true); */?>">
|
||||
Imposta Stato</a>-->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- INIZIO TABELLA -->
|
||||
|
||||
<div class="box-body table-responsive table-wrapper">
|
||||
<table class="table table-border table-striped flot-header">
|
||||
|
||||
<thead>
|
||||
<?= $this->render("index/$this->resourceName/th.phtml") ?>
|
||||
</thead>
|
||||
|
||||
<tbody id="tablebody">
|
||||
<?php if (count($this->table) > 0): ?>
|
||||
<?php foreach ($this->table as $key => $value): ?>
|
||||
<?= $this->partial("index/$this->resourceName/td.phtml", $value) ?>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<?php if ($totFilter <= 0): ?>
|
||||
<td id="norows" class="no-rows" colspan="6">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
Nessun record presente
|
||||
</td>
|
||||
<?php else: ?>
|
||||
<td id="norows" class="no-rows" colspan="6">
|
||||
<i class="fa fa-exclamation-triangle"></i>
|
||||
Nessun risultato trovato in base alla ricerca
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="box-footer clearfix">
|
||||
|
||||
<div class="col-12">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<!--FUNZIONE MULTIPLE-->
|
||||
<div class="col-4 col-xs-12">
|
||||
<div class="btn-group btn-group-sm float-left dropup d-none-xs dropdown-multifunction-down">
|
||||
<button class="btn btn-default btn-flat" type="button">
|
||||
Selezionati
|
||||
</button>
|
||||
<button class="btn btn-default btn-flat dropdown-toggle" data-toggle="dropdown" type="button">
|
||||
<span class="caret"></span>
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown-menu">
|
||||
<a id="delete_select" class="dropdown-item"
|
||||
href="<?= $this->url(array('controller' => 'index', 'action' => 'deleteselect' . $this->resourceName), $this->moduleName, true); ?>">
|
||||
<i class="fa fa-trash fa-fw"></i> Elimina</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-8 col-xs-12">
|
||||
<!--PAGINATOR FOOTER-->
|
||||
<?php if ($this->table instanceof Zend_Paginator): ?>
|
||||
<?= $this->paginationControl($this->table, 'Jumping', 'index/_paginator.phtml', array('action' => $this->action, 'count' => $this->count, 'moduleName'=>$this->moduleName)); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="pagination-counter float-right">
|
||||
<form name="paginationCounter"
|
||||
action="<?= $this->url(array('controller' => 'index', 'action' => 'list' . $this->resourceName, 'page' => $this->page, 'count' => $this->count), $this->moduleName, false); ?>"
|
||||
class="" method="post" role="form">
|
||||
<div class="input-group input-group-sm">
|
||||
<label class="text-right d-none-xs mb-1" for="count">
|
||||
<?php if ($this->totFiltrati != $this->totElementi): ?>
|
||||
<span>Filtrati <?= $this->totFiltrati ?> su <?= $this->totElementi; ?> totali </span>
|
||||
<?php else: ?>
|
||||
<span>Tot. <?= $this->totElementi; ?></span>
|
||||
<?php endif; ?>
|
||||
</label>
|
||||
<input type="text" class="form-control"
|
||||
id="count" aria-describedby="inputGroup-sizing-sm"
|
||||
value="" placeholder="<?= $this->count; ?>" name="count"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if ($this->isActiveModalDetail): ?>
|
||||
<?= $this->render("index/$this->resourceName/_modal.phtml"); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->isActiveFilterModal): ?>
|
||||
<?= $this->render("index/$this->resourceName/_modalFilter.phtml"); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->idDetail > 0): ?>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
edit(<?= $this->idDetail; ?>);
|
||||
});
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<tr data-id="<?= $this->id ?>">
|
||||
<td class="text-center"><input type="checkbox" value="<?= $this->id ?>" name="select-elements[]" id="select-elements"></td>
|
||||
|
||||
<td class="text-center"><?= $this->ExtractData($this->DataInvio,'withtime',true); ?></td>
|
||||
<td><?= htmlspecialchars($this->message); ?></td>
|
||||
|
||||
<td>
|
||||
<div class="text-center">
|
||||
<button id="edit" class="btn btn-sm btn-brand btn-flat" type="button" data-toggle="tooltip" data-container="body" title="Dettaglio">
|
||||
<span class="fa fa-search-plus"></span>
|
||||
</button>
|
||||
<button id="delete" class="btn btn-sm btn-danger btn-flat" type="button" data-toggle="tooltip" title="Elimina">
|
||||
<span class="fa fa-trash"></span>
|
||||
</button>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<tr>
|
||||
<th style="width:60px;" class="text-center">
|
||||
<div class="dropdown">
|
||||
<button class="btn btn-default btn-sm dropdown-toggle dropdown-icon" type="button" id="dropdownMenuButton"
|
||||
data-boundary="window"
|
||||
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="sr-only">Toggle Dropdown</span>
|
||||
</button>
|
||||
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
|
||||
<a id="select_all" class="dropdown-item" href="#"><i class="far fa-check-square fa-fw"></i> Tutti</a>
|
||||
<a id="deselect_all" class="dropdown-item" href="#"><i class="far fa-square fa-fw"></i> Nessuno</a>
|
||||
<a id="invert_all" class="dropdown-item" href="#"><i class="fa fa-check-square fa-fw"></i> Inverti</a>
|
||||
</div>
|
||||
</div>
|
||||
</th>
|
||||
|
||||
<th data-ord="data" style="width:135px;" class="text-center">Data</th>
|
||||
<th data-ord="msg" class="">Messaggio</th>
|
||||
|
||||
<th width="150px"></th>
|
||||
</tr>
|
||||
@@ -0,0 +1,6 @@
|
||||
<a href="<?= $this->url(array('controller' => 'index', 'action' => 'listerrorlog'), 'monitoring', true); ?>"
|
||||
class="dropdown-item">
|
||||
<i class="fas fa-warning danger"></i>
|
||||
<?= $this->tot ?> errori per la sezione <?= $this->section ?>
|
||||
<!--<span class="float-right text-muted text-sm">3 mins</span>-->
|
||||
</a>
|
||||
Reference in New Issue
Block a user