From 07ea4eb6c1927b132fc294271841066c11ab2955 Mon Sep 17 00:00:00 2001 From: osmiy Date: Tue, 21 Mar 2006 14:44:38 +0000 Subject: - developed remote commads execution on specific actions (Eugene) - added "URL" module for screens (Eugene) - fix some bugs - clean code git-svn-id: svn://svn.zabbix.com/trunk@2703 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- frontends/php/include/classes/ciframe.inc.php | 89 +++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 frontends/php/include/classes/ciframe.inc.php (limited to 'frontends/php/include/classes/ciframe.inc.php') diff --git a/frontends/php/include/classes/ciframe.inc.php b/frontends/php/include/classes/ciframe.inc.php new file mode 100644 index 00000000..9e9b4376 --- /dev/null +++ b/frontends/php/include/classes/ciframe.inc.php @@ -0,0 +1,89 @@ + +tag_start= ""; + $this->tag_end = ""; + $this->tag_body_start = ""; + $this->tag_body_end = ""; + + $this->SetSrc($src); + $this->SetWidth($width); + $this->SetHeight($height); + $this->SetScrolling($scrolling); + } + function SetSrc($value=NULL) + { + if(is_null($value)) + { + return $this->DelOption("src"); + } + elseif(!is_string($value)) + { + return $this->error("Incorrect value for SetSrc [$value]"); + } + return $this->AddOption("src",$value); + } + function SetWidth($value) + { + if(is_null($value)) + { + return $this->DelOption("width"); + } + elseif(!is_string($value)) + { + return $this->error("Incorrect value for SetWidth [$value]"); + } + + $this->AddOption("width",$value); + } + function SetHeight($value) + { + if(is_null($value)) + { + return $this->DelOption("height"); + } + elseif(!is_string($value)) + { + return $this->error("Incorrect value for SetHeight [$value]"); + } + + $this->AddOption("height",$value); + } + function SetScrolling($value) + { + if(is_null($value)) $value = 'no'; + + if($value=='no' && $value=='yes' && $value=='auto') + { + return $this->error("Incorrect value for SetScrolling [$value]"); + } + + $this->AddOption("scrolling",$value); + } + } +?> -- cgit