dolibarr  7.0.0-beta
frmactualfolder.php
1 <?php
2 /* Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
3  * Copyright (C) 2003-2010 Frederico Caldeira Knabben
4  *
5  * Source modified from part of fckeditor (http://www.fckeditor.net)
6  * retreived as GPL v2 or later
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  */
21 
22 define('NOTOKENRENEWAL',1); // Disables token renewal
23 
24 require '../../../../main.inc.php';
25 ?>
26 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
27 <!--
28  * FCKeditor - The text editor for Internet - http://www.fckeditor.net
29  * Copyright (C) 2003-2010 Frederico Caldeira Knabben
30  *
31  * == BEGIN LICENSE ==
32  *
33  * Licensed under the terms of any of the following licenses at your
34  * choice:
35  *
36  * - GNU General Public License Version 2 or later (the "GPL")
37  * http://www.gnu.org/licenses/gpl.html
38  *
39  * - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
40  * http://www.gnu.org/licenses/lgpl.html
41  *
42  * - Mozilla Public License Version 1.1 or later (the "MPL")
43  * http://www.mozilla.org/MPL/MPL-1.1.html
44  *
45  * == END LICENSE ==
46  *
47  * This page shows the actual folder path.
48 -->
49 <html>
50  <head>
51  <title>Folder path</title>
52  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
53  <link href="browser.css" type="text/css" rel="stylesheet">
54  <script type="text/javascript">
55 // Automatically detect the correct document.domain (#1919).
56 (function()
57 {
58  var d = document.domain ;
59 
60  while ( true )
61  {
62  // Test if we can access a parent property.
63  try
64  {
65  var test = window.top.opener.document.domain ;
66  break ;
67  }
68  catch( e )
69  {}
70 
71  // Remove a domain part: www.mytest.example.com => mytest.example.com => example.com ...
72  d = d.replace( /.*?(?:\.|$)/, '' );
73 
74  if ( d.length == 0 )
75  break ; // It was not able to detect the domain.
76 
77  try
78  {
79  document.domain = d ;
80  }
81  catch (e)
82  {
83  break ;
84  }
85  }
86 })();
87 
88 function SetCurrentFolder( resourceType, folderPath )
89 {
90  document.getElementById('tdName').innerHTML = folderPath ;
91 }
92 
93 window.onload = function()
94 {
95  window.top.IsLoadedActualFolder = true ;
96 }
97 
98  </script>
99  </head>
100  <body>
101  <table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0">
102  <tr>
103  <td>
104  <button style="WIDTH: 100%" type="button">
105  <table cellSpacing="0" cellPadding="0" width="100%" border="0">
106  <tr>
107  <td><?php echo img_picto_common('','treemenu/folder.gif','width="16" height="16"'); ?></td>
108  <td>&nbsp;</td>
109  <td id="tdName" width="100%" class="ActualFolder nowrap">/</td>
110  <td>&nbsp;</td>
111  <td>&nbsp;</td>
112  <td>&nbsp;</td>
113  </tr>
114  </table>
115  </button>
116  </td>
117  </tr>
118  </table>
119  </body>
120 </html>
img_picto_common($titlealt, $picto, $moreatt= '', $pictoisfullpath=0)
Show picto (generic function)
type
Definition: viewcat.php:283