- New implementation of the menus: menu templates are now stored as plain files and no longer in the database...

SVN:trunk[481]
This commit is contained in:
Denis Flaven
2010-06-24 15:47:49 +00:00
parent e77cfa4b94
commit 59e4e03980
5 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
<h1><itopstring>UI:ConfigurationItemsMenu: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;chart_title:UI-ConfigurationItemsMenu-ServersByCriticity;group_by:severity" asynchronous="false" encoding="text/oql">SELECT bizServer</itopblock>
</td>
<td class="dashboard">
<itopblock BlockClass="DisplayBlock" type="open_flash_chart" parameters="chart_type:pie;chart_title:UI-ConfigurationItemsMenu-PCsByCriticity;group_by:severity" asynchronous="false" encoding="text/oql">SELECT bizPC</itopblock>
</td>
</tr><tr>
<td class="dashboard">
<itopblock BlockClass="DisplayBlock" type="open_flash_chart" parameters="chart_type:pie;chart_title:UI-ConfigurationItemsMenu-NWDevicesByCriticity;group_by:severity" asynchronous="false" encoding="text/oql">SELECT bizNetworkDevice</itopblock>
</td>
<td class="dashboard">
<itopblock BlockClass="DisplayBlock" type="open_flash_chart" parameters="chart_type:pie;chart_title:UI-ConfigurationItemsMenu-ApplicationsByCriticity;group_by:severity" asynchronous="false" encoding="text/oql">SELECT bizApplication</itopblock>
</td>
</tr>
</table>

View File

@@ -0,0 +1,20 @@
<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 logInfra</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 logInfra</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 logInfra</itopblock>
</td>
<td>
&nbsp;
</td>
</tr>
</table>

View File

@@ -0,0 +1,22 @@
<h1><itopstring>UI:ContactsMenu:Title</itopstring></h1>
<table border="0" padding="5" class="layout" width="100%">
<tr>
<td class="dashboard">
<h2><itopstring>UI-ContactsMenu-ContactsByLocation</itopstring></h2>
<itopblock BlockClass="DisplayBlock" type="count" parameters="group_by:location_name" asynchronous="false" encoding="text/oql">SELECT bizContact</itopblock>
</td>
<td class="dashboard">
<itopblock BlockClass="DisplayBlock" type="open_flash_chart" parameters="chart_type:pie;chart_title:UI-ContactsMenu-ContactsByLocation;group_by:location_name" asynchronous="false" encoding="text/oql">SELECT bizContact</itopblock>
</td>
</tr>
<tr>
<td class="dashboard">
<h2><itopstring>UI-ContactsMenu-ContactsByType</itopstring></h2>
<itopblock BlockClass="DisplayBlock" type="count" parameters="group_by:finalclass" asynchronous="false" encoding="text/oql">SELECT bizContact</itopblock>
</td>
<td class="dashboard">
<h2><itopstring>UI-ContactsMenu-ContactsByStatus</itopstring></h2>
<itopblock BlockClass="DisplayBlock" type="count" parameters="group_by:status" asynchronous="false" encoding="text/oql">SELECT bizContact</itopblock>
</td>
</tr>
</table>

View File

@@ -0,0 +1,35 @@
<div class="page_header" style="padding:0.5em;">
<h1><itopstring>UI:NotificationsMenu:Title</itopstring></h1>
</div>
<itoptoggle name="UI:NotificationsMenu:Help" open="true">
<div style="padding: 1em; font-size:1.25em;background:#E8F3CF;margin-top: 0.25em;">
<img src="../images/bell.png" style="margin-top: -60px; margin-right: 10px; float: right;">
<itopstring>UI:NotificationsMenu:HelpContent</itopstring>
</div>
</itoptoggle>
<p>&nbsp;</p>
<itoptabs>
<itoptab name="UI:NotificationsMenu:Triggers">
<h2><itopstring>UI:NotificationsMenu:AvailableTriggers</itopstring></h2>
<table style="border:0;border-spacing:10px;width:100%;">
<tr>
<td style="vertical-align:top;width:33%;padding:10px;background:#f8f8f8;">
<h3><itopstring>UI:NotificationsMenu:OnCreate</itopstring></h3>
<itopblock BlockClass="DisplayBlock" type="list" asynchronous="false" encoding="text/oql">SELECT TriggerOnObjectCreate</itopblock>
</td>
<td style="vertical-align:top;width:33%;padding:10px;background:#f8f8f8;">
<h3><itopstring>UI:NotificationsMenu:OnStateEnter</itopstring></h3>
<itopblock BlockClass="DisplayBlock" type="list" asynchronous="false" encoding="text/oql">SELECT TriggerOnStateEnter</itopblock>
</td>
<td style="vertical-align:top;width:33%;padding:10px;background:#f8f8f8;">
<h3><itopstring>UI:NotificationsMenu:OnStateLeave</itopstring></h3>
<itopblock BlockClass="DisplayBlock" type="list" asynchronous="false" encoding="text/oql">SELECT TriggerOnStateLeave</itopblock>
</td>
</tr>
</table>
</itoptab>
<itoptab name="UI:NotificationsMenu:Actions">
<h2><itopstring>UI:NotificationsMenu:AvailableActions</itopstring></h2>
<itopblock BlockClass="DisplayBlock" type="list" asynchronous="false" encoding="text/oql">SELECT ActionEmail</itopblock>
</itoptab>
</itoptabs>

View File

@@ -0,0 +1,51 @@
<div style="width:100%;background: url(../images/welcome.jpg) top left no-repeat;">
<style>
.dashboard {
vertical-align:top;
width:50%;
border:0px solid #000;
background-color:#F9F9F1;
padding:10px;
text-align:left;
font-size:10pt;
}
.dashboard2 {
vertical-align:top;
width:50%;
border:0px solid #000;
-moz-border-radius:10px;
padding:5px;
text-align:left;
}
td.dashboard li {
margin-top: 5px;
display: list-item;
}
</style>
<p></p>
<p></p>
<p style="text-align:left; font-size:32px;padding-left:400px;padding-top:40px;margin-bottom:30px;margin-top:0;color:#FFFFFF;"><itopstring>UI:WelcomeMenu:Title</itopstring></p>
<p></p>
<table border="0" style="padding:10px;border-spacing: 10px;">
<tr>
<td class="dashboard">
<itopstring>UI:WelcomeMenu:LeftBlock</itopstring>
</td>
<td class="dashboard">
<itopstring>UI:WelcomeMenu:RightBlock</itopstring>
</td>
</tr>
<tr>
<td class="dashboard2">
<p style="text-align:left; font-family:Verdana, Arial, sans-serif; font-size:16px;"><itopstring>UI:WelcomeMenu:MyCalls</itopstring></p>
<itopblock BlockClass="DisplayBlock" type="list" asynchronous="false" encoding="text/oql">SELECT bizServiceCall AS i WHERE i.caller_id = :current_contact_id</itopblock>
</td>
<td class="dashboard2">
<p style="text-align:left; font-family:Verdana, Arial, sans-serif; font-size:16px;"><itopstring>UI:WelcomeMenu:MyIncidents</itopstring></p>
<itopblock BlockClass="DisplayBlock" type="list" asynchronous="false" encoding="text/oql">SELECT bizIncidentTicket AS i WHERE i.caller_id = :current_contact_id</itopblock>
</td>
</tr>
</table>
</div>