Przeglądaj źródła

hover più esporta stampatello

FabioFratini 10 miesięcy temu
rodzic
commit
67571441f8

+ 1 - 1
resources/views/livewire/bank.blade.php

@@ -182,7 +182,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 1 - 1
resources/views/livewire/card.blade.php

@@ -241,7 +241,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 6 - 6
resources/views/livewire/course.blade.php

@@ -229,7 +229,7 @@
                                     @enderror
                                     @enderror
                                 </div>
                                 </div>
                             </div>
                             </div>
-                            
+
                             <div class="col-6 mt-2">
                             <div class="col-6 mt-2">
                                 <div class="form--item">
                                 <div class="form--item">
                                     <label for="inputName" class="form-label">Istruttore</label>
                                     <label for="inputName" class="form-label">Istruttore</label>
@@ -272,9 +272,9 @@
                                 </div>
                                 </div>
                             </div>
                             </div>
 
 
-                            
+
                             @foreach($when as $idW => $w)
                             @foreach($when as $idW => $w)
-                                
+
                                 <div class="col-12">
                                 <div class="col-12">
                                     <div class="day durata--corso d-flex">
                                     <div class="day durata--corso d-flex">
                                         <label for="" class="form-label">Giorno</label>
                                         <label for="" class="form-label">Giorno</label>
@@ -315,7 +315,7 @@
                                         <button class="btn--ui primary add--day position-absolute" wire:click.prevent="addRow()"><i class="fa-solid fa-plus"></i></button>
                                         <button class="btn--ui primary add--day position-absolute" wire:click.prevent="addRow()"><i class="fa-solid fa-plus"></i></button>
                                     </div>
                                     </div>
                                 </div>
                                 </div>
-                                
+
                             @endforeach
                             @endforeach
 
 
                             <!--<div class="col-6">
                             <!--<div class="col-6">
@@ -345,7 +345,7 @@
                             @endif
                             @endif
                         </div>
                         </div>
 
 
-                        
+
 
 
                         <div class="form--item">
                         <div class="form--item">
                             <button type="button" class="btn--ui lightGrey" onclick="annulla()">Annulla</button>
                             <button type="button" class="btn--ui lightGrey" onclick="annulla()">Annulla</button>
@@ -500,7 +500,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 1 - 1
resources/views/livewire/course_duration.blade.php

@@ -149,7 +149,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 1 - 1
resources/views/livewire/course_frequency.blade.php

@@ -136,7 +136,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 1 - 1
resources/views/livewire/course_level.blade.php

@@ -136,7 +136,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 58 - 272
resources/views/livewire/course_list.blade.php

