Small changes to support the Z/OS extension.

This commit is contained in:
Ramon Novoa 2014-12-12 12:55:46 +01:00
parent e0a80add4b
commit d46c114fd8
6 changed files with 34 additions and 2 deletions

View File

@ -14,3 +14,9 @@ ALTER TABLE tlayout_data ADD COLUMN `border_width` INTEGER UNSIGNED NOT NULL def
ALTER TABLE tlayout_data ADD COLUMN `border_color` varchar(200) DEFAULT "";
ALTER TABLE tlayout_data ADD COLUMN `fill_color` varchar(200) DEFAULT "";
-- ---------------------------------------------------------------------
-- Table `tconfig_os`
-- ---------------------------------------------------------------------
INSERT INTO `tconfig_os` (`name`, `description`, `icon_name`) VALUES ('Mainframe', 'Mainframe agent', 'so_mainframe.png');

View File

@ -1895,6 +1895,17 @@ function dame_nombre_pluginid ($id_plugin) {
return (string) db_get_value ('name', 'tplugin', 'id', (int) $id_plugin);
}
/**
* Get the operating system id.
*
* @param string Operating system name.
*
* @return id Id of the given operating system.
*/
function get_os_id ($os_name) {
return (string) db_get_value ('id_os', 'tconfig_os', 'name', $os_name);
}
/**
* Get the operating system name.
*

View File

@ -2548,6 +2548,18 @@ div.nodata_container {
#padding: 10px;
}
#rmf_data {
width: 40%;
height: 80%;
position: absolute;
top:0;
right:20px;
overflow: auto;
#background-color: #fff;
#padding: 10px;
}
/* Subtab styles */
ul.subsubmenu {
@ -2807,4 +2819,4 @@ table#policy_modules td * {
margin-bottom: 10px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
}

View File

@ -150,6 +150,7 @@ INSERT INTO tconfig_os VALUES (16, 'VMware', 'VMware Architecture', 'so_vmware.p
INSERT INTO tconfig_os VALUES (17, 'Router', 'Generic router', 'so_router.png');
INSERT INTO tconfig_os VALUES (18, 'Switch', 'Generic switch', 'so_switch.png');
INSERT INTO tconfig_os VALUES (19, 'Satellite', 'Satellite agent', 'satellite.png');
INSERT INTO tconfig_os VALUES (20, 'Mainframe', 'Mainframe agent', 'so_mainframe.png');
COMMIT;
END;;

View File

@ -148,7 +148,8 @@ INSERT INTO "tconfig_os" VALUES
(16, 'VMware', 'VMware Architecture', 'so_vmware.png'),
(17, 'Router', 'Generic router', 'so_router.png'),
(18, 'Switch', 'Generic switch', 'so_switch.png'),
(19, 'Satellite', 'Satellite agent', 'satellite.png');
(19, 'Satellite', 'Satellite agent', 'satellite.png'),
(20, 'Mainframe', 'Mainframe agent', 'so_mainframe.png');
COMMIT WORK;
SELECT setval('tconfig_os_id_os_seq', (SELECT (SELECT MAX(id_os) FROM tconfig_os)));

View File

@ -134,6 +134,7 @@ INSERT INTO `tconfig_os` (`id_os`, `name`, `description`, `icon_name`) VALUES
(17, 'Router', 'Generic router', 'so_router.png'),
(18, 'Switch', 'Generic switch', 'so_switch.png'),
(19, 'Satellite', 'Satellite agent', 'satellite.png');
(20, 'Mainframe', 'Mainframe agent', 'so_mainframe.png');
UNLOCK TABLES;