diff --git a/assets/js/comments.js b/assets/js/comments.js index 7f802e4..db69fcb 100644 --- a/assets/js/comments.js +++ b/assets/js/comments.js @@ -469,8 +469,8 @@

${data.comment}

- - + ${isAuthorized ? ` + ` : ''}
`; @@ -646,7 +646,10 @@ // START initUI(); - loadComments(); + // Sprawdź autoryzację w tle (nawet wyłączony tryb komentowania), w celu wyświetlenia przycisków + checkAuth(true).then(() => { + loadComments(); + }); // Odświeżanie przy zmianie rozmiaru okna window.addEventListener('resize', updateMarkerPositions); @@ -835,8 +838,8 @@ Element: ${c.dom_selector.substring(0, 30)}...
- ${c.is_resolved == 0 ? `` : ''} - + ${isAuthorized && c.is_resolved == 0 ? `` : ''} + ${isAuthorized ? `` : ''}
`; diff --git a/index.php b/index.php index bc6d6b3..2993feb 100644 --- a/index.php +++ b/index.php @@ -34,6 +34,7 @@ foreach ($structure as &$files) { sort($files); } + unset($files); // Break the reference with the last element } foreach ($structure as $folder => $files): ?> diff --git a/prototype/invoice/app-invoice-list.php b/prototype/invoice/app-invoice-list.php index 1bae226..021ea6c 100644 --- a/prototype/invoice/app-invoice-list.php +++ b/prototype/invoice/app-invoice-list.php @@ -134,8 +134,10 @@ include '../../header-invoice.php'; title="KSeF: Nie wysłano"> - + + + + + + + diff --git a/prototype/invoice/app-products.php b/prototype/invoice/app-products.php new file mode 100644 index 0000000..c34be85 --- /dev/null +++ b/prototype/invoice/app-products.php @@ -0,0 +1,462 @@ + + +
+ +
+
+

+ Sprzedaż / Towary i Usługi +

+

Zarządzaj bazą swoich produktów i usług