@@ -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">&nbsp;&nbsp;&nbsp;&nbsp;{{$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">&nbsp;&nbsp;&nbsp;&nbsp;{{$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
 
 

+ 18 - 18
resources/views/livewire/course_list_original.blade.php

@@ -22,14 +22,14 @@
                             @foreach($course_years as $c)
                             @foreach($course_years as $c)
                                 @php
                                 @php
                                 $selected = '';
                                 $selected = '';
-                                try 
+                                try
                                 {
                                 {
                                     list($f, $t) = explode("-", $c);
                                     list($f, $t) = explode("-", $c);
                                     if ($f == date("Y"))
                                     if ($f == date("Y"))
                                         $selected = 'selected';
                                         $selected = 'selected';
                                 } catch (Exception $e) {
                                 } catch (Exception $e) {
-                                
-                                }                                
+
+                                }
                                 @endphp
                                 @endphp
                                 <option value="{{$c}}" {{$selected}}>{{$c}}
                                 <option value="{{$c}}" {{$selected}}>{{$c}}
                             @endforeach
                             @endforeach
@@ -184,7 +184,7 @@
     <style>
     <style>
 
 
     .scrollTable {
     .scrollTable {
-            
+
             padding: 15px;
             padding: 15px;
             /*max-width: 800px !important;*/
             /*max-width: 800px !important;*/
             /*overflow-x: auto;
             /*overflow-x: auto;
@@ -227,7 +227,7 @@
             padding-left:20px !important;
             padding-left:20px !important;
         }*/
         }*/
 
 
-        
+
     </style>
     </style>
     <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
     <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
     <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
     <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
@@ -249,7 +249,7 @@
             padding-top:10px;
             padding-top:10px;
             top: -15px;
             top: -15px;
             left: 0px;
             left: 0px;
-            
+
         }
         }
 
 
 
 
@@ -824,7 +824,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                         extend: 'excelHtml5',"action":newexportaction,
                                         extend: 'excelHtml5',"action":newexportaction,
@@ -843,20 +843,20 @@
                                                 z = y + 4;
                                                 z = y + 4;
                                                 var c = output_table.column(z).data().toArray();
                                                 var c = output_table.column(z).data().toArray();
                                                 //console.log(c);
                                                 //console.log(c);
-                                                for (var i = 0; i < c.length; i++) 
+                                                for (var i = 0; i < c.length; i++)
                                                 {
                                                 {
                                                     var j = c[i].split("§");
                                                     var j = c[i].split("§");
-                                                    if (j[0] == '0' || j[0] == 'orange') 
+                                                    if (j[0] == '0' || j[0] == 'orange')
                                                     {
                                                     {
                                                         $('row:nth-child('+(i+3)+') [r^="' + letters[y] + '"]', sheet).attr('s', '10');
                                                         $('row:nth-child('+(i+3)+') [r^="' + letters[y] + '"]', sheet).attr('s', '10');
                                                         //sheet.table.body[i+1][z].fillColor = 'orange';
                                                         //sheet.table.body[i+1][z].fillColor = 'orange';
                                                     }
                                                     }
-                                                    if (j[0] == '1' || j[0] == 'green') 
+                                                    if (j[0] == '1' || j[0] == 'green')
                                                     {
                                                     {
                                                         $('row:nth-child('+(i+3)+') [r^="' + letters[y] + '"]', sheet).attr('s', '40');
                                                         $('row:nth-child('+(i+3)+') [r^="' + letters[y] + '"]', sheet).attr('s', '40');
                                                         //doc.content[1].table.body[i+1][z].fillColor = 'green';
                                                         //doc.content[1].table.body[i+1][z].fillColor = 'green';
                                                     }
                                                     }
-                                                    if (j[0] == 'yellow') 
+                                                    if (j[0] == 'yellow')
                                                     {
                                                     {
                                                         $('row:nth-child('+(i+3)+') [r^="' + letters[y] + '"]', sheet).attr('s', '20');
                                                         $('row:nth-child('+(i+3)+') [r^="' + letters[y] + '"]', sheet).attr('s', '20');
                                                         //doc.content[1].table.body[i+1][z].fillColor = 'blue';
                                                         //doc.content[1].table.body[i+1][z].fillColor = 'blue';
@@ -864,7 +864,7 @@
                                                 }
                                                 }
                                             }
                                             }
                                         },
                                         },
