Commit 266e862f authored by Stephane Crozat's avatar Stephane Crozat
Browse files

Ajout affichage date de début et de fin des Api auxquelles on est inscrit)

parent ad4c56e1
......@@ -30,7 +30,6 @@ class DB {
$sql = "SELECT *
FROM vsubscription
WHERE utclogin='".$utclogin."'";
echo $sql;
$st = $this->conn->prepare($sql);
$res = $st->fetchAll(PDO::FETCH_ASSOC);
......@@ -42,7 +41,7 @@ class DB {
foreach ($res as $row) {
echo '<p>';
echo ' <a href="index.php?action=unsub&api='.$row['code'].'&utclogin='.$utclogin.'">[désinscription]</a> ';
echo $row['code']."-".$row['name']." (".$row['semester'].$row['year'].") [le ".$row['subdate']."]";
echo $row['code']."-".$row['name']." (".$row['semester'].$row['year'].", du ".$row['dbegin']." au ".$row['dend'].") [inscrit le ".$row['subdate']."]";
echo '</p>';
......@@ -34,7 +34,7 @@ INSERT INTO subscribe VALUES (
SELECT ap.code,, ap.year, ap.semester, TO_CHAR(ap.dbegin,'TMDay FMDD TMMonth') AS dbegin, TO_CHAR(ap.dend,'TMDay FMDD TMMonth') AS dend
SELECT ap.code,, ap.year, ap.semester, TO_CHAR(ap.dbegin,'TMday FMDD TMmonth') AS dbegin, TO_CHAR(ap.dend,'TMday FMDD TMmonth') AS dend
FROM api ap
ORDER BY ap.year, ap.semester, ap.dbegin, ap.dend, ap.code;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment