mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-22 18:18:46 +02:00
- Completely revamped welcome page and configuration management overview in order to streamline the configuration menu.
SVN:trunk[821]
This commit is contained in:
@@ -1,20 +1,175 @@
|
||||
<h1><itopstring>UI:ConfigurationManagementMenu:Title</itopstring></h1>
|
||||
<table border="0" padding="5" class="layout" width="100%">
|
||||
<tr>
|
||||
<td class="dashboard">
|
||||
<itopblock BlockClass="DisplayBlock" type="open_flash_chart" parameters="chart_type:pie;group_by:status;chart_title:UI-ConfigurationManagementMenu-InfraByStatus" asynchronous="false" encoding="text/oql">SELECT FunctionalCI</itopblock>
|
||||
</td>
|
||||
<td class="dashboard">
|
||||
<itopblock BlockClass="DisplayBlock" type="open_flash_chart" parameters="chart_type:bars;group_by:finalclass;chart_title:UI-ConfigurationManagementMenu-InfraByType" asynchronous="false" encoding="text/oql">SELECT FunctionalCI</itopblock>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="dashboard">
|
||||
<h2><itopstring>UI-ConfigurationManagementMenu-InfraByType</itopstring></h2>
|
||||
<itopblock BlockClass="DisplayBlock" type="count" parameters="group_by:finalclass" asynchronous="false" encoding="text/oql">SELECT FunctionalCI</itopblock>
|
||||
</td>
|
||||
<td>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<style>
|
||||
.main_container {
|
||||
width: 100%;
|
||||
border: 0;
|
||||
overflow-y: hidden;
|
||||
overflow-x: hidden;
|
||||
margin-bottom: 5px;
|
||||
margin-top: 5px;
|
||||
border-bottom: #ccc 1px solid;
|
||||
border-top: #ccc 1px solid;
|
||||
}
|
||||
.main_header {
|
||||
width:100%;
|
||||
height: 60px;
|
||||
cursor: move;
|
||||
background-color: #F1F1F6;
|
||||
}
|
||||
.main_header h1 {
|
||||
color: #1C94C4;
|
||||
margin-top:0;
|
||||
margin-bottom:0;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;p
|
||||
font-size: 16px;
|
||||
line-height: 16px;
|
||||
}
|
||||
.main_header img {
|
||||
margin-top: 10px;
|
||||
margin-right: 10px;
|
||||
float:left;
|
||||
}
|
||||
.item {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
background-color: #fff;
|
||||
padding: 5px;
|
||||
height: auto;
|
||||
}
|
||||
.main_menu {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
height: auto;
|
||||
background-color: #eee;
|
||||
width: 100%;
|
||||
}
|
||||
.element {
|
||||
display: inline-block;
|
||||
}
|
||||
.element a {
|
||||
font-size: 10px;
|
||||
}
|
||||
.element a.actions {
|
||||
font-size: 16px;
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
color: #666;
|
||||
}
|
||||
.element a img {
|
||||
border: 0;
|
||||
}
|
||||
.summary-details {
|
||||
float:right;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.summary-details td {
|
||||
text-align: center;
|
||||
background: transparent;
|
||||
padding: 5px;
|
||||
}
|
||||
.summary-details th {
|
||||
text-align: center;
|
||||
background: #CCC;
|
||||
padding: 5px;
|
||||
color: #eee;
|
||||
}
|
||||
a.summary {
|
||||
text-decoration: none;
|
||||
background: transparent;
|
||||
color: #666;
|
||||
}
|
||||
a.summary:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
<div id="ci_menu" class="sortable persistent">
|
||||
|
||||
<!-- ######################################### -->
|
||||
|
||||
<div id="menu_1" class="main_container v-resizable">
|
||||
|
||||
<div class="main_header drag_handle" id="config_devices">
|
||||
<img src="../modules/itop-config-mgmt-1.0.0/images/server.png"/>
|
||||
<itopblock BlockClass="DisplayBlock" type="summary" asynchronous="false" encoding="text/oql" parameters="title[block]:Menu_ConfigManagement_Devices;context_filter:1;label[block]:Menu_ConfigManagement_AllDevices;status[block]:status;status_codes[block]:implementation,production,obsolete">SELECT Device</itopblock>
|
||||
</div><!-- Drag Handle -->
|
||||
|
||||
<div class="item">
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT Server</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT NetworkDevice</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT PC</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT MobilePhone</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT Printer</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
</div><!-- item -->
|
||||
|
||||
</div><!-- menu_1 -->
|
||||
|
||||
<!-- ######################################### -->
|
||||
|
||||
<div id="menu_2" class="main_container v-resizable">
|
||||
|
||||
<div class="main_header drag_handle" id="config_applications">
|
||||
<img src="../modules/itop-config-mgmt-1.0.0/images/application.png"/>
|
||||
<h1><itopstring>Menu:ConfigManagement:SWAndApps</itopstring></h1>
|
||||
</div><!-- Drag Handle -->
|
||||
|
||||
<div class="item">
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT ApplicationInstance</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT DatabaseInstance</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT Patch</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT Licence</itopblock>
|
||||
</div><!-- element -->
|
||||
</div><!-- item -->
|
||||
|
||||
</div><!-- menu_2 -->
|
||||
|
||||
<!-- ######################################### -->
|
||||
|
||||
<div id="menu_3" class="main_container v-resizable">
|
||||
|
||||
<div class="main_header drag_handle" id="cfg_misc">
|
||||
<img src="../modules/itop-config-mgmt-1.0.0/images/subnet.png"/>
|
||||
<h1><itopstring>Menu:ConfigManagement:Misc</itopstring></h1>
|
||||
</div><!-- drag handle -->
|
||||
|
||||
<div class="item">
|
||||
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT NetworkInterface</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
<div class="element">
|
||||
<itopblock BlockClass="DisplayBlock" type="actions" asynchronous="false" encoding="text/oql" parameters="context_filter:1">SELECT Subnet</itopblock>
|
||||
</div><!-- element -->
|
||||
|
||||
</div><!-- item -->
|
||||
</div><!-- menu_3 -->
|
||||
|
||||
<!-- ######################################### -->
|
||||
|
||||
</div>
|
||||
|
||||
@@ -986,7 +986,11 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
'Menu:NewCI' => 'New CI',
|
||||
'Menu:NewCI+' => 'New CI',
|
||||
'Menu:SearchCIs' => 'Search for CIs',
|
||||
'Menu:SearchCIs+' => 'Search for CIs',
|
||||
'Menu:SearchCIs+' => 'Search for CIs',
|
||||
'Menu:ConfigManagement:Devices' => 'Devices',
|
||||
'Menu:ConfigManagement:AllDevices' => 'Number of devices: %1$d',
|
||||
'Menu:ConfigManagement:SWAndApps' => 'Software and Applications',
|
||||
'Menu:ConfigManagement:Misc' => 'Miscellaneous',
|
||||
|
||||
));
|
||||
?>
|
||||
|
||||
@@ -960,5 +960,9 @@ Dict::Add('FR FR', 'French', 'Français', array(
|
||||
'Menu:MobilePhone+' => 'Tous les téléphones portables',
|
||||
'Menu:PC' => 'Ordinateurs personnels',
|
||||
'Menu:PC+' => 'Tous les ordinateurs personnels',
|
||||
'Menu:ConfigManagement:Devices' => 'Equipements',
|
||||
'Menu:ConfigManagement:AllDevices' => 'Nombre d\'équipements: %1$d',
|
||||
'Menu:ConfigManagement:SWAndApps' => 'Logiciels et Applications',
|
||||
'Menu:ConfigManagement:Misc' => 'Divers',
|
||||
));
|
||||
?>
|
||||
|
||||
@@ -1572,17 +1572,17 @@ new SearchMenuNode('SearchCIs', 'FunctionalCI', $oCINode->GetIndex(), 1 /* fRank
|
||||
new OQLMenuNode('BusinessProcess', 'SELECT BusinessProcess', $oCINode->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('ApplicationSolution', 'SELECT ApplicationSolution', $oCINode->GetIndex(), 3 /* fRank */);
|
||||
|
||||
$oSWNode = new TemplateMenuNode('ConfigManagementSoftware', '', $oCINode->GetIndex(), 4 /* fRank */);
|
||||
new OQLMenuNode('Licence', 'SELECT Licence', $oSWNode->GetIndex(), 0 /* fRank */);
|
||||
new OQLMenuNode('Patch', 'SELECT Patch', $oSWNode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('ApplicationInstance', 'SELECT SoftwareInstance', $oSWNode->GetIndex(), 2 /* fRank */);
|
||||
//$oSWNode = new TemplateMenuNode('ConfigManagementSoftware', '', $oCINode->GetIndex(), 4 /* fRank */);
|
||||
//new OQLMenuNode('Licence', 'SELECT Licence', $oSWNode->GetIndex(), 0 /* fRank */);
|
||||
//new OQLMenuNode('Patch', 'SELECT Patch', $oSWNode->GetIndex(), 1 /* fRank */);
|
||||
//new OQLMenuNode('ApplicationInstance', 'SELECT SoftwareInstance', $oSWNode->GetIndex(), 2 /* fRank */);
|
||||
|
||||
$oHWNode = new TemplateMenuNode('ConfigManagementHardware', '', $oCINode->GetIndex(), 5 /* fRank */);
|
||||
new OQLMenuNode('Subnet', 'SELECT Subnet', $oHWNode->GetIndex(), 0 /* fRank */);
|
||||
//new OQLMenuNode('Subnet', 'SELECT Subnet', $oHWNode->GetIndex(), 0 /* fRank */);
|
||||
new OQLMenuNode('NetworkDevice', 'SELECT NetworkDevice', $oHWNode->GetIndex(), 1 /* fRank */);
|
||||
new OQLMenuNode('Server', 'SELECT Server', $oHWNode->GetIndex(), 2 /* fRank */);
|
||||
new OQLMenuNode('Printer', 'SELECT Printer', $oHWNode->GetIndex(), 3 /* fRank */);
|
||||
new OQLMenuNode('MobilePhone', 'SELECT MobilePhone', $oHWNode->GetIndex(), 4 /* fRank */);
|
||||
//new OQLMenuNode('MobilePhone', 'SELECT MobilePhone', $oHWNode->GetIndex(), 4 /* fRank */);
|
||||
new OQLMenuNode('PC', 'SELECT PC', $oHWNode->GetIndex(), 5 /* fRank */);
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user