name && $this->name = uniqid(); !$this->bodydisplay && $this->bodydisplay = 'block'; $this->drag && $this->position = 'absolute'; !$this->theme && $this->theme = 'theme1'; if (preg_match("/(\d+)px/i", $this->width, $m)) { $width_body = $m[1] - 22; $width_body .= 'px'; } else { $width_body = '100%'; } if ($this->closebutton) { !$this->closeFunc && $this->closeFunc = "$('#$this->name').fadeOut('slow');"; $closebutton = " Lang->window->button->end. "\" onclick=\"$this->closeFunc\">"; } if ($this->smallbutton) { $smallbutton = " Lang->window->button->open. "\" onclick=\"$('#body_$this->name').slideDown('slow');\"> Lang->window->button->close. "\" onclick=\"$('#body_$this->name').slideUp('slow');\">"; } if ($this->help) { $helpbutton = " Lang->window->button->help. "\" onclick=\"parent.openhelp('$this->help');\">"; } if ($this->border) { $border =<<<_ border-top:solid #bbb 1px; border-left:solid #bbb 1px; border-right:solid #fff 1px; border-bottom:solid #fff 1px; _; } if ($this->overflow) { $overflow = "overflow:$this->overflow;"; } if ($this->foldericon) { $foldericon =<<<_ background-image:url(images/folder/$this->foldericon); background-repeat: no-repeat; background-position:right bottom _; } $html =<<<_
_; if ($this->statusbar) { if ($this->date) { $viewdate = ""; } if ($this->time) { $viewtime = ""; } if ($this->copy) { $viewcopy = ""; } $html .=<<<_ _; } else { $html .=<<<_ _; } $html .=<<<_
$closebutton $smallbutton $helpbutton $this->caption
$this->body
". jst_time(time(), 5). "name\">$this->copy
$viewdate $viewtime $viewcopy
$this->status
"; return $html; } } ?>