PageRenderTime 73ms CodeModel.GetById 64ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/pigeoncms/Plugins/fckeditor/editor/filemanager/browser/default/frmcreatefolder.html

http://pigeoncms.googlecode.com/
HTML | 114 lines | 83 code | 9 blank | 22 comment | 0 complexity | dab98375ff8fef112dfdb12f5a185b1e MD5 | raw file
  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 * Page used to create new folders in the current folder.
 23-->
 24<html>
 25	<head>
 26		<title>Create Folder</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" src="js/common.js"></script>
 30		<script type="text/javascript">
 31
 32function SetCurrentFolder( resourceType, folderPath )
 33{
 34	oConnector.ResourceType = resourceType ;
 35	oConnector.CurrentFolder = folderPath ;
 36}
 37
 38function CreateFolder()
 39{
 40	var sFolderName ;
 41
 42	while ( true )
 43	{
 44		sFolderName = prompt( 'Type the name of the new folder:', '' ) ;
 45
 46		if ( sFolderName == null )
 47			return ;
 48		else if ( sFolderName.length == 0 )
 49			alert( 'Please type the folder name' ) ;
 50		else
 51			break ;
 52	}
 53
 54	oConnector.SendCommand( 'CreateFolder', 'NewFolderName=' + encodeURIComponent( sFolderName) , CreateFolderCallBack ) ;
 55}
 56
 57function CreateFolderCallBack( fckXml )
 58{
 59	if ( oConnector.CheckError( fckXml ) == 0 )
 60		window.parent.frames['frmResourcesList'].Refresh() ;
 61
 62	/*
 63	// Get the current folder path.
 64	var oNode = fckXml.SelectSingleNode( 'Connector/Error' ) ;
 65	var iErrorNumber = parseInt( oNode.attributes.getNamedItem('number').value ) ;
 66
 67	switch ( iErrorNumber )
 68	{
 69		case 0 :
 70			window.parent.frames['frmResourcesList'].Refresh() ;
 71			break ;
 72		case 101 :
 73			alert( 'Folder already exists' ) ;
 74			break ;
 75		case 102 :
 76			alert( 'Invalid folder name' ) ;
 77			break ;
 78		case 103 :
 79			alert( 'You have no permissions to create the folder' ) ;
 80			break ;
 81		case 110 :
 82			alert( 'Unknown error creating folder' ) ;
 83			break ;
 84		default :
 85			alert( 'Error creating folder. Error number: ' + iErrorNumber ) ;
 86			break ;
 87	}
 88	*/
 89}
 90
 91window.onload = function()
 92{
 93	window.top.IsLoadedCreateFolder = true ;
 94}
 95		</script>
 96	</head>
 97	<body>
 98		<table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0">
 99			<tr>
100				<td>
101					<button type="button" style="WIDTH: 100%" onclick="CreateFolder();">
102						<table cellSpacing="0" cellPadding="0" border="0">
103							<tr>
104								<td><img height="16" alt="" src="images/Folder.gif" width="16"></td>
105								<td>&nbsp;</td>
106								<td nowrap>Create New Folder</td>
107							</tr>
108						</table>
109					</button>
110				</td>
111			</tr>
112		</table>
113	</body>
114</html>