PU Offline Data Capture Package
================================

Online system: https://www.dnsc.gov.zm/pu/forms/dashboard.php

HOW TO USE
----------
1. Open index.html in Chrome or Edge (recommended).
2. Choose the form you need from the dashboard.
3. Fill the sections. Click "Save ..." after each section.
   Data is kept in the browser (localStorage) until you export.
4. When finished, click "Prepare for Sync – Download CSVs".
5. Copy the downloaded CSV files into the folder:

      F:/PU_Offline_Sync

   on the machine that runs the online system.
   The server will detect new files and import them automatically.

IMPORTANT NOTES
---------------
- Form 1 must be done first for any new school (EMIS Code is the key).
- Always use the dropdown lists – do not type free text for codes.
- Keep the "lookups" folder next to the HTML files.
- Photos (Form 3): enter the image filename in the form, put the
  actual image files in the "photos/" folder, then copy both the
  CSV files and the photos folder to F:/PU_Offline_Sync.

FILES
-----
index.html                  – Dashboard (4 clear cards)
form1_institution.html      – Form 1 Register/Update Institution  READY
form2_quarterly.html        – Form 2 Quarterly Report             READY
form3_evidence.html         – Form 3 Evidence & Stories           READY
form4_level.html            – Form 4 Level Report                 READY
lookups/provinces.json
lookups/districts.json
lookups/codes.json
data/                       – optional working folder
photos/                     – put images here for Form 3

CSV NAMING CONVENTION
---------------------
Form1_<EMIS>_<timestamp>_identity.csv
Form1_<EMIS>_<timestamp>_enrolment.csv
...
Form2_<EMIS>_<Period>_<timestamp>_summary.csv
...
Form3_<EMIS>_<timestamp>_photos.csv
...
Form4_<LevelType>_<LevelName>_<Period>_<timestamp>_header.csv
...

All CSVs contain EMIS Code (or Level identifiers) so the server
can match and import cleanly.

CONTACT
-------
For support contact the DNSC PU system administrator.