+
+
+ +
+ +
+
+
+ +
+
+ + +
+
+ +
+ + + + + + + +
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
TypNazwa i KodJ.m.Cena NettoVATCena BruttoAkcje
+
+
+
+ +
+
+ Konsultacje IT +
Kod: USL-IT-01 +
godz.150,00 zł23%184,50 zł +
+ + +
+
+
+
+
+ +
+
+ Licencja Oprogramowania B +
Kod: LIC-002 +
szt.400,00 zł23%492,00 zł +
+ + +
+
+
+
+
+ +
+
+ Szkolenie wstępne +
Kod: SZK-01 +
usł.1 000,00 złZW1 000,00 zł +
+ + +
+
+
+ + + +
+
+ +
+
+
+
Filtry
+
+
+ +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+ + +
+ +
+ +
+
+ +
+
+ +
+
+
+ +
+ + +
+ +
+
+
+ +
+
+
+ + + + + + + + + + \ No newline at end of file diff --git a/prototype/invoice/app-purchase-calendar.php b/prototype/invoice/app-purchase-calendar.php index 06a5f42..0be6e12 100644 --- a/prototype/invoice/app-purchase-calendar.php +++ b/prototype/invoice/app-purchase-calendar.php @@ -4,6 +4,24 @@ include '../../header-invoice.php'; ?> +
@@ -11,6 +29,18 @@ include '../../header-invoice.php'; Faktury i sprzedaż / Kalendarz płatności +
+ + + +
+
@@ -22,23 +52,6 @@ include '../../header-invoice.php';
-
-
Kalendarz płatności
- -
@@ -72,7 +85,7 @@ include '../../header-invoice.php'; start: new Date(y, m, 5), allDay: true, extendedProps: { status: 'paid', amount: '1230.00 PLN' }, - className: 'bg-label-success' + className: 'fc-event-dark-success' }, { id: 2, @@ -80,7 +93,7 @@ include '../../header-invoice.php'; start: new Date(y, m, 10), allDay: true, extendedProps: { status: 'paid', amount: '50.00 USD' }, - className: 'bg-label-success' + className: 'fc-event-dark-success' }, // UNPAID (Future / Current) @@ -90,7 +103,7 @@ include '../../header-invoice.php'; start: new Date(y, m, 24), // Due date allDay: true, extendedProps: { status: 'unpaid', amount: '553.50 PLN' }, - className: 'bg-label-danger' + className: 'fc-event-dark-danger' }, { id: 4, @@ -98,7 +111,7 @@ include '../../header-invoice.php'; start: new Date(y, m, 28), // Due date allDay: true, extendedProps: { status: 'unpaid', amount: '120.00 PLN' }, - className: 'bg-label-warning' + className: 'fc-event-dark-warning' }, { id: 5, @@ -106,7 +119,7 @@ include '../../header-invoice.php'; start: new Date(y, m + 1, 5), // Next month allDay: true, extendedProps: { status: 'unpaid', amount: '1500.00 PLN' }, - className: 'bg-label-warning' + className: 'fc-event-dark-warning' } ]; @@ -118,6 +131,13 @@ include '../../header-invoice.php'; center: 'title', right: 'dayGridMonth,listMonth' }, + buttonText: { + today: 'Dzisiaj', + month: 'Miesiąc', + week: 'Tydzień', + day: 'Dzień', + list: 'Lista' + }, events: allEvents, locale: 'pl', firstDay: 1, // Start week on Monday @@ -137,10 +157,19 @@ include '../../header-invoice.php'; calendar.render(); // Tabs Filtering - const tabBtns = document.querySelectorAll('[data-bs-toggle="tab"]'); + const tabBtns = document.querySelectorAll('.tab-filter-btn'); tabBtns.forEach(btn => { - btn.addEventListener('shown.bs.tab', function (e) { - const filter = e.target.getAttribute('data-filter'); + btn.addEventListener('click', function (e) { + // Remove active class from all + tabBtns.forEach(b => { + b.classList.remove('btn-label-primary'); + b.classList.add('btn-label-secondary'); + }); + // Add active class to clicked + this.classList.remove('btn-label-secondary'); + this.classList.add('btn-label-primary'); + + const filter = this.getAttribute('data-filter'); console.log("Filtering by:", filter); // Remove all events first diff --git a/prototype/invoice/app-purchase-list.php b/prototype/invoice/app-purchase-list.php index 3b8808d..9a17e73 100644 --- a/prototype/invoice/app-purchase-list.php +++ b/prototype/invoice/app-purchase-list.php @@ -190,8 +190,9 @@ include '../../header-invoice.php'; - -
Dane z faktury
+ +
Dane z + faktury
@@ -354,6 +355,11 @@ include '../../header-invoice.php'; + @@ -367,6 +373,11 @@ include '../../header-invoice.php'; + + + + - + @@ -810,71 +836,71 @@ include '../../header-invoice.php'; }); - - + }, 2000); + }); + } + }); + \ No newline at end of file diff --git a/prototype/invoice/sys-settings-categories.php b/prototype/invoice/sys-settings-categories.php new file mode 100644 index 0000000..03d9b75 --- /dev/null +++ b/prototype/invoice/sys-settings-categories.php @@ -0,0 +1,188 @@ + + +
+ +
+

+ System / Ustawienia / Kategorie kosztów +

+
+ +
+
+ +
+ +
+
+
+ +
+
+
+ + +
+
+
+
Kategorie kosztów
+ +
+ +
+ +
+ +
+
+
+ +
+
# Nr dokumentu Dostawca
+
+ +
+
1 FZ/2026/02/001 @@ -403,6 +414,11 @@ include '../../header-invoice.php';
+
+ +
+
2 FV/TAURON/22/05 @@ -444,6 +460,11 @@ include '../../header-invoice.php';
+
+ +
+
3 102/K/2026 @@ -483,6 +504,11 @@ include '../../header-invoice.php';
+
+ +
+
4 FV/22/09/2026 @@ -523,7 +549,7 @@ include '../../header-invoice.php';
Suma (PLN):Suma (PLN): 6 893,20 zł
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nazwa kategoriiDomyślnaAkcje
+ Materiały biurowe + TAK +
+ + +
+
+ Usługi informatyczne + NIE +
+ + +
+
+ Delegacje i podróże + NIE +
+ + +
+
+ Koszty reprezentacji + NIE +
+ + +
+
+
+
+ +
+
+ +
+
+ + + + + + + + + + \ No newline at end of file diff --git a/prototype/invoice/sys-settings.php b/prototype/invoice/sys-settings.php new file mode 100644 index 0000000..1c12251 --- /dev/null +++ b/prototype/invoice/sys-settings.php @@ -0,0 +1,187 @@ + + +
+ +

+ System / Ustawienia +

+ +
+ +
+
+ +
+
+ + +
+
+
+
+
Dane
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Adres firmy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+
Logo na dokumentach
+
+
+
+ +
+ +
+
+ + +

Dozwolone formaty: JPG, PNG. Maksymalny rozmiar: 800 KB. + Rekomentowany wymiar: 300x150 px

+
+
+
+
+
+
+ +
+
+ + + + + + \ No newline at end of file