Initial Commit
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user