2013-05-06 16:53:54 +02:00
|
|
|
<div class="index">
|
|
|
|
<h2>Results of the import: </h2>
|
|
|
|
<h3><?php echo count($attributes); ?> attributes created successfully, <?php echo count($fails); ?> indicators could not be mapped and saved. </h3>
|
|
|
|
<br /><br />
|
|
|
|
<?php
|
|
|
|
if (0 != count($attributes)): ?>
|
|
|
|
<h4>Successfully added attributes:</h4>
|
2013-06-02 13:51:41 +02:00
|
|
|
<table class="table table-striped table-hover table-condensed">
|
2013-05-06 16:53:54 +02:00
|
|
|
<tr>
|
|
|
|
<th>Uuid</th>
|
|
|
|
<th>Category</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Value</th>
|
|
|
|
</tr><?php
|
|
|
|
foreach ($attributes as $attribute): ?>
|
|
|
|
<tr>
|
|
|
|
<td class="short"><?php echo h($attribute['uuid']); ?> </td>
|
|
|
|
<td class="short"><?php echo h($attribute['category']); ?> </td>
|
|
|
|
<td class="short"><?php echo h($attribute['type']); ?> </td>
|
|
|
|
<td class="short"><?php echo h($attribute['value']); ?> </td>
|
|
|
|
</tr><?php
|
|
|
|
endforeach; ?>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
|
|
endif;?>
|
|
|
|
<?php
|
2013-05-08 09:57:18 +02:00
|
|
|
if (isset($fails)):?>
|
2013-05-06 16:53:54 +02:00
|
|
|
<br /><br />
|
|
|
|
<h4>Failed indicators:</h4>
|
2013-06-02 13:51:41 +02:00
|
|
|
<table class="table table-striped table-hover table-condensed">
|
2013-05-06 16:53:54 +02:00
|
|
|
<tr>
|
|
|
|
<th>Uuid</th>
|
|
|
|
<th>Search term</th>
|
|
|
|
<th>Content</th>
|
|
|
|
</tr><?php
|
|
|
|
foreach ($fails as $fail): ?>
|
|
|
|
<tr>
|
2013-05-29 13:42:04 +02:00
|
|
|
<td class="short"><?php echo h($fail['uuid']); ?> </td>
|
|
|
|
<td class="short"><?php echo h($fail['search']); ?> </td>
|
|
|
|
<td class="short"><?php echo h($fail['value']); ?> </td>
|
2013-05-06 16:53:54 +02:00
|
|
|
</tr><?php
|
|
|
|
endforeach; ?>
|
2013-05-29 13:42:04 +02:00
|
|
|
</table><br /><br />
|
2013-06-03 11:01:14 +02:00
|
|
|
<div class="visualisation">
|
2013-05-29 13:42:04 +02:00
|
|
|
<h4>Visualisation:</h4>
|
2013-05-06 16:53:54 +02:00
|
|
|
<?php
|
2013-05-29 13:42:04 +02:00
|
|
|
endif;
|
|
|
|
foreach ($graph as $line): ?>
|
|
|
|
<div style="white-space:pre-wrap; color: <?php echo ($line[1] ? 'green' : 'red'); ?>"><?php echo h($line[0]); ?>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
endforeach; ?>
|
2013-05-06 16:53:54 +02:00
|
|
|
</div>
|
2013-06-03 11:01:14 +02:00
|
|
|
</div>
|
2013-10-24 16:41:42 +02:00
|
|
|
<?php
|
|
|
|
$event['Event']['id'] = $eventId;
|
|
|
|
$event['Event']['published'] = 0;
|
|
|
|
echo $this->element('side_menu', array('menuList' => 'event', 'menuItem' => 'addIOC', 'event' => $event));
|
|
|
|
?>
|