-                                        
+
 
 
                                     },
                                     },
                                     {
                                     {
@@ -879,18 +879,18 @@
                                             for(z=4; z<=16; z++)
                                             for(z=4; z<=16; z++)
                                             {
                                             {
                                                 var c = output_table.column(z).data().toArray();
                                                 var c = output_table.column(z).data().toArray();
-                                                for (var i = 0; i < c.length; i++) 
+                                                for (var i = 0; i < c.length; i++)
                                                 {
                                                 {
                                                     var j = c[i].split("§");
                                                     var j = c[i].split("§");
-                                                    if (j[0] == '0' || j[0] == 'orange') 
+                                                    if (j[0] == '0' || j[0] == 'orange')
                                                     {
                                                     {
                                                         doc.content[1].table.body[i+1][z].fillColor = 'orange';
                                                         doc.content[1].table.body[i+1][z].fillColor = 'orange';
                                                     }
                                                     }
-                                                    if (j[0] == '1' || j[0] == 'green') 
+                                                    if (j[0] == '1' || j[0] == 'green')
                                                     {
                                                     {
                                                         doc.content[1].table.body[i+1][z].fillColor = 'green';
                                                         doc.content[1].table.body[i+1][z].fillColor = 'green';
                                                     }
                                                     }
-                                                    if (j[0] == 'yellow') 
+                                                    if (j[0] == 'yellow')
                                                     {
                                                     {
                                                         doc.content[1].table.body[i+1][z].fillColor = 'blue';
                                                         doc.content[1].table.body[i+1][z].fillColor = 'blue';
                                                     }
                                                     }
@@ -1073,12 +1073,12 @@
             setMaxHeight();
             setMaxHeight();
             $( 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');

+ 1 - 1
resources/views/livewire/course_member.blade.php

@@ -694,7 +694,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                         extend: 'excelHtml5', "action": newexportaction,
                                         extend: 'excelHtml5', "action": newexportaction,

+ 1 - 1
resources/views/livewire/course_subscription.blade.php

@@ -136,7 +136,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 1 - 1
resources/views/livewire/course_type.blade.php

@@ -136,7 +136,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 1 - 1
resources/views/livewire/discipline.blade.php

@@ -136,7 +136,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 1 - 1
resources/views/livewire/member.blade.php

@@ -2435,7 +2435,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                         extend: 'excelHtml5',"action":newexportaction,
                                         extend: 'excelHtml5',"action":newexportaction,

+ 1 - 1
resources/views/livewire/payment_method.blade.php

@@ -217,7 +217,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 1 - 1
resources/views/livewire/receipt.blade.php

@@ -350,7 +350,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',"action":newexportaction,
                                     extend: 'excelHtml5',"action":newexportaction,

+ 13 - 1
resources/views/livewire/records.blade.php

@@ -55,7 +55,7 @@
                 <div class="dropdown">
                 <div class="dropdown">
                   <button class="btn--ui_outline light dropdown-toggle" type="button" id="exportDropdown" data-bs-toggle="dropdown" aria-expanded="false"
                   <button class="btn--ui_outline light dropdown-toggle" type="button" id="exportDropdown" data-bs-toggle="dropdown" aria-expanded="false"
                   style="color:#10172A;">
                   style="color:#10172A;">
-                    Esporta
+                    ESPORTA
                   </button>
                   </button>
                   <ul class="dropdown-menu" aria-labelledby="exportDropdown">
                   <ul class="dropdown-menu" aria-labelledby="exportDropdown">
                     <li><a class="dropdown-item" href="#" wire:click="export()">Excel</a></li>
                     <li><a class="dropdown-item" href="#" wire:click="export()">Excel</a></li>
@@ -315,6 +315,18 @@
         button#exportDropdown.btn--ui_outline.light {
         button#exportDropdown.btn--ui_outline.light {
             font-weight: normal !important;
             font-weight: normal !important;
         }
         }
+        .btn--ui_outline.light.dropdown-toggle:active,
+        .btn--ui_outline.light.dropdown-toggle:focus,
+        .btn--ui_outline.light.dropdown-toggle.show {
+            background-color: transparent !important;
+            color: #10172A !important;
+            box-shadow: none !important;
+        }
+
+        .btn--ui_outline.light.dropdown-toggle:hover {
+            background-color: transparent !important;
+            color: #10172A !important;
+        }
 
 
     </style>
     </style>
     <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
     <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>

+ 1 - 1
resources/views/livewire/records_in.blade.php

@@ -1300,7 +1300,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',"action":newexportaction,
                                     extend: 'excelHtml5',"action":newexportaction,

+ 1 - 1
resources/views/livewire/records_in_out.blade.php

@@ -38,7 +38,7 @@
             <div class="export--button ms-auto">
             <div class="export--button ms-auto">
                 <div class="dropdown">
                 <div class="dropdown">
                     <button class="btn--ui_outline lightGrey reset dropdown-toggle" type="button" id="exportDropdown" data-bs-toggle="dropdown" aria-expanded="false">
                     <button class="btn--ui_outline lightGrey reset dropdown-toggle" type="button" id="exportDropdown" data-bs-toggle="dropdown" aria-expanded="false">
-                        Esporta
+                        ESPORTA
                     </button>
                     </button>
                     <ul class="dropdown-menu" aria-labelledby="exportDropdown">
                     <ul class="dropdown-menu" aria-labelledby="exportDropdown">
                         <li><a class="dropdown-item" href="#" id="exportSelection" wire:click="export()">Selezione</a></li>
                         <li><a class="dropdown-item" href="#" id="exportSelection" wire:click="export()">Selezione</a></li>

+ 1 - 1
resources/views/livewire/records_out.blade.php

@@ -857,7 +857,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',"action":newexportaction,
                                     extend: 'excelHtml5',"action":newexportaction,

+ 1 - 1
resources/views/livewire/supplier.blade.php

@@ -406,7 +406,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',

+ 1 - 1
resources/views/livewire/vat.blade.php

@@ -148,7 +148,7 @@
                         buttons: [
                         buttons: [
                             {
                             {
                                 extend: 'collection',
                                 extend: 'collection',
-                                text: 'Esporta',
+                                text: 'ESPORTA',
                                 buttons: [
                                 buttons: [
                                     {
                                     {
                                     extend: 'excelHtml5',
                                     extend: 'excelHtml5',