mirror of https://github.com/MISP/MISP
chg: [event:view] Added first_seen/last_seen column (event, server and
feed)pull/4743/head
parent
e9bc02de25
commit
ea7e7951b9
|
@ -54,6 +54,9 @@
|
|||
<td class="short context hidden">
|
||||
<?php echo h($object['uuid']); ?>
|
||||
</td>
|
||||
<td class="short context hidden">
|
||||
<?php echo $this->element('/Events/View/seen_field', array('object' => $object)); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<?php echo date('Y-m-d', $object['timestamp']); ?>
|
||||
</td>
|
||||
|
|
|
@ -36,6 +36,9 @@
|
|||
<td class="short context hidden">
|
||||
<?php echo h($object['uuid']); ?>
|
||||
</td>
|
||||
<td class="short context hidden">
|
||||
<?php echo $this->element('/Events/View/seen_field', array('object' => $object)); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<?php echo date('Y-m-d', $object['timestamp']); ?>
|
||||
</td>
|
||||
|
|
|
@ -49,6 +49,9 @@
|
|||
<td class="short context hidden">
|
||||
<?php echo $object['objectType'] == 0 ? h($object['uuid']) : ' '; ?>
|
||||
</td>
|
||||
<td class="short context hidden">
|
||||
<?php echo $this->element('/Events/View/seen_field', array('object' => $object)); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<div id = "<?php echo $currentType . '_' . $object['id'] . '_timestamp_solid'; ?>">
|
||||
<?php
|
||||
|
|
|
@ -50,6 +50,9 @@
|
|||
<td class="short context hidden">
|
||||
<?php echo h($object['uuid']); ?>
|
||||
</td>
|
||||
<td class="short context hidden">
|
||||
<?php echo $this->element('/Events/View/seen_field', array('object' => $object)); ?>
|
||||
</td>
|
||||
<td style="font-weight:bold;text-align:left;">DELETE</td>
|
||||
<?php
|
||||
if ($extended):
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<?php if ($object['first_seen'] != null || $object['last_seen'] != null): ?>
|
||||
<div>
|
||||
<div><?php echo $object['first_seen'] != null ? h($object['first_seen']) : '<span style="display: block; text-align:center;">_</span>'; ?></div>
|
||||
<i style="display: block; text-align: center;" class="fas fa-arrow-down"></i>
|
||||
<div><?php echo $object['last_seen'] != null ? h($object['last_seen']) : '<span style="display: block; text-align:center;">_</span>'; ?></div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div></div>
|
||||
<?php endif; ?>
|
|
@ -23,6 +23,9 @@ if ($object['value'] == 'MERGE') debug($object);
|
|||
<td class="short">
|
||||
<?php echo date('Y-m-d', $object['timestamp']); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<?php echo $this->element('/Servers/View/seen_field', array('object' => $object)); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<div id = "Attribute_<?php echo $object['uuid']; ?>_category_solid" class="inline-field-solid">
|
||||
<?php echo h($object['category']); ?>
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
<td class="short">
|
||||
<?php echo date('Y-m-d', $object['timestamp']); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<?php echo $this->element('/Servers/View/seen_field', array('object' => $object)); ?>
|
||||
</td>
|
||||
<td colspan="<?php echo $fieldCount -2;?>">
|
||||
<span class="bold"><?php echo __('Name: ');?></span><?php echo h($object['name']);?>
|
||||
<span class="fa fa-expand useCursorPointer" title="<?php echo __('Expand or Collapse');?>" role="button" tabindex="0" aria-label="<?php echo __('Expand or Collapse');?>" data-toggle="collapse" data-target="#Object_<?php echo h($object['uuid']); ?>_collapsible"></span>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<?php if (array_key_exists('first_seen', $object) && ($object['first_seen'] != null || $object['last_seen'] != null)): ?>
|
||||
<div>
|
||||
<div><?php echo $object['first_seen'] != null ? h($object['first_seen']) : '<span style="display: block; text-align:center;">_</span>'; ?></div>
|
||||
<i style="display: block; text-align: center;" class="fas fa-arrow-down"></i>
|
||||
<div><?php echo $object['last_seen'] != null ? h($object['last_seen']) : '<span style="display: block; text-align:center;">_</span>'; ?></div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div></div>
|
||||
<?php endif; ?>
|
|
@ -39,6 +39,7 @@
|
|||
<table class="table table-striped table-condensed">
|
||||
<tr>
|
||||
<th><?php echo $this->Paginator->sort('timestamp', __('Date'));?></th>
|
||||
<th><?php echo __('First seen') ?> <i class="fas fa-arrow-right"></i> <?php echo __('Last seen') ?></th>
|
||||
<th><?php echo $this->Paginator->sort('category');?></th>
|
||||
<th><?php echo $this->Paginator->sort('type');?></th>
|
||||
<th><?php echo $this->Paginator->sort('value');?></th>
|
||||
|
|
|
@ -23,6 +23,9 @@ if ($object['value'] == 'MERGE') debug($object);
|
|||
<td class="short">
|
||||
<?php echo date('Y-m-d', $object['timestamp']); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<?php echo $this->element('/Servers/View/seen_field', array('object' => $object)); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<div id = "Attribute_<?php echo $object['id']; ?>_category_placeholder" class = "inline-field-placeholder"></div>
|
||||
<div id = "Attribute_<?php echo $object['id']; ?>_category_solid" class="inline-field-solid" ondblclick="activateField('Attribute', '<?php echo $object['id']; ?>', 'category', <?php echo $event['Event']['id'];?>);">
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
<td class="short">
|
||||
<?php echo date('Y-m-d', $object['timestamp']); ?>
|
||||
</td>
|
||||
<td class="short">
|
||||
<?php echo $this->element('/Servers/View/seen_field', array('object' => $object)); ?>
|
||||
</td>
|
||||
<td colspan="<?php echo $fieldCount -2;?>">
|
||||
<span class="bold"><?php echo __('Name');?>: </span><?php echo h($object['name']);?>
|
||||
<span class="fa fa-expand useCursorPointer" title="<?php echo __('Expand or Collapse');?>" role="button" tabindex="0" aria-label="<?php echo __('Expand or Collapse');?>" data-toggle="collapse" data-target="#Object_<?php echo h($object['id']); ?>_collapsible"></span>
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
<?php if (array_key_exists('first_seen', $object) && ($object['first_seen'] != null || $object['last_seen'] != null)): ?>
|
||||
<div>
|
||||
<div><?php echo $object['first_seen'] != null ? h($object['first_seen']) : '<span style="display: block; text-align:center;">_</span>'; ?></div>
|
||||
<i style="display: block; text-align: center;" class="fas fa-arrow-down"></i>
|
||||
<div><?php echo $object['last_seen'] != null ? h($object['last_seen']) : '<span style="display: block; text-align:center;">_</span>'; ?></div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div></div>
|
||||
<?php endif; ?>
|
|
@ -39,6 +39,7 @@
|
|||
<table class="table table-striped table-condensed">
|
||||
<tr>
|
||||
<th><?php echo $this->Paginator->sort('timestamp', __('Date'));?></th>
|
||||
<th><?php echo __('First seen') ?> <i class="fas fa-arrow-right"></i> <?php echo __('Last seen') ?></th>
|
||||
<th><?php echo $this->Paginator->sort('category');?></th>
|
||||
<th><?php echo $this->Paginator->sort('type');?></th>
|
||||
<th><?php echo $this->Paginator->sort('value');?></th>
|
||||
|
|
|
@ -135,6 +135,7 @@
|
|||
?>
|
||||
<th class="context hidden"><?php echo $this->Paginator->sort('id');?></th>
|
||||
<th class="context hidden">UUID</th>
|
||||
<th class="context hidden"><?php echo __('First seen') ?> <i class="fas fa-arrow-right"></i> <?php echo __('Last seen') ?></th>
|
||||
<th><?php echo $this->Paginator->sort('timestamp', __('Date'), array('direction' => 'desc'));?></th>
|
||||
<?php
|
||||
if ($extended):
|
||||
|
|
Loading…
Reference in New Issue