Commit 61e3e78d authored by stph's avatar stph
Browse files

Unable photos, change listing button

parent fc0d450e
...@@ -61,7 +61,7 @@ class Views { ...@@ -61,7 +61,7 @@ class Views {
} }
private function printApi($row) { private function printApi($row) {
return "$row[normcode] - $row[name] (du $row[normdbegin] au $row[normdend]) [Demandes $row[nbask] | Inscriptions $row[nbval]/$row[size]]"; return "$row[normcode] - $row[name] (du $row[normdbegin] au $row[normdend]) (Demandes $row[nbask] | Inscriptions $row[nbval]/$row[size])";
} }
private function printWeek($row) { private function printWeek($row) {
...@@ -166,7 +166,8 @@ class Views { ...@@ -166,7 +166,8 @@ class Views {
if ($api != $sub['id']) { if ($api != $sub['id']) {
$api = $sub['id']; $api = $sub['id'];
echo '<hr/>'; echo '<hr/>';
echo "<h2><a href='api.php?api=$api'>".$this->printApi($sub).' 📷</a></h2>'; echo "<h2>".$this->printApi($sub)."<a href='api.php?api=$api'> [listing]</a></h2>";
echo "<h3></h3>";
} }
if ($sub['utclogin']) { if ($sub['utclogin']) {
if ($sub['validation']) { if ($sub['validation']) {
...@@ -223,8 +224,8 @@ class Views { ...@@ -223,8 +224,8 @@ class Views {
foreach ($students as $s) { foreach ($students as $s) {
echo "<div class='student'> echo "<div class='student'>
<img src='https://demeter.utc.fr/portal/pls/portal30/portal30.get_photo_utilisateur?username=$s[utclogin]' <img src='https://demeter.utc.fr/portal/pls/portal30/portal30.get_photo_utilisateur?username=$s[utclogin]'
height='100px' height='0px'
width='100px'/> width='0px'/>
<span class='name'>$s[surname] $s[firstname] | $s[level] | <a href='mailto:$s[email]'>$s[email]</a> ($s[utclogin])</span> <span class='name'>$s[surname] $s[firstname] | $s[level] | <a href='mailto:$s[email]'>$s[email]</a> ($s[utclogin])</span>
</div>"; </div>";
} }
......
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