71 lines
2.1 KiB
PHP
71 lines
2.1 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Observium Network Management and Monitoring System
|
|
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
|
|
*
|
|
* @package observium
|
|
* @subpackage webui
|
|
* @author Adam Armstrong <adama@observium.org>
|
|
* @copyright (C) Adam Armstrong
|
|
*
|
|
*/
|
|
|
|
?>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<?php
|
|
|
|
$form = ['type' => 'rows',
|
|
'space' => '5px',
|
|
'submit_by_key' => TRUE,
|
|
'url' => generate_url($vars)];
|
|
|
|
$form['row'][0]['ip_version'] = [
|
|
'type' => 'select',
|
|
'name' => 'IP',
|
|
'width' => '100%',
|
|
'value' => $vars['ip_version'],
|
|
'values' => ['' => 'IPv4 & IPv6', '4' => 'IPv4 only', '6' => 'IPv6 only']];
|
|
$form['row'][0]['searchby'] = [
|
|
'type' => 'select',
|
|
'name' => 'Search By',
|
|
'width' => '100%',
|
|
'onchange' => "$('#address').prop('placeholder', $('#searchby option:selected').text())",
|
|
'value' => $vars['searchby'],
|
|
'values' => ['mac' => 'MAC Address', 'ip' => 'IP Address']];
|
|
$form['row'][0]['address'] = [
|
|
'type' => 'text',
|
|
'name' => ($vars['searchby'] == 'ip' ? 'IP Address' : 'MAC Address'),
|
|
'width' => '100%',
|
|
'grid' => 4,
|
|
'placeholder' => TRUE,
|
|
'submit_by_key' => TRUE,
|
|
'value' => escape_html($vars['address'])];
|
|
// search button
|
|
$form['row'][0]['search'] = [
|
|
'type' => 'submit',
|
|
'grid' => 4,
|
|
//'name' => 'Search',
|
|
//'icon' => 'icon-search',
|
|
'value' => 'arp',
|
|
'right' => TRUE];
|
|
|
|
print_form($form);
|
|
unset($form, $form_items);
|
|
|
|
// Pagination
|
|
$vars['pagination'] = TRUE;
|
|
|
|
print_arptable($vars);
|
|
|
|
?>
|
|
|
|
</div> <!-- col-md-12 -->
|
|
|
|
</div> <!-- row -->
|
|
<?php
|
|
|
|
// EOF
|