Starting the OS type treeview.

This commit is contained in:
mdtrooper 2014-12-19 18:39:18 +01:00
parent 019bf4c926
commit 1e47df9ab2
3 changed files with 12 additions and 0 deletions

View File

@ -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);

View File

@ -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) {

View File

@ -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;
}
?>