From 3a41d6d8ab9c4d0f7b6dd1355c0c80f298e69549 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 12 Apr 2010 17:46:44 +0800 Subject: [PATCH] compiled --- compiled/Ftp.js | 40 +++++++++++++++++++++++++++++++++++++++ compiled/_translation_.js | 25 ++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 compiled/Ftp.js create mode 100644 compiled/_translation_.js diff --git a/compiled/Ftp.js b/compiled/Ftp.js new file mode 100644 index 0000000..f70b243 --- /dev/null +++ b/compiled/Ftp.js @@ -0,0 +1,40 @@ +if (typeof(_T) == 'undefined') { _T={};} +_T["ee5191b1755b11f771b94531b74dabea"]="Ftp"; +_T["9103467bf057167ace4a857105b88256"]="Ftp Tab"; +_T["5d75a62013c325a4c5be35cbcf54e494"]="Directories"; + +_T["893a9576ca2439b6d2fd041250280e4d"]="/"; +_T["04e235c0089cb876815f53809f1e3d0c"]="Add Folder"; +_T["c0002ef609cad51840326bd8ab3f7bbd"]="Ftp Folders"; +_T["0cc979b3cc6c101756803fa98615fdb0"]="Reload Tree"; +_T["798fe9bf0f216dfa1efe5b9c8554ddf2"]="Delete Folder"; +_T["7e0bbd35ceb03893814d22cf9fe000a6"]="Rename Folder"; +_T["41818a4ae3d32c8bf6d6a1a38220e90e"]="Manage Folders"; + +_T["68daa06222fe981203e1b4ae04497676"]="Size"; +_T["38746bdcf125797646ac3f74c28c91a6"]="Files"; +_T["91b1e6d3a1e9c62b6c66e6da80cc71b1"]="DELETE"; +_T["adc2513232245bfdd3b55a85baf1d46d"]="RENAME"; +_T["f5a7360379dd701dfa3cb0baa0187c9d"]="Details"; +_T["7828dec7b679ed103c69e935ae51de0a"]="Filename"; +_T["9cc00f9c6aa52b27cc9f7b38b486041b"]="Modified"; +_T["1c5b6193e8bda9157406bbd273e24ebc"]="Ftp Files"; + +Pman.on("beforeload",function(){if(!Pman.hasPerm("Ftp.Ftp","S")||Pman.Tab.FtpTab.disabled){return;}Pman.register({modKey:"017-pman-tab-ftptab",module:Pman.Tab.FtpTab,region:"center",parent:Pman,name:_T["9103467bf057167ace4a857105b88256"],finalize:function(){var A=Pman.Tab.FtpTab; +if(!A.layout){return;}A.layout.endUpdate();}});});Pman.Tab.FtpTab={tab:false,layout:false,disabled:false,add:function(C,B){if(!Pman.hasPerm("Ftp.Ftp","S")||this.disabled){return;}var A=this;this.layout=new Ext.BorderLayout(C.getEl().createChild({tag:"div"}),{west:{title:_T["5d75a62013c325a4c5be35cbcf54e494"],split:true,initialSize:220,titlebar:true,collapsible:true,autoScroll:false},center:{titlebar:false,autoScroll:false,closeOnTab:true,tabPosition:"top",alwaysShowTabs:false,minTabWidth:140}}); +this.tab=C.add(B,new Ext.NestedLayoutPanel(this.layout,{title:_T["ee5191b1755b11f771b94531b74dabea"]}));this.tab.on("activate",function(){A.layout.getRegion("west").showPanel(0);A.layout.getRegion("center").showPanel(0);});this.layout.beginUpdate();}}; +Pman.on("beforeload",function(){Pman.register({modKey:"001-pman-tab-ftptree",module:Pman.Tab.FtpTree,region:"west",parent:Pman.Tab.FtpTab,name:_T["c0002ef609cad51840326bd8ab3f7bbd"]});});Pman.Tab.FtpTree={grid:false,panel:false,add:function(C,B){this.innerLayout=new Ext.BorderLayout(C.getEl().createChild({tag:"div"}),{center:{autoScroll:false,hideTabs:true}}); +this.tab=C.add(B,new Ext.NestedLayoutPanel(this.innerLayout,{title:_T["c0002ef609cad51840326bd8ab3f7bbd"],background:true}));var A=this;this.tab.on("activate",function(){A.delayedCreate();});},delayedCreate:function(){if(this.grid){return;}this.innerLayout.beginUpdate(); +var B=this;var E=this.innerLayout.getEl().createChild({tag:"div"});var tb=new Roo.Toolbar(E.createChild({tag:"div"}),[]);var C=E.createChild({tag:"div"});this.panel=this.innerLayout.add("center",new Roo.ContentPanel(E,{fitToFrame:true,fitContainer:true,autoScroll:false,toolbar:tb,listeners:{resize:function(cp,w,h){B.tree.innerCt.setWidth(w); +B.tree.innerCt.setHeight(h);B.tree.innerCt.setStyle("overflow-y","auto");}}}));this.tree=new Roo.tree.TreePanel(C,{loader:new Roo.tree.TreeLoader({dataUrl:baseURL+"/Ftp/List.php",requestMethod:"GET",root:"data",queryParam:"name",baseParams:{start:0,limit:9999,person_id:Pman.Login.authUser.id},listeners:{beforeload:function(tl,n){}}}),renderer:function(F){return String.format("{0}",F.name); +},containerScroll:true,rootVisible:false,loadMask:true,listeners:{rowdblclick:function(g,ri,e){}}});this.tree.getSelectionModel().on("selectionchange",function(sm,n){Pman.Tab.FtpFiles.reload();});var A=new Roo.tree.AsyncTreeNode({name:_T["893a9576ca2439b6d2fd041250280e4d"],draggable:false,id:"/"}); +this.tree.setRootNode(A);this.tree.render();A.expand();var D=Pman.Dialog.ClippingTree;tb.add({text:_T["41818a4ae3d32c8bf6d6a1a38220e90e"],cls:"x-btn-text-icon",icon:Ext.rootURL+"images/default/tree/leaf.gif",menu:{items:[{text:_T["04e235c0089cb876815f53809f1e3d0c"],cls:"x-btn-text-icon",icon:Ext.rootURL+"images/default/dd/drop-add.gif",handler:function(){}},{text:_T["7e0bbd35ceb03893814d22cf9fe000a6"],cls:"x-btn-text-icon",icon:Ext.rootURL+"images/default/tree/leaf.gif",handler:function(){}},{text:_T["798fe9bf0f216dfa1efe5b9c8554ddf2"],cls:"x-btn-text-icon",icon:rootURL+"/Pman/templates/images/trash.gif",handler:function(){}},"-",{text:_T["0cc979b3cc6c101756803fa98615fdb0"],cls:"x-btn-text-icon",icon:rootURL+"/Pman/templates/images/view-refresh.gif",handler:function(){B.reloadTree(); +}}]}});this.innerLayout.endUpdate();},deleteNode:function(A){},reloadTree:function(){}}; +Pman.on("beforeload",function(){Pman.register({modKey:"016-pman-tab-ftpfiles",module:Pman.Tab.FtpFiles,region:"center",parent:Pman.Tab.FtpTab,name:_T["1c5b6193e8bda9157406bbd273e24ebc"]});});Pman.Tab.FtpFiles={grid:false,panel:false,add:function(C,B){if(this.panel){C.getRegion(B).showPanel(this.panel); +return;}this.layout=new Ext.BorderLayout(C.getEl().createChild({tag:"div"}),{center:{autoScroll:true,hideTabs:true,fitToFrame:true},south:{split:true,titleBar:false,autoScroll:true,hideTabs:true,collapsible:false,height:250}});var A=this;this.tab=C.add(B,new Ext.NestedLayoutPanel(this.layout,{title:_T["38746bdcf125797646ac3f74c28c91a6"],background:true})); +this.tab.on("activate",function(){A.delayedCreate();A.reload();});},delayedCreate:function(){if(this.grid){return;}var B=this;this.layout.beginUpdate();var A=this.layout.getEl().createChild({tag:"div"});this.grid=new Ext.grid.Grid(A,{id:"grid-supplog",ds:new Ext.data.Store({proxy:new Ext.data.HttpProxy({url:baseURL+"/Ftp/List.php",method:"GET"}),remoteSort:true,reader:{root:"data",totalProperty:"total",id:"id",xtype:"JsonReader",fields:["id","name","mtime","size"]},listeners:{beforeload:function(t,o){var sn=Pman.Tab.FtpTree.tree.getSelectionModel().getSelectedNode(); +if(!sn){return false;}o.params.name=sn.attributes.id;o.params.type="files";},load:function(){},loadexception:Pman.loadException},sortInfo:{field:"name",direction:"DESC"}}),cm:new Ext.grid.ColumnModel([{id:"ftpfiles-name",header:_T["7828dec7b679ed103c69e935ae51de0a"],dataIndex:"name",sortable:false,width:170},{header:_T["68daa06222fe981203e1b4ae04497676"],dataIndex:"size",sortable:false,width:130},{header:_T["9cc00f9c6aa52b27cc9f7b38b486041b"],dataIndex:"mtime",sortable:false,width:130}]),autoExpandColumn:"ftpfiles-name",clicksToEdit:1,loadMask:true,listeners:{},selModel:{xtype:"RowSelectionModel",singleSelect:true,listeners:{afterselectionchange:function(sm){var s=sm.getSelections(); +if(!s||s.length!=1){return;}B.viewLayout.load(baseURL+"/Ftp/View"+s[0].data.id+"?html=1");}}}});this.grid.getSelectionModel().singleSelect=true;this.grid.getSelectionModel().on("selectionchange",function(s){});this.panel=this.layout.add("center",new Ext.GridPanel(this.grid,{fitToframe:true,fitContainer:true})); +this.grid.render();var F=function(){B.reload();};var grid=this.grid;var D=this.grid.getView().getHeaderPanel(true);var tb=new Ext.Toolbar(D);var E=[];var td=Date.parseDate((new Date()).format("Y-m-01"),"Y-m-d");tb.add(_T["91b1e6d3a1e9c62b6c66e6da80cc71b1"],_T["adc2513232245bfdd3b55a85baf1d46d"]); +var C=this.layout.getRegion("south").el.createChild({tag:"div",style:"margin:0px;"});this.viewLayout=this.layout.add("south",new Ext.ContentPanel(C,{background:true,fitToFrame:true,fitContainer:true,title:_T["f5a7360379dd701dfa3cb0baa0187c9d"]}));this.layout.endUpdate(); +},reload:function(){this.grid.getDataSource().load({params:{start:0,limit:999}});}}; diff --git a/compiled/_translation_.js b/compiled/_translation_.js new file mode 100644 index 0000000..9086bac --- /dev/null +++ b/compiled/_translation_.js @@ -0,0 +1,25 @@ + +"Pman.Tab.FtpTab.js" : { + "Ftp" : "Ftp", + "Ftp Tab" : "Ftp Tab", + "Directories" : "Directories" +}, +"Pman.Tab.FtpTree.js" : { + "/" : "/", + "Add Folder" : "Add Folder", + "Ftp Folders" : "Ftp Folders", + "Reload Tree" : "Reload Tree", + "Delete Folder" : "Delete Folder", + "Rename Folder" : "Rename Folder", + "Manage Folders" : "Manage Folders" +}, +"Pman.Tab.FtpFiles.js" : { + "Size" : "Size", + "Files" : "Files", + "DELETE" : "DELETE", + "RENAME" : "RENAME", + "Details" : "Details", + "Filename" : "Filename", + "Modified" : "Modified", + "Ftp Files" : "Ftp Files" +}, \ No newline at end of file -- 2.39.2