mirror of https://github.com/MISP/MISP
120 lines
3.9 KiB
PHP
120 lines
3.9 KiB
PHP
<div class="users view">
|
|
<div class="actions" style="float:right;">
|
|
<ul><li><?php echo $this->Html->link(__('Edit Profile', true), array('action' => 'edit', $user['User']['id'])); ?> </li></ul>
|
|
</div>
|
|
<h2><?php echo __('User');?></h2>
|
|
<dl>
|
|
<dt><?php echo __('Id'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['id']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Password'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['password']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Org'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['org']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Email'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['email']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Autoalert'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['autoalert']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Authkey'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['authkey']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Invited By'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['invited_by']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Gpgkey'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['gpgkey']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Nids Sid'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['nids_sid']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Termsaccepted'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['termsaccepted']); ?>
|
|
|
|
</dd>
|
|
<dt><?php echo __('Newsread'); ?></dt>
|
|
<dd>
|
|
<?php echo h($user['User']['newsread']); ?>
|
|
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
<div class="actions">
|
|
<h3><?php echo __('Actions'); ?></h3>
|
|
<ul>
|
|
<li><?php echo $this->Html->link(__('Edit User'), array('action' => 'edit', $user['User']['id'])); ?> </li>
|
|
<li><?php echo $this->Form->postLink(__('Delete User'), array('action' => 'delete', $user['User']['id']), null, __('Are you sure you want to delete # %s?', $user['User']['id'])); ?> </li>
|
|
<li><?php echo $this->Html->link(__('List Users'), array('action' => 'index')); ?> </li>
|
|
<li><?php echo $this->Html->link(__('New User'), array('action' => 'add')); ?> </li>
|
|
<li><?php echo $this->Html->link(__('List Events'), array('controller' => 'events', 'action' => 'index')); ?> </li>
|
|
<li><?php echo $this->Html->link(__('New Event'), array('controller' => 'events', 'action' => 'add')); ?> </li>
|
|
</ul>
|
|
</div>
|
|
<div class="related">
|
|
<h3><?php echo __('Related Events');?></h3>
|
|
<?php if (!empty($user['Event'])):?>
|
|
<table cellpadding = "0" cellspacing = "0">
|
|
<tr>
|
|
<th><?php echo __('Id'); ?></th>
|
|
<th><?php echo __('Org'); ?></th>
|
|
<th><?php echo __('Date'); ?></th>
|
|
<th><?php echo __('Risk'); ?></th>
|
|
<th><?php echo __('Info'); ?></th>
|
|
<th><?php echo __('User Id'); ?></th>
|
|
<th><?php echo __('Published'); ?></th>
|
|
<th><?php echo __('Uuid'); ?></th>
|
|
<th class="actions"><?php echo __('Actions');?></th>
|
|
</tr>
|
|
<?php
|
|
$i = 0;
|
|
foreach ($user['Event'] as $event): ?>
|
|
<tr>
|
|
<td><?php echo $event['id'];?></td>
|
|
<td><?php echo $event['org'];?></td>
|
|
<td><?php echo $event['date'];?></td>
|
|
<td><?php echo $event['risk'];?></td>
|
|
<td><?php echo $event['info'];?></td>
|
|
<td><?php echo $event['user_id'];?></td>
|
|
<td><?php echo $event['published'];?></td>
|
|
<td><?php echo $event['uuid'];?></td>
|
|
<td class="actions">
|
|
<?php echo $this->Html->link(__('View'), array('controller' => 'events', 'action' => 'view', $event['id'])); ?>
|
|
<?php echo $this->Html->link(__('Edit'), array('controller' => 'events', 'action' => 'edit', $event['id'])); ?>
|
|
<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'events', 'action' => 'delete', $event['id']), null, __('Are you sure you want to delete # %s?', $event['id'])); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</table>
|
|
<?php endif; ?>
|
|
|
|
<div class="actions">
|
|
<ul>
|
|
<li><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('User.id')), null, __('Are you sure you want to delete # %s?', $this->Form->value('User.id'))); ?></li>
|
|
<li> </li>
|
|
<?php echo $this->element('actions_menu'); ?>
|
|
</ul>
|
|
</div>
|
|
</div>
|