@@ -118,7 +118,7 @@ function update_source_step2(graphid)
118
118
119
119
function filterlist(previous)
120
120
{
121
- var filterstring = $('input#filterstring').val();
121
+ var filterstring = $('input#filterstring').val().toUpperCase() ;
122
122
123
123
if(filterstring=='')
124
124
{
@@ -160,16 +160,16 @@ function filterignore()
160
160
161
161
$(document).ready( function() {
162
162
$('span.filter').keyup(function() {
163
- var previous = $('input#filterstring').val();
163
+ var previous = $('input#filterstring').val().toUpperCase() ;
164
164
setTimeout(function () {filterlist(previous)}, 500);
165
165
}).show();
166
166
$('span.ignore').click(function() {
167
- var previous = $('input#filterstring').val();
167
+ var previous = $('input#filterstring').val().toUpperCase() ;
168
168
setTimeout(function () {filterlist(previous)}, 500);
169
169
});
170
170
});
171
171
172
- function update_source_step2(graphid,name,portid,ifAlias,ifDesc,ifIndex)
172
+ function update_source_step2(graphid,name,portid,ifAlias,ifDesc,ifIndex,ifSpeed )
173
173
{
174
174
var graph_url, hover_url;
175
175
@@ -184,11 +184,12 @@ function update_source_step2(graphid,name,portid,ifAlias,ifDesc,ifIndex)
184
184
opener.document.forms["frmMain"].node_label.value ='testing';
185
185
opener.document.forms["frmMain"].link_infourl.value = info_url;
186
186
opener.document.forms["frmMain"].link_hover.value = graph_url;
187
+ opener.document.forms["frmMain"].link_bandwith_in.value = ipSpeed;
187
188
}
188
189
self.close();
189
190
}
190
191
191
- function update_source_step1(dataid,name,portid,ifAlias,ifDesc,ifIndex)
192
+ function update_source_step1(dataid,name,portid,ifAlias,ifDesc,ifIndex,ifSpeed )
192
193
{
193
194
// This must be the section that looks after link properties
194
195
var newlocation;
@@ -213,7 +214,7 @@ function update_source_step1(dataid,name,portid,ifAlias,ifDesc,ifIndex)
213
214
if(document.forms['mini'].overlib.checked)
214
215
{
215
216
216
- window.onload = update_source_step2(dataid,name,portid,ifAlias,ifDesc,ifIndex);
217
+ window.onload = update_source_step2(dataid,name,portid,ifAlias,ifDesc,ifIndex,ifSpeed );
217
218
218
219
}
219
220
else
@@ -285,7 +286,7 @@ function applyDSFilterChange(objForm) {
285
286
}
286
287
287
288
// Link query
288
- $ hosts = \App \Models \Device::orderBy ('hostname ' )->get (['device_id ' , 'hostname ' ]);
289
+ $ hosts = \App \Models \Device::orderBy ('hostname ' )->get (['device_id ' , 'hostname ' , ' sysname ' ]);
289
290
?>
290
291
291
292
<h3>Pick a data source:</h3>
@@ -301,7 +302,7 @@ function applyDSFilterChange(objForm) {
301
302
{
302
303
print '<option ' ;
303
304
if ($ host_id ==$ host ['device_id ' ]) print " SELECTED " ;
304
- print 'value=" ' .$ host ['device_id ' ].'"> ' .$ host ['hostname ' ].'</option> ' ;
305
+ print 'value=" ' .$ host ['device_id ' ].'"> ' .$ host ['hostname ' ].'( ' . strtoupper ( $ host [ ' sysname ' ]). ' ) </option> ' ;
305
306
}
306
307
print '</select><br /> ' ;
307
308
}
@@ -334,9 +335,9 @@ function applyDSFilterChange(objForm) {
334
335
if (!is_null ($ device ->ports )) {
335
336
foreach ($ device ->ports as $ port ) {
336
337
echo "<li class= \"row " . ($ i % 2 ) . "\"> " ;
337
- $ key = $ device ->device_id . "',' " . $ device ->hostname . "',' " . $ port ->port_id . "',' " . addslashes ($ port ->ifAlias ) . "',' " . addslashes ($ port ->ifDescr ) . "',' " . (int )$ port ->ifIndex ;
338
+ $ key = $ device ->device_id . "',' " . $ device ->hostname . "',' " . $ port ->port_id . "',' " . addslashes ($ port ->ifAlias ) . "',' " . addslashes ($ port ->ifDescr ) . "',' " . (int )$ port ->ifIndex . " ',' " . $ port -> ifSpeed ;
338
339
339
- echo "<a href= \"# \" onclick= \"update_source_step1(' $ key') \"> " . $ device ->displayName () . "/ $ port ->ifDescr Desc: $ port ->ifAlias </a> " ;
340
+ echo "<a href= \"# \" onclick= \"update_source_step1(' $ key') \"> " . $ device ->displayName () . "<br/> " . strtoupper ( $ port ->ifDescr ). " <br/> Desc: " . strtoupper ( $ port ->ifAlias ). " <br/> Speed: $ port -> ifSpeed </a> " ;
340
341
echo "</li> \n" ;
341
342
}
342
343
$ i ++;
@@ -372,7 +373,7 @@ function applyDSFilterChange(objForm) {
372
373
$ host_id = intval ($ _REQUEST ['host_id ' ]);
373
374
}
374
375
375
- $ hosts = \App \Models \Device::orderBy ('hostname ' )->get (['device_id AS id ' , 'hostname AS name ' ]);
376
+ $ hosts = \App \Models \Device::orderBy ('hostname ' )->get (['device_id AS id ' , 'hostname AS name ' , ' sysname AS sysname ' ]);
376
377
377
378
?>
378
379
<html>
@@ -382,7 +383,7 @@ function applyDSFilterChange(objForm) {
382
383
383
384
function filterlist(previous)
384
385
{
385
- var filterstring = $('input#filterstring').val();
386
+ var filterstring = $('input#filterstring').val().toUpperCase() ;
386
387
387
388
if(filterstring=='')
388
389
{
@@ -400,7 +401,7 @@ function filterlist(previous)
400
401
401
402
$(document).ready( function() {
402
403
$('span.filter').keyup(function() {
403
- var previous = $('input#filterstring').val();
404
+ var previous = $('input#filterstring').val().toUpperCase() ;
404
405
setTimeout(function () {filterlist(previous)}, 500);
405
406
}).show();
406
407
});
@@ -481,7 +482,7 @@ function update_source_step1(graphid,name)
481
482
{
482
483
print '<option ' ;
483
484
if ($ host_id ==$ host ['id ' ]) print " SELECTED " ;
484
- print 'value=" ' .$ host ['id ' ].'"> ' .$ host ['name ' ].'</option> ' ;
485
+ print 'value=" ' .$ host ['id ' ].'"> ' .$ host ['name ' ].'( ' . strtoupper ( $ host [ ' sysname ' ]). ' ) </option> ' ;
485
486
}
486
487
print '</select><br /> ' ;
487
488
}
0 commit comments