Starting the OS type treeview.
This commit is contained in:
parent
019bf4c926
commit
1e47df9ab2
|
@ -22,6 +22,7 @@ if (is_ajax ()) {
|
|||
|
||||
require_once($config['homedir'] . "/include/class/Tree.class.php");
|
||||
require_once($config['homedir'] . "/include/functions_reporting.php");
|
||||
require_once($config['homedir'] . "/include/functions_os.php");
|
||||
|
||||
$getChildren = (bool)get_parameter('getChildren', 0);
|
||||
$getGroupStatus = (bool)get_parameter('getGroupStatus', 0);
|
||||
|
|
|
@ -63,6 +63,9 @@ class Tree {
|
|||
}
|
||||
|
||||
public function getDataOS() {
|
||||
$list_os = os_get_os();
|
||||
|
||||
html_debug_print($list_os);
|
||||
}
|
||||
|
||||
private function getRecursiveGroup($parent, $limit = null) {
|
||||
|
|
|
@ -66,4 +66,12 @@ function os_get_name($id_os) {
|
|||
return db_get_value ('name', 'tconfig_os', 'id_os', (int) $id_os);
|
||||
}
|
||||
|
||||
|
||||
function os_get_os() {
|
||||
$op_systems = db_get_all_rows_in_table('tconfig_os');
|
||||
if (empty($op_systems))
|
||||
$op_systems = array();
|
||||
|
||||
return $op_systems;
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue