TimeCapsule/supinfo/report.php
2023-07-31 23:24:14 +02:00

19 lines
812 B
PHP

<?php include('header.php'); ?>
<div id="centre">
<?php
$sql = $bdd->prepare('SELECT prenom, done FROM users WHERE id = :id');
$sql->execute(array('id' => $_SESSION['ID']));
$result = $sql->fetch();
echo 'Bonjour '. $result['prenom'] .', que voudrais tu faire ?<br/>';
$config = fopen('config.txt', 'r');
$date_fin = fgets($config);
fclose($config);
if (!$result['done']) {
echo '<strong>Tu n\'a pas encore rempli ton rapport !<br/>Tu as jusqu\'au '. $date_fin .' pour le faire</strong><br/><br/>';
}
?>
<a id="consulter" href="consulter.php"><img alt="Consulter" src="imgs/attach_zoom_128.png" /><br/>Consulter les rapport</a>
<a id="envoyer" href="envoyer.php"><img alt="Envoyer" src="imgs/valider.png" /><br/>Envoyer un rapport</a><br class="clear"/>
<?php include('footer.php'); ?>