How sri-sun-ray/stcas_qcchecklist works
This is a PHP/MySQL station-inspection checklist and report application. Users enter station details and record checklist observations, statuses, remarks, and images; the application stores and retrieves that data, then generates and lists reports. It also supports editable checklist templates and user administration. The sampled code confirms direct database access and a few browser-to-endpoint calls; several endpoints and most JavaScript are unsampled, so unverified connections are omitted.
Main entry points: script.js Checklist interface · generateReport.php Report generation · fetch_observations.php Observation retrieval · save_observation.php Observation save
Components 19
Checklist workflow
- Checklist interface
script.js - Alternate interface
script_new.js - Section handlers
section2_0.php - Section 12 handler
section12_0.php - Section 13 handler
section13_0.php - Observation retrieval
fetch_observations.php - Observation save
save_observation.php - Observation update
updateObservations.php - Image upload
upload.php
Reports
- Report generation
generateReport.php - Report listing
viewReports.php - Report retrieval
getReportById.php - Report upload
uploadReport.php
Administration
- Row templates
manage_row_templates.php - Login
login.php - User administration
view_users.php
Persistence
- Station database
- Uploaded files
Other components
- Checklist user
Connections 19
- Checklist user → Checklist interface: enters checklist
- Checklist interface → Report generation: requests report
script.js - Checklist interface → Image upload: uploads images
script.js - Alternate interface → Uploaded files: uploads spreadsheet
script_new.js - Observation retrieval → Station database: reads observations
fetch_observations.php - Observation retrieval → Station database: reads image paths
fetch_observations.php - Observation save → Station database: writes observations
save_observation.php - Observation save → Uploaded files: stores image
save_observation.php - Observation update → Station database: updates observations
- Section 12 handler → Station database: writes observations
section12_0.php - Section 13 handler → Station database: writes observations
section13_0.php - Report generation → Station database: reads checklist data
generateReport.php - Report generation → Uploaded files: checks images
generateReport.php - Report listing → Station database: reads reports
viewReports.php - Report retrieval → Station database: reads report
getReportById.php - Report upload → Station database: stores report metadata
- Row templates → Station database: manages templates
manage_row_templates.php - Login → Station database: checks credentials
- User administration → Station database: manages users