mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
Update network.php
This commit is contained in:
+7
-2
@@ -130,6 +130,9 @@ echo $_REQUEST['device_id'];
|
||||
</div>
|
||||
|
||||
<?php
|
||||
// #####################################
|
||||
// Create functions
|
||||
// #####################################
|
||||
function createnetworktab($pia_func_netdevid, $pia_func_netdevname, $pia_func_netdevtyp, $activetab) {
|
||||
echo '<li class="'.$activetab.'"><a href="#'.$pia_func_netdevid.'" data-toggle="tab">'.$pia_func_netdevname.' / '.$pia_func_netdevtyp.'</a></li>';
|
||||
}
|
||||
@@ -147,13 +150,15 @@ function createnetworktabcontent($pia_func_netdevid, $pia_func_netdevname, $pia_
|
||||
}
|
||||
echo '</div> ';
|
||||
}
|
||||
// #####################################
|
||||
// Build Tab Box
|
||||
// #####################################
|
||||
|
||||
$sql = 'SELECT "device_id", "net_device_name", "net_device_typ" FROM "network_infrastructure"';
|
||||
$result = $db->query($sql);//->fetchArray(SQLITE3_ASSOC);
|
||||
?>
|
||||
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
|
||||
<?php
|
||||
$i = 0;
|
||||
while($res = $result->fetchArray(SQLITE3_ASSOC)){
|
||||
|
||||
Reference in New Issue
Block a user