\n"; if ((isset($_SESSION[$_PAGE_INFO['id']]['errormsg']['type'])) && (!empty($_SESSION[$_PAGE_INFO['id']]['errormsg']))) { // Activate alternate stylesheet echo "setActiveStyleSheet('ibox_normal');\n"; if ($_SESSION[$_PAGE_INFO['id']]['errormsg']['type'] == "alert") { $body = "
"; $body .= ""; $ibox_title = (isset($_SESSION[$_PAGE_INFO['id']]['errormsg']['title'])) ? $_SESSION[$_PAGE_INFO['id']]['errormsg']['title'] : "Warning"; echo "iBox.show(\"" . $body . "\", \"" . _($ibox_title) . "\");\n"; } else if (($_SESSION[$_PAGE_INFO['id']]['errormsg']['type'] == "confirm") || ($_SESSION[$_PAGE_INFO['id']]['errormsg']['type'] == "confirm_xml")) { $body = ""; $body .= ""; echo "iBox.show(\"" . $body . "\", \"" . _("Confirm") . "\");\n"; } else if ($_SESSION[$_PAGE_INFO['id']]['errormsg']['type'] == "choose_language") { $body = ""; $body .= ""; echo "iBox.show(\"" . $body . "\", \"" . _("Choose language") . "\"); \n"; } // Hide cancel button (when visible) echo "getElement(\"ibox_cancel_button\").style.visibility=\"hidden\";\n"; // Clear all info $_SESSION[$_PAGE_INFO['id']]['errormsg'] = array(); } echo "\n"; ?>