1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
---|
2 | <!-- |
---|
3 | * FCKeditor - The text editor for Internet - http://www.fckeditor.net |
---|
4 | * Copyright (C) 2003-2009 Frederico Caldeira Knabben |
---|
5 | * |
---|
6 | * == BEGIN LICENSE == |
---|
7 | * |
---|
8 | * Licensed under the terms of any of the following licenses at your |
---|
9 | * choice: |
---|
10 | * |
---|
11 | * - GNU General Public License Version 2 or later (the "GPL") |
---|
12 | * http://www.gnu.org/licenses/gpl.html |
---|
13 | * |
---|
14 | * - GNU Lesser General Public License Version 2.1 or later (the "LGPL") |
---|
15 | * http://www.gnu.org/licenses/lgpl.html |
---|
16 | * |
---|
17 | * - Mozilla Public License Version 1.1 or later (the "MPL") |
---|
18 | * http://www.mozilla.org/MPL/MPL-1.1.html |
---|
19 | * |
---|
20 | * == END LICENSE == |
---|
21 | * |
---|
22 | * This page shows the actual folder path. |
---|
23 | --> |
---|
24 | <html> |
---|
25 | <head> |
---|
26 | <title>Folder path</title> |
---|
27 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
28 | <link href="browser.css" type="text/css" rel="stylesheet"> |
---|
29 | <script type="text/javascript"> |
---|
30 | // Automatically detect the correct document.domain (#1919). |
---|
31 | (function() |
---|
32 | { |
---|
33 | var d = document.domain ; |
---|
34 | |
---|
35 | while ( true ) |
---|
36 | { |
---|
37 | // Test if we can access a parent property. |
---|
38 | try |
---|
39 | { |
---|
40 | var test = window.top.opener.document.domain ; |
---|
41 | break ; |
---|
42 | } |
---|
43 | catch( e ) |
---|
44 | {} |
---|
45 | |
---|
46 | // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ... |
---|
47 | d = d.replace( /.*?(?:\.|$)/, '' ) ; |
---|
48 | |
---|
49 | if ( d.length == 0 ) |
---|
50 | break ; // It was not able to detect the domain. |
---|
51 | |
---|
52 | try |
---|
53 | { |
---|
54 | document.domain = d ; |
---|
55 | } |
---|
56 | catch (e) |
---|
57 | { |
---|
58 | break ; |
---|
59 | } |
---|
60 | } |
---|
61 | })() ; |
---|
62 | |
---|
63 | function SetCurrentFolder( resourceType, folderPath ) |
---|
64 | { |
---|
65 | document.getElementById('tdName').innerHTML = folderPath ; |
---|
66 | } |
---|
67 | |
---|
68 | window.onload = function() |
---|
69 | { |
---|
70 | window.top.IsLoadedActualFolder = true ; |
---|
71 | } |
---|
72 | |
---|
73 | </script> |
---|
74 | </head> |
---|
75 | <body> |
---|
76 | <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0"> |
---|
77 | <tr> |
---|
78 | <td> |
---|
79 | <button style="WIDTH: 100%" type="button"> |
---|
80 | <table cellSpacing="0" cellPadding="0" width="100%" border="0"> |
---|
81 | <tr> |
---|
82 | <td><img height="32" alt="" src="images/FolderOpened32.gif" width="32"></td> |
---|
83 | <td> </td> |
---|
84 | <td id="tdName" width="100%" nowrap class="ActualFolder">/</td> |
---|
85 | <td> </td> |
---|
86 | <td><img height="8" src="images/ButtonArrow.gif" width="12" alt=""></td> |
---|
87 | <td> </td> |
---|
88 | </tr> |
---|
89 | </table> |
---|
90 | </button> |
---|
91 | </td> |
---|
92 | </tr> |
---|
93 | </table> |
---|
94 | </body> |
---|
95 | </html> |
---|