Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\js\wysiwyg\filemanager\index.jsp
<%@page session="true" import="com.edeal.frontline.*"%><%@ page isELIgnored="false"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); String contextPath = (String) session.getAttribute("contextPath"); FlContext context = Frontline.getContext(contextPath != null ? contextPath : request.getContextPath()); String idColName = Utils.getRequestParameter(context, request, "IDColName"); String fileNameColName = Utils.getRequestParameter(context, request, "FileNameColName"); //if the calling page wants only image/jpeg for example String accept = Utils.getRequestParameter(context, request, "accept"); if (accept != null) { accept = "accept = \"" + accept + "\""; } else { accept = ""; } %><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html;" /> <title>File Manager</title> <link rel="stylesheet" type="text/css" href="styles/reset.css" /> <c:if test="${param.type == 'image'}"> <link rel="stylesheet" type="text/css" href="scripts/jquery.filetree/jqueryFileTreeImage.css" /> </c:if> <c:if test="${param.type != 'image'}"> <link rel="stylesheet" type="text/css" href="scripts/jquery.filetree/jqueryFileTree.css" /> </c:if> <link rel="stylesheet" type="text/css" href="scripts/jquery.contextmenu/jquery.contextMenu.css" /> <link rel="stylesheet" type="text/css" href="styles/filemanager.css" /> <!--[if IE]> <link rel="stylesheet" type="text/css" href="styles/ie.css" /> <![endif]--> <script language="javascript" src="<fl:webapp/>/common/attachment/select_js.jsp"></script> <link rel="stylesheet" type="text/css" href="<fl:webapp/>/css/common_css.jsp"/> <link rel="stylesheet" href="<fl:webapp/>/css/master_css.jsp" type="text/css"/> <style type="text/css"> .link: {cursor: pointer;} </style> <script language="javascript" > function onSubmitHandler() { var f = document.forms[0]; if (f.AttFile.value == "") { window.alert('<fl:getMessage code="M0016" alt="Veuillez sélectionner un fichier."/>'); return false; }else { if (f.AttDesc.value == "") { f.AttDesc.value = traiteNom(f.AttFile.value); } //f.submit(); } } function getQueryVariable(variable) { var query = window.location.search.substring(1); var vars = query.split("&"); for (var i = 0; i < vars.length; i++) { var pair = vars[i].split("="); if (pair[0] == variable) { return unescape(pair[1]); } } } function loadImage(filepath){ $('img').hide(); $('#fileinfo').html(''); $('#fileinfo').append('<br>URL :<a href="#" onclick="selectImage(\''+filepath+'\')">'+filepath+'</a><br>'); $('#fileinfo').append('<img src="'+filepath+'" style="margin: 100px auto; cursor: pointer;width: 150px" border="1" title="Select image" onclick="selectImage(\''+filepath+'\')">'); $('#fileinfo').append('<img src="<fl:webapp/>/icons/ico/supprimer.gif" style="position : absolute; cursor: pointer; top : 0; right : 0px;margin: 2px;" border="1" title="Delete File" onclick="deleteFile(\''+filepath+'\')">'); } function selectImage(filepath){ var w = window.top.opener; var CKEditorFuncNum = getQueryVariable("CKEditorFuncNum"); if (!CKEditorFuncNum) { CKEditorFuncNum = 0; } if (w.CKEDITOR) { w.CKEDITOR.tools.callFunction(CKEditorFuncNum, filepath); window.close(); } } function createFolder(){ window.open('<fl:webapp/>/create_folder.fl', 'Folder' , 'menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no,width=350,height=150'); } function deleteFile(filepath){ var msg = '<fl:getMessage code="M2004" alt="Etes-vous sur de vouloir supprimer ?"/>'; var doDelete = function(v, m){ if(v != 1) return false; var connectString = '<fl:webapp/>/delete_file.fl?url='+filepath; $.ajax({ type: 'GET', url: connectString, dataType: 'json', async: false, success: function(result){ //location.reload(true); $.prompt('Delete successful.'); }, error : function(result){ //location.reload(true); $.prompt('Delete error.'); } }); } $.prompt(msg, { callback: doDelete, buttons: { '<fl:getMessage code="L2005" alt="Oui"/>': 1, '<fl:getMessage code="L2006" alt="Non"/>': 0 } }); } function copyToClipboard(s) { if (window.clipboardData && clipboardData.setData) { clipboardData.setData('text', s); alert('data copied'); } } </script> </head> <body> <form method="post" action="<fl:webapp/>/upload_message_file.fl" enctype="multipart/form-data" name="_GestionAttachements" onsubmit="return onSubmitHandler()"> <div id="uploadresponse"></div> <input id="mode" name="mode" type="hidden" value="add" /> <input id="actualpath" name="actualpath" type="hidden" value="common" /> <span id="path">/common/</span><input id="AttFile" name="AttFile" type="file" /><button id="upload" name="upload" type="submit" value="Enregistrer"><fl:getMessage code="A0003" alt="Enregistrer"/></button> <button id="newfolder" name="newfolder" type="button" onclick="createFolder()" value="Nouveau repertoire"><fl:getMessage code="L821A" alt="Nouveau repertoire"/></button> <!-- <button id="grid" class="ON" type="button" title="Switch to grid view."> </button><button id="list" type="button" title="Switch to list view."> </button> --> </form> <div id="splitter"> <div id="filetree"></div> <div id="fileinfo"><h1>Select an item from the left.</h1></div> </div> <ul id="itemOptions" class="contextMenu"> <li class="select"><a href="#select">Select</a></li> <li class="download"><a href="javascript:onSubmitHandler();">Download</a></li> <li class="rename"><a href="#rename">Rename</a></li> <li class="delete separator"><a href="#delete">Delete</a></li> </ul> <script type="text/javascript" src="scripts/jquery-1.2.6.min.js"></script> <script type="text/javascript" src="scripts/jquery.form.js"></script> <script type="text/javascript" src="scripts/jquery.splitter/jquery.splitter.js"></script> <script type="text/javascript" src="scripts/jquery.filetree/jqueryFileTree.js"></script> <script type="text/javascript" src="scripts/jquery.contextmenu/jquery.contextMenu.js"></script> <script type="text/javascript" src="scripts/jquery.impromptu-1.5.js"></script> <script type="text/javascript" src="scripts/jquery.tablesorter.min.js"></script> <script type="text/javascript" src="scripts/filemanager.config.js"></script> <script type="text/javascript" src="scripts/filemanager.js"></script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de