summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/config.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-14 15:14:24 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-12-14 15:14:24 +0000
commitbeb9fbcdd9d8d9b5b9c6e5d9c6c1af91caf3dfea (patch)
tree131965548929548eac6d51236a437f8d0d65ba4f /frontends/php/include/config.inc.php
parent38591cdcd09a97021d0cf109fbd75978c8632f06 (diff)
downloadzabbix-beb9fbcdd9d8d9b5b9c6e5d9c6c1af91caf3dfea.tar.gz
zabbix-beb9fbcdd9d8d9b5b9c6e5d9c6c1af91caf3dfea.tar.xz
zabbix-beb9fbcdd9d8d9b5b9c6e5d9c6c1af91caf3dfea.zip
- [DEV-85] improvements to graph navigations (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5177 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/config.inc.php')
-rw-r--r--frontends/php/include/config.inc.php23
1 files changed, 10 insertions, 13 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 202ec64c..b0e6bdb3 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -646,11 +646,11 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
break;
case PAGE_TYPE_HTML:
default:
- echo "<p align=center>";
- echo "<font color='".((!$bool) ? "#AA0000" : "#223344")."'>";
- echo "<b>[".htmlspecialchars($msg)."]</b>";
- echo "</font>";
- echo "</p>";
+ $p = new CTag('p','yes');
+ $p->AddOption('align','center');
+ $p->AddOption('style','color: '.((!$bool)?'#AA0000;':'#223344;'));
+ $p->AddItem(bold('['.$msg.']'));
+ $p->Show();
break;
}
}
@@ -1028,7 +1028,7 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
function show_history($itemid,$from,$stime,$period)
{
$till=date(S_DATE_FORMAT_YMDHMS,time(NULL)-$from*3600);
- show_table_header("TILL $till (".($period/3600)." HOURs)");
+ show_table_header(S_TILL.SPACE.$till.' ('.($period/3600).' HOURs)');
$td = new CCol(get_js_sizeable_graph('graph','chart.php?itemid='.$itemid.
url_param($from,false,'from').
@@ -1037,7 +1037,7 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
$td->AddOption('align','center');
$tr = new CRow($td);
- $tr->AddOption('bgcolor','$dddddd');
+ $tr->AddOption('bgcolor','#dddddd');
$table = new CTable();
$table->AddOption('width','100%');
@@ -1051,17 +1051,14 @@ function TODO($msg) { echo "TODO: ".$msg.SBR; } // DEBUG INFO!!!
}
- function get_status()
- {
+ function get_status(){
global $DB_TYPE;
$status = array();
// server
- if( (exec("ps -ef|grep zabbix_server|grep -v grep|wc -l")>0) || (exec("ps -ax|grep zabbix_server|grep -v grep|wc -l")>0) )
- {
+ if( (exec('ps -ef|grep zabbix_server|grep -v grep|wc -l')>0) || (exec('ps -ax|grep zabbix_server|grep -v grep|wc -l')>0) ){
$status["zabbix_server"] = S_YES;
}
- else
- {
+ else{
$status["zabbix_server"] = S_NO;
}