|
@@ -8,38 +8,7 @@
|
|
|
|
|
|
|
|
</header>
|
|
</header>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
- <div class="row" style="margin-top: 10px; margin-bottom:10px;">
|
|
|
|
|
- <div class="col-md-4">
|
|
|
|
|
- <div class="col-md ">
|
|
|
|
|
- <div class="dt-buttons btn-group flex-wrap">
|
|
|
|
|
- <div class="btn-group">
|
|
|
|
|
- <button class="btn btn-secondary buttons-collection" wire:click="export()" style="color:black !important">ESPORTA</button>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="col-md-4">
|
|
|
|
|
- <div class="row">
|
|
|
|
|
- <div class="col-md-4" style="text-align:right">Visualizza</div>
|
|
|
|
|
- <div class="col-md-4">
|
|
|
|
|
- <select name="tablesaw-350_length" aria-controls="tablesaw-350" class="form-select form-select-sm" id="dt-length-0" wire:model="pageLength">
|
|
|
|
|
- <option value="10">10</option>
|
|
|
|
|
- <option value="25">25</option>
|
|
|
|
|
- <option value="50">50</option>
|
|
|
|
|
- <option value="100">100</option>
|
|
|
|
|
- <option value="100000">Tutti</option>
|
|
|
|
|
- </select>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="col-md-3">elementi</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="col-md-4" style="text-align:right">
|
|
|
|
|
- <a href="#" class="showHideFilter btn--ui" ><i class="fa-solid fa-sliders"></i></a><br>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
- <div class="showFilter" style="display:none; margin-top:10px;" wire:ignore.self>
|
|
|
|
|
|
|
+ <div class="showFilter" style="display:none" wire:ignore.self>
|
|
|
<hr size="1">
|
|
<hr size="1">
|
|
|
<div class="row g-3">
|
|
<div class="row g-3">
|
|
|
<div class="col-md-2">
|
|
<div class="col-md-2">
|
|
@@ -74,7 +43,7 @@
|
|
|
<b>Corso</b>
|
|
<b>Corso</b>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-12" >
|
|
<div class="col-12" >
|
|
|
- <select class="form-select filterCourse" multiple="multiple" wire:model="filterCourse">
|
|
|
|
|
|
|
+ <select class="form-select filterCourse" multiple="multiple">
|
|
|
@foreach($courses as $c)
|
|
@foreach($courses as $c)
|
|
|
<option value="{{$c}}">{{$c}}
|
|
<option value="{{$c}}">{{$c}}
|
|
|
@endforeach
|
|
@endforeach
|
|
@@ -88,7 +57,7 @@
|
|
|
<b>Livello</b>
|
|
<b>Livello</b>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-12">
|
|
<div class="col-12">
|
|
|
- <select class="form-select filterLevel" multiple="multiple" wire:model="filterLevel">
|
|
|
|
|
|
|
+ <select class="form-select filterLevel" multiple="multiple">
|
|
|
@foreach($course_levels as $c)
|
|
@foreach($course_levels as $c)
|
|
|
<option value="{{$c->id}}">{{$c->name}}
|
|
<option value="{{$c->id}}">{{$c->name}}
|
|
|
@endforeach
|
|
@endforeach
|
|
@@ -102,7 +71,7 @@
|
|
|
<b>Frequenza</b>
|
|
<b>Frequenza</b>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-12">
|
|
<div class="col-12">
|
|
|
- <select class="form-select filterFrequency" multiple="multiple" wire:model="filterFrequency">
|
|
|
|
|
|
|
+ <select class="form-select filterFrequency" multiple="multiple">
|
|
|
@foreach($course_frequencies as $c)
|
|
@foreach($course_frequencies as $c)
|
|
|
<option value="{{$c->id}}">{{$c->name}}
|
|
<option value="{{$c->id}}">{{$c->name}}
|
|
|
@endforeach
|
|
@endforeach
|
|
@@ -116,7 +85,7 @@
|
|
|
<b>Tipologia</b>
|
|
<b>Tipologia</b>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-12">
|
|
<div class="col-12">
|
|
|
- <select class="form-select filterType" multiple="multiple" wire:model="filterType">
|
|
|
|
|
|
|
+ <select class="form-select filterType" multiple="multiple">
|
|
|
@foreach($course_types as $c)
|
|
@foreach($course_types as $c)
|
|
|
<option value="{{$c->id}}">{{$c->name}}
|
|
<option value="{{$c->id}}">{{$c->name}}
|
|
|
@endforeach
|
|
@endforeach
|
|
@@ -130,7 +99,7 @@
|
|
|
<b>Durata</b>
|
|
<b>Durata</b>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="col-12">
|
|
<div class="col-12">
|
|
|
- <select class="form-select filterDuration" multiple="multiple" wire:model="filterDuration">
|
|
|
|
|
|
|
+ <select class="form-select filterDuration" multiple="multiple">
|
|
|
@foreach($course_durations as $c)
|
|
@foreach($course_durations as $c)
|
|
|
<option value="{{$c->id}}">{{$c->name}}
|
|
<option value="{{$c->id}}">{{$c->name}}
|
|
|
@endforeach
|
|
@endforeach
|
|
@@ -143,7 +112,7 @@
|
|
|
<div class="row g-3" style="margin-top:20px;">
|
|
<div class="row g-3" style="margin-top:20px;">
|
|
|
<div class="col-md-12" style="text-align:right">
|
|
<div class="col-md-12" style="text-align:right">
|
|
|
<button class="btn--ui_outline light" onclick="reset()">CANCELLA</button>
|
|
<button class="btn--ui_outline light" onclick="reset()">CANCELLA</button>
|
|
|
- <button class="btn--ui" wire:click="search()">FILTRA</button>
|
|
|
|
|
|
|
+ <button class="btn--ui" onclick="loadDataTable()">FILTRA</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<hr size="1">
|
|
<hr size="1">
|
|
@@ -152,13 +121,10 @@
|
|
|
<div class="row text-right">
|
|
<div class="row text-right">
|
|
|
<div class="col-md-12" style="text-align:right">
|
|
<div class="col-md-12" style="text-align:right">
|
|
|
<button style="display:none; width:200px;" class="btn--ui btNewPayment" onclick="newPayment()">NUOVA ENTRATA</button>
|
|
<button style="display:none; width:200px;" class="btn--ui btNewPayment" onclick="newPayment()">NUOVA ENTRATA</button>
|
|
|
- <button class="btn--ui primary btStopPayment" style="display:none; width:200px; color:white" onclick="suspendPayment()">Sospendi</button>
|
|
|
|
|
- <button class="btn--ui primary btResumePayment" style="display:none; width:200px; color:white" onclick="resumePayment()">Riattiva</button>
|
|
|
|
|
-
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <section id="resume-table" class="scrollTable" style="margin-top:10px;">
|
|
|
|
|
|
|
+ <section id="resume-table" class="scrollTable">
|
|
|
<div class="compare--chart_wrapper d-none"></div>
|
|
<div class="compare--chart_wrapper d-none"></div>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -166,69 +132,23 @@
|
|
|
<thead>
|
|
<thead>
|
|
|
<tr>
|
|
<tr>
|
|
|
<th scope="col" class="sticky-col-header first-zero"></th>
|
|
<th scope="col" class="sticky-col-header first-zero"></th>
|
|
|
- <th scope="col" class="sticky-col-header first-col" >Corso</th>
|
|
|
|
|
- <th scope="col" class="sticky-col-header second-col"><a wire:click="setSort(2)" style="cursor:pointer">Cognome</a></th>
|
|
|
|
|
- <th scope="col" class="sticky-col-header third-col"><a wire:click="setSort(3)" style="cursor:pointer">Nome</a></th>
|
|
|
|
|
- <th scope="col"><a wire:click="setSort(4)" style="cursor:pointer">Iscrizione</a></th>
|
|
|
|
|
- @foreach($months as $idx => $m)
|
|
|
|
|
- <th scope="col"><a wire:click="setSort({{$idx + 5}})" style="cursor:pointer"> {{$m}}</a></th>
|
|
|
|
|
|
|
+ <th scope="col" class="sticky-col-header first-col" style="background-color:#f6f8fa !important">Corso</th>
|
|
|
|
|
+ <th scope="col" class="sticky-col-header second-col">Cognome</th>
|
|
|
|
|
+ <th scope="col" class="sticky-col-header third-col">Nome</th>
|
|
|
|
|
+ <th scope="col">Iscrizione</th>
|
|
|
|
|
+ @foreach($months as $m)
|
|
|
|
|
+ <th scope="col"> {{$m}}</th>
|
|
|
@endforeach
|
|
@endforeach
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody id="checkall-target">
|
|
<tbody id="checkall-target">
|
|
|
|
|
|
|
|
- @foreach($records as $idx => $record)
|
|
|
|
|
- <tr>
|
|
|
|
|
- <td class="sticky-col-header first-zero">{{$record["column_18"]}}</td>
|
|
|
|
|
- <td class="sticky-col-header first-col">{{$record["column_19"]}}</td>
|
|
|
|
|
- <td class="sticky-col-header second-col">{{$record["column_0"]}}</td>
|
|
|
|
|
- <td class="sticky-col-header third-col">{{$record["column_1"]}}</td>
|
|
|
|
|
- <td>
|
|
|
|
|
- @php
|
|
|
|
|
- list($color, $value) = explode("§", $record["column_2"]);
|
|
|
|
|
- @endphp
|
|
|
|
|
- @if($color == 0)
|
|
|
|
|
- <a style="width:100%;float:right; text-align:right; display:block;{{$color == 1 ? '' : 'cursor:pointer;'}}" class="{{$color == 1 ? 'green' : 'orange'}} sub_{{$record["column_16"]}}" onclick="setSubscription('{{$record["column_15"]}}', '{{$record["column_17"]}}', '{{$record["column_16"]}}')" style="cursor: pointer;"><small>{{$value}}</small></a>
|
|
|
|
|
- @else
|
|
|
|
|
- <a style="width:100%;float:right; text-align:right; display:block;" class="{{$color == 1 ? 'green' : 'orange'}}"><small>{{$value}}</small></a>
|
|
|
|
|
- @endif
|
|
|
|
|
- </td>
|
|
|
|
|
- @for($ii=3; $ii<=14; $ii++)
|
|
|
|
|
- @php
|
|
|
|
|
- list($color, $value, $diff) = explode("§", $record["column_" . $ii]);
|
|
|
|
|
- @endphp
|
|
|
|
|
- <td>
|
|
|
|
|
-
|
|
|
|
|
- @if ($color == 'orange')
|
|
|
|
|
- <a style="{{$diff == 'X' ? 'background-color:#d9ad86' : ''}};width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="{{$color}} lnk_{{$record["column_16"]}}" id="lnk_{{$record["column_15"]}}_{{$ii - 2}}_{{$record["column_17"]}}" onclick="setPayMonth('{{$record["column_15"]}}', {{$ii - 2}}, '{{$record["column_17"]}}', '{{$record["column_16"]}}')" style="cursor: pointer;"><small>{{$value}}</small></a>
|
|
|
|
|
- @else
|
|
|
|
|
- @if ($color != 'wgrey')
|
|
|
|
|
- <a style="width:100%;float:right; text-align:right; display:block;" class="{{$color}}"><small>{{$value}}</small></a>
|
|
|
|
|
- @endif
|
|
|
|
|
- @endif
|
|
|
|
|
-
|
|
|
|
|
- </td>
|
|
|
|
|
- @endfor
|
|
|
|
|
-
|
|
|
|
|
- </tr>
|
|
|
|
|
- @endforeach
|
|
|
|
|
|
|
|
|
|
</tbody>
|
|
</tbody>
|
|
|
<tfoot id="checkall-target">
|
|
<tfoot id="checkall-target">
|
|
|
<tr>
|
|
<tr>
|
|
|
<th class="sticky-col-header first-zero"></th>
|
|
<th class="sticky-col-header first-zero"></th>
|
|
|
<th class="sticky-col-header first-col"></th>
|
|
<th class="sticky-col-header first-col"></th>
|
|
|
- <th class="sticky-col-header second-col"></th>
|
|
|
|
|
- <th class="sticky-col-header third-col"></th>
|
|
|
|
|
- @foreach($totS as $yyy)
|
|
|
|
|
- @if (isset($yyy))
|
|
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;">{!!$yyy!!}</th>
|
|
|
|
|
- @else
|
|
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;">aa</th>
|
|
|
|
|
- @endif
|
|
|
|
|
- @endforeach
|
|
|
|
|
-
|
|
|
|
|
- <!--<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
@@ -242,41 +162,12 @@
|
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
<th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
- <th style="padding-left:5px !important;padding-right:5px !important;"></th>-->
|
|
|
|
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
|
|
+ <th style="padding-left:5px !important;padding-right:5px !important;"></th>
|
|
|
</tr>
|
|
</tr>
|
|
|
</tfoot>
|
|
</tfoot>
|
|
|
</table>
|
|
</table>
|
|
|
|
|
|
|
|
- <div class="row">
|
|
|
|
|
- <div class="col-md-6">
|
|
|
|
|
- Vista da {{(($currentPage - 1) * $pageLength) + 1}} a {{$currentPage * $pageLength}} di {{$totalRecords}} elementi
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="col-md-6" style="text-align:right">
|
|
|
|
|
- <ul class="pagination" style="margin:0px !important;float:right">
|
|
|
|
|
- @if($pages < 10)
|
|
|
|
|
- @for($p=1; $p<=$pages;$p++)
|
|
|
|
|
- <li class="page-item {{$p == $currentPage ? 'active' : ''}}"><a class="page-link" wire:click="setPage({{$p}})" href="#">{{$p}}</a></li>
|
|
|
|
|
- @endfor
|
|
|
|
|
- @else
|
|
|
|
|
- <li class="page-item {{1 == $currentPage ? 'active' : ''}}"><a class="page-link" wire:click="setPage(1)" href="#">1</a></li>
|
|
|
|
|
- @if($currentPage > 4)
|
|
|
|
|
- <li class="page-item "><a class="page-link" href="#">...</a></li>
|
|
|
|
|
- @endif
|
|
|
|
|
- @for($p=2; $p<=$pages - 1;$p++)
|
|
|
|
|
- @if($p > $currentPage - 3 && $p < $currentPage + 3)
|
|
|
|
|
- <li class="page-item {{$p == $currentPage ? 'active' : ''}}"><a class="page-link" wire:click="setPage({{$p}})" href="#">{{$p}}</a></li>
|
|
|
|
|
- @endif
|
|
|
|
|
- @endfor
|
|
|
|
|
- @if($currentPage < ($pages - 3))
|
|
|
|
|
- <li class="page-item "><a class="page-link" href="#">...</a></li>
|
|
|
|
|
- @endif
|
|
|
|
|
- <li class="page-item {{$pages == $currentPage ? 'active' : ''}}"><a class="page-link" wire:click="setPage({{$pages}})" href="#">{{$pages}}</a></li>
|
|
|
|
|
- @endif
|
|
|
|
|
- </ul>
|
|
|
|
|
-
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -292,20 +183,14 @@
|
|
|
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
|
|
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
|
|
|
<style>
|
|
<style>
|
|
|
|
|
|
|
|
- @media (min-width: 992px) {
|
|
|
|
|
- .sidebar--ui ~ div.col {
|
|
|
|
|
- max-height: 100vh;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
.scrollTable {
|
|
.scrollTable {
|
|
|
|
|
|
|
|
padding: 15px;
|
|
padding: 15px;
|
|
|
- max-width: 100% !important;
|
|
|
|
|
- overflow-x: auto;
|
|
|
|
|
|
|
+ /*max-width: 800px !important;*/
|
|
|
|
|
+ /*overflow-x: auto;
|
|
|
overflow-y: auto;
|
|
overflow-y: auto;
|
|
|
- white-space: nowrap;
|
|
|
|
|
- border: 1px solid #ddd;
|
|
|
|
|
|
|
+ white-space: nowrap;*/
|
|
|
|
|
+ /*border: 1px solid #ddd;*/
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
::-webkit-scrollbar-thumb {
|
|
@@ -378,7 +263,7 @@
|
|
|
/* Important */
|
|
/* Important */
|
|
|
position: sticky;
|
|
position: sticky;
|
|
|
z-index: 100;
|
|
z-index: 100;
|
|
|
- top: -17px;
|
|
|
|
|
|
|
+ top: 35px;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
table thead {
|
|
table thead {
|
|
@@ -494,44 +379,44 @@
|
|
|
$('.filterYear').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
$('.filterYear').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
$('.filterYear').val('{{date("Y")-1}}-{{date("Y")}}').trigger("change");
|
|
$('.filterYear').val('{{date("Y")-1}}-{{date("Y")}}').trigger("change");
|
|
|
$('.filterCourse').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
$('.filterCourse').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
- $('.filterCourse').on('change', function (e) {
|
|
|
|
|
|
|
+ /*$('.filterCourse').on('change', function (e) {
|
|
|
var data = $('.filterCourse').select2("val");
|
|
var data = $('.filterCourse').select2("val");
|
|
|
if (data == null) data = [];
|
|
if (data == null) data = [];
|
|
|
@this.set('filterCourse', data);
|
|
@this.set('filterCourse', data);
|
|
|
//@this.search();
|
|
//@this.search();
|
|
|
- });
|
|
|
|
|
|
|
+ });*/
|
|
|
|
|
|
|
|
$('.filterLevel').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
$('.filterLevel').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
- $('.filterLevel').on('change', function (e) {
|
|
|
|
|
|
|
+ /*$('.filterLevel').on('change', function (e) {
|
|
|
var data = $('.filterLevel').select2("val");
|
|
var data = $('.filterLevel').select2("val");
|
|
|
if (data == null) data = [];
|
|
if (data == null) data = [];
|
|
|
- @this.set('filterLevel', data);
|
|
|
|
|
|
|
+ //@this.set('filterLevel', data);
|
|
|
//@this.search();
|
|
//@this.search();
|
|
|
- });
|
|
|
|
|
|
|
+ });*/
|
|
|
|
|
|
|
|
$('.filterFrequency').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
$('.filterFrequency').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
- $('.filterFrequency').on('change', function (e) {
|
|
|
|
|
|
|
+ /*$('.filterFrequency').on('change', function (e) {
|
|
|
var data = $('.filterFrequency').select2("val");
|
|
var data = $('.filterFrequency').select2("val");
|
|
|
if (data == null) data = [];
|
|
if (data == null) data = [];
|
|
|
@this.set('filterFrequency', data);
|
|
@this.set('filterFrequency', data);
|
|
|
//@this.search();
|
|
//@this.search();
|
|
|
- });
|
|
|
|
|
|
|
+ });*/
|
|
|
|
|
|
|
|
$('.filterType').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
$('.filterType').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
- $('.filterType').on('change', function (e) {
|
|
|
|
|
|
|
+ /*$('.filterType').on('change', function (e) {
|
|
|
var data = $('.filterType').select2("val");
|
|
var data = $('.filterType').select2("val");
|
|
|
if (data == null) data = [];
|
|
if (data == null) data = [];
|
|
|
@this.set('filterType', data);
|
|
@this.set('filterType', data);
|
|
|
//@this.search();
|
|
//@this.search();
|
|
|
- });
|
|
|
|
|
|
|
+ });*/
|
|
|
|
|
|
|
|
$('.filterDuration').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
$('.filterDuration').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
- $('.filterDuration').on('change', function (e) {
|
|
|
|
|
|
|
+ /*$('.filterDuration').on('change', function (e) {
|
|
|
var data = $('.filterDuration').select2("val");
|
|
var data = $('.filterDuration').select2("val");
|
|
|
if (data == null) data = [];
|
|
if (data == null) data = [];
|
|
|
// @this.set('filterDuration', data);
|
|
// @this.set('filterDuration', data);
|
|
|
//@this.search();
|
|
//@this.search();
|
|
|
- });
|
|
|
|
|
|
|
+ });*/
|
|
|
|
|
|
|
|
Livewire.on('load-data-table', () => {
|
|
Livewire.on('load-data-table', () => {
|
|
|
$('.filterYear').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
$('.filterYear').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
@@ -541,10 +426,6 @@
|
|
|
$('.filterType').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
$('.filterType').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
$('.filterDuration').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
$('.filterDuration').select2({"language": {"noResults": function(){return "Nessun risultato";}}});
|
|
|
loadDataTable();
|
|
loadDataTable();
|
|
|
- setTimeout(() => {
|
|
|
|
|
- setMaxWidth();
|
|
|
|
|
- setMaxHeight();
|
|
|
|
|
- }, 1);
|
|
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
Livewire.on('destroy-data-table', () => {
|
|
Livewire.on('destroy-data-table', () => {
|
|
@@ -629,7 +510,6 @@
|
|
|
|
|
|
|
|
function loadDataTable(){
|
|
function loadDataTable(){
|
|
|
|
|
|
|
|
- /*
|
|
|
|
|
if ( $.fn.DataTable.isDataTable('#tablesaw-350') ) {
|
|
if ( $.fn.DataTable.isDataTable('#tablesaw-350') ) {
|
|
|
$('#tablesaw-350').DataTable().destroy();
|
|
$('#tablesaw-350').DataTable().destroy();
|
|
|
}
|
|
}
|
|
@@ -651,8 +531,6 @@
|
|
|
|
|
|
|
|
var filterType = $('.filterType').val();
|
|
var filterType = $('.filterType').val();
|
|
|
localStorage.setItem("filterTypeCourseList", filterType);
|
|
localStorage.setItem("filterTypeCourseList", filterType);
|
|
|
- */
|
|
|
|
|
- /*
|
|
|
|
|
|
|
|
|
|
var output_table = $('#tablesaw-350').DataTable({
|
|
var output_table = $('#tablesaw-350').DataTable({
|
|
|
//scrollX: true,
|
|
//scrollX: true,
|
|
@@ -715,10 +593,6 @@
|
|
|
{
|
|
{
|
|
|
var ret = '<a style="width:100%;float:right; text-align:right; display:block; ' + (x[0] == 1 ? '' : 'cursor:pointer;') + '" class="' + (x[0] == 1 ? 'green' : 'orange') + ' sub_' + row["column_16"] + '" onclick="setSubscription(' + row["column_15"] + ', ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
var ret = '<a style="width:100%;float:right; text-align:right; display:block; ' + (x[0] == 1 ? '' : 'cursor:pointer;') + '" class="' + (x[0] == 1 ? 'green' : 'orange') + ' sub_' + row["column_16"] + '" onclick="setSubscription(' + row["column_15"] + ', ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block;" class="' + (x[0] == 1 ? 'green' : 'orange') + '"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block;" class="' + (x[0] == 1 ? 'green' : 'orange') + '"><small>' + x[1] + '</small></a>';
|
|
@@ -736,10 +610,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_1_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 1, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_1_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 1, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_1_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 1, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -758,10 +628,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_2_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 2, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_2_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 2, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_2_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ',2, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -780,10 +646,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_3_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 3, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_3_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 3, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_3_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 3, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -802,10 +664,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_4_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 4, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_4_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 4, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_4_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 4, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -824,10 +682,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_5_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 5, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_5_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 5, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_5_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 5, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -846,10 +700,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_6_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 6, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_6_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 6, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_6_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 6, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -868,10 +718,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_7_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 7, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_7_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 7, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_7_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 7, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -890,10 +736,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_8_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 8, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_8_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 8, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_8_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 8, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -912,10 +754,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_9_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 9, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_9_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 9, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_9_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 9, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -934,10 +772,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_10_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 10, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_10_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 10, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_10_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 10, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -956,10 +790,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_11_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 11, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_11_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 11, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_11_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 11, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -978,10 +808,6 @@
|
|
|
{
|
|
{
|
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_12_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 12, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_12_' + row["column_17"] + '" onclick="setPayMonth(' + row["column_15"] + ', 12, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
}
|
|
}
|
|
|
- else if (x[0] == 'yellow')
|
|
|
|
|
- {
|
|
|
|
|
- ret = '<a style="width:100%;float:right; text-align:right; display:block; cursor:pointer;" class="' + x[0] + ' lnk_' + row["column_16"] + '" id="lnk_' + row["column_15"] + '_9_' + row["column_17"] + '" onclick="resumePayMonth(' + row["column_15"] + ', 12, ' + row["column_17"] + ', ' + row["column_16"] + ')" style="cursor: pointer;"><small>' + x[1] + '</small></a>';
|
|
|
|
|
- }
|
|
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
if (x[0] != 'wgrey')
|
|
if (x[0] != 'wgrey')
|
|
@@ -998,7 +824,7 @@
|
|
|
buttons: [
|
|
buttons: [
|
|
|
{
|
|
{
|
|
|
extend: 'collection',
|
|
extend: 'collection',
|
|
|
- text: 'Esporta',
|
|
|
|
|
|
|
+ text: 'ESPORTA',
|
|
|
buttons: [
|
|
buttons: [
|
|
|
{
|
|
{
|
|
|
extend: 'excelHtml5',"action":newexportaction,
|
|
extend: 'excelHtml5',"action":newexportaction,
|
|
@@ -1071,7 +897,16 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ }/*,
|
|
|
|
|
+ {
|
|
|
|
|
+ extend: 'print',"action":newexportaction,
|
|
|
|
|
+ text: 'Stampa',
|
|
|
|
|
+ title: 'Pagamento corsi',
|
|
|
|
|
+ exportOptions: {
|
|
|
|
|
+ columns: ":not(':last')"
|
|
|
|
|
+ },
|
|
|
|
|
+ footer:false
|
|
|
|
|
+ }*/
|
|
|
],
|
|
],
|
|
|
dropup: true
|
|
dropup: true
|
|
|
}
|
|
}
|
|
@@ -1120,15 +955,19 @@
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ }/*,
|
|
|
|
|
+ fixedColumns: {
|
|
|
|
|
+ start: 1,
|
|
|
|
|
+ end: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ scrollX: true*/
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
$('#tablesaw-350 thead tr th').addClass('col');
|
|
$('#tablesaw-350 thead tr th').addClass('col');
|
|
|
$('#tablesaw-350 thead tr th').css("background-color", "#f6f8fa");
|
|
$('#tablesaw-350 thead tr th').css("background-color", "#f6f8fa");
|
|
|
$('#tablesaw-350').on('draw.dt', function() {
|
|
$('#tablesaw-350').on('draw.dt', function() {
|
|
|
$('[data-bs-toggle="popover"]').popover()
|
|
$('[data-bs-toggle="popover"]').popover()
|
|
|
});
|
|
});
|
|
|
- */
|
|
|
|
|
|
|
+
|
|
|
jQuery.fn.dataTable.Api.register( 'sum()', function ( ) {
|
|
jQuery.fn.dataTable.Api.register( 'sum()', function ( ) {
|
|
|
return this.flatten().reduce( function ( a, b ) {
|
|
return this.flatten().reduce( function ( a, b ) {
|
|
|
if ( typeof a === 'string') {
|
|
if ( typeof a === 'string') {
|
|
@@ -1161,11 +1000,8 @@
|
|
|
var selectedCourseId = 0;
|
|
var selectedCourseId = 0;
|
|
|
var selectedMemberId = 0;
|
|
var selectedMemberId = 0;
|
|
|
var selectedMemberCourseId = 0;
|
|
var selectedMemberCourseId = 0;
|
|
|
- var selectedMonth = 0;
|
|
|
|
|
-
|
|
|
|
|
function setPayMonth(course_id, month, member_id, id)
|
|
function setPayMonth(course_id, month, member_id, id)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
if (selectedMemberId > 0 && selectedMemberId != member_id)
|
|
if (selectedMemberId > 0 && selectedMemberId != member_id)
|
|
|
{
|
|
{
|
|
|
months = [];
|
|
months = [];
|
|
@@ -1179,7 +1015,7 @@
|
|
|
selectedCourseId = course_id;
|
|
selectedCourseId = course_id;
|
|
|
selectedMemberId = member_id;
|
|
selectedMemberId = member_id;
|
|
|
selectedMemberCourseId = id;
|
|
selectedMemberCourseId = id;
|
|
|
- selectedMonth = month;
|
|
|
|
|
|
|
+
|
|
|
if(!months.includes(month))
|
|
if(!months.includes(month))
|
|
|
{
|
|
{
|
|
|
months.push(month);
|
|
months.push(month);
|
|
@@ -1193,52 +1029,10 @@
|
|
|
if (months.length > 0)
|
|
if (months.length > 0)
|
|
|
{
|
|
{
|
|
|
$(".btNewPayment").show();
|
|
$(".btNewPayment").show();
|
|
|
- $(".btStopPayment").show();
|
|
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
$(".btNewPayment").hide();
|
|
$(".btNewPayment").hide();
|
|
|
- $(".btStopPayment").hide();
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function resumePayMonth(course_id, month, member_id, id)
|
|
|
|
|
- {
|
|
|
|
|
-
|
|
|
|
|
- if (selectedMemberId > 0 && selectedMemberId != member_id)
|
|
|
|
|
- {
|
|
|
|
|
- months = [];
|
|
|
|
|
- subscription = false;
|
|
|
|
|
- }
|
|
|
|
|
- if (selectedMemberCourseId != id)
|
|
|
|
|
- {
|
|
|
|
|
- $(".sub_" + selectedMemberCourseId).removeClass("orange").addClass("blue").addClass("selected");
|
|
|
|
|
- $(".lnk_" + selectedMemberCourseId).removeClass("orange").addClass("blue").addClass("selected");
|
|
|
|
|
- }
|
|
|
|
|
- selectedCourseId = course_id;
|
|
|
|
|
- selectedMemberId = member_id;
|
|
|
|
|
- selectedMemberCourseId = id;
|
|
|
|
|
- selectedMonth = month;
|
|
|
|
|
- console.log(month);
|
|
|
|
|
- if(!months.includes(month))
|
|
|
|
|
- {
|
|
|
|
|
- months.push(month);
|
|
|
|
|
- $("#lnk_" + course_id + "_" + month + "_" + member_id).removeClass("blue").removeClass("selected").addClass("orange").addClass("selected");
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- months.splice(months.indexOf(months), 1);
|
|
|
|
|
- $("#lnk_" + course_id + "_" + month + "_" + member_id).removeClass("orange").addClass("blue").addClass("selected");
|
|
|
|
|
- }
|
|
|
|
|
- if (months.length > 0)
|
|
|
|
|
- {
|
|
|
|
|
- $(".btResumePayment").show();
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- $(".btResumePayment").hide();
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1273,16 +1067,6 @@
|
|
|
@this.newPayment(selectedCourseId, months.toString(), selectedMemberId, selectedMemberCourseId, subscription);
|
|
@this.newPayment(selectedCourseId, months.toString(), selectedMemberId, selectedMemberCourseId, subscription);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- function suspendPayment()
|
|
|
|
|
- {
|
|
|
|
|
- @this.suspendPayment(selectedCourseId, selectedMonth, selectedMemberId, selectedMemberCourseId, subscription);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- function resumePayment()
|
|
|
|
|
- {
|
|
|
|
|
- @this.resumePayment(selectedCourseId, selectedMonth, selectedMemberId, selectedMemberCourseId, subscription);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
$( document ).ready( function(){
|
|
$( document ).ready( function(){
|
|
|
|
|
|
|
|
setMaxWidth();
|
|
setMaxWidth();
|
|
@@ -1290,19 +1074,21 @@
|
|
|
$( window ).bind( "resize", setMaxWidth );
|
|
$( window ).bind( "resize", setMaxWidth );
|
|
|
$( window ).bind( "resize", setMaxHeight );
|
|
$( window ).bind( "resize", setMaxHeight );
|
|
|
|
|
|
|
|
- });
|
|
|
|
|
|
|
|
|
|
- function setMaxWidth() {
|
|
|
|
|
|
|
+ function setMaxWidth() {
|
|
|
$("#resume-table").width( Math.round( $(window ).width() - size ) ) ;
|
|
$("#resume-table").width( Math.round( $(window ).width() - size ) ) ;
|
|
|
- //$(".justify-content-between").css({"width": Math.round( $(window ).width() - size) + "px;"}); //.width( Math.round( $(window ).width() - size ) ) ;
|
|
|
|
|
|
|
+ $(".justify-content-between").css({"width": Math.round( $(window ).width() - size) + "px;"}); //.width( Math.round( $(window ).width() - size ) ) ;
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
function setMaxHeight() {
|
|
function setMaxHeight() {
|
|
|
console.log('height:' + $(window ).height() + 'px !important');
|
|
console.log('height:' + $(window ).height() + 'px !important');
|
|
|
- //$("div.row.h-100").attr('style', 'height:' + ($(window ).height() + 50) + 'px !important');
|
|
|
|
|
- $("#resume-table").height( Math.round( $(window ).height() - 220 ) ) ;
|
|
|
|
|
|
|
+ $("div.row.h-100").attr('style', 'height:' + ($(window ).height() + 50) + 'px !important');
|
|
|
|
|
+ $("#resume-table").height( Math.round( $(window ).height() - 150 ) ) ;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
</script>
|
|
</script>
|
|
|
@endpush
|
|
@endpush
|
|
|
|
|
|