Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2012
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  3.     <head>
  4.         <link rel="shortcut icon" href="images/favicon.ico">
  5.         <title>${title}</title>
  6.         <meta name="google" value="notranslate">        
  7.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8.         <link rel="stylesheet" type="text/css" href="custom/css/jquery.noty.css"/>
  9.         <style type="text/css" media="screen">
  10.             html, body  { height:100%; }
  11.             body { margin:0; padding:0; overflow:auto; text-align:center;
  12.                    background-color: #869ca7; }  
  13.             object:focus { outline:none; }
  14.             #flashContent { display:none; }
  15.         </style>
  16.  
  17.         <script type="text/javascript" src="swfobject.js"></script>
  18.         <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
  19.         <script type="text/javascript" src="custom/js/jquery.noty.js"></script>        
  20.         <script language="JavaScript" type="text/javascript">
  21.        
  22.             var callback = "";
  23.             var externalLayer = "";
  24.             var externalContextId = "";
  25.             var externalApplication = "";
  26.             var integrationQueryName = "";
  27.             var flashvars = {};
  28.             var sURL = window.document.URL.toString();
  29.            
  30.             // basic disclaimer
  31.             //if (!confirm("This is the disclaimer.\n\nAccept the disclaimer?"))
  32.             //window.location.href = "custom/rejected.htm";
  33.  
  34.             //noty({text: 'yo!'});      
  35.            
  36.             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});
  37.            
  38.             // Check for single sign-on login, if sessionId is in header then AD or NTLM login. Also check for pause parameter.
  39.             <%
  40.             if (request.getParameter("sessionId") != null)
  41.             {
  42.                 out.print("flashvars[\"sessionid\"]=\"" + request.getParameter("sessionId")  + "\";\n");
  43.                
  44.             }
  45.             else if (request.getAttribute("sessionId") != null) {
  46.                 out.print("flashvars[\"sessionid\"]=\"" + request.getAttribute("sessionId")  + "\";\n");
  47.             }
  48.            
  49.             if (request.getParameter("pause") != null){
  50.                 out.print("flashvars[\"pause\"]=\"" + request.getParameter("pause") + "\";\n");
  51.             }
  52.             else if (request.getAttribute("pause") != null){
  53.                 out.print("flashvars[\"pause\"]=\"" + request.getAttribute("pause") + "\";\n");
  54.             }
  55.             %>
  56.            
  57.             // Check for query string parameters.  
  58.             if (sURL.indexOf("?") > 0)
  59.             {
  60.                 var i = 0;
  61.                 var arrURL = sURL.split("?");
  62.                 var arrURLParams = arrURL[1].split("&");
  63.            
  64.                 for (i=0; i < arrURLParams.length; i++)
  65.                 {
  66.                     var arrParam = arrURLParams[i].split("=");
  67.            
  68.                     if (arrParam[0] != "" && arrParam[1] != "")
  69.                     {
  70.                         switch (arrParam[0])
  71.                         {
  72.                             case "bookmark" :
  73.                                 flashvars["bookmarkname"] = unescape(arrParam[1]);
  74.                                 break;
  75.                             case "application" :
  76.                                 //deprecated use externalapplication, this will fall through to externalapplication
  77.                             case "externalapplication" :
  78.                                 externalApplication = unescape(arrParam[1]);
  79.                                 flashvars["externalapplication"] = externalApplication;
  80.                                 break;
  81.                             case "integrationqueryname" :
  82.                                 integrationQueryName = unescape(arrParam[1]);
  83.                                 flashvars["integrationqueryname"] = integrationQueryName;
  84.                                 break;
  85.                             case "integrationapplication" :
  86.                                 integrationApplication = unescape(arrParam[1]);
  87.                                 flashvars["integrationapplication"] = integrationApplication;
  88.                                 break;
  89.                             case "layer" :
  90.                                 //deprecated use externallayer, this will fall through to externallayer
  91.                             case "externallayer" :
  92.                                 externalLayer = unescape(arrParam[1]);
  93.                                 flashvars["externallayer"] = externalLayer;
  94.                                 break;
  95.                             case "id" :
  96.                                 //deprecated use externalids, this will fall through to externalids
  97.                             case "externalids" :
  98.                                 flashvars["externalids"] = unescape(arrParam[1]);
  99.                                 break;
  100.                             case "externalcontextid" :
  101.                                 externalContextId = unescape(arrParam[1]);
  102.                                 break;
  103.                             case "callback" :
  104.                                 callback = unescape(arrParam[1]);
  105.                                 break;
  106.                             default:
  107.                                 //default sets the known ones and will also allow unknown so
  108.                                 // that custom tools can use them
  109.                                 //  debug, config, pause, map, x, y, distance, queryid
  110.                                 //  queryvalues, sessionid
  111.                                 flashvars[arrParam[0]] = unescape(arrParam[1]);
  112.                                 break;
  113.                         }
  114.                     }
  115.                 }
  116.             }
  117.            
  118.             // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
  119.             var swfVersionStr = "10.1.102";
  120.             // To use express install, set to playerProductInstall.swf, otherwise the empty string.
  121.             var xiSwfUrlStr = "${expressInstallSwf}";
  122.             //var flashvars = {};
  123.             var params = {};
  124.             params.quality = "high";
  125.             params.bgcolor = "#869ca7";
  126.             params.allowscriptaccess = "sameDomain";
  127.             params.allowfullscreen = "false";
  128.             var attributes = {};
  129.             attributes.id = "dekho";
  130.             attributes.name = "dekho";
  131.             attributes.align = "middle";
  132.             swfobject.embedSWF(
  133.                 "dekho.swf", "flashContent",
  134.                 "100%", "100%",
  135.                 swfVersionStr, xiSwfUrlStr,
  136.                 flashvars, params, attributes);
  137.             // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
  138.             swfobject.createCSS("#flashContent", "display:block;text-align:left;");
  139.  
  140.             var sessionid = "";
  141.             function dekhoBroadcast(value)
  142.             {
  143.                 var event = value.split(",")[0];
  144.                 var session = value.split(",")[1];
  145.  
  146.                 if (event == "loaded" || event == "waiting")
  147.                     sessionid = session;
  148.  
  149.                 if (event == "sessiontimeout")
  150.                     sessionTimeOut();
  151.  
  152.                 if (event == "sessioninvalid")
  153.                     sessionInvalid();
  154.             }
  155.            
  156.             function sessionTimeOut()
  157.             {
  158.                 var answer = confirm("Your session has timed out. Would you like to reload Dekho?")
  159.                
  160.                 if (answer)
  161.                     window.location.reload(true);
  162.                    
  163.                 //don't do anything if user cancels confrim incase they need to take some notes on
  164.                 //their session before its lost.
  165.             }
  166.  
  167.             function sessionInvalid()
  168.             {
  169.                 var answer = confirm("The session does not exist. Would you like to reload Dekho?")
  170.                
  171.                 if (answer)
  172.                     window.location.reload(true);
  173.                    
  174.                 //don't do anything if user cancels confrim incase they need to take some notes on
  175.                 //their session before its lost.
  176.             }
  177.  
  178.             function dekhoRequest(request)
  179.             {
  180.                 var dekhoClient;
  181.                 if(navigator.appName.indexOf( "Microsoft" ) != -1)
  182.                 {
  183.                     dekhoClient = window["dekho"];
  184.                 }else{
  185.                     dekhoClient = window.document.dekho;
  186.                 }
  187.                 dekhoClient.dekhoRequest(request);
  188.             }
  189.            
  190.            
  191.             function dekhoProtocol(value)
  192.             {
  193.                 if (value.indexOf("dekhoprotocol?") > -1)
  194.                     value = "dekho:" + value;
  195.                    
  196.                 try
  197.                 {
  198.                     document.getElementById("dekhoProtocolSupportFrame").src = value;
  199.                 }
  200.                 catch(e)
  201.                 {
  202.                     //make sure dekho protocol is installed?
  203.                 }
  204.             }
  205.            
  206.             function dekhoResponse(ids)
  207.             {
  208.                 if (callback != "" && externalContextId != "" && externalApplication != "" && externalLayer != "" )
  209.                 {
  210.                     var callbackurl = callback + "?externalcontextid=" + externalContextId + "&externalapplication=" + externalApplication +
  211.                         "&externallayer=" + externalLayer + "&externalids=" + ids;
  212.            
  213.                     window.focus();
  214.                     top.document.location = callbackurl;
  215.                 }
  216.                 else
  217.                 {
  218.                     alert(ids);
  219.                 }
  220.             }
  221.            
  222.             function setTitle(title)
  223.             {
  224.                 document.title = title;
  225.             }
  226.            
  227.             function openWindow(url)
  228.             {
  229.                 url = decodeURI(url);
  230.                 window.open(url, '_blank');
  231.             }
  232.            
  233.             function mailTo(mailDetails)
  234.             {
  235.                 mailDetails = decodeURI(mailDetails);
  236.                 document.getElementById("dekhoProtocolSupportFrame").src = mailDetails;
  237.                 //win = window.open(mailDetails,'emailWindow');
  238.                 //if (win && win.open &&!win.closed) win.close();
  239.             }
  240.  
  241.             var printMapImage;
  242.             function openPrintWindow(printTemplateUrl, mapImageString)
  243.             {
  244.                 printMapImage = mapImageString;
  245.                 var printWindow = window.open(printTemplateUrl, "printWindow");
  246.             }
  247.  
  248.             function getPrintMapImage()
  249.             {
  250.                 return printMapImage;
  251.                 //or could have this page inject the map image into a known element
  252.                 //var maparea = printWindow.document.getElementById("mapImage");
  253.                 //maparea.src = "data:image/png;base64," + printMapImage;
  254.             }
  255.  
  256.             window.onbeforeunload = function()
  257.             {
  258.                 //tell server session has ended
  259.                 dekhoRequest('deletesession?sessionid='+sessionid);
  260.             };
  261.  
  262.         </script>
  263.  
  264.     </head>
  265.  
  266.     <body>
  267.  
  268.         <div id="flashContent">
  269.             <p>
  270.                 To view this page ensure that Adobe Flash Player version
  271.                 10.1.102 or greater is installed.
  272.             </p>
  273.             <script type="text/javascript">
  274.                 var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
  275.                 document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
  276.                                 + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
  277.             </script>
  278.         </div>
  279.        
  280.         <noscript>
  281.             <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%" id="dekho">
  282.                 <param name="movie" value="dekho.swf" />
  283.                 <param name="quality" value="high" />
  284.                 <param name="bgcolor" value="#869ca7" />
  285.                 <param name="allowScriptAccess" value="sameDomain" />
  286.                 <param name="allowFullScreen" value="true" />
  287.                 <!--[if !IE]>-->
  288.                 <object type="application/x-shockwave-flash" data="dekho.swf" width="100%" height="100%">
  289.                     <param name="quality" value="high" />
  290.                     <param name="bgcolor" value="#869ca7" />
  291.                     <param name="allowScriptAccess" value="sameDomain" />
  292.                     <param name="allowFullScreen" value="true" />
  293.                 <!--<![endif]-->
  294.                 <!--[if gte IE 6]>-->
  295.                     <p>
  296.                         Either scripts and active content are not permitted to run or Adobe Flash Player version
  297.                         10.1.102 or greater is not installed.
  298.                     </p>
  299.                 <!--<![endif]-->
  300.                     <a href="http://www.adobe.com/go/getflashplayer">
  301.                         <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
  302.                     </a>
  303.                 <!--[if !IE]>-->
  304.                 </object>
  305.                 <!--<![endif]-->
  306.             </object>
  307.         </noscript>    
  308.  
  309.         <iframe id="dekhoProtocolSupportFrame" style="display:none;width:0px;height:0px" />
  310.  
  311.    </body>
  312. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement