diff --git a/bd/gestion_orphelinah.sql b/bd/gestion_orphelinah.sql deleted file mode 100644 index 73d5c25..0000000 --- a/bd/gestion_orphelinah.sql +++ /dev/null @@ -1,424 +0,0 @@ --- phpMyAdmin SQL Dump --- version 5.2.1 --- https://www.phpmyadmin.net/ --- --- Host: 127.0.0.1 --- Generation Time: Sep 07, 2024 at 07:56 AM --- Server version: 10.4.28-MariaDB --- PHP Version: 8.2.4 - -SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; -START TRANSACTION; -SET time_zone = "+00:00"; - - -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8mb4 */; - --- --- Database: `gestion_orphelinah` --- - --- -------------------------------------------------------- - --- --- Table structure for table `admin` --- - -CREATE TABLE `admin` ( - `id` int(11) NOT NULL, - `nom` varchar(50) NOT NULL, - `pwd` varchar(50) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- -------------------------------------------------------- - --- --- Table structure for table `adoption` --- - -CREATE TABLE `adoption` ( - `id` int(11) NOT NULL, - `date` date NOT NULL, - `note` text NOT NULL, - `enfant` int(11) NOT NULL, - `tuteur` int(11) NOT NULL, - `Etat` int(11) NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `adoption` --- - -INSERT INTO `adoption` (`id`, `date`, `note`, `enfant`, `tuteur`, `Etat`, `statut`) VALUES -(1, '2024-09-06', 'blablabla bla', 1, 1, 0, 1), -(2, '2024-09-06', 'kkkkkkkkkkkkkkkkkk', 2, 2, 0, 0), -(3, '2024-09-06', 'wwwwwwwwwwwwwww', 3, 1, 0, 1), -(4, '2024-09-06', 'enfant obeissant', 4, 2, 0, 0); - --- -------------------------------------------------------- - --- --- Table structure for table `bienfaiteur` --- - -CREATE TABLE `bienfaiteur` ( - `id` int(11) NOT NULL, - `nom` varchar(50) NOT NULL, - `postnom` varchar(50) NOT NULL, - `prenom` varchar(50) NOT NULL, - `genre` varchar(50) NOT NULL, - `adresse` text NOT NULL, - `telephone` varchar(50) NOT NULL, - `mail` text NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `bienfaiteur` --- - -INSERT INTO `bienfaiteur` (`id`, `nom`, `postnom`, `prenom`, `genre`, `adresse`, `telephone`, `mail`, `statut`) VALUES -(1, 'Furaha', 'nyonge', 'furaha', 'Masculin', 'gallery kisune', '0987655', 'divinemakili@gmail.com', 0); - --- -------------------------------------------------------- - --- --- Table structure for table `comptable` --- - -CREATE TABLE `comptable` ( - `id` int(11) NOT NULL, - `nom` varchar(50) NOT NULL, - `postnom` varchar(50) NOT NULL, - `prenom` varchar(50) NOT NULL, - `pwd` varchar(50) NOT NULL, - `mail` varchar(50) NOT NULL, - `photo` text NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `comptable` --- - -INSERT INTO `comptable` (`id`, `nom`, `postnom`, `prenom`, `pwd`, `mail`, `photo`, `statut`) VALUES -(1, 'Rosine', 'Mahuka', 'masika', '1234', 'gladkombis@gmail.com', '_ba8541c6-92f7-4345-822c-71ac5aa0ce8e.jpeg', 0); - --- -------------------------------------------------------- - --- --- Table structure for table `declaration` --- - -CREATE TABLE `declaration` ( - `id` int(11) NOT NULL, - `date` date NOT NULL, - `description` text NOT NULL, - `adoption` int(11) NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `declaration` --- - -INSERT INTO `declaration` (`id`, `date`, `description`, `adoption`, `statut`) VALUES -(1, '2024-09-05', 'wwwwwwwwwwwwwww', 1, 0); - --- -------------------------------------------------------- - --- --- Table structure for table `don` --- - -CREATE TABLE `don` ( - `id` int(11) NOT NULL, - `date` date NOT NULL, - `bienfaiteur` int(11) NOT NULL, - `description` text NOT NULL, - `categorie` varchar(50) NOT NULL, - `montant` double NOT NULL, - `devise` varchar(50) NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `don` --- - -INSERT INTO `don` (`id`, `date`, `bienfaiteur`, `description`, `categorie`, `montant`, `devise`, `statut`) VALUES -(1, '2024-09-05', 1, 'Commercial et Gestion', 'Nature', 0, 'Null', 0), -(2, '2024-09-05', 1, 'Commercial et Gestion', 'Numeraire', 100, 'Dollards', 0), -(3, '2024-09-06', 1, 'Riz 25kg', 'Nature', 0, 'Null', 0), -(4, '2024-09-06', 1, 'apport en numeraire', 'Numeraire', 18888, 'Dollards', 0); - --- -------------------------------------------------------- - --- --- Table structure for table `enfant` --- - -CREATE TABLE `enfant` ( - `id` int(11) NOT NULL, - `nom` varchar(50) NOT NULL, - `postnom` varchar(50) NOT NULL, - `prenom` varchar(50) NOT NULL, - `genre` varchar(50) NOT NULL, - `age` date NOT NULL, - `photo` text NOT NULL, - `adopt` int(11) NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `enfant` --- - -INSERT INTO `enfant` (`id`, `nom`, `postnom`, `prenom`, `genre`, `age`, `photo`, `adopt`, `statut`) VALUES -(1, 'Rosine', 'masika', 'mahuka', 'Feminin', '2015-09-14', 'IMG-20240714-WA0017.jpg', 1, 0), -(2, 'Alice', 'Katungu', 'Lariene', 'Feminin', '2017-01-24', '_a4cf2cd0-5d9c-47c7-800c-4ee0e0603013.jpeg', 1, 0), -(3, 'Furaha', 'nyonge', 'furaha', 'Feminin', '2021-12-28', 'WhatsApp Image 2024-06-08 at 08.06.15_f4562177.jpg', 1, 0), -(4, 'katunga', 'kwali', 'sarah', 'Feminin', '2018-10-05', '_54919107-e9cf-466c-be05-2f4bf69af68c.jpeg', 1, 0); - --- -------------------------------------------------------- - --- --- Table structure for table `mouvementcaisse` --- - -CREATE TABLE `mouvementcaisse` ( - `id` int(11) NOT NULL, - `date` date NOT NULL, - `description` text NOT NULL, - `Montant` double NOT NULL, - `devise` varchar(50) NOT NULL, - `type` varchar(50) NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `mouvementcaisse` --- - -INSERT INTO `mouvementcaisse` (`id`, `date`, `description`, `Montant`, `devise`, `type`, `statut`) VALUES -(1, '2024-09-06', 'recette ndazi', 100, 'Dollards', 'Entree', 0); - --- -------------------------------------------------------- - --- --- Table structure for table `sortie` --- - -CREATE TABLE `sortie` ( - `id` int(11) NOT NULL, - `date` date NOT NULL, - `description` text NOT NULL, - `adoption` int(11) NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `sortie` --- - -INSERT INTO `sortie` (`id`, `date`, `description`, `adoption`, `statut`) VALUES -(1, '2024-09-06', 'Commercial et Gestion', 1, 0), -(2, '2024-09-06', 'louange', 3, 0); - --- -------------------------------------------------------- - --- --- Table structure for table `suivis` --- - -CREATE TABLE `suivis` ( - `id` int(11) NOT NULL, - `date` date NOT NULL, - `constation` text NOT NULL, - `adoption` int(11) NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `suivis` --- - -INSERT INTO `suivis` (`id`, `date`, `constation`, `adoption`, `statut`) VALUES -(1, '2024-09-05', 'Brigat', 1, 0), -(2, '2024-09-06', 'diareee', 2, 0); - --- -------------------------------------------------------- - --- --- Table structure for table `tuteur` --- - -CREATE TABLE `tuteur` ( - `id` int(11) NOT NULL, - `nom` varchar(50) NOT NULL, - `postnom` varchar(50) NOT NULL, - `prenom` varchar(50) NOT NULL, - `genre` varchar(50) NOT NULL, - `adresse` varchar(50) NOT NULL, - `telephone` varchar(50) NOT NULL, - `confession` varchar(50) NOT NULL, - `profession` varchar(50) NOT NULL, - `statut` int(11) NOT NULL -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; - --- --- Dumping data for table `tuteur` --- - -INSERT INTO `tuteur` (`id`, `nom`, `postnom`, `prenom`, `genre`, `adresse`, `telephone`, `confession`, `profession`, `statut`) VALUES -(1, 'Furaha', 'nyonge', 'furaha', 'Masculin', 'kambali', '0997019883', 'catolique', 'Commercante', 0), -(2, 'Kasero', 'deAlice', 'george', 'Masculin', 'kambali', '0987654', 'horove', 'developper', 0); - --- --- Indexes for dumped tables --- - --- --- Indexes for table `admin` --- -ALTER TABLE `admin` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `adoption` --- -ALTER TABLE `adoption` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `bienfaiteur` --- -ALTER TABLE `bienfaiteur` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `comptable` --- -ALTER TABLE `comptable` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `declaration` --- -ALTER TABLE `declaration` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `don` --- -ALTER TABLE `don` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `enfant` --- -ALTER TABLE `enfant` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `mouvementcaisse` --- -ALTER TABLE `mouvementcaisse` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `sortie` --- -ALTER TABLE `sortie` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `suivis` --- -ALTER TABLE `suivis` - ADD PRIMARY KEY (`id`); - --- --- Indexes for table `tuteur` --- -ALTER TABLE `tuteur` - ADD PRIMARY KEY (`id`); - --- --- AUTO_INCREMENT for dumped tables --- - --- --- AUTO_INCREMENT for table `admin` --- -ALTER TABLE `admin` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; - --- --- AUTO_INCREMENT for table `adoption` --- -ALTER TABLE `adoption` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; - --- --- AUTO_INCREMENT for table `bienfaiteur` --- -ALTER TABLE `bienfaiteur` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; - --- --- AUTO_INCREMENT for table `comptable` --- -ALTER TABLE `comptable` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; - --- --- AUTO_INCREMENT for table `declaration` --- -ALTER TABLE `declaration` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; - --- --- AUTO_INCREMENT for table `don` --- -ALTER TABLE `don` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; - --- --- AUTO_INCREMENT for table `enfant` --- -ALTER TABLE `enfant` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; - --- --- AUTO_INCREMENT for table `mouvementcaisse` --- -ALTER TABLE `mouvementcaisse` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; - --- --- AUTO_INCREMENT for table `sortie` --- -ALTER TABLE `sortie` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; - --- --- AUTO_INCREMENT for table `suivis` --- -ALTER TABLE `suivis` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; - --- --- AUTO_INCREMENT for table `tuteur` --- -ALTER TABLE `tuteur` - MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -COMMIT; - -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/bd/musosa.sql b/bd/musosa.sql new file mode 100644 index 0000000..b607db5 --- /dev/null +++ b/bd/musosa.sql @@ -0,0 +1,486 @@ +-- phpMyAdmin SQL Dump +-- version 5.2.1 +-- https://www.phpmyadmin.net/ +-- +-- Hôte : 127.0.0.1 +-- Généré le : dim. 02 fév. 2025 à 12:58 +-- Version du serveur : 10.4.32-MariaDB +-- Version de PHP : 8.0.30 + +SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; +START TRANSACTION; +SET time_zone = "+00:00"; + + +/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8mb4 */; + +-- +-- Base de données : `musosa` +-- + +-- -------------------------------------------------------- + +-- +-- Structure de la table `anneeprestation` +-- + +CREATE TABLE `anneeprestation` ( + `id` int(11) NOT NULL, + `annee` text NOT NULL, + `paquet` double NOT NULL, + `pourcentage` double NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `anneeprestation` +-- + +INSERT INTO `anneeprestation` (`id`, `annee`, `paquet`, `pourcentage`) VALUES +(2, '2022', 35, 85), +(3, '2023', 40, 71), +(4, '2024', 20, 80), +(5, '2024', 45, 80), +(10, '2025', 45, 80); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `beneficiaire` +-- + +CREATE TABLE `beneficiaire` ( + `matricule` varchar(100) NOT NULL, + `nom` text DEFAULT NULL, + `postnom` text DEFAULT NULL, + `prenom` text NOT NULL, + `genre` text DEFAULT NULL, + `tel` text DEFAULT NULL, + `adresse` text DEFAULT NULL, + `etatcivil` text DEFAULT NULL, + `lieunaissance` text DEFAULT NULL, + `datenaissance` date DEFAULT NULL, + `lien` text DEFAULT NULL, + `date` date DEFAULT NULL, + `pwd` text NOT NULL, + `photo` text DEFAULT NULL, + `titulaire` text DEFAULT NULL, + `supprimer` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `beneficiaire` +-- + +INSERT INTO `beneficiaire` (`matricule`, `nom`, `postnom`, `prenom`, `genre`, `tel`, `adresse`, `etatcivil`, `lieunaissance`, `datenaissance`, `lien`, `date`, `pwd`, `photo`, `titulaire`, `supprimer`) VALUES +('MUS/0/1/2024', 'Kahindo', 'MuyisaRRRRRRR', 'Séraphine', 'Feminin', '09933333340', 'Lusando', 'Celibataire', 'Butembo', '2024-10-23', 'Epoux', '2024-10-03', '', 'Capture.PNG', 'MUS/1/2024', 0), +('MUS/1/1/2024', 'Kahindo', 'Muvikwa', '', 'Feminin', '33333333', 'Base', 'Celibataire', 'Beni', '2024-10-07', 'Enfant', '2024-10-03', '', 'Capture.PNG', 'MUS/1/2024', 0), +('MUS/2/1/2024', 'Kahindo', 'Muvikwa', '', 'Feminin', '099388333340', 'Base', 'Marie', 'Beni', '2024-10-05', 'Enfant', '2024-10-04', '', 'Capture.PNG', 'MUS/1/2024', 0); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `bonsoin` +-- + +CREATE TABLE `bonsoin` ( + `id` int(11) NOT NULL, + `dates` date NOT NULL, + `matricule` text NOT NULL, + `fosa` int(11) NOT NULL, + `utilisateur` int(11) NOT NULL, + `supprimer` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `bonsoin` +-- + +INSERT INTO `bonsoin` (`id`, `dates`, `matricule`, `fosa`, `utilisateur`, `supprimer`) VALUES +(1, '0000-00-00', 'MUS/0/1/2024', 2, 3, 1), +(2, '2024-12-01', 'MUS/0/1/2024', 1, 3, 1), +(3, '2024-12-01', 'MUS/1/2024', 1, 1, 0), +(4, '2024-12-13', 'MUS/0/1/2024', 1, 1, 0), +(5, '2024-12-13', 'MUS/1/1/2024', 4, 1, 0), +(6, '2024-12-15', 'MUS/1/1/2024', 1, 1, 0), +(7, '2025-01-20', 'MUS/1/1/2024', 1, 3, 0), +(8, '2025-01-20', 'MUS/0/1/2024', 1, 3, 0), +(9, '2025-01-20', 'MUS/1/1/2024', 1, 3, 0), +(10, '2025-01-20', 'MUS/2/1/2024', 1, 3, 0), +(11, '2025-01-20', 'MUS/2/1/2024', 2, 3, 0), +(12, '2025-01-20', 'MUS/2/1/2024', 1, 3, 0), +(13, '2025-01-27', 'MUS/0/1/2024', 3, 3, 0), +(14, '2025-01-27', 'MUS/0/1/2024', 2, 3, 0), +(15, '2025-01-27', 'MUS/1/1/2024', 1, 3, 0), +(16, '2025-01-27', 'MUS/1/1/2024', 4, 3, 0); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `coorporation` +-- + +CREATE TABLE `coorporation` ( + `id` int(11) NOT NULL, + `desingation` text NOT NULL, + `supprimer` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `coorporation` +-- + +INSERT INTO `coorporation` (`id`, `desingation`, `supprimer`) VALUES +(1, 'Matanda', 0), +(2, 'Katwa', 0), +(3, 'Horizon', 0), +(4, 'Menages', 0); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `cotisation` +-- + +CREATE TABLE `cotisation` ( + `id` int(11) NOT NULL, + `matTitilaire` text NOT NULL, + `matBeneficiaire` text NOT NULL, + `montant` double NOT NULL, + `anneeprestation` text NOT NULL, + `date` date NOT NULL, + `supprimer` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `cotisation` +-- + +INSERT INTO `cotisation` (`id`, `matTitilaire`, `matBeneficiaire`, `montant`, `anneeprestation`, `date`, `supprimer`) VALUES +(1, 'MUS/1/2024', 'MUS/0/1/2024', 12, '2024', '2024-10-04', 0), +(2, 'MUS/1/2024', 'MUS/0/1/2024', 8, '2024', '2024-10-04', 0), +(3, 'MUS/1/2024', 'MUS/1/1/2024', 20, '2024', '2024-10-04', 0), +(4, 'MUS/1/2024', 'MUS/2/1/2024', 20, '2024', '2024-10-04', 0); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `episode` +-- + +CREATE TABLE `episode` ( + `id` int(11) NOT NULL, + `bonsoin` int(11) NOT NULL, + `facture` int(11) NOT NULL, + `matricule` text NOT NULL, + `date_op` date NOT NULL, + `annee_prestation` int(11) NOT NULL, + `sejour` int(11) NOT NULL, + `pathologie` text NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `episode` +-- + +INSERT INTO `episode` (`id`, `bonsoin`, `facture`, `matricule`, `date_op`, `annee_prestation`, `sejour`, `pathologie`) VALUES +(1, 4, 56, 'MUS/0/1/2024', '2024-12-15', 5, 0, ''), +(2, 5, 556, 'MUS/1/1/2024', '2024-12-16', 5, 0, ''), +(3, 6, 0, 'MUS/1/1/2024', '2024-12-16', 5, 87, 'hghgyugy'), +(4, 7, 344, 'MUS/1/1/2024', '2025-01-20', 10, 1, 'kjoijijij'), +(5, 8, 778, 'MUS/0/1/2024', '2025-01-20', 10, 8, 'ihhhhhh'), +(6, 9, 8, 'MUS/1/1/2024', '2025-01-20', 10, 9, 'jjjjjjjj'), +(7, 10, 9, 'MUS/2/1/2024', '2025-01-20', 10, 6, 'y'), +(9, 11, 6, 'MUS/2/1/2024', '2025-01-20', 10, 8, 'jjjj'), +(10, 12, 66, 'MUS/2/1/2024', '2025-01-20', 10, 6, 'ijij'), +(11, 13, 0, 'MUS/0/1/2024', '2025-01-27', 10, 2, 'iojjijii'), +(12, 14, 34, 'MUS/0/1/2024', '2025-01-27', 10, 4, 'oiojoo'); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `episode_op` +-- + +CREATE TABLE `episode_op` ( + `id` int(11) NOT NULL, + `episode` int(11) NOT NULL, + `service` int(11) NOT NULL, + `total` double NOT NULL, + `partmusosa` double NOT NULL, + `partbeneficiare` double NOT NULL, + `utilisateur` int(11) NOT NULL, + `supprimer` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `episode_op` +-- + +INSERT INTO `episode_op` (`id`, `episode`, `service`, `total`, `partmusosa`, `partbeneficiare`, `utilisateur`, `supprimer`) VALUES +(1, 1, 1, 34, 27.2, 6.8, 1, 0), +(2, 1, 2, 40, 32, 8, 1, 0), +(3, 1, 1, 20, 16, 4, 1, 0), +(4, 1, 0, 30, 0, 30, 1, 0), +(5, 2, 0, 45, 0, 45, 1, 0), +(6, 4, 1, 230, 184, 46, 3, 0), +(8, 5, 1, 34, 27.2, 6.8, 3, 0), +(9, 5, 2, 80, 64, 16, 3, 0), +(10, 6, 3, 80, 64, 16, 3, 0), +(11, 6, 1, 78, 62.4, 15.6, 3, 0), +(12, 7, 3, 200, 160, 40, 3, 0), +(13, 7, 1, 100, 80, 20, 3, 0), +(14, 7, 1, 5, 4, 1, 3, 0), +(18, 9, 2, 200, 160, 40, 3, 0), +(19, 9, 0, 9999, 0, 9999, 3, 0), +(20, 9, 1, 200, 160, 40, 3, 0), +(21, 10, 3, 80, 64, 16, 3, 0), +(22, 10, 0, 100, 0, 100, 3, 0), +(23, 10, 0, 100, 0, 100, 3, 0), +(24, 11, 1, 45, 36, 9, 3, 0), +(25, 12, 1, 10, 8, 2, 3, 0), +(26, 12, 0, 30, 0, 30, 3, 0); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `fosa` +-- + +CREATE TABLE `fosa` ( + `id` int(11) NOT NULL, + `desingation` text NOT NULL, + `supprimer` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `fosa` +-- + +INSERT INTO `fosa` (`id`, `desingation`, `supprimer`) VALUES +(1, 'HOPITAL GENERAL DE REFERENCE DE KATWA', 0), +(2, 'HOPITAL MATANDA', 0), +(3, 'HOPITAL DE KITATUMBA', 0), +(4, 'CLINIQUE UNIVERSITAIRE DU CRABENE', 0); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `membre` +-- + +CREATE TABLE `membre` ( + `matricule` varchar(100) NOT NULL, + `nom` text DEFAULT NULL, + `postnom` text DEFAULT NULL, + `prenom` text NOT NULL, + `genre` text DEFAULT NULL, + `tel` text DEFAULT NULL, + `adresse` text DEFAULT NULL, + `paroisse` text NOT NULL, + `zonesante` text NOT NULL, + `etatcivil` text DEFAULT NULL, + `coorporation` int(11) DEFAULT NULL, + `lieunaissance` text DEFAULT NULL, + `datenaissance` date DEFAULT NULL, + `photo` text DEFAULT NULL, + `date` date DEFAULT NULL, + `supprimer` int(11) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `membre` +-- + +INSERT INTO `membre` (`matricule`, `nom`, `postnom`, `prenom`, `genre`, `tel`, `adresse`, `paroisse`, `zonesante`, `etatcivil`, `coorporation`, `lieunaissance`, `datenaissance`, `photo`, `date`, `supprimer`) VALUES +('MUS/1/2024', 'Kahindo', 'Muyisa', 'Séraphine', 'Feminin', '09933333340', 'Lusando', 'Vutetse-Base', 'Katwa', 'Celibataire', 4, 'Butembo', '2024-10-23', 'Capture.PNG', '2024-10-03', 0); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `service` +-- + +CREATE TABLE `service` ( + `id` int(11) NOT NULL, + `desingation` text NOT NULL, + `tarifplafond` double NOT NULL, + `partmusosa` double NOT NULL, + `supprimer` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `service` +-- + +INSERT INTO `service` (`id`, `desingation`, `tarifplafond`, `partmusosa`, `supprimer`) VALUES +(1, 'AMBULATOIRE ', 12, 3.6, 0), +(2, 'MEDECINE INTERNE ', 40, 28, 0), +(3, 'ACCOUCHEMENTS EUTOCIQUE ', 25, 17.5, 0); + +-- -------------------------------------------------------- + +-- +-- Structure de la table `user` +-- + +CREATE TABLE `user` ( + `id` int(11) NOT NULL, + `nom` text NOT NULL, + `postnom` text NOT NULL, + `genre` text NOT NULL, + `tel` text NOT NULL, + `adresse` text NOT NULL, + `username` text NOT NULL, + `pwd` text NOT NULL, + `fonction` text NOT NULL, + `photo` text NOT NULL, + `date` date NOT NULL, + `supprimer` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; + +-- +-- Déchargement des données de la table `user` +-- + +INSERT INTO `user` (`id`, `nom`, `postnom`, `genre`, `tel`, `adresse`, `username`, `pwd`, `fonction`, `photo`, `date`, `supprimer`) VALUES +(1, 'Mumbere', 'Korodwa', 'Masculin', '09877664', 'KAMATHE', 'Korodwa@musosa.fin', '1234', 'Admin', '6bd8bf06-ea2c-49a3-b3f7-d1163ddf0406.jpg', '2024-08-29', 0), +(2, 'Kavira', 'Mwasi', 'Feminin', '09877664', 'KAMATHE', 'Mwasi@musosa.fin', '4567', 'Admin', '20231230181230_IMG_4234.JPG.jpg', '2024-08-29', 0), +(3, 'KAHINDO', 'Mwasi', 'Feminin', '098776642', 'Lusando', 'Mwasi2@musosa.fin', '1234', 'Secretaire', '20231229_095511.jpg', '2024-08-29', 0), +(4, 'Seraphine ', 'Muyisa', 'Feminin', '096655253', 'KAMATHE', 'Muyisa4@musosa.fin', '333', 'Secretaire', '6bd8bf06-ea2c-49a3-b3f7-d1163ddf0406.jpg', '2024-08-29', 0), +(5, 'Kahindo', 'Muvikwa', 'Feminin', '444444444', 'Base', 'Muvikwa5@musosa.fin', '333', 'Admin', '243822846742_status_8b5e1884a66248da9642cb8506398f84.jpg', '2024-10-07', 1); + +-- +-- Index pour les tables déchargées +-- + +-- +-- Index pour la table `anneeprestation` +-- +ALTER TABLE `anneeprestation` + ADD PRIMARY KEY (`id`); + +-- +-- Index pour la table `beneficiaire` +-- +ALTER TABLE `beneficiaire` + ADD PRIMARY KEY (`matricule`); + +-- +-- Index pour la table `bonsoin` +-- +ALTER TABLE `bonsoin` + ADD PRIMARY KEY (`id`); + +-- +-- Index pour la table `coorporation` +-- +ALTER TABLE `coorporation` + ADD PRIMARY KEY (`id`); + +-- +-- Index pour la table `cotisation` +-- +ALTER TABLE `cotisation` + ADD PRIMARY KEY (`id`); + +-- +-- Index pour la table `episode` +-- +ALTER TABLE `episode` + ADD PRIMARY KEY (`id`); + +-- +-- Index pour la table `episode_op` +-- +ALTER TABLE `episode_op` + ADD PRIMARY KEY (`id`); + +-- +-- Index pour la table `fosa` +-- +ALTER TABLE `fosa` + ADD PRIMARY KEY (`id`); + +-- +-- Index pour la table `membre` +-- +ALTER TABLE `membre` + ADD PRIMARY KEY (`matricule`); + +-- +-- Index pour la table `service` +-- +ALTER TABLE `service` + ADD PRIMARY KEY (`id`); + +-- +-- Index pour la table `user` +-- +ALTER TABLE `user` + ADD PRIMARY KEY (`id`); + +-- +-- AUTO_INCREMENT pour les tables déchargées +-- + +-- +-- AUTO_INCREMENT pour la table `anneeprestation` +-- +ALTER TABLE `anneeprestation` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; + +-- +-- AUTO_INCREMENT pour la table `bonsoin` +-- +ALTER TABLE `bonsoin` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; + +-- +-- AUTO_INCREMENT pour la table `coorporation` +-- +ALTER TABLE `coorporation` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; + +-- +-- AUTO_INCREMENT pour la table `cotisation` +-- +ALTER TABLE `cotisation` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; + +-- +-- AUTO_INCREMENT pour la table `episode` +-- +ALTER TABLE `episode` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; + +-- +-- AUTO_INCREMENT pour la table `episode_op` +-- +ALTER TABLE `episode_op` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; + +-- +-- AUTO_INCREMENT pour la table `fosa` +-- +ALTER TABLE `fosa` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; + +-- +-- AUTO_INCREMENT pour la table `service` +-- +ALTER TABLE `service` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; + +-- +-- AUTO_INCREMENT pour la table `user` +-- +ALTER TABLE `user` + MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; +COMMIT; + +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; diff --git a/index.php b/index.php index 98ea64e..2c0958c 100644 --- a/index.php +++ b/index.php @@ -1,3 +1,40 @@ +prepare("SELECT * from anneeprestation order by id desc limit 1"); +$sel_annee->execute(); +if($select=$sel_annee->fetch()) +{ + $paquet=$select['paquet']; + $annee=$select['annee']; + $pourcentage=$select['pourcentage']; + + if($annee_en_cours>$annee) + { + + $req = $connexion->prepare("INSERT INTO `anneeprestation`(`annee`, `paquet`, `pourcentage`) VALUES (?,?,?)"); + $req->execute(array($annee_en_cours, $paquet, $pourcentage)); + } + else + { + + } + +} +else +{ + $req = $connexion->prepare("INSERT INTO `anneeprestation`(`annee`) VALUES (?)"); + $req->execute(array($annee_en_cours)); + +} + + + + +?> + + + @@ -5,7 +42,7 @@ - MUSOSA + MUSOSA @@ -54,7 +91,7 @@