function WYPopupWindowLink($oURL, $sName, $iW, $iH, $iType) { global $goApp; $sJS = ""; parent::WYHTMLTag("a"); $this->bSingular = false; $this->dAttributes["href"] = $oURL->sEURL(); $sJS = WYPopupWindowLink::sOpenWindowCode($oURL, $sName, $iW, $iH, $iType); $sJS .= "; return false;"; $this->dAttributes["onclick"] = webyep_sHTMLEntities($sJS); }
function sNoticeWindowJS($sTitleKey, $sMsgKey, $sHelpFile = "") { $s = ""; $oURL = od_nil; if (!strstr($_SERVER['PHP_SELF'], "notice.php")) { $s .= "<script type='text/javascript'>\n"; $oURL = od_clone($this->oProgramURL); $oURL->addComponent("notice.php"); $oURL->setQuery(array("TITLE" => $sTitleKey, "MESSAGE" => $sMsgKey, "HELP" => $sHelpFile)); $s .= " newWin = " . WYPopupWindowLink::sOpenWindowCode($oURL, "WebYepNotice", 400, 300, WY_POPWIN_TYPE_PLAIN) . ";\n"; $s .= " newWin.focus();"; $s .= "</script>\n"; } return $s; }