summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-03 17:03:31 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-02-03 17:03:31 +0000
commit46f4daf879cb71b022874fc3b6551d97d400fe1b (patch)
treea9e4d56860802c11418a3a67da3d91a82b9e911f /frontends/php/include/classes
parent1f829e896d022a4ed202d443d127346d26cbf7f2 (diff)
downloadzabbix-46f4daf879cb71b022874fc3b6551d97d400fe1b.tar.gz
zabbix-46f4daf879cb71b022874fc3b6551d97d400fe1b.tar.xz
zabbix-46f4daf879cb71b022874fc3b6551d97d400fe1b.zip
- Frontend improvements (Eugene)
+ Configuration -> General (finished) + Configuration -> Users (finished) + Configuration -> Hosts (finished) + Configuration -> Items (finished) git-svn-id: svn://svn.zabbix.com/trunk@2603 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes')
-rw-r--r--frontends/php/include/classes/ccheckbox.inc.php2
-rw-r--r--frontends/php/include/classes/cformtable.inc.php12
-rw-r--r--frontends/php/include/classes/ctextbox.inc.php6
3 files changed, 12 insertions, 8 deletions
diff --git a/frontends/php/include/classes/ccheckbox.inc.php b/frontends/php/include/classes/ccheckbox.inc.php
index 2cbb3ca8..beb68ee7 100644
--- a/frontends/php/include/classes/ccheckbox.inc.php
+++ b/frontends/php/include/classes/ccheckbox.inc.php
@@ -54,7 +54,7 @@
{
if(is_null($value))
return $this->DelOption("value");
- elseif(is_string($value))
+ elseif(is_string($value) || is_numeric($value))
return $this->AddOption('value',$value);
return $this->error("Incorrect value for SetValue [$value]");
}
diff --git a/frontends/php/include/classes/cformtable.inc.php b/frontends/php/include/classes/cformtable.inc.php
index 9cd1a63d..e1f4b44b 100644
--- a/frontends/php/include/classes/cformtable.inc.php
+++ b/frontends/php/include/classes/cformtable.inc.php
@@ -49,11 +49,13 @@
}
function SetAction($value)
{
- if(!is_string($value))
- {
- return $this->error("Incorrect value for SetAlign [$value]");
- }
- parent::SetAction($value."#form");
+
+ if(is_string($value))
+ return parent::SetAction($value."#form");
+ elseif(is_null($value))
+ return parent::SetAction($value);
+ else
+ return $this->error("Incorrect value for SetAction [$value]");
}
function SetAlign($value)
{
diff --git a/frontends/php/include/classes/ctextbox.inc.php b/frontends/php/include/classes/ctextbox.inc.php
index 9777bc74..dad97cbe 100644
--- a/frontends/php/include/classes/ctextbox.inc.php
+++ b/frontends/php/include/classes/ctextbox.inc.php
@@ -71,8 +71,10 @@
}
return 0;
}
- function SetValue($value="")
+ function SetValue($value=NULL)
{
+ if(is_null($value)) $value="";
+
if(is_int($value))
{
return $this->AddOption("value",strval($value));
@@ -85,7 +87,7 @@
}
function SetSize($value)
{
- if(!is_int($value))
+ if(!is_numeric($value))
{
return $this->error("Incorrect value for SetSize [$value]");
}