| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <!-- 3 * FCKeditor - The text editor for internet 4 * Copyright (C) 2003-2006 Frederico Caldeira Knabben 5 * 6 * Licensed under the terms of the GNU Lesser General Public License: 7 * http://www.opensource.org/licenses/lgpl-license.php 8 * 9 * For further information visit: 10 * http://www.fckeditor.net/ 11 * 12 * "Support Open Source software. What about a donation today?" 13 * 14 * File Name: frmresourceslist.html 15 * This page shows all resources available in a folder in the File Browser. 16 * 17 * File Authors: 18 * Frederico Caldeira Knabben (fredck@fckeditor.net) 19 --> 20 <html xmlns="http://www.w3.org/1999/xhtml"> 21 <head> 22 <link href="browser.css" type="text/css" rel="stylesheet" /> 23 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 24 <script type="text/javascript" src="/fckeditor/common.js"></script> 25 <script type="text/javascript"> 26 <!-- 27 var oListManager = new Object() ; 28 29 oListManager.Clear = function() 30 { 31 document.body.innerHTML = '' ; 32 } 33 34 oListManager.GetFolderRowHtml = function( folderName, folderPath, id, sUrl ) 35 { 36 // Build the link to view the folder. 37 var sLink = '<a href="#" onclick="OpenFolder(\'' + folderPath.replace( /'/g, '\\\'') + '\');return false;">' ; 38 var sSelectLink = '<a href="#" onclick="Select(\'' + sUrl + '\', ' + id + ', \'' + folderName + '\');return false;">' ; 39 40 return '<tr>' + 41 '<td width="16">' + 42 sLink + 43 '<img alt="" src="/fckeditor/images/Folder.gif" width="16" height="16" border="0"></a>' + 44 '</td><td nowrap colspan="2"> ' + 45 sLink + 46 folderName + 47 '</a> ' + 48 sSelectLink + 49 'Выбрать</a>' + 50 '</td></tr>' ; 51 } 52 53 function OpenFolder( folderPath ) 54 { 55 // Load the resources list for this folder. 56 window.parent.frames['frmFolders'].LoadFolders( folderPath ) ; 57 } 58 59 function Select( fileUrl, id, fileName ) 60 { 61 window.top.opener.SetUrl( fileUrl, id, fileName ) ; 62 window.top.close() ; 63 window.top.opener.focus() ; 64 } 65 66 function LoadResources( folderPath ) 67 { 68 oListManager.Clear() ; 69 oConnector.CurrentFolder = folderPath 70 oConnector.SendCommand( 'GetFoldersAndFiles', null, GetFoldersAndFilesCallBack ) ; 71 } 72 73 function Refresh() 74 { 75 LoadResources( oConnector.CurrentFolder ) ; 76 } 77 78 function GetFoldersAndFilesCallBack( fckXml ) 79 { 80 if ( oConnector.CheckError( fckXml ) != 0 ) 81 return ; 82 83 // var dTimer = new Date() ; 84 85 // Get the current folder path. 86 var oNode = fckXml.SelectSingleNode( 'Connector/CurrentFolder' ) ; 87 var sCurrentFolderPath = oNode.attributes.getNamedItem('path').value ; 88 var sCurrentFolderUrl = oNode.attributes.getNamedItem('url').value ; 89 90 var sHTML = '<table id="tableFiles" cellspacing="1" cellpadding="0" width="100%" border="0">' ; 91 92 93 // Add the Folders. 94 var oNodes = fckXml.SelectNodes( 'Connector/Folders/Folder' ) ; 95 for ( var i = 0 ; i < oNodes.length ; i++ ) 96 { 97 var sFolderName = oNodes[i].attributes.getNamedItem('name').value ; 98 var sUrl = oNodes[i].attributes.getNamedItem('url').value ; 99 var folderId = oNodes[i].attributes.getNamedItem('id').value ; 100 sHTML += oListManager.GetFolderRowHtml( sFolderName, sCurrentFolderPath + folderId + "/" , folderId, sUrl ) ; 101 } 102 103 // Add the Files. 104 var oNodes = fckXml.SelectNodes( 'Connector/Files/File' ) ; 105 for ( var i = 0 ; i < oNodes.length ; i++ ) 106 { 107 } 108 109 sHTML += '</table>' ; 110 111 document.body.innerHTML = sHTML ; 112 113 // window.top.document.title = 'Finished processing in ' + ( ( ( new Date() ) - dTimer ) / 1000 ) + ' seconds' ; 114 } 115 116 window.onload = function() 117 { 118 window.top.IsLoadedResourcesList = true ; 119 } 120 --> 121 </script> 122 </head> 123 <body class="FileArea" bottommargin="10" leftmargin="10" topmargin="10" rightmargin="10"> 124 </body> 125 </html>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Fri Dec 5 04:05:07 2008 | Cross-referenced by PHPXref 0.7 |