summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/classes/clink.inc.php
diff options
context:
space:
mode:
authorartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-06 09:13:51 +0000
committerartem <artem@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-05-06 09:13:51 +0000
commit8465ff8a0e531247f41f4d3c7b3b1cbe03643974 (patch)
tree11a89a3bea5b2720cd839a7a2455d4d47caf9815 /frontends/php/include/classes/clink.inc.php
parent37085eb0c73b06780c4f3a34f82693d04a1c2596 (diff)
downloadzabbix-8465ff8a0e531247f41f4d3c7b3b1cbe03643974.tar.gz
zabbix-8465ff8a0e531247f41f4d3c7b3b1cbe03643974.tar.xz
zabbix-8465ff8a0e531247f41f4d3c7b3b1cbe03643974.zip
- [DEV-137] fixes to GUI (Artem) big thanks to Palmertree
git-svn-id: svn://svn.zabbix.com/trunk@5677 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/classes/clink.inc.php')
-rw-r--r--frontends/php/include/classes/clink.inc.php38
1 files changed, 21 insertions, 17 deletions
diff --git a/frontends/php/include/classes/clink.inc.php b/frontends/php/include/classes/clink.inc.php
index 04c5ebd1..bea460e3 100644
--- a/frontends/php/include/classes/clink.inc.php
+++ b/frontends/php/include/classes/clink.inc.php
@@ -22,39 +22,43 @@
class CLink extends CTag
{
/* public */
- function CLink($item=NULL,$url=NULL,$class=NULL,$action=NULL)
- {
- parent::CTag("a","yes");
+ function CLink($item=NULL,$url=NULL,$class=NULL,$action=NULL){
+ parent::CTag('a','yes');
- $this->tag_start= "";
- $this->tag_end = "";
- $this->tag_body_start = "";
- $this->tag_body_end = "";
+ $this->tag_start= '';
+ $this->tag_end = '';
+ $this->tag_body_start = '';
+ $this->tag_body_end = '';
if(!is_null($class)) $this->SetClass($class);
if(!is_null($item)) $this->AddItem($item);
if(!is_null($url)) $this->SetUrl($url);
if(!is_null($action)) $this->SetAction($action);
}
- function SetAction($value=NULL)
- {
+
+ function SetAction($value=NULL){
if(is_null($value))
return $this->options['action'] = $page['file'];
return parent::AddAction('onclick', $value);
}
- function SetUrl($value)
- {
+
+ function SetUrl($value){
$this->AddOption('href', $value);
}
- function SetTarget($value=NULL)
- {
- if(is_null($value))
- {
+
+ function getUrl(){
+ if(isset($this->options['href']))
+ return $this->options['href'];
+ else
+ return null;
+ }
+
+ function SetTarget($value=NULL){
+ if(is_null($value)){
unset($this->options['target']);
}
- else
- {
+ else{
$this->options['target'] = $value;
}
}