Skip to content

Commit 9ca9374

Browse files
committed
21 Sep 2023
1) Massive accumulated Core updates. 2) Added passwordless login. 3) Added NFC login. 4) Database structure change - Removed course_id, changed course_code to primary key. 5) Database structure change - Attendance table now records "attendance status" and "notes". 6) User level change - "A"dmin, "T"eacher, St"U"dent, "S"uspended. 7) Attendance - Removed "add student not in course" . 8) General code clean up - Merged all "import CSV" into a single script. Merged "attendance" for teacher and admin.
1 parent e2ab87e commit 9ca9374

File tree

195 files changed

+37929
-2747
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+37929
-2747
lines changed

.htaccess

Lines changed: 0 additions & 7 deletions
This file was deleted.

CB-worker.js

Lines changed: 36 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,46 +2,54 @@
22
self.addEventListener("install", evt => {
33
self.skipWaiting();
44
evt.waitUntil(
5-
caches.open("IWasHere")
5+
caches.open("IWASHERE")
66
.then(cache => cache.addAll([
7-
// (A1) BOOTSTRAP
7+
// (A1) ADMIN
8+
"assets/A-classes.js",
9+
"assets/A-course.js",
10+
"assets/A-course-user.js",
11+
"assets/A-import.js",
12+
"assets/A-reports.js",
13+
"assets/A-settings.js",
14+
"assets/A-users.js",
15+
"assets/A-users-nfc.js",
16+
17+
// (A2) BOOTSTRAP
818
"assets/bootstrap.bundle.min.js",
919
"assets/bootstrap.bundle.min.js.map",
1020
"assets/bootstrap.min.css",
1121
"assets/bootstrap.min.css.map",
12-
// (A2) ICONS + IMAGES
13-
"assets/ico-512.png",
14-
"assets/favicon.png",
15-
"assets/login.webp",
16-
"assets/forgot.webp",
22+
1723
// (A3) COMMON INTERFACE
18-
"assets/PAGE-cb.js",
19-
"assets/CB-selector.css",
20-
"assets/CB-selector.js",
21-
"assets/maticon.woff2",
22-
"CB-manifest.json",
23-
// (A4) HTML QR CODE + SCANNER
24+
"assets/CB-autocomplete.js",
25+
"assets/csv.min.js",
2426
"assets/html5-qrcode.min.js",
27+
"assets/icomoon.woff",
28+
"assets/PAGE-cb.js",
29+
"assets/PAGE-cb.css",
2530
"assets/qrcode.min.js",
31+
"CB-manifest.json",
32+
33+
// (A4) ICONS + IMAGES
34+
"assets/favicon.png",
35+
"assets/ico-512.png",
36+
"assets/users.webp",
37+
2638
// (A5) PAGES
27-
"assets/PAGE-account.js",
2839
"assets/PAGE-forgot.js",
2940
"assets/PAGE-login.js",
30-
"assets/A-class.js",
31-
"assets/A-class-attend.js",
32-
"assets/A-class-import.js",
33-
"assets/A-course.js",
34-
"assets/A-course-import.js",
35-
"assets/A-course-user.js",
36-
"assets/A-course-user-import.js",
37-
"assets/A-reports.js",
38-
"assets/A-settings.js",
39-
"assets/A-users.js",
40-
"assets/A-users-import.js",
41-
"assets/T-attend.js",
41+
"assets/PAGE-login-nfc.js",
42+
"assets/PAGE-login-wa.js",
43+
"assets/PAGE-myaccount.js",
44+
"assets/PAGE-nfc.js",
45+
"assets/PAGE-wa.js",
46+
"assets/PAGE-wa-helper.js",
47+
48+
// (A6) TEACHER & STUDENT
49+
"assets/TA-attend.js",
4250
"assets/T-classes.js",
43-
"assets/S-classes.js",
44-
"assets/S-qr.js"
51+
"assets/U-classes.js",
52+
"assets/U-qr.js",
4553
]))
4654
.catch(err => console.error(err))
4755
);

README.md

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
## I WAS HERE
2-
I Was Here is a simple PHP Student Attendance Management System. This is not a "we have a lot of features that you will never use" system, but a basic one to help smaller schools to get started quickly.
2+
I Was Here is an open-source PHP Inventory Management System. Featuring NFC and passwordless login, also allowing students to take attendance by scanning a QR code.
33
<br><br>
44

55
## :white_check_mark: FEATURES
6-
1) Users management.
7-
2) Take attendance manually, or let students scan a QR code.
8-
3) Installble progressive web app.
9-
4) CSV reports.
6+
1) NFC and passwordless login.
7+
2) Installble progressive web app.
8+
3) Take attendance manually, or let students scan a QR code.
109
<br><br>
1110

1211
## :camera: SCREENSHOTS
1312
<p float="left">
14-
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-1a.png">
15-
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-2a.png">
16-
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-3a.png">
17-
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-4a.png">
18-
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-5a.png">
19-
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-6a.png">
13+
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-1.png">
14+
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-2.png">
15+
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-3.png">
16+
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-4.png">
17+
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-5.png">
18+
<img width="250" src="https://github.com/code-boxx/I-Was-Here/blob/main/assets/iwh-6.png">
2019
</p><br>
2120

2221
## :ballot_box_with_check: REQUIREMENTS
@@ -27,12 +26,30 @@ I Was Here is a simple PHP Student Attendance Management System. This is not a "
2726
<br><br>
2827

2928
## :floppy_disk: INSTALLATION
30-
Just access `http://your-site.com/` in your browser and walk through the installer.
29+
1) Just copy/unzip into your `http` folder.
30+
2) Access `http://your-site.com/` in your browser and walk through the installer.
3131
<br><br>
3232

33-
## :bulb: DOCUMENTATION & FRAMEWORKS
34-
1) Built on [Bootstrap](https://getbootstrap.com/), [Material Icons](https://fonts.google.com/icons), [HTML5 QRCode Scanner](https://github.com/mebjashtml5-qrcode), [QRCodeJS](https://davidshimjs.github.io/qrcodejs/), [PHP-JWT](https://github.com/firebase/php-jwt), and [Core Boxx](https://code-boxx.com/core-boxx-php-framework/).
35-
2) Visit https://code-boxx.com/i-was-here-php-attendance-system/ for the full documentation!
33+
## :bulb: DOCUMENTATION
34+
1) [How To Use](https://code-boxx.com/i-was-here-php-attendance-system/#sec-use)
35+
2) [FAQ](https://code-boxx.com/i-was-here-php-attendance-system/#sec-faq)
36+
3) [For The Developers](https://code-boxx.com/i-was-here-php-attendance-system/#sec-dev)
37+
38+
## :electric_plug: FRAMEWORKS
39+
1) PHP Packages
40+
- [Core Boxx](https://code-boxx.com/core-boxx-php-framework/)
41+
- [PHP-JWT](https://github.com/firebase/php-jwt)
42+
- [PHP WebAuthn](https://github.com/lbuchs/WebAuthn/tree/master)
43+
2) HTML JS
44+
- [Bootstrap](https://getbootstrap.com/)
45+
- [IconMoon](https://icomoon.io/)
46+
- [HTML5 QRCode Scanner](https://github.com/mebjas/html5-qrcode)
47+
- [QRCodeJS](https://davidshimjs.github.io/qrcodejs/)
48+
- [csv.js](https://github.com/okfn/csv.js/)
49+
<br><br>
50+
51+
## :star: SUPPORT
52+
Like this project? Just give it a star. That will indirectly help grow my blog a little bit. :wink:
3653
<br><br>
3754

3855
## :newspaper: LICENSE
@@ -54,4 +71,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
5471
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
5572
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
5673
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
57-
SOFTWARE.
74+
SOFTWARE.

assets/0a-dummy-users.csv

Lines changed: 0 additions & 7 deletions
This file was deleted.

assets/0b-dummy-courses.csv

Lines changed: 0 additions & 2 deletions
This file was deleted.

assets/0d-dummy-classes.csv

Lines changed: 0 additions & 5 deletions
This file was deleted.

assets/A-class-attend.js

Lines changed: 0 additions & 85 deletions
This file was deleted.

assets/A-class-import.js

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)