mirror of https://github.com/MISP/MISP
81 lines
2.3 KiB
PHP
81 lines
2.3 KiB
PHP
<div class="index">
|
|
<h2>Populate From Template Results</h2>
|
|
<p>Below you can see the attributes that are to be created based on the data that you have entered into the template. If you are satisfied with the result, click "Finalise". Otherwise, click "Modify".</p>
|
|
<table class="table table-striped table-hover table-condensed">
|
|
<tr>
|
|
<th>Category</th>
|
|
<th>Type</th>
|
|
<th>Value</th>
|
|
<th>Comment</th>
|
|
<th>IDS</th>
|
|
<th>Distribution</th>
|
|
</tr><?php
|
|
foreach ($attributes as $item):?>
|
|
<tr>
|
|
<td><?php echo h($item['category']); ?></td>
|
|
<td><?php echo h($item['type']); ?></td>
|
|
<td><?php echo h($item['value']); ?></td>
|
|
<td><?php echo h($item['comment']); ?></td>
|
|
<td><?php echo ($item['to_ids'] ? 'Yes' : 'No'); ?></td>
|
|
<td><?php echo $distributionLevels[$item['distribution']]; ?></td>
|
|
</tr><?php
|
|
endforeach;?>
|
|
</table>
|
|
<div style="float:left;">
|
|
<?php echo $this->Form->create('Template', array('url' => '/templates/submitEventPopulation/' . $template_id . '/' . $event_id));?>
|
|
<fieldset>
|
|
<?php
|
|
echo $this->Form->input('attributes', array(
|
|
'id' => 'attributes',
|
|
'label' => false,
|
|
'type' => 'hidden',
|
|
'value' => serialize($attributes),
|
|
));
|
|
?>
|
|
</fieldset>
|
|
<?php
|
|
echo $this->Form->button('Finalise', array('class' => 'btn btn-primary'));
|
|
echo $this->Form->end();
|
|
?>
|
|
</div>
|
|
<div style="float:left;width:10px;"> </div>
|
|
<div>
|
|
<?php echo $this->Form->create('Template');?>
|
|
<fieldset>
|
|
<?php
|
|
foreach ($template['Template'] as $k => $v) {
|
|
if (strpos($k, 'ile_')) $v = serialize($v);
|
|
echo $this->Form->input($k, array(
|
|
'label' => false,
|
|
'type' => 'hidden',
|
|
'value' => $v,
|
|
));
|
|
}
|
|
echo $this->Form->input('modify', array(
|
|
'label' => false,
|
|
'type' => 'hidden',
|
|
'value' => true,
|
|
));
|
|
echo $this->Form->input('errors', array(
|
|
'label' => false,
|
|
'type' => 'hidden',
|
|
'value' => serialize($errors),
|
|
));
|
|
echo $this->Form->input('fileArray', array(
|
|
'label' => false,
|
|
'type' => 'hidden',
|
|
'value' => $fileArray,
|
|
));
|
|
?>
|
|
</fieldset>
|
|
<?php
|
|
echo $this->Form->button('Modify', array('class' => 'btn btn-inverse'));
|
|
echo $this->Form->end();
|
|
?>
|
|
</div>
|
|
|
|
</div>
|
|
<?php
|
|
echo $this->element('side_menu', array('menuList' => 'regexp', 'menuItem' => 'index'));
|
|
?>
|