var vw = new Ext.Viewport({
title: '文件系统---管理',
layout: 'border',
items: [{
region: 'center',
title: '',
contentEl: 'd_center',
autoScroll: true,
split: true,
tbar: [
{
text: '客户管理',
icon: 'images/page_find.png',
id: 'b_man',
listeners:
{
click: function (el, ev) {
win_s.show();
getcus();
}
}
},
{
text: '用户权限列表',
icon: 'images/icon-login-seaver.gif',
id: 'l_man',
listeners:
{
click: function (el, ev) {
win_s.show();
getcus();
}
}
}
]
},
{
region: 'west',
title: '文件夹',
contentEl: 'd_west',
width: 250,
autoScroll: true,
split: true
}
]
});
});
menu = new Ext.menu.Menu({
items: [
{
text: "添加文件夹",
icon: "images/folder.png",
id: 'm1',
listeners:
{
click: function (el, ev) {
win_addfolder.show();
}
}
},
{
text: "上传文件",
icon: "images/pic15.gif",
id: 'm2',
listeners:
{
click: function (el, ev) {
if (gpath == "") {
alert("请选择文件夹");
return;
}
win_addfile.show();
document.frames["ifr"].document.all["txt_fpath"].value = gpath;
document.frames["ifr"].document.all["txt_fpath2"].value = gpath;
}
}
}
, '-',
{
text: "删除文件夹",
icon: "images/pic12.gif",
id: 'del2',
listeners:
{
click: function (el, ev) {
if (gpath == "") {
alert("请选择文件夹");
return;
}
delfolder();
}
}
}
, '-',
{
text: "设置此文件夹权限",
id: 'm3',
icon: "images/user.png",
listeners:
{
click: function (el, ev) {