2012-08-22 Hareesan Rajendra <rharishan@gmail.com>

* Added color changes and few other updates.


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6901 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
rharishan 2012-08-22 00:05:28 +00:00
parent 07cc4f825c
commit 66024a7b1b
3 changed files with 24 additions and 9 deletions

View File

@ -108,6 +108,15 @@ PandoraPoPUp = function () {
a.setAttribute("value", allEventsPoP[i][6]);
//var temp_style="font-weight:bold;"; new_events
var agent_url;
if(allEventsPoP[i][1]==""){;
agent_url=prefmanager.getCharPref("ip_address")+"/index.php?sec=eventos&sec2=operation/events/events" ;
}else{
agent_url=prefmanager.getCharPref("ip_address")+"/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente="+allEventsPoP[i][1];
}
a.setAttribute("href",agent_url);
a.setAttribute("class","text-link");
if (i < prefmanager.getIntPref("new_events")) {
var temp_style = "font-weight:bold;";
}
@ -117,16 +126,16 @@ PandoraPoPUp = function () {
if (allEventsPoP[i][19] == "Warning") {
eve_title.setAttribute("style", "background:#FDE84F; margin-bottom:1px;" + temp_style);
eve_title.setAttribute("style", "background:#FCED7E; margin-bottom:1px;" + temp_style);
}
if (allEventsPoP[i][19] == "Critical") {
eve_title.setAttribute("style", "background:#C60700; margin-bottom:1px;" + temp_style);
eve_title.setAttribute("style", "background:#FA7A7A; margin-bottom:1px;" + temp_style);
}
if (allEventsPoP[i][19] == "Informational") {
eve_title.setAttribute("style", "background:#739FD0; margin-bottom:1px;" + temp_style);
eve_title.setAttribute("style", "background:#7FB9FA; margin-bottom:1px;" + temp_style);
}
if (allEventsPoP[i][19] == "Normal") {
eve_title.setAttribute("style", "background:#8AE234; margin-bottom:1px;" + temp_style);
eve_title.setAttribute("style", "background:#A8D96C; margin-bottom:1px;" + temp_style);
}
if (allEventsPoP[i][19] == "Maintenance") {
eve_title.setAttribute("style", "background:#BABDB6; margin-bottom:1px;" + temp_style);

View File

@ -40,7 +40,7 @@
<vbox class="result" id="result">
<vbox class="b" id="event" style="display:none;">
<description value="Events"
style="font-weight: bold; font-size:16px; margin:2px 0px 2px 0px; color:#0068C4; font-family:arial"/>
style="font-weight: bold; font-size:16px; margin:2px 0px 2px 0px; color:#237948; font-family:arial"/>
<vbox class="e" id="e">
</vbox>
</vbox>

View File

@ -5,17 +5,23 @@ body {
font-family:Tahoma, Geneva, Arial;
font-size:10pt;
}
h1 { font-weight: bold; font-size:16px; margin:2px 0px 2px 0px; color:#0068C4; font-family:arial }
h1 { font-weight: bold; font-size:16px; margin:2px 0px 2px 0px; color:#237948; font-family:arial }
h2{
color : blue;
}
label { color: #035BAC; text-decoration:none; }
label { color: #254533; text-decoration:none; }
label:hover { text-decoration:underline; }
label:visited { color: #035BAC; text-decoration:none; }
label:visited { color: #254533; text-decoration:none; }
label:visited:hover { text-decoration:underline; }
label.text-link { color: #254533; text-decoration:none; }
label.text-link :hover { text-decoration:underline; }
label.text-link :visited { color: #254533; text-decoration:none; }
label.text-link :visited:hover { text-decoration:underline; }
span.res { font-size:80%; color:#555; }
image.pm { margin-right:3px;cursor:pointer; margin-top:0px; }