22 define(
'NOTOKENRENEWAL', 1);
24 require
'../../../../main.inc.php';
26 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
28 * FCKeditor - The text editor
for Internet - http:
29 * Copyright (C) 2003-2010 Frederico Caldeira Knabben
33 * Licensed under the terms of any of the following licenses at your
36 * - GNU General Public License Version 2 or later (the
"GPL")
39 * - GNU Lesser General Public License Version 2.1 or later (the
"LGPL")
42 * - Mozilla Public License Version 1.1 or later (the
"MPL")
47 * Page used to create
new folders in the current folder.
51 <title>Create Folder</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" src=
"js/common.js"></script>
55 <script
type=
"text/javascript">
57 function SetCurrentFolder( resourceType, folderPath )
59 oConnector.ResourceType = resourceType ;
60 oConnector.CurrentFolder = folderPath ;
63 function CreateFolder()
69 sFolderName = prompt(
'Type the name of the new folder:',
'' );
71 if ( sFolderName == null )
73 else if ( sFolderName.length == 0 )
74 alert(
'Please type the folder name' );
79 oConnector.SendCommand(
'CreateFolder',
'NewFolderName=' + encodeURIComponent( sFolderName) , CreateFolderCallBack );
82 function CreateFolderCallBack( fckXml )
84 if ( oConnector.CheckError( fckXml ) == 0 )
85 window.parent.frames[
'frmResourcesList'].Refresh();
116 window.onload =
function()
118 window.top.IsLoadedCreateFolder = true ;
123 <table
class=
"fullHeight" cellSpacing=
"0" cellPadding=
"0" width=
"100%" border=
"0">
126 <button
type=
"button" style=
"WIDTH: 100%" onclick=
"CreateFolder();">
127 <table cellSpacing=
"0" cellPadding=
"0" border=
"0">
129 <td><?php echo
img_picto_common(
'',
'treemenu/folder.gif',
'width="16" height="16"'); ?></td>
131 <td
class=
"nowrap">Create New Folder</td>
img_picto_common($titlealt, $picto, $moreatt= '', $pictoisfullpath=0)
Show picto (generic function)
if(preg_match('/crypted:/i', $dolibarr_main_db_pass)||!empty($dolibarr_main_db_encrypted_pass)) $conf db type