예제 #1
0
 private function getTitle()
 {
     $div = new HTMLDiv('WindowTitle');
     $div->setAttribute('class', 'ui-widget-header');
     $div->setStyle('position', 'relative');
     $div->setStyle('top', 0);
     $div->setStyle('text-align', $this->titleAlign);
     $div->setStyle('padding', '5px');
     $span = new HTMLSpan($this->title);
     $div->appendChild($span);
     $div->appendChild($this->closeIcon);
     $div->setAttribute(IMouseEvent::DOWN, "\$('#{$this->windowId}').draggable();");
     return $div->getOutput();
 }