public function __construct($title, $class, $action = '') { parent::__construct(SPACE, $class . ' menu_icon shadow'); $this->attr('title', $title); if (!empty($action)) { $this->attr('onclick', 'javascript: ' . $action); } }
public function __construct($title = null) { parent::__construct(); $this->addClass('menu_icon'); $this->addClass('shadow'); if ($title !== null) { $this->setAttribute('title', $title); } }
public function __construct($url = 'index.php', $side = null) { if (is_null($side)) { $side = 'right'; } if ($side == 'right') { $pside = 'left'; } else { $side = 'left'; $pside = 'right'; } parent::__construct(new CDiv(SPACE, 'iconhelp'), 'http://www.zabbix.com/documentation.php'); //'http://www.zabbix.com/manual/v1.1/'.$url); parent::onClick('window.open("http://www.zabbix.com/documentation.php");'); $this->attributes['style'] = 'padding-' . $pside . ': 5px; float:' . $side . ';text-decoration: none;'; $this->attributes['target'] = '_blank'; }