22 define(
'NOTOKENRENEWAL', 1);
24 require
'../../../../main.inc.php';
29 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
31 * FCKeditor - The text editor
for Internet - http:
32 * Copyright (C) 2003-2010 Frederico Caldeira Knabben
36 * Licensed under the terms of any of the following licenses at your
39 * - GNU General Public License Version 2 or later (the
"GPL")
42 * - GNU Lesser General Public License Version 2.1 or later (the
"LGPL")
45 * - Mozilla Public License Version 1.1 or later (the
"MPL")
50 * Page used to create
new folders in the current folder.
54 <title>Create Folder</title>
55 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
57 print
'<!-- Includes CSS for Dolibarr theme -->'.
"\n";
61 if (!empty($conf->modules_parts[
'theme'])) {
62 foreach ($conf->modules_parts[
'theme'] as $reldir) {
65 $themesubdir = $reldir;
72 print
'<link rel="stylesheet" type="text/css" href="'.$themepath.
'">'.
"\n";
74 <link href=
"browser.css" type=
"text/css" rel=
"stylesheet">
75 <script
type=
"text/javascript" src=
"js/common.js"></script>
76 <script
type=
"text/javascript">
78 function SetCurrentFolder( resourceType, folderPath )
80 oConnector.ResourceType = resourceType ;
81 oConnector.CurrentFolder = folderPath ;
84 function CreateFolder()
90 sFolderName = prompt(
'Type the name of the new folder:',
'' );
92 if ( sFolderName ==
null )
94 else if ( sFolderName.length == 0 )
95 alert(
'Please type the folder name' );
100 oConnector.SendCommand(
'CreateFolder',
'NewFolderName=' + encodeURIComponent( sFolderName) , CreateFolderCallBack );
103 function CreateFolderCallBack( fckXml )
105 if ( oConnector.CheckError( fckXml ) == 0 )
106 window.parent.frames[
'frmResourcesList'].Refresh();
137 window.onload =
function()
139 window.top.IsLoadedCreateFolder = true ;
144 <table
class=
"fullHeight" cellSpacing=
"0" cellPadding=
"0" width=
"100%" border=
"0">
147 <button
type=
"button" class=
"butAction" onclick=
"CreateFolder();"><?php echo $langs->trans(
"ECMNewSection"); ?></button>