Commit d08e596d authored by Stephane Crozat's avatar Stephane Crozat

Fix #1

parent 205ac5a8
......@@ -14,7 +14,11 @@ class Views {
}
public static function printUser($utclogin, $surname, $firstname) {
echo '<p><i>'.$firstname.' '. $surname.'</i> (<b>'.$utclogin.'</b>)</p>';
echo '<p><i>'.$firstname.' '. $surname.'</i> (<b>'.$utclogin.'</b>)</p>';
}
private static function printApi($row) {
return $row['normcode'].' - '.$row['name'].' (du '.$row['dbegin'].' au '.$row['dend'].')';
}
public static function printSubList($list, $utclogin) {
......@@ -23,7 +27,8 @@ class Views {
foreach ($list 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'].', du '.$row['dbegin'].' au '.$row['dend'].') [inscrit le '.$row['subdate'].']';
echo Views::printApi($row);
echo ' ['.$row['semester'].$row['year'].', inscrit le '.$row['subdate'].']';
echo '</p>';
}
}
......@@ -38,7 +43,7 @@ class Views {
foreach ($list as $row) {
echo '<p>';
echo '<a href="index.php?action=sub&api='.$row['code'].'&utclogin='.$utclogin.'">[inscription]</a> ';
echo $row['code'].'-'.$row['name'];
echo Views::printApi($row);
echo '</p>';
}
}
......@@ -46,4 +51,7 @@ class Views {
echo '<h2>Aucune Api</h2>';
}
}
}
Markdown is supported
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