Compare commits

..

No commits in common. "main" and "beta-v1" have entirely different histories.

10 changed files with 5 additions and 67 deletions

6
.gitignore vendored
View File

@ -1,7 +1,3 @@
config.php
.vscode
.vscode/*
index.php.temp
index.php
index.html
_install.php
.vscode/*

View File

@ -13,48 +13,7 @@ A simple application to manage attendance lists
1. Add whole timeframes in one click
1. Counting days of remote work
## db.sql
Holidays that occur in Poland are added to the db.sql file. If you want to replace it with your country, edit it as follows: (lines form **77**)
```sql
INSERT INTO
`dniwolne` (`id`, `data`, `nazwaSwieta`, `aktywne`)
VALUES
(
'YYYY-MM-DD',
'Event 1',
1
),
(
'YYYY-MM-DD',
'Event 2',
1
),
...
(
'YYYY-MM-DD',
'Event N',
1
);
```
## SCREENSHOTS
### Login
![Login](https://git.kry008.xyz/kry008/Attendance-list/raw/branch/main/README_IMG/login.png)
### Main page
| Admin | User |
| --- | --- |
| ![Admin](https://git.kry008.xyz/kry008/Attendance-list/raw/branch/main/README_IMG/admin.png) | ![User](https://git.kry008.xyz/kry008/Attendance-list/raw/branch/main/README_IMG/user.png) |
### Reports
![Reports](https://git.kry008.xyz/kry008/Attendance-list/raw/branch/main/README_IMG/reports1.png)
![Reports](https://git.kry008.xyz/kry008/Attendance-list/raw/branch/main/README_IMG/reports2.png)
![Reports](https://git.kry008.xyz/kry008/Attendance-list/raw/branch/main/README_IMG/reports3.png)
## TODO
1. Multi-language support
## Licence
Attendance-list © 2023 by kry008 is licensed under Attribution-NonCommercial-NoDerivatives 4.0 International

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

20
db.sql
View File

@ -78,23 +78,9 @@ INSERT INTO
`dniwolne` (`id`, `data`, `nazwaSwieta`, `aktywne`)
VALUES
(
'2023-11-05',
'Wszystkich Świętych',
1
),
(
'2023-11-11',
'Narodowe Święto Niepodległości',
1
),
(
'2023-12-25',
'pierwszy dzień Bożego Narodzenia',
1
),
(
'2023-12-26',
'drugi dzień Bożego Narodzenia',
1,
'2023-08-15',
'Wniebowzięcie Najświętszej Maryi Panny',
1
);

View File

@ -30,10 +30,7 @@ require_once 'checkLogin.php';
<label for="end">Zakończenie pracy</label>
</td>
<td>
<?php
$h = date('H')+1;
?>
<input type="time" name="end" id="end" value="<?php echo $h.":00" ?>" max="<?php echo $h.":00" ?>">
<input type="time" name="end" id="end" value="<?php echo date('H:00'); ?>" max="<?php echo date('TH:i'); ?>">
</td>
</tr>
<tr>