How vishwanatha01/sam-associates works
SAM & Associates is a PHP website for an accounting, tax and compliance firm, with public service information, consultation requests, and client/admin portal areas. The principal workflow is a visitor exploring services, submitting a consultation request, then staff reviewing appointments and enquiries; registered clients can also sign in to manage profile details and view portal information. Shared PHP configuration supplies sessions, database access, CSRF checks, escaping and URL helpers. The excerpts show appointment and dashboard database operations, but do not establish every public-page form behavior or all notification/document lifecycle details.
Main entry points: dashboard.php Client Workspace · partials_header.php Shared Page Shell · appointment.php Consultation Booking · login.php Sign In
Components 17
Public Website
- Firm Homepage
index.php - Firm Information
about.php - Service Catalogue
services.php - Consultation Booking
appointment.php - Contact Page
contact.php
Accounts and Access
- Client Registration
auth/register.php - Sign In
auth/login.php - Sign Out
auth/logout.php
Client and Staff Portal
- Client Workspace
client/dashboard.php - Admin Console
admin/dashboard.php - Portal Records
client/dashboard.php
Shared Platform
- Shared Page Shell
partials_header.php - Shared Footer
partials_footer.php - PHP Configuration
config/config.php - Database Setup
setup.php - MySQL Data
database.sql
Other components
- Visitor
Connections 45
- Visitor → Firm Homepage: browses
index.php - Visitor → Service Catalogue: explores
services.php - Service Catalogue → Consultation Booking: links to booking
services.php - Visitor → Consultation Booking: submits request
appointment.php - Consultation Booking → MySQL Data: inserts appointment
appointment.php - Visitor → Client Registration: creates account
auth/register.php - Client Registration → MySQL Data: inserts user
auth/register.php - Visitor → Sign In: signs in
auth/login.php - Sign In → MySQL Data: checks credentials
auth/login.php - Sign In → Admin Console: routes admin
auth/login.php - Sign In → Client Workspace: routes client
auth/login.php - Client Workspace → MySQL Data: reads and updates
client/dashboard.php - Client Workspace → Portal Records: shows portal records
client/dashboard.php - Client Workspace → MySQL Data: saves support enquiry
client/dashboard.php - Admin Console → MySQL Data: reads and updates
admin/dashboard.php - Admin Console → Consultation Booking: links to booking
admin/dashboard.php - Admin Console → Contact Page: links to contact
admin/dashboard.php - Client Workspace → Consultation Booking: links to booking
client/dashboard.php - Client Workspace → Service Catalogue: links to services
client/dashboard.php - Client Workspace → Sign Out: links to sign out
client/dashboard.php - Admin Console → Sign Out: links to sign out
admin/dashboard.php - Sign Out → PHP Configuration: uses session config
auth/logout.php - Firm Homepage → Shared Page Shell: includes shell
index.php - Firm Information → Shared Page Shell: includes shell
about.php - Service Catalogue → Shared Page Shell: includes shell
services.php - Consultation Booking → Shared Page Shell: includes shell
appointment.php - Sign In → Shared Page Shell: includes shell
auth/login.php - Client Registration → Shared Page Shell: includes shell
auth/register.php - Admin Console → Shared Page Shell: includes shell
admin/dashboard.php - Client Workspace → Shared Page Shell: includes shell
client/dashboard.php - Shared Page Shell → PHP Configuration: loads helpers
partials_header.php - Consultation Booking → PHP Configuration: uses helpers
appointment.php - Sign In → PHP Configuration: uses helpers
auth/login.php - Client Registration → PHP Configuration: uses helpers
auth/register.php - Client Workspace → PHP Configuration: uses helpers
client/dashboard.php - Admin Console → PHP Configuration: uses helpers
admin/dashboard.php - Database Setup → PHP Configuration: loads helpers
setup.php - Database Setup → MySQL Data: creates schema
setup.php - Firm Homepage → Shared Footer: includes footer
index.php - Firm Information → Shared Footer: includes footer
about.php - Service Catalogue → Shared Footer: includes footer
services.php - Consultation Booking → Shared Footer: includes footer
appointment.php - Sign In → Shared Footer: includes footer
auth/login.php - Client Registration → Shared Footer: includes footer
auth/register.php - Client Workspace → Shared Footer: includes footer
client/dashboard.php