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

* Added Color changes and few other changes


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6900 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
rharishan 2012-08-21 23:15:21 +00:00
parent 5cd7b95996
commit 80c499a4f4
3 changed files with 21 additions and 10 deletions

View File

@ -5,7 +5,7 @@ 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;
}
@ -15,9 +15,9 @@ p
font-size:20px;
}
a { color: #035BAC; text-decoration:none; }
a { color: #254533; text-decoration:none; }
a:hover { text-decoration:underline; }
a:visited { color: #035BAC; text-decoration:none; }
a:visited { color: #254533; text-decoration:none; }
a:visited:hover { text-decoration:underline; }
span.res { font-size:80%; color:#555; }

View File

@ -5,11 +5,11 @@
<title>Wicket Alert</title>
<style type="text/css">
body { margin:0; font-family:arial; font-size:10pt }
h1 { font-weight:bold; font-size:16px; margin:2px 0 2px 4px; color:#0068C4; font-family:arial; }
h1 { font-weight:bold; font-size:16px; margin:2px 0 2px 4px; color:#237948; font-family:arial; }
a { color: #035BAC; text-decoration:none; }
a { color: #237948; text-decoration:none; }
a:hover { text-decoration:underline; }
a:visited { color: #035BAC; text-decoration:none; }
a:visited { color: #237948; text-decoration:none; }
a:visited:hover { text-decoration:underline; }
</style>
</head>

View File

@ -93,6 +93,17 @@
eve_title.appendChild(img);
var a = document.createElement('a');
var temp_style;
var agent_url;
if(allEvents[i][1]==""){;
agent_url=localStorage["ip_address"]+"/index.php?sec=eventos&sec2=operation/events/events" ;
}else{
agent_url=localStorage["ip_address"]+"/index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente="+allEvents[i][1];
}
a.setAttribute("href",agent_url);
a.target="_blank";
a.innerText = allEvents[i][6];
if(i<localStorage["new_events"]){
@ -104,16 +115,16 @@
if(allEvents[i][19]=="Warning"){
eve_title.setAttribute("style","background:#FDE84F; margin-bottom:-12px;"+temp_style);
eve_title.setAttribute("style","background:#FCED7E; margin-bottom:-12px;"+temp_style);
}
if(allEvents[i][19]=="Critical"){
eve_title.setAttribute("style","background:#C60700; margin-bottom:-12px;"+temp_style);
eve_title.setAttribute("style","background:#FA7A7A; margin-bottom:-12px;"+temp_style);
}
if(allEvents[i][19]=="Informational"){
eve_title.setAttribute("style","background:#739FD0; margin-bottom:-12px;"+temp_style);
eve_title.setAttribute("style","background:#7FB9FA; margin-bottom:-12px;"+temp_style);
}
if(allEvents[i][19]=="Normal"){
eve_title.setAttribute("style","background:#8AE234; margin-bottom:-12px;"+temp_style);
eve_title.setAttribute("style","background:#A8D96C; margin-bottom:-12px;"+temp_style);
}
if(allEvents[i][19]=="Maintenance"){
eve_title.setAttribute("style","background:#BABDB6; margin-bottom:-12px;"+temp_style);