How iamvishveshs/online-admission-system works
1. Overall shape
- This is a classic PHP/MySQL monolith for an online admissions workflow.
- There is no separate service layer or frontend framework; the architecture is mostly page-driven PHP scripts plus shared includes and static assets.
2. Two primary user boundaries
- The repo is split into a public/student-facing area at the root and an admin console under admin-panel/.
- The student side handles registration, login, application submission, preferences, fees, receipts, admit cards, and result lookup.
- The admin side handles applicant review, marks entry, roll number generation, settings, and result publication.
3. Core admissions workflow
- The main flow appears to be: user registration → login → application submission → test/preferences submission → fee payment → receipt/admit card generation → admin review → marks entry → result display.
- Files like applicationPAT.php, pat-data-submission.php, testPreferences.php, getPreference.php, admitCard.php, Result.php, PrintReceipt.php, and downloadReceipt.php represent the major stages of that workflow.
4. Database as the central state store
- database/onlineadmissionsystem.sql is the schema/data seed for the system.
- db.php, dba.php, and databaseQueries.php indicate the app talks to MySQL directly via shared connection/query helpers.
- Nearly every business action likely persists to or reads from the same relational database, making it the main integration point of the system.
5. Authentication and user lifecycle
- Student auth is exposed via user-register.php, user-login.php, and logout.php.
- Admin authentication is likely handled through the root login.php and the admin panel session/logout pages.
- The repository suggests role separation, but the implementation is still file-based rather than using a dedicated auth framework.
6. Admin console responsibilities
- The admin-panel/ directory contains the operational backend:
- applicant lists and details
- pending/registered applicant views
- fees details
- marks submission and editing
- roll number generation/deletion
- result page management
- settings/configuration
- This console is a separate UI boundary but still backed by the same database and shared PHP session state.
7. Payment subsystem
- razorpay/ is a vendored Razorpay integration, including SDK code, checkout pages, verification, and examples/tests.
- The payment flow is isolated from the main admission pages and uses its own config.php, pay.php, verify.php, success.php, and error.php.
- There is also a separate razorpay/db.php, which suggests the payment module reads/writes the same admissions database but keeps its own configuration boundary.
8. Document and media storage
- Uploaded or generated admission artifacts are stored in repository-backed folders such as PAT-documents/, with subfolders for certificate and picture.
- Other asset folders like assets/, images/, background/, and admin-panel/img/ support the UI and downloads.
- This indicates a file-based document workflow alongside the database, rather than object storage or a separate document service.
9. Resulting outputs and printable artifacts
- The system produces user-facing artifacts such as receipts, admit cards, and results.
- PrintReceipt.php, downloadReceipt.php, and admitCard.php imply printable/generated pages, probably assembled from database data plus uploaded files.
- Result.php and admin pages like resultpage.php show that published results are a distinct final step in the process.
10. Communication and utility endpoints
- Supporting pages like contact.php, about.php, send-message.php, and check.php provide auxiliary user interactions.
- scripts.php, timer.php, and getPreference.php indicate small AJAX-style or utility endpoints used to populate the UI and support time-sensitive actions.
11. Presentation layer structure
- The UI is built with plain HTML/CSS/JS, jQuery, and Bootstrap-style admin templates.
- Public styling lives in files like style.css, form.css, and pat.css; admin styling is in admin-panel/css/sb-admin-2.css and related assets.
- Shared page fragments such as navbar.php, footer.php, admin-panel/sidebar.php, admin-panel/topbar.php, and head-files.php suggest server-rendered composition rather than a frontend SPA.
12. Important architectural boundary for diagrams
- The key diagram should show student-facing PHP pages, admin-panel PHP pages, and Razorpay payment module all converging on the MySQL database and shared file storage for documents/media.
- The application is fundamentally a single deployable PHP web app with embedded payment SDK and file uploads, not a microservice architecture.
Main entry points: db.php DB Helpers · index.php Admin Home · applicationPAT.php Apply · testPreferences.php Preferences
Components 21
Student/Public
Student-facing admission flow and public pages
- Home · Landing page and entry point for the admissions site
index.php - Auth · Registration, login, and logout for applicants
user-register.php - Apply · Application submission and data capture pages
applicationPAT.php - Preferences · Test preferences and related submission endpoints
testPreferences.php - Receipts · Receipt generation and download for paid applications
PrintReceipt.php - Admit & Result · Admit card and result lookup pages for applicants
admitCard.php - Utilities · Contact, message, checking, scripts, and timing helpers
send-message.php
Admin Console
Operational backend for reviewing and publishing admissions data
- Admin Home · Admin console entry page and shared layout shell
admin-panel/index.php - Applicants · Applicant lists, pending/registered views, and detail pages
admin-panel/pendingApplicants.php - Fees · Applicant fee details and payment review
admin-panel/ApplicantFeesDetails.php - Marks · Marks entry, editing, and submission workflow
admin-panel/addMarks.php - Roll Numbers · Roll number generation, listing, and deletion
admin-panel/generateRollno.php - Results · Result page management and publication controls
admin-panel/resultpage.php - Settings · Admin configuration and system settings
admin-panel/setting.php
Payment Module
Vendored Razorpay checkout and verification flow
Data Layer
Database schema and shared database access helpers
- Schema · Database schema and seed data for the admissions system
database/onlineadmissionsystem.sql - DB Helpers · Shared database connection and query helpers
db.php
Assets & Storage
Static assets and uploaded/generated documents
- Docs · Uploaded certificates, pictures, and generated admission artifacts
PAT-documents - Static Assets · Shared CSS, JS, images, and page fragments for rendered pages
assets
Connections 28
- Home → Auth: start · Applicants move from landing to account access
- Auth → Apply: continue · Authenticated students proceed to submit applications
- Apply → Preferences: submit · Application data feeds the preferences/test submission step
- Preferences → Checkout: pay · Fee payment is triggered after preference submission
- Razorpay → Checkout: launch · Razorpay module opens the checkout flow
- Checkout → Verify: verify · Successful checkout is verified before completion
- Verify → Receipts: confirm · Verified payments enable receipt generation/download
- Receipts → Docs: store · Receipts and related artifacts are produced from stored records
- Apply → DB Helpers: read/write · Application pages persist and load admissions data
- Preferences → DB Helpers: read/write · Preference submission is backed by shared database access
- Admit & Result → DB Helpers: read · Admit cards and results are assembled from database state
- Applicants → DB Helpers: review · Admin review pages query applicant records
- Fees → DB Helpers: audit · Fee administration reads payment and applicant data
- Marks → DB Helpers: edit · Marks entry and update pages persist exam outcomes
- Roll Numbers → DB Helpers: assign · Roll number operations depend on central database state
- Results → DB Helpers: publish · Result publication uses the shared relational backend
- Settings → DB Helpers: configure · Settings are stored in the same database layer
- DB Helpers → Schema: schema · Helpers operate on the admissions MySQL schema
- Static Assets → Home: render · Shared assets support the public UI
- Static Assets → Admin Home: render · Shared assets and templates support the admin UI
- Docs → Admit & Result: inputs · Uploaded files and generated artifacts support output pages
- Docs → Applicants: inspect · Admin review pages rely on stored applicant documents
- Admin Home → Applicants: navigate · Console navigation leads to applicant review
- Admin Home → Fees: navigate · Console navigation leads to fee review
- Admin Home → Marks: navigate · Console navigation leads to marks management
- Admin Home → Roll Numbers: navigate · Console navigation leads to roll number management
- Admin Home → Results: navigate · Console navigation leads to result publication
- Admin Home → Settings: navigate · Console navigation leads to configuration