width = '100%';
$table->class = 'databox data';
$table->head[0] = '';
$table->head[1] = __('ID');
$table->head[2] = __('Name');
$table->head[3] = __('Description');
$table->head[4] = '';
$table->align[0] = 'center';
$table->align[4] = 'center';
$table->size[0] = '20px';
$table->size[4] = '20px';
$osList = db_get_all_rows_in_table('tconfig_os');
if ($osList === false) {
$osList = array();
}
$table->data = array();
foreach ($osList as $os) {
$data = array();
$data[] = ui_print_os_icon($os['id_os'], false, true);
$data[] = $os['id_os'];
$data[] = '' . io_safe_output($os['name']) . '';
$data[] = ui_print_truncate_text(io_safe_output($os['description']), 'description', true, true);
if ($os['id_os'] > 16) {
$data[] = '' . html_print_image("images/cross.png", true) . '';
}
else {
//The original icons of pandora don't delete.
$data[] = '';
}
$table->data[] = $data;
}
if (isset($data)) {
html_print_table($table);
}
else {
ui_print_info_message ( array('no_close'=>true, 'message'=> __('There are no defined operating systems') ) );
}
?>