Remove cumul RTT + création boutons
This commit is contained in:
parent
901b0b7693
commit
f1ccd39f15
|
@ -13,7 +13,7 @@
|
||||||
<body>
|
<body>
|
||||||
<h1>Gestion des congés - Affichage</h1>
|
<h1>Gestion des congés - Affichage</h1>
|
||||||
<h2>Année en cours : <?php echo date('Y'); ?></h2>
|
<h2>Année en cours : <?php echo date('Y'); ?></h2>
|
||||||
<a href="saisie.php">Saisir des congés</a>
|
<a href="saisie.php" class="button">Saisir des congés</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
<?php
|
<?php
|
||||||
$sql = "SELECT * FROM $table";
|
$sql = "SELECT * FROM $table";
|
||||||
|
@ -42,7 +42,7 @@ if ($result->num_rows > 0) {
|
||||||
$findate = str_replace('-"', '/', $row["datefin"]);
|
$findate = str_replace('-"', '/', $row["datefin"]);
|
||||||
$datefin = date("d/m/Y", strtotime($findate));
|
$datefin = date("d/m/Y", strtotime($findate));
|
||||||
$nombrejours = $row["nbjours"];
|
$nombrejours = $row["nbjours"];
|
||||||
echo "<tr><td> " . $datedebut. " </td><td> " . $datefin. " </td><td> " . $nombrejours . " jour(s) </td><td> ". $row["type"]." </td><td><a href=\"class/class.remove.php?datedebut=" . $row["datedebut"] . "&datefin=" . $row["datefin"]. "\">Supprimer la ligne</a></td></tr>";
|
echo "<tr><td> " . $datedebut. " </td><td> " . $datefin. " </td><td> " . $nombrejours . " jour(s) </td><td> ". $row["type"]." </td><td><a href=\"class/class.remove.php?datedebut=" . $row["datedebut"] . "&datefin=" . $row["datefin"]. "\" class="button">Supprimer la ligne</a></td></tr>";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo "<tr colspan='4'><td>Pas de résultat</td></tr>";
|
echo "<tr colspan='4'><td>Pas de résultat</td></tr>";
|
||||||
|
@ -52,8 +52,8 @@ $conn->close();
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<br>
|
<br>
|
||||||
<a href="class/class.clearcp.php">Supprimer les congés payés</a>
|
<a href="class/class.clearcp.php" class="button">Supprimer les congés payés</a>
|
||||||
<a href="class/class.clearrtt.php">Supprimer les RTT</a>
|
<a href="class/class.clearrtt.php" class="button">Supprimer les RTT</a>
|
||||||
<br><br>
|
<br><br>
|
||||||
<?php require('solde.php') ?>
|
<?php require('solde.php') ?>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -38,12 +38,6 @@ require('config.php');
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
|
||||||
<td>RTT</td>
|
|
||||||
|
|
||||||
<td><?php echo cumuln1rtt($rttparmois); ?> jour(s)</td>
|
|
||||||
<td>Entre en vigueur le : 1er janvier <?php anneeplus(); ?></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>Congés payés</td>
|
<td>Congés payés</td>
|
||||||
<td><?php echo cumuln1cp($cpparmois); ?> jour(s)</td>
|
<td><?php echo cumuln1cp($cpparmois); ?> jour(s)</td>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user