summaryrefslogtreecommitdiffstats
path: root/frontends/php/audit.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-02 11:42:33 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-02 11:42:33 +0000
commitbc1e6524c3bd99dd5c2befd7a977a47717a1921f (patch)
treefa4f3038ea72779207bf2164efa05defb5c90cbe /frontends/php/audit.php
parent1bd57f97f90f26c13bb37cb6c669f444d80db01b (diff)
downloadzabbix-bc1e6524c3bd99dd5c2befd7a977a47717a1921f.tar.gz
zabbix-bc1e6524c3bd99dd5c2befd7a977a47717a1921f.tar.xz
zabbix-bc1e6524c3bd99dd5c2befd7a977a47717a1921f.zip
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@2475 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/audit.php')
-rw-r--r--frontends/php/audit.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/frontends/php/audit.php b/frontends/php/audit.php
index fc3922ad..82cbaa32 100644
--- a/frontends/php/audit.php
+++ b/frontends/php/audit.php
@@ -87,9 +87,8 @@
}
$result=DBselect($sql);
- table_begin();
- table_header(array(S_TIME,S_USER,S_RESOURCE,S_ACTION,S_DETAILS));
- $col=0;
+ $table = new Ctable();
+ $table->setHeader(array(S_TIME,S_USER,S_RESOURCE,S_ACTION,S_DETAILS));
$i=0;
while($row=DBfetch($result))
{
@@ -148,15 +147,15 @@
{
$action=S_UNKNOWN_ACTION;
}
- table_row(array(
+ $table->addRow(array(
date("Y.M.d H:i:s",$row["clock"]),
$row["alias"],
$resource,
$action,
$row["details"]
- ),$col++);
+ ));
}
- table_end();
+ $table->show();
?>
<?php