summaryrefslogtreecommitdiffstats
path: root/frontends/php/discovery.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-30 10:03:23 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-06-30 10:03:23 +0000
commit83eb854d01145ddb03b03d71e93a39b27539650e (patch)
tree1bf0472607c3e1968972d0b0624a8b2cf6c83f4e /frontends/php/discovery.php
parent197f0c3db5a4fd740a8783049c75fa6693e438bf (diff)
downloadzabbix-83eb854d01145ddb03b03d71e93a39b27539650e.tar.gz
zabbix-83eb854d01145ddb03b03d71e93a39b27539650e.tar.xz
zabbix-83eb854d01145ddb03b03d71e93a39b27539650e.zip
- [DEV-137] minor changes in locales and sorting discovery hosts table (Artem)
git-svn-id: svn://svn.zabbix.com/trunk@5807 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/discovery.php')
-rw-r--r--frontends/php/discovery.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/frontends/php/discovery.php b/frontends/php/discovery.php
index 595bdbd5..68a38cdd 100644
--- a/frontends/php/discovery.php
+++ b/frontends/php/discovery.php
@@ -35,7 +35,7 @@ include_once "include/page_header.php";
);
check_fields($fields);
- validate_sort_and_sortorder('dhostid',ZBX_SORT_UP);
+ validate_sort_and_sortorder('ip',ZBX_SORT_UP);
$r_form = new CForm();
$r_form->SetMethod('get');
@@ -87,8 +87,8 @@ include_once "include/page_header.php";
$header = array(
is_show_subnodes() ? new CCol(S_NODE, 'center') : null,
- new CCol(make_sorting_link(S_HOST,'dhostid'), 'center'),
- new CCol(array(S_UPTIME.'/',BR(),S_DOWNTIME),'center')
+ new CCol(make_sorting_link(S_HOST,'ip'), 'center'),
+ new CCol(array(S_UPTIME.'/',S_DOWNTIME),'center')
);
foreach ($services as $name => $foo) {
@@ -107,7 +107,7 @@ include_once "include/page_header.php";
$db_dhosts = DBselect('SELECT dhostid,druleid,ip,status,lastup,lastdown '.
' FROM dhosts WHERE '.DBin_node('dhostid').
' AND druleid='.$drule['druleid'].
- order_by('dhostid','status,ip'));
+ order_by('ip','dhostid,status'));
while($dhost = DBfetch($db_dhosts)){
$class = 'enabled';
$time = 'lastup';