summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-18 17:02:39 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-01-18 17:02:39 +0000
commit93dbab017af3dc485bb3b24026eefa518785653a (patch)
tree8f5a352dfc484297b91212f61688bc7d322e209b /frontends/php/include/classes
parent274354c2aff78c8d96f78a36a654b215bd6232fa (diff)
downloadzabbix-93dbab017af3dc485bb3b24026eefa518785653a.tar.gz
zabbix-93dbab017af3dc485bb3b24026eefa518785653a.tar.xz
zabbix-93dbab017af3dc485bb3b24026eefa518785653a.zip
- Minor Changes (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2539 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes')
-rw-r--r--frontends/php/include/classes/ccheckbox.inc.php10
-rw-r--r--frontends/php/include/classes/cformtable.inc.php7
2 files changed, 6 insertions, 11 deletions
diff --git a/frontends/php/include/classes/ccheckbox.inc.php b/frontends/php/include/classes/ccheckbox.inc.php
index 78be0b90..ebe43d93 100644
--- a/frontends/php/include/classes/ccheckbox.inc.php
+++ b/frontends/php/include/classes/ccheckbox.inc.php
@@ -22,14 +22,14 @@
class CCheckBox extends CTag
{
/* public */
- function CCheckBox($name='checkbox',$value=NULL,$checked="no",$action=NULL)
+ function CCheckBox($name='checkbox',$value='no',$caption=NULL,$action=NULL)
{
parent::CTag("input","no");
$this->tag_body_start = "";
$this->AddOption('type','checkbox');
$this->SetName($name);
- $this->SetCaption($value);
- $this->SetChecked($checked);
+ $this->SetCaption($caption);
+ $this->SetChecked($value);
$this->SetAction($action);
}
function SetName($value='checkbox')
@@ -50,9 +50,9 @@
}
function SetChecked($value="yes")
{
- if($value=="yes" || $value=="checked" || $value=="on")
+ if($value=="yes" || $value=="checked" || $value=="on" || $value==1)
return $this->AddOption("checked","checked");
- elseif($value=="no" || $value=="unchecked" || $value=="off" || $value==NULL)
+ elseif($value=="no" || $value=="unchecked" || $value=="off" || $value==NULL || $value==0)
return $this->DelOption("checked");
return $this->error("Incorrect value for SetChacked [$value]");
}
diff --git a/frontends/php/include/classes/cformtable.inc.php b/frontends/php/include/classes/cformtable.inc.php
index 699a7d2d..3af7acae 100644
--- a/frontends/php/include/classes/cformtable.inc.php
+++ b/frontends/php/include/classes/cformtable.inc.php
@@ -39,12 +39,7 @@
$this->SetAlign('center');
$this->SetHelp();
- if(isset($_REQUEST["form"]) && is_string($_REQUEST["form"]))
- $this->AddVar("form",$_REQUEST["form"]);
- elseif(isset($title) && is_string($title))
- $this->AddVar("form",$title);
- else
- $this->AddVar("form","form");
+ $this->AddVar("form","1");
$this->bottom_items = new CCol(NULL,'form_row_last');
$this->bottom_items->SetColSpan(2);