Compare commits

...

5 Commits

Author SHA1 Message Date
kry008 0dc11bcae9 Improvement of the script end of work 2023-08-22 14:48:32 +02:00
kry008 fece680b00 SCREENSHOTS part 1 2023-08-22 11:07:16 +02:00
kry008 8fd5efde21 README_IMGs 2023-08-22 10:49:36 +02:00
kry008 5819d6220a .gitignore new 2023-08-22 10:38:49 +02:00
kry008 f1e5fa728c Holidays 2023 in PL 2023-08-21 10:50:54 +02:00
10 changed files with 67 additions and 5 deletions

4
.gitignore vendored
View File

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

View File

@ -13,7 +13,48 @@ A simple application to manage attendance lists
1. Add whole timeframes in one click 1. Add whole timeframes in one click
1. Counting days of remote work 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 ## TODO
1. Multi-language support
## Licence ## Licence
Attendance-list © 2023 by kry008 is licensed under Attribution-NonCommercial-NoDerivatives 4.0 International Attendance-list © 2023 by kry008 is licensed under Attribution-NonCommercial-NoDerivatives 4.0 International

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
README_IMG/user.png 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

20
db.sql
View File

@ -78,9 +78,23 @@ INSERT INTO
`dniwolne` (`id`, `data`, `nazwaSwieta`, `aktywne`) `dniwolne` (`id`, `data`, `nazwaSwieta`, `aktywne`)
VALUES VALUES
( (
1, '2023-11-05',
'2023-08-15', 'Wszystkich Świętych',
'Wniebowzięcie Najświętszej Maryi Panny', 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 1
); );

View File

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