# ibtissamnoukta/application-web-gestion-des-demandes-des-conges architecture

> Architecture diagram of the GitHub repository ibtissamnoukta/application-web-gestion-des-demandes-des-conges, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges
- Repository: https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges

## Overview

This PHP/MySQL application manages employee and chef vacation requests through submission, pending-request editing, role-based approval or refusal, and consultation of approved requests. Employees and chefs also have profile and personal-request views; chefs review requests from their service, while the manager reviews chef requests and can consult all validated requests. The README documents these capabilities; sampled PHP confirms login entry, database access patterns, request editing, profiles, and approval-list queries. Other page-to-handler wiring is represented only where the tree or README supports it.

Main entry points: [`Data base/gestionconge.sql`](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Data%20base/gestionconge.sql) (Vacation database), [`validationchef.php`](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/validationchef.php) (Service review), [`validationadmin.php`](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/validationadmin.php) (Chef approval), [`Index.php`](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Index.php) (Login page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and profiles"]
  node_login["Login page<br/>[Index.php]"]
  node_authenticate["Credential check<br/>[verifierpass.php]"]
  node_employee_profile["Employee profile<br/>[profil.php]"]
  node_chef_profile["Chef profile<br/>[profilchef.php]"]
  node_manager_profile["Manager profile<br/>[profiladmin.php]"]
end

subgraph group_requests["Request lifecycle"]
  node_employee_submit["Employee request form<br/>[demander.php]"]
  node_chef_submit["Chef request form<br/>[demanderchef.php]"]
  node_create_request["Create request"]
  node_employee_requests["Employee requests<br/>[mesdemandes.php]"]
  node_chef_requests["Chef requests"]
  node_edit_request["Edit request<br/>[modifier2.php]"]
  node_employee_edit["Employee edit form<br/>[Modifieragent.php]"]
  node_chef_edit["Chef edit form<br/>[Modifierchef.php]"]
end

subgraph group_approvals["Approval workflow"]
  node_chef_review["Service review<br/>[validationchef.php]"]
  node_manager_review["Chef approval"]
  node_accept["Accept request<br/>[Accepter.php]"]
  node_refuse["Refuse request<br/>[refuser.php]"]
  node_accepted_view["Validated requests<br/>[consulter.php]"]
end

subgraph group_storage["Application data"]
  node_database[("Vacation database<br/>[gestionconge.sql]")]
end

node_employee(("Employee"))
node_chef(("Chef"))
node_manager(("Manager"))

node_employee -->|"opens"| node_login
node_chef -->|"opens"| node_login
node_manager -->|"opens"| node_login
node_login -->|"submits credentials"| node_authenticate
node_employee -->|"views profile"| node_employee_profile
node_chef -->|"views profile"| node_chef_profile
node_manager -->|"views profile"| node_manager_profile
node_employee -->|"requests leave"| node_employee_submit
node_chef -->|"requests leave"| node_chef_submit
node_employee_submit -->|"submits"| node_create_request
node_chef_submit -->|"submits"| node_create_request
node_create_request -->|"stores request"| node_database
node_employee -->|"reviews own"| node_employee_requests
node_chef -->|"reviews own"| node_chef_requests
node_employee_requests -->|"reads requests"| node_database
node_chef_requests -->|"reads requests"| node_database
node_employee_requests -->|"opens pending"| node_employee_edit
node_chef_requests -->|"opens pending"| node_chef_edit
node_employee_edit -->|"submits changes"| node_edit_request
node_chef_edit -->|"submits changes"| node_edit_request
node_edit_request -->|"updates request"| node_database
node_chef -->|"reviews service"| node_chef_review
node_chef_review -->|"reads requests"| node_database
node_chef_review -->|"accepts"| node_accept
node_chef_review -->|"refuses"| node_refuse
node_manager -->|"reviews chefs"| node_manager_review
node_manager_review -->|"reads requests"| node_database
node_manager_review -->|"accepts"| node_accept
node_manager_review -->|"refuses"| node_refuse
node_accept -->|"sets accepted"| node_database
node_refuse -->|"sets refused"| node_database
node_manager -->|"consults approvals"| node_accepted_view
node_accepted_view -->|"reads validated"| node_database

click node_login "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Index.php"
click node_authenticate "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/verifierpass.php"
click node_employee_profile "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/profil.php"
click node_chef_profile "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/profilchef.php"
click node_manager_profile "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/profiladmin.php"
click node_employee_submit "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/demander.php"
click node_chef_submit "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/demanderchef.php"
click node_create_request "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/ajouter-demande.php"
click node_employee_requests "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/mesdemandes.php"
click node_chef_requests "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/mesdemandeschef.php"
click node_edit_request "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/modifier2.php"
click node_employee_edit "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Modifieragent.php"
click node_chef_edit "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Modifierchef.php"
click node_chef_review "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/validationchef.php"
click node_manager_review "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/validationadmin.php"
click node_accept "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Accepter.php"
click node_refuse "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/refuser.php"
click node_accepted_view "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/consulter.php"
click node_database "https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Data%20base/gestionconge.sql"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_login,node_authenticate,node_employee_profile,node_chef_profile,node_manager_profile toneBlue
class node_employee_submit,node_chef_submit,node_create_request,node_employee_requests,node_chef_requests,node_edit_request,node_employee_edit,node_chef_edit toneAmber
class node_chef_review,node_manager_review,node_accept,node_refuse,node_accepted_view toneMint
class node_database toneRose
class node_employee,node_chef,node_manager toneIndigo
```

## Components

### Access and profiles

- [Login page](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Index.php): `Index.php`
- [Credential check](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/verifierpass.php): `verifierpass.php`
- [Employee profile](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/profil.php): `profil.php`
- [Chef profile](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/profilchef.php): `profilchef.php`
- [Manager profile](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/profiladmin.php): `profiladmin.php`

### Request lifecycle

- [Employee request form](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/demander.php): `demander.php`
- [Chef request form](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/demanderchef.php): `demanderchef.php`
- [Create request](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/ajouter-demande.php): `ajouter-demande.php`
- [Employee requests](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/mesdemandes.php): `mesdemandes.php`
- [Chef requests](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/mesdemandeschef.php): `mesdemandeschef.php`
- [Edit request](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/modifier2.php): `modifier2.php`
- [Employee edit form](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Modifieragent.php): `Modifieragent.php`
- [Chef edit form](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Modifierchef.php): `Modifierchef.php`

### Approval workflow

- [Service review](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/validationchef.php): `validationchef.php`
- [Chef approval](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/validationadmin.php): `validationadmin.php`
- [Accept request](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Accepter.php): `Accepter.php`
- [Refuse request](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/refuser.php): `refuser.php`
- [Validated requests](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/consulter.php): `consulter.php`

### Application data

- [Vacation database](https://github.com/ibtissamnoukta/application-web-gestion-des-demandes-des-conges/blob/main/Data%20base/gestionconge.sql): `Data base/gestionconge.sql`

### Other components

- **Employee**
- **Chef**
- **Manager**

## Connections

- Employee → Login page: opens
- Chef → Login page: opens
- Manager → Login page: opens
- Login page → Credential check: submits credentials
- Employee → Employee profile: views profile
- Chef → Chef profile: views profile
- Manager → Manager profile: views profile
- Employee → Employee request form: requests leave
- Chef → Chef request form: requests leave
- Employee request form → Create request: submits
- Chef request form → Create request: submits
- Create request → Vacation database: stores request
- Employee → Employee requests: reviews own
- Chef → Chef requests: reviews own
- Employee requests → Vacation database: reads requests
- Chef requests → Vacation database: reads requests
- Employee requests → Employee edit form: opens pending
- Chef requests → Chef edit form: opens pending
- Employee edit form → Edit request: submits changes
- Chef edit form → Edit request: submits changes
- Edit request → Vacation database: updates request
- Chef → Service review: reviews service
- Service review → Vacation database: reads requests
- Service review → Accept request: accepts
- Service review → Refuse request: refuses
- Manager → Chef approval: reviews chefs
- Chef approval → Vacation database: reads requests
- Chef approval → Accept request: accepts
- Chef approval → Refuse request: refuses
- Accept request → Vacation database: sets accepted
- Refuse request → Vacation database: sets refused
- Manager → Validated requests: consults approvals
- Validated requests → Vacation database: reads validated
