'); $actions .= ' View device '; $actions .= ('
'); $actions .= ' View alerts '; $actions .= '
'; if ($_SESSION['userlevel'] >= "7") { $actions .= ('
Edit device
'); } $actions .= ('
telnet
ssh
https
'); $hostname = generate_device_link($device); $platform = $device['hardware'] . '
' . $device['features']; $os = $device['os_text'] . '
' . $device['version']; $uptime = formatUptime($device['uptime'], 'short') . '
' . truncate($device['location'],32, ''); if ($subformat == "detail") { $hostname .= '
' . $device['sysName']; if ($port_count) { $col_port = ' '.$port_count . '
'; } if ($sensor_count) { $col_port .= ' '.$sensor_count; } } else { } $response[] = array('extra'=>$extra,'msg'=>$msg,'icon'=>$image,'hostname'=>$hostname,'ports'=>$col_port,'hardware'=>$platform,'os'=>$os,'uptime'=>$uptime,'actions'=>$actions); } $output = array('current'=>$current,'rowCount'=>$rowCount,'rows'=>$response,'total'=>$total); echo _json_encode($output);