format
This commit is contained in:
parent
bb9e2f4adb
commit
5d65d6294f
32
inc/menu.inc
32
inc/menu.inc
@ -34,14 +34,11 @@ $script_name = filter_input(INPUT_SERVER, 'SCRIPT_NAME', FILTER_SANITIZE_STRING)
|
||||
|
||||
if (preg_match('/ste|proc/', $script_name)) {
|
||||
$ops = " class='active'";
|
||||
}
|
||||
elseif (preg_match('/results/', $script_name)) {
|
||||
} elseif (preg_match('/results/', $script_name)) {
|
||||
$results = " class='active'";
|
||||
}
|
||||
elseif (preg_match('/data/', $script_name)) {
|
||||
} elseif (preg_match('/data/', $script_name)) {
|
||||
$data = " class='active'";
|
||||
}
|
||||
elseif (preg_match('/report/', $script_name)) {
|
||||
} elseif (preg_match('/report/', $script_name)) {
|
||||
$report = " class='active'";
|
||||
}
|
||||
?>
|
||||
@ -55,11 +52,11 @@ elseif (preg_match('/report/', $script_name)) {
|
||||
$("dd[id^='smenu']").hide();
|
||||
if (id && typeof id == 'string') {
|
||||
$('#' + id).show();
|
||||
}
|
||||
var ele = $('#' + id).parent().children('dt');
|
||||
$('#' + id).css('left', ele.position().left + ele.width());
|
||||
$('#' + id).css('top', ele.position().top + ele.height());
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
@ -69,6 +66,7 @@ elseif (preg_match('/report/', $script_name)) {
|
||||
list-style-type: none;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
#menu {
|
||||
width: 25px;
|
||||
display: table-cell;
|
||||
@ -91,12 +89,14 @@ elseif (preg_match('/report/', $script_name)) {
|
||||
#menu ul {
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
#menu li {
|
||||
text-align: center;
|
||||
font-size: 85%;
|
||||
height: 18px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
#menu li a, #menu dt a {
|
||||
color: #000;
|
||||
text-decoration: none;
|
||||
@ -116,21 +116,18 @@ elseif (preg_match('/report/', $script_name)) {
|
||||
<?php if (file_exists(DOC_ROOT . "/proc")) { ?>
|
||||
<li><a href="/proc">Procedural Operations</a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</li>
|
||||
</ul></li>
|
||||
<li <?php print $results; ?>><a href="javascript:void(0);">Scans</a>
|
||||
<ul>
|
||||
<li><a href="/results">Results</a></li>
|
||||
<li><a href="/results/?add_scan=1">Add Scan</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul></li>
|
||||
<?php if (file_exists(DOC_ROOT . "/report")) { ?>
|
||||
<li <?php print $report; ?>><a href="javascript:void(0);">Report</a>
|
||||
<ul>
|
||||
<li><a href="/report/sanity.php?step=1">Sanity Check</a></li>
|
||||
<li><a href="/report/create.php">Create Risk Assessment</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul></li>
|
||||
<?php } ?>
|
||||
<li <?php print $data; ?>><a href="javascript:void(0);">Management</a>
|
||||
<ul>
|
||||
@ -141,11 +138,12 @@ elseif (preg_match('/report/', $script_name)) {
|
||||
<li><a href="/data/?p=Settings">Settings</a></li>
|
||||
<li><a href="/data/?p=Search">Search</a></li>
|
||||
<li><a href="/data/?p=TgtSearch">Target Search</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul></li>
|
||||
<li>
|
||||
<form method="post" action="/data/?p=Search" target="_blank" style="display:inline-block;">
|
||||
<input type="text" style="vertical-align:text-bottom;" name="q" placeholder="Search..." />
|
||||
<form method="post" action="/data/?p=Search" target="_blank"
|
||||
style="display: inline-block;">
|
||||
<input type="text" style="vertical-align: text-bottom;" name="q"
|
||||
placeholder="Search..." />
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user