-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaiePerso.php
159 lines (142 loc) · 8.87 KB
/
paiePerso.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gestion</title>
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap.css">
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap-grid.css">
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap-grid.min.css">
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap-grid.rtl.css">
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap-reboot.css">
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap-reboot.rtl.css">
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap-utilities.css">
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap-utilities.rtl.css">
<link rel="stylesheet" href="bootstrap-5.0.2-dist/css/bootstrap-utilities.rtl.min.css">
<script defer src="bootstrap-5.0.2-dist/js/bootstrap.js"></script>
<script defer src="bootstrap-5.0.2-dist/js/bootstrap.min.js"></script>
<script defer src="bootstrap-5.0.2-dist/js/bootstrap.esm.js"></script>
<script defer src="bootstrap-5.0.2-dist/js/bootstrap.esm.min.js"></script>
<script defer src="bootstrap-5.0.2-dist/js/bootstrap.bundle.js"></script>
<script defer src="./navbar.js"></script>
<script defer src="./jsfile/jquery-3.6.1.min.js"></script>
<script defer src="./jsfile/produit.js"></script>
<script defer src="./jsfile/supprime.js"></script>
<link rel="stylesheet" href="index.css">
</head>
<?php
function dataPersoPaie(){
include 'connexion.php';
$sql = ("SELECT * FROM PersonnelPaie, DataPersonnel WHERE (PersonnelPaie.idDataPersonnel = DataPersonnel.idDataPersonnel) order by idPersonnelPaie desc");
$result = mysqli_query($db, $sql);
if(mysqli_num_rows($result)>0){
while($row= mysqli_fetch_assoc($result)){
echo "<option value='ID ::".$row["idPersonnelPaie"].":: dates ::".$row["Date"].":: Nom ::".$row["Nom"].":: Montant ::".$row["Montant"].":: Mois ::".$row["Mois"].":: iDPerso ::".$row["idDataPersonnel"].":: Observation ::".$row["Observation"].":: Telephone ::".$row["Telephone"]."'> = ".$row["Nom"].":".$row["Montant"]." $ mois:".$row["Mois"]."</option>";
}
}else{echo "Une erreur s est produite ";}
}
?>
<body class="bg-light">
<main>
<div class="container bg-transparent pt-5" >
<div class="row bg-transparent pt-5">
<div class="col-md-6 bg-transparent m-2">
<h2>Fiches des paies vue d ensemble</h2>
<p class=" text-secondary pt-3">
Cette section vous permet de controler et d avoir une bonne vision sur les paiements des vos employés
Tout est lister sur la fiche ci dessous, mais si vous voulez voir les paiements d un personnel particulier
Allez dans la section du rapport
</p>
</div>
<div class="col-md-3 bg-transparent pt-5">
<p class="text-center">
<a href="addPersoPaie.php" class="btn btn-primary p-2">+ Ajoutez un paiement d un personnel</a>
</p>
</div>
</div>
<div class="row">
<div class="col-md-5">
</div>
<div class="input-group w-50 col-md-5">
<span class="input-group-text">Search: </span>
<input type="text" class="form-control" placeholder="Entrer un detail dont vous vous sur un utilisateur">
</div>
</div>
<div class="input-group mt-3 col-md-10 montre-moi">
<span class="input-group-text">supprimer : </span>
<input type="text" id="supprimons" list="dataBesoin" class="form-control" placeholder="metez quelque chose dont vous vous rappeler pour le supprimer" >
<datalist id="dataBesoin">
<?php
dataPersoPaie();
?>
</datalist>
<span class="input-group-text pointe" id="cross">✗</span>
<span class="input-group-text pointe" id="btn">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16">
<path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
<path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
</svg>
</span>
</div>
<small id="txtHint"></small>
<input type="hidden" value="persoPaie" id="type" >
</div>
<div class="container-fluid pt-5 bg-transparent">
<?php
include 'connexion.php';
$reqSql= ("SELECT * FROM PersonnelPaie, DataPersonnel WHERE (PersonnelPaie.idDataPersonnel = DataPersonnel.idDataPersonnel) order by idPersonnelPaie desc");
$result= mysqli_query($db, $reqSql);
if(mysqli_num_rows($result)>0){
echo '<table class="table border border-1">
<thead class="bg-secondary text-white">
<tr>
<th>ID</th>
<th>Nom du personnel</th>
<th>Date</th>
<th>Mois</th>
<th>Montant</th>
<th>Observation</th>
<th>Action</th>
</tr>
</thead>';
while($row= mysqli_fetch_assoc($result)){
echo'
<tr>
<td>'.$row["idPersonnelPaie"].'</td>
<td>'.$row["Nom"].'</td>
<td>'.$row["Date"].'</td>
<td>'.$row["Mois"].'</td>
<td>'.$row["Montant"].'</td>
<td>'.$row["Observation"].'</td>
<td >
<div class="d-flex flex-row justify-content-center">
<div class="p-2 m-2 bg-danger text-white rounded-3" id="del">
<a href="#" class="text-white">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-trash" viewBox="0 0 16 16">
<path d="M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6z"/>
<path fill-rule="evenodd" d="M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1zM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118zM2.5 3V2h11v1h-11z"/>
</svg>
</a>
</div>
<div class="p-2 bg-primary m-2 text-white rounded-3">
<a href="updatePersoPaie.php" class="text-white">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="currentColor" class="bi bi-pen" viewBox="0 0 16 16">
<path d="m13.498.795.149-.149a1.207 1.207 0 1 1 1.707 1.708l-.149.148a1.5 1.5 0 0 1-.059 2.059L4.854 14.854a.5.5 0 0 1-.233.131l-4 1a.5.5 0 0 1-.606-.606l1-4a.5.5 0 0 1 .131-.232l9.642-9.642a.5.5 0 0 0-.642.056L6.854 4.854a.5.5 0 1 1-.708-.708L9.44.854A1.5 1.5 0 0 1 11.5.796a1.5 1.5 0 0 1 1.998-.001zm-.644.766a.5.5 0 0 0-.707 0L1.95 11.756l-.764 3.057 3.057-.764L14.44 3.854a.5.5 0 0 0 0-.708l-1.585-1.585z"/>
</svg>
</a>
</div>
</div>
</td>
</tr>
<tr>
';
}
echo"</table>";
}else{echo "Pas des donnees dans la base ";}
?>
</div>
</main>
</body>
</html>