summaryrefslogtreecommitdiffstats
path: root/frontends/php/actionconf.php
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-03 10:03:54 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-03 10:03:54 +0000
commit26905a61d0cec458a04a971a6751e18a021d1c92 (patch)
tree5f601cc98feb07330cfc0ba280841929d1a042fe /frontends/php/actionconf.php
parentbebbe1e18bdd25e6f976f8a39a308e65728b957d (diff)
downloadzabbix-26905a61d0cec458a04a971a6751e18a021d1c92.tar.gz
zabbix-26905a61d0cec458a04a971a6751e18a021d1c92.tar.xz
zabbix-26905a61d0cec458a04a971a6751e18a021d1c92.zip
PHP code cleanup. Use of class Ctable.
git-svn-id: svn://svn.zabbix.com/trunk@2484 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/actionconf.php')
-rw-r--r--frontends/php/actionconf.php19
1 files changed, 5 insertions, 14 deletions
diff --git a/frontends/php/actionconf.php b/frontends/php/actionconf.php
index 0654b858..9a751f96 100644
--- a/frontends/php/actionconf.php
+++ b/frontends/php/actionconf.php
@@ -185,8 +185,8 @@
}
$result=DBselect($sql);
- table_begin();
- table_header(array(S_SOURCE,S_CONDITIONS,S_SEND_MESSAGE_TO,S_DELAY,S_SUBJECT,S_REPEATS,S_ACTIONS));
+ $table = new Ctable(S_NO_ACTIONS_DEFINED);
+ $table->setHeader(array(S_SOURCE,S_CONDITIONS,S_SEND_MESSAGE_TO,S_DELAY,S_SUBJECT,S_REPEATS,S_ACTIONS));
$col=0;
while($row=DBfetch($result))
{
@@ -220,7 +220,7 @@
$actions="<A HREF=\"actionconf.php?register=edit&actionid=".$row["actionid"]."#form\">".S_CHANGE."</A>";
- table_row(array(
+ $table->addRow(array(
get_source_description($row["source"]),
$conditions,
$recipient,
@@ -228,19 +228,10 @@
htmlspecialchars($row["subject"]),
$maxrepeats,
$actions
- ),$col++);
+ ));
}
- if(DBnum_rows($result)==0)
- {
- echo "<TR BGCOLOR=#EEEEEE>";
- echo "<TD COLSPAN=7 ALIGN=CENTER>".S_NO_ACTIONS_DEFINED."</TD>";
- echo "<TR>";
- }
- table_end();
+ $table->show();
?>
-</font>
-</tr>
-</table>
<?php
echo "<a name=\"form\"></a>";