Esempio n. 1
0
 public function generateInner()
 {
     $this->setClass('mFieldLabel');
     $this->setRender('label');
     if ($this->property->width) {
         $this->addStyle('width', $this->property->width);
     }
     if ($this->property->help) {
         $id = $this->getId() . 'help';
         $this->page->addDojoRequire("dijit.Tooltip");
         $help = new MImage($id, ' ', 'managerIconButtonHelp');
         $this->text .= '  ' . $help->generate();
         $this->getPage()->onLoad("new dijit.Tooltip({connectId: [\"{$id}\"], label: \"{$this->property->help}\"});");
     }
     $this->inner = trim($this->text) != '' ? $this->render() : '';
 }
Esempio n. 2
0
 function helper_image($matches)
 {
     $m = explode('|', $matches[1]);
     $source = Manager::getStaticURL('', 'images/' . $m[0], true);
     $image = new MImage('', '', '', $source);
     //        return '<a ' . $class . ' href="/' . $target . '">' . $text . '</a>';
     return $image->generate();
 }