case "info": switch ($submode) { default: $tblsp = new Tablespace($Server); $tblsp->setName($Tablespacename); $tblsp->getData(); $data = array(); if (is_array($tblsp->data)) { foreach ($tblsp->data as $name => $val) { $data[] = array("Tag" => $name, "Value" => $val); } } unset($tblsp); $tbl = new Datatable($Server); $tbl->setSorting(0); $tbl->setData($data); unset($data); $tbl->setColorToggle(1); $tbl->renderHTML(); $html .= $tbl->getHTML(); unset($tbl); } // end switch submode break; case "datafiles": switch ($submode) { default: $tbl = new DataTable($Server); $tbl->setSql(sprintf("SELECT file_name \"Filename\", bytes / 1024 \"Kilobytes\", " . "status \"Status\" FROM dba_data_files WHERE tablespace_name = '%s' " . "ORDER BY file_name", $Tablespacename)); $tbl->setSorting(1); $tbl->setSort($Sortfield, $Sortorder);