summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-01 15:43:49 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-02-01 15:43:49 +0000
commit222b652b3e10a33f460c222320685d3e75fd9756 (patch)
tree2aedee556edc1a0224c4bb96d04962c953cb529f /frontends/php/include/classes
parentcb5a8201693fba5ae897caf8f0e22db9d6f2ce16 (diff)
improved interface for webmonitoring
git-svn-id: svn://svn.zabbix.com/trunk@3787 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes')
-rw-r--r--frontends/php/include/classes/cimg.inc.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/frontends/php/include/classes/cimg.inc.php b/frontends/php/include/classes/cimg.inc.php
index f7cb42c8..bc1f130b 100644
--- a/frontends/php/include/classes/cimg.inc.php
+++ b/frontends/php/include/classes/cimg.inc.php
@@ -22,7 +22,7 @@
class CImg extends CTag
{
/* public */
- function CImg($src,$alt_text=NULL,$width=NULL,$height=NULL,$class=NULL)
+ function CImg($src,$name=NULL,$width=NULL,$height=NULL,$class=NULL)
{
parent::CTag("img","no");
@@ -31,8 +31,12 @@
$this->tag_body_start = "";
$this->tag_body_end = "";
+ if(is_null($name))
+ $name="image";
+
$this->AddOption('border',0);
- $this->SetAltText($alt_text);
+ $this->SetName($name);
+ $this->SetAltText($name);
$this->SetSrc($src);
$this->SetWidth($width);
$this->SetHeight($height);
@@ -48,9 +52,6 @@
}
function SetAltText($value=NULL)
{
- if(is_null($value))
- $value="image";
-
if(!is_string($value))
{
return $this->error("Incorrect value for SetText [$value]");