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