Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
- <head>
- <link rel="shortcut icon" href="images/favicon.ico">
- <title>${title}</title>
- <meta name="google" value="notranslate">
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" type="text/css" href="custom/css/jquery.noty.css"/>
- <style type="text/css" media="screen">
- html, body { height:100%; }
- body { margin:0; padding:0; overflow:auto; text-align:center;
- background-color: #869ca7; }
- object:focus { outline:none; }
- #flashContent { display:none; }
- </style>
- <script type="text/javascript" src="swfobject.js"></script>
- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
- <script type="text/javascript" src="custom/js/jquery.noty.js"></script>
- <script language="JavaScript" type="text/javascript">
- var callback = "";
- var externalLayer = "";
- var externalContextId = "";
- var externalApplication = "";
- var integrationQueryName = "";
- var flashvars = {};
- var sURL = window.document.URL.toString();
- // basic disclaimer
- //if (!confirm("This is the disclaimer.\n\nAccept the disclaimer?"))
- //window.location.href = "custom/rejected.htm";
- //noty({text: 'yo!'});
- noty({"text":"First time here? Check out the <a //href=http://www.dekho.com.au/help/32/default.htm>web-help</>","layout":"top","type":"alert","textAlign":"center","easing":"swing","anima//teOpen":{"height":"toggle"},"animateClose":{"height":"toggle"},"speed":"500","timeout":"5000","closable":true,"closeOnSelfClick":true});
- // Check for single sign-on login, if sessionId is in header then AD or NTLM login. Also check for pause parameter.
- <%
- if (request.getParameter("sessionId") != null)
- {
- out.print("flashvars[\"sessionid\"]=\"" + request.getParameter("sessionId") + "\";\n");
- }
- else if (request.getAttribute("sessionId") != null) {
- out.print("flashvars[\"sessionid\"]=\"" + request.getAttribute("sessionId") + "\";\n");
- }
- if (request.getParameter("pause") != null){
- out.print("flashvars[\"pause\"]=\"" + request.getParameter("pause") + "\";\n");
- }
- else if (request.getAttribute("pause") != null){
- out.print("flashvars[\"pause\"]=\"" + request.getAttribute("pause") + "\";\n");
- }
- %>
- // Check for query string parameters.
- if (sURL.indexOf("?") > 0)
- {
- var i = 0;
- var arrURL = sURL.split("?");
- var arrURLParams = arrURL[1].split("&");
- for (i=0; i < arrURLParams.length; i++)
- {
- var arrParam = arrURLParams[i].split("=");
- if (arrParam[0] != "" && arrParam[1] != "")
- {
- switch (arrParam[0])
- {
- case "bookmark" :
- flashvars["bookmarkname"] = unescape(arrParam[1]);
- break;
- case "application" :
- //deprecated use externalapplication, this will fall through to externalapplication
- case "externalapplication" :
- externalApplication = unescape(arrParam[1]);
- flashvars["externalapplication"] = externalApplication;
- break;
- case "integrationqueryname" :
- integrationQueryName = unescape(arrParam[1]);
- flashvars["integrationqueryname"] = integrationQueryName;
- break;
- case "integrationapplication" :
- integrationApplication = unescape(arrParam[1]);
- flashvars["integrationapplication"] = integrationApplication;
- break;
- case "layer" :
- //deprecated use externallayer, this will fall through to externallayer
- case "externallayer" :
- externalLayer = unescape(arrParam[1]);
- flashvars["externallayer"] = externalLayer;
- break;
- case "id" :
- //deprecated use externalids, this will fall through to externalids
- case "externalids" :
- flashvars["externalids"] = unescape(arrParam[1]);
- break;
- case "externalcontextid" :
- externalContextId = unescape(arrParam[1]);
- break;
- case "callback" :
- callback = unescape(arrParam[1]);
- break;
- default:
- //default sets the known ones and will also allow unknown so
- // that custom tools can use them
- // debug, config, pause, map, x, y, distance, queryid
- // queryvalues, sessionid
- flashvars[arrParam[0]] = unescape(arrParam[1]);
- break;
- }
- }
- }
- }
- // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
- var swfVersionStr = "10.1.102";
- // To use express install, set to playerProductInstall.swf, otherwise the empty string.
- var xiSwfUrlStr = "${expressInstallSwf}";
- //var flashvars = {};
- var params = {};
- params.quality = "high";
- params.bgcolor = "#869ca7";
- params.allowscriptaccess = "sameDomain";
- params.allowfullscreen = "false";
- var attributes = {};
- attributes.id = "dekho";
- attributes.name = "dekho";
- attributes.align = "middle";
- swfobject.embedSWF(
- "dekho.swf", "flashContent",
- "100%", "100%",
- swfVersionStr, xiSwfUrlStr,
- flashvars, params, attributes);
- // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
- swfobject.createCSS("#flashContent", "display:block;text-align:left;");
- var sessionid = "";
- function dekhoBroadcast(value)
- {
- var event = value.split(",")[0];
- var session = value.split(",")[1];
- if (event == "loaded" || event == "waiting")
- sessionid = session;
- if (event == "sessiontimeout")
- sessionTimeOut();
- if (event == "sessioninvalid")
- sessionInvalid();
- }
- function sessionTimeOut()
- {
- var answer = confirm("Your session has timed out. Would you like to reload Dekho?")
- if (answer)
- window.location.reload(true);
- //don't do anything if user cancels confrim incase they need to take some notes on
- //their session before its lost.
- }
- function sessionInvalid()
- {
- var answer = confirm("The session does not exist. Would you like to reload Dekho?")
- if (answer)
- window.location.reload(true);
- //don't do anything if user cancels confrim incase they need to take some notes on
- //their session before its lost.
- }
- function dekhoRequest(request)
- {
- var dekhoClient;
- if(navigator.appName.indexOf( "Microsoft" ) != -1)
- {
- dekhoClient = window["dekho"];
- }else{
- dekhoClient = window.document.dekho;
- }
- dekhoClient.dekhoRequest(request);
- }
- function dekhoProtocol(value)
- {
- if (value.indexOf("dekhoprotocol?") > -1)
- value = "dekho:" + value;
- try
- {
- document.getElementById("dekhoProtocolSupportFrame").src = value;
- }
- catch(e)
- {
- //make sure dekho protocol is installed?
- }
- }
- function dekhoResponse(ids)
- {
- if (callback != "" && externalContextId != "" && externalApplication != "" && externalLayer != "" )
- {
- var callbackurl = callback + "?externalcontextid=" + externalContextId + "&externalapplication=" + externalApplication +
- "&externallayer=" + externalLayer + "&externalids=" + ids;
- window.focus();
- top.document.location = callbackurl;
- }
- else
- {
- alert(ids);
- }
- }
- function setTitle(title)
- {
- document.title = title;
- }
- function openWindow(url)
- {
- url = decodeURI(url);
- window.open(url, '_blank');
- }
- function mailTo(mailDetails)
- {
- mailDetails = decodeURI(mailDetails);
- document.getElementById("dekhoProtocolSupportFrame").src = mailDetails;
- //win = window.open(mailDetails,'emailWindow');
- //if (win && win.open &&!win.closed) win.close();
- }
- var printMapImage;
- function openPrintWindow(printTemplateUrl, mapImageString)
- {
- printMapImage = mapImageString;
- var printWindow = window.open(printTemplateUrl, "printWindow");
- }
- function getPrintMapImage()
- {
- return printMapImage;
- //or could have this page inject the map image into a known element
- //var maparea = printWindow.document.getElementById("mapImage");
- //maparea.src = "data:image/png;base64," + printMapImage;
- }
- window.onbeforeunload = function()
- {
- //tell server session has ended
- dekhoRequest('deletesession?sessionid='+sessionid);
- };
- </script>
- </head>
- <body>
- <div id="flashContent">
- <p>
- To view this page ensure that Adobe Flash Player version
- 10.1.102 or greater is installed.
- </p>
- <script type="text/javascript">
- var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
- document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
- + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
- </script>
- </div>
- <noscript>
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="dekho">
- <param name="movie" value="dekho.swf" />
- <param name="quality" value="high" />
- <param name="bgcolor" value="#869ca7" />
- <param name="allowScriptAccess" value="sameDomain" />
- <param name="allowFullScreen" value="true" />
- <!--[if !IE]>-->
- <object type="application/x-shockwave-flash" data="dekho.swf" width="100%" height="100%">
- <param name="quality" value="high" />
- <param name="bgcolor" value="#869ca7" />
- <param name="allowScriptAccess" value="sameDomain" />
- <param name="allowFullScreen" value="true" />
- <!--<![endif]-->
- <!--[if gte IE 6]>-->
- <p>
- Either scripts and active content are not permitted to run or Adobe Flash Player version
- 10.1.102 or greater is not installed.
- </p>
- <!--<![endif]-->
- <a href="http://www.adobe.com/go/getflashplayer">
- <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
- </a>
- <!--[if !IE]>-->
- </object>
- <!--<![endif]-->
- </object>
- </noscript>
- <iframe id="dekhoProtocolSupportFrame" style="display:none;width:0px;height:0px" />
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement