mirror of https://github.com/MISP/MISP
35 lines
1.1 KiB
PHP
Executable File
35 lines
1.1 KiB
PHP
Executable File
<div class="users index">
|
|
<h2>Members</h2>
|
|
<table class="table table-striped table-condensed table-bordered" style="width:300px;">
|
|
<tr>
|
|
<th>Organisation</th>
|
|
<th># of members</th>
|
|
<th>Logo</th>
|
|
</tr>
|
|
<?php
|
|
foreach ($orgs as $org):?>
|
|
<tr>
|
|
<td><?php echo h($org['User']['org']); ?> </td>
|
|
<td><?php echo h($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; ?>
|
|
</table>
|
|
<div id = "histogram"></div>
|
|
<?php //echo $this->element('histogram');?>
|
|
<br /><br />
|
|
</div>
|
|
<?php
|
|
echo $this->element('side_menu', array('menuList' => 'globalActions', 'menuItem' => 'members'));
|
|
?>
|
|
<script type="text/javascript">
|
|
// tooltips
|
|
$(document).ready(function () {
|
|
updateHistogram('');
|
|
});
|
|
</script>
|