summaryrefslogtreecommitdiffstats
path: root/frontends/php/actions.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-30 15:12:53 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-30 15:12:53 +0000
commit393c9ed7f43d6d6471bfac4efaa072e1e9db0a9e (patch)
tree9ea09dc84e61db08477d68dead456761ffee8561 /frontends/php/actions.php
parentcf51431eb0610dc4f4378a61c208cc97890643a9 (diff)
- Frontend improvements (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2577 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/actions.php')
-rw-r--r--frontends/php/actions.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/frontends/php/actions.php b/frontends/php/actions.php
index 82ce9d75..a1addc62 100644
--- a/frontends/php/actions.php
+++ b/frontends/php/actions.php
@@ -62,22 +62,20 @@
?>
<?php
- $h1="&nbsp;".S_HISTORY_OF_ACTIONS_BIG;
-
- $h2="";
+ $form = new CForm();
+ $btnPrev = new CButton("prev","<< Prev 100");
if(isset($_REQUEST["start"]))
{
- $h2=$h2."<input class=\"biginput\" name=\"start\" type=hidden value=".$_REQUEST["start"]." size=8>";
- $h2=$h2."<input class=\"button\" type=\"submit\" name=\"prev\" value=\"<< Prev 100\">";
- }
- else
- {
- $h2=$h2."<input class=\"button\" type=\"submit\" disabled name=\"prev\" value=\"<< Prev 100\">";
+ $form->AddVar("start",$_REQUEST["start"]);
+ } else {
+ $btnPrev->SetEnable('no');
}
- $h2=$h2."<input class=\"button\" type=\"submit\" name=\"next\" value=\"Next 100 >>\">";
+ $form->AddItem($btnPrev);
+
+ $form->AddItem(new CButton("next","Next 100 >>"));
- show_header2($h1,$h2,"<form name=\"form2\" method=\"get\" action=\"actions.php\">","</form>");
+ show_header2(S_HISTORY_OF_ACTIONS_BIG,$form);
?>
@@ -87,7 +85,9 @@
{
$_REQUEST["start"]=0;
}
- $sql="select a.alertid,a.clock,mt.description,a.sendto,a.subject,a.message,a.status,a.retries,a.error from alerts a,media_type mt where mt.mediatypeid=a.mediatypeid order by a.clock desc limit ".(10*($_REQUEST["start"]+100));
+ $sql="select a.alertid,a.clock,mt.description,a.sendto,a.subject,a.message,a.status,a.retries,".
+ "a.error from alerts a,media_type mt where mt.mediatypeid=a.mediatypeid order by a.clock".
+ " desc limit ".(10*($_REQUEST["start"]+100));
$result=DBselect($sql);
$table = new CTableInfo(S_NO_ACTIONS_FOUND);