mirror of https://github.com/MISP/MISP
Show the org logo in the memberslist
parent
a2c8ca759d
commit
4ce6ec9a46
|
@ -4,13 +4,18 @@
|
|||
<tr>
|
||||
<th>Organisation</th>
|
||||
<th># of members</th>
|
||||
<th>Logo</th>
|
||||
</tr>
|
||||
<?php
|
||||
foreach ($orgs as $org):?>
|
||||
<tr>
|
||||
<td><?php echo $org['User']['org']; ?> </td>
|
||||
<td><?php echo $org[0]['num_members']; ?> </td>
|
||||
|
||||
<?php
|
||||
$imgRelativePath = 'orgs' . DS . h($org['User']['org']) . '.png';
|
||||
$imgAbsolutePath = APP . WEBROOT_DIR . DS . 'img' . DS . $imgRelativePath;
|
||||
?>
|
||||
<td><?php if (file_exists($imgAbsolutePath)) echo $this->Html->image('orgs/' . h($org['User']['org']) . '.png', array('alt' => h($org['User']['org']),'width' => '48','hight' => '48'));?> </td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach; ?>
|
||||
|
|
Loading…
Reference in New Issue