Some UI changes

- Signature / IDS Signature changed to IOC
pull/217/head
iglocska 2013-06-27 12:08:58 +02:00
parent c604241487
commit 93b39eb76d
5 changed files with 6 additions and 7 deletions

View File

@ -29,7 +29,7 @@
echo $this->Form->input('to_ids', array(
'checked' => false,
'data-content' => isset($attrDescriptions['signature']['formdesc']) ? $attrDescriptions['signature']['formdesc'] : $attrDescriptions['signature']['desc'],
'label' => 'IDS Signature?',
'label' => 'IOC',
));
echo $this->Form->input('batch_import', array(
'type' => 'checkbox',

View File

@ -29,7 +29,7 @@
echo $this->Form->input('to_ids', array(
'checked' => true,
'data-content' => isset($attrDescriptions['signature']['formdesc']) ? $attrDescriptions['signature']['formdesc'] : $attrDescriptions['signature']['desc'],
'label' => 'IDS Signature?',
'label' => 'IOC',
));
echo $this->Form->input('batch_import', array(
'type' => 'checkbox',

View File

@ -33,7 +33,7 @@ if ($isSearch == 1) {
<th><?php echo $this->Paginator->sort('type');?></th>
<th><?php echo $this->Paginator->sort('value');?></th>
<th<?php echo ' title="' . $attrDescriptions['signature']['desc'] . '"';?>>
<?php echo $this->Paginator->sort('signature');?></th>
<?php echo $this->Paginator->sort('IOC');?></th>
<th class="actions">Actions</th>
</tr>
<?php

View File

@ -10,12 +10,11 @@
*/
$imgId = h($id);
$imgRelativePath = 'orgs' . DS . $imgId . '.png';
$imgRelativePath = 'orgs/' . $imgId . '.png';
$imgAbsolutePath = APP . WEBROOT_DIR . DS . 'img' . DS . $imgRelativePath;
$imgExtraOptions = array('style' => 'float:right;');
if (file_exists($imgAbsolutePath)) {
echo $this->Html->image($imgRelativePath, Set::merge(array('alt' => $imgId,'width' => '48', 'hight' => '48'), $imgExtraOptions));
echo $this->Html->image($imgRelativePath, Set::merge(array('alt' => $imgId,'width' => '48', 'height' => '48'), $imgExtraOptions));
} else {
echo $this->Html->tag('span', $imgId, Set::merge(array('class' => 'img'), $imgExtraOptions));
}

View File

@ -145,7 +145,7 @@ if (!empty($event['Attribute'])):?>
<th>Type</th>
<th>Value</th>
<th>Related Events</th>
<th title="<?php echo $attrDescriptions['signature']['desc'];?>">IDS Signature</th>
<th title="<?php echo $attrDescriptions['signature']['desc'];?>">IOC</th>
<th title="<?php echo $attrDescriptions['private']['desc'];?>">Distribution</th>
<th class="actions">Actions</th>
</tr><?php