US.Disk.DiskDaren = {}; //网盘达人
US.Disk.Disks = {}; //用户看过所有用户的树包括自己
US.Disk.UserDisk; //当前操作用户的disk树
US.Disk.Layer = { "step": 20, "LI": null }; //Disk位置变化
// U.Dk.LE.OpenFileDirectory(_UGE[0].slice(0, 100), null, { "UserallDirectoryName": "最近访问区域" }, _UGE[1][2], true)
// var _UDE, _UGE = U.Dk.DiskOperatingSwitch(userid) || US.Disk.UserDisk; (UDE && UDE.length) ? (_UDE = UDE) : (_UDE = _$(_UGE[0]).Where({ "UserDirectoryModifyTime": { "$ne": null} }), U.M.Sequence(_UGE[0], "UserDirectoryModifyTime", U.MT.SizeComparison)); //
// (UDE !== true) && (U.Dk.LE.OpenFileDirectory(_UDE.slice(0, 100), null, { "UserallDirectoryName": "最近访问区域" }, _UGE[1][2], true)); return _UDE;
// if (!_UAE.length) { _UAE = [UDE]; while ((UDE = UDE.Parent)) { _UAE.push(UDE); } } // _UAE = UDE.length ? UDE : UDE["UserDirectoryID"] ? _$(_UGE).RecurD(UDE, { "UserDirectoryID": "" }, "UserDirectoryParentID") : [UDE]; //导航树
// if (UTF || (_UMT && _UTP.indexOf(_UMT) > -1)) { } //office打开 //window.open("http://disk.1473.cn?ID=" + UFID + "&TP=" + (UTF || ""));
// else { U.Alert("等待文件的打开"); U.A.Request(US.Auth,"UseStudioDisk.IsTxt", [USN], U.Dk.LE.AsynOFT, ["", USN, UN, userid, UFID, _UDOD]); } //其余的文件用户下载
// var _UGE = U.Dk.DiskOperatingSwitch(US.userInfo.userid), _UKE = (UAE) ? UAE.concat(UDE) : UDE; _UGE[1][1] = "";
// U.Dk.LL.SCDXWPDH([{ "UserallDirectoryName": "关键字\"" + UPW + "\"搜索结果"}], $("#UD_SYWRYB")[0]); //打印导航
// if (UDE.length) {
// (!UDOD.onscroll) && (UDOD.innerText = ""); U.Dk.VW.XWPDY((_UGE[1][5] = UDOD.onscroll ? UDE : _UKE), UDOD, null, UAE ? UAE.length : 0); //打印网盘资料
// UDOD.onscroll = (U.M.SSCH({ 'AF': U.M.apply(null, [[U.Dk.S.SSWPBDWGD, [UDKN, UTF, _UKE]]]) }).SCH()); //设置滚动加载
// }
// if ($$("a").download !== undefined && USN.indexOf(",") < 0) { _UIE = USN.lastIndexOf("."); if (_UIE == USN.length - 1) { USN = USN.substr(0, _UIE) } _UDOD = $$("a", { "download": UFN, "href": US.fs + USN }, doc.body); U.M.IEVENT(_UDOD, "click"); $(_UDOD).remove(); } //HTML下载
// else { U.UP.uploading([$$("input", { "type": "text", "value": UFN, "name": "filename" }), $$("input", { "type": "text", "value": USN, "name": "filepath" })], null, null, "http://disk.1473.cn/USupfile.ashx?iframename=" + (UTF || "UploadFile"), false); }
// var i, _UTP = "ue,uw", USN = "", _UPN = "";
// for (i = 0; i < UDE.length; i++) { if (_UTP.indexOf(UDE[i]["UserDirectoryExtendType"].toLowerCase()) == -1) { USN += ((UDE[i]["UserFilesServerName"].length > 10 ? UDE[i]["UserFilesServerName"] : "") + (i != UDE.length - 1 ? "," : "")); _UPN += ((UDE[i].filetype ? UDE[i]["UserallDirectoryName"] : UDE[i]["UserDirectoryID"]) + (i != UDE.length - 1 ? "," : "")); } }
// U.Dk.RE.WPXZWJZJO(_UPN, ""); //多文件下载
U.Dk.RightAuthority; //右键的权限判断,只有我的电脑可以新建TXT,Word等,拿来记录点击。
////添加文件或者文件夹右边 右
//U.Dk.RE.ARFO = function (UDE) {
// var _UDOD, _UDTD, _UGE = US.Disk.UserDisk[1];
// if (UDE.UserDirectoryParentID == _UGE[1]) {
// _UDOD = $("div#UDK_LR_directoryListArea", _UGE[3])[0]; _UDTD = $("div", _UDOD)[1];
// if (_UDTD && _UDTD.className == "UDK_L_DiskGE UDK_RT_NFF") { _UDOD.innerText = ""; } //删除没有文件的提示
// (_UGE[4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)([UDE], _UDOD); //打印试图
// }
//}
// for (i = 0; i < _UME.length; i++) {
// if (_UAE && _UAE.length) { _UME[i].splice(0, 1); _UME[i].splice(1, 1); } //多选的权限
// else { if (UDE["filetype"]) { _UME[i].splice(1, 2); _UME[i].splice(2, 1); } else { _UME[i].splice(1, 3); _UME[i].splice(2, 2); } } //单选权限
// }
// if (!_UQE[0] || !_UQE[4]) {//没有添加 删除权限的功能
// for (i = 0; i < _UME.length; i++) {
// if (_UAE && _UAE.length) { _UME[i].splice(0, 1); _UME[i].splice(1, 1); } //多选的权限
// else { if (UDE["filetype"]) { _UME[i].splice(1, 2); _UME[i].splice(2, 1); } else { _UME[i].splice(1, 3); _UME[i].splice(2, 2); } } //单选权限
// }
// }
// else if (!_UQE[1]) { _UME[0].splice(1, 2); _UME[1].splice(1, 2); } //没有赋值下载功能 && UDE["filetype"]
// if (!(_UAE && _UAE.length) && _UDID == US.FG && !UDE["filetype"]) { _UME[0].splice(5, 1); _UME[1].splice(5, 1) } //没有加密解密
// (!US.userInfo.IsUseStudioMember && UDE.filetype) && (_UME[0].splice(_UME[0].length - 1, 1), _UME[1].splice(_UME[1].length - 1, 2)); //置顶功能
////点击消息回调
//U.D.SY.DJHD = function (UDE, UDOD) {
// var _TF = UDE.MessageIsVerify, _UDE = ["", "", "", "AD"];
// if (_TF != null) { U.F.FM.AsynReceiveMessages(_UDE[_TF]); }
// $(UDOD).remove(); //移除元素
//}
// var i, _UDKD, _UDOD, _UDCD, _UDPD, _UDTD, _UDSD, _ITF = 0, _UDQ = UDE[0], _UZJ = UDE[1], _UDFD = $$("frag");
// _UDKD = $$("div", { "className": "UD_SYMMLCA" }, (UDOD || _UDFD));
// _UDOD = $$("div", { "className": "UD_SYMMLCT", "onclick": [[U.MPlayer.SYYOP, [_UDKD]]] }, _UDKD);
// _UDCD = $$("div", { "className": "UD_SYMMLCTI UD_SYI UD_SYMMLCTIO", "innerHTML": "" }, _UDOD);
// $$("div", { "className": "UD_SYMMLCTM", "innerHTML": _UDQ[0].UserallDirectoryName }, _UDOD);
// if (_UDQ[1].length || (UDE[1] && UDE[1].length)) {//音乐列表打印
// _ITF = U.MPlayer.MYYOP(_UDKD, _UDQ[1]); //打印音乐
// for (i = 0; (_UZJ && i < _UZJ.length); i++) { _ITF += U.MPlayer.YYOP(_UZJ[i], (UDOD || _UDFD)); } //目录下的文件夹
// }
// else {//空音乐提示
// _UDKD = $$("div", { "className": "UD_SYMMLCV" }, _UDFD);
// $$("div", { "className": "UD_SYMMLCVL UD_SYI" }, _UDKD);
// _UDCD = $$("div", { "className": "UD_SYMMLCVR" }, _UDKD);
// $$("div", { "className": "UD_SYMMLCVRS", "innerHTML": "这里当前还没有任何歌曲!!" }, _UDCD);
// _UDPD = $$("div", { "className": "UD_SYMMLCVRX", "innerHTML": "你可以:" }, _UDCD);
// $$("span", { "innerHTML": "云分享添加", "onclick": [[U.D.DT.YYDK, ["Disk", [US.userInfo.userid, US.MG]]]] }, _UDPD);
// }
// (UDVD) && (UDVD.appendChild(_UDFD)); return _ITF; //所有的歌曲
// var i, j, _UAE, _UKE = [], _UGE = US.Disk.UserDisk[0];
// (!UDE.UserDirectoryID) && (UDE = _$(_UGE).Select({ "UserDirectoryID": UDE })[0]); //转化指定的文件夹
// _UAE = _$(_UGE).Select({ "UserDirectoryParentID": UDE.UserDirectoryID }); //获取当前文件夹下所有的文件和文件夹
// _UKE[0] = [UDE, _$(_UAE).Select({ "filetype": 1 })]; _UAE = _$(_UAE).Select({ "filetype": 0 }); _UKE[1] = []; //生成
// for (j = 0; j < _UAE.length; j++) { _UKE[1].push(U.Dk.LE.GM(_UAE[j])); } //函数式的递归 改成成循环递归最好
// return _UKE;
////异步加载网盘
//U.Dk.AsynCSHYY = function (r) {
// var context = r.context, _userid = context[1], _UDID = context[2]; r = r.value;
// //Disk加载
// U.Dk.GUserBL(_userid, _UDID, null, r); //设置全局变量值
// U.Dk.M.refreshfile(); //更新里面文件的头像和文件名
// U.Dk.CSHYY(r[1], context[2]); //回调音乐 onpaste
//}
////--------------------------------------------------------------------------------------搜索起点-----------------------------------------------------------------------
//U.Dk.S.P; //总数
////切换
//U.Dk.S.SDSD = function (UDOD, UTF) {
// if (UDOD.style.color != "#5e85bb") {
// var _UDPD = UDOD.parentNode, _UDAD = $("div", _UDPD), _UDTD = $("div#UDK_SSD_C", $(UDOD).Parent("UDK_SSD"))[0], _UDSD = $("input", _UDPD.parentNode)[0], _UDKD = $("div", _UDSD.parentNode.parentNode)[1]; U.Dk.S.P = null; _UDTD.innerText = "";
// _UDAD.addAttrArray({ "style": { "color": "" }, "className": "" }); $(UDOD).addAttrArray({ "style": { "color": "#5e85bb" }, "className": "" }); //切换样式变化
// $(_UDTD).Child()[1].innerText = ""; (_UDKD.onclick = U.M.apply(_UDKD, [[U.Dk.S.SetSCH, [_UDSD, 1, UTF, _UDTD]]]))(); //搜索点击
// }
//}
////设置滚动搜索
//U.Dk.S.SetSCH = function (UDOD, UP, UTF, UDTD) {
// var _UDCD = $(UDTD).Child(); _UDCD[1].innerText = "";
// _UDCD[0].style.display = "block"; $("div", _UDCD[0])[0].innerText = UDOD.value;
// UDTD.parentNode.parentNode.onscroll = U.M.SSCH({ 'AF': U.M.apply(null, [[U.Dk.S.SFND, [UDOD, UTF, UDTD]]]) }).SCH(); //滚动加载
// U.Dk.S.DSD(UDOD, UP, UTF, UDTD); //云搜索
//}
////滚动加载
//U.Dk.S.SFND = function (UDOD, UTF, UDTD) {
// U.Dk.S.DSD(UDOD, this.P + 2, UTF, UDTD); //云搜索滚动加载
//}
////网盘首页触发云搜索
//U.Dk.S.STFND = function (UDOD) {
// var _UDID = $("input", $(UDOD).Parent("UDK_S"))[1];
// U.Dk.NologinDiskDown(US.NU, ''); //切换到搜素页
// _UDID.value = UDOD.value; //赋值
// $("div", $(_UDID).Parent(2))[1].onclick(); //直接搜索
//}
////云搜索
//U.Dk.S.DSD = function (UDOD, UP, UTF, UDTD) {
// var i, _UE = UP * 100, _UDE = [["img", "block"], ["div", "none"]]; UTF = U.UP.SFT(UTF); //获取搜索的类型
// if (UDOD.value.isStrNull() && UDOD.value != UDOD.defaultValue) { if (!U.Dk.S.P || U.Dk.S.P > (_UE - 99)) { U.A.Request(US.Auth,"UseStudioDisk.Managequery", [UDOD.value, UTF, _UE - 99, _UE]), U.Dk.S.AsynDSD, ["", UDTD, UDOD]; } }
// else { while ((i = _UDE.length--)) { $(_UDE[i][0], UDTD).style.display = _UDE[1] } } //无搜索的显示
//}
////云搜索异步
//U.Dk.S.AsynDSD = function (r) {
// var context = r.context, _UDOD = context[1], _UDAD = $(_UDOD).Child(); r = r.value;
// _UDAD[2].style.display = "none";
// if (r.length) { U.Dk.S.P = r[0]["AllF"]; U.Dk.S.SetDSD(_UDAD[1], r); } //打印搜索
// else { U.Dk.S.P = null; }
//}
////打印云搜索
//U.Dk.S.SetDSD = function (UDOD, UDE) {
// var i, _UTF, _UDTD, _UDSD, _UDFD = $$("frag");
// for (i = 0; i < UDE.length; i++) {
// _UTF = U.UP.IsDF(UDE[i].UserFilesExtendName)[0];
// _UDTD = $$("div", { "className": "UDK_RT_application", "title": UDE[i].UserFilesName }, _UDFD);
// _UDSD = $$("div", { "className": "UDK_RT_UDD Radius5", "style": { "position": "static" }, "onclick": [[U.M.StopBubble], [U.Dk.NologinDiskDown, [UDE[i].UserID, UDE[i].UserDirectoryID, true]]] }, _UDTD);
// if (_UTF == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "className": "UDK_RT_UDD_DV", "src": US.fs + UDE[i].UseFilesServerThumbnailName }, _UDSD); }
// else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_UDD_DV", "style": { "cssText": U.UP.FFT(UDE[i].UserFilesExtendName)[1]} }, _UDSD); }
// $$("span", { "innerHTML": UDE[i].UserFilesName.length > 10 ? UDE[i].UserFilesName.substr(0, 10) + "..." : UDE[i].UserFilesName }, _UDSD);
// }
// UDOD.appendChild(_UDFD);
//}
//------------------------------------------------------------------------普通视图和详细视图的转变-------------------------------------------------------------------
//普通视图和列表视图切换。
U.Dk.VW.NOD = function (UTF, UDID) {
var i, _UGE = US.Disk.UserDisk[1], _UAE = ["UDK_N_PX_TB", "UDK_N_PX_LB"], _UTP = UTF == "Details" ? ["-483px -11px", "-540px -12px"] : ["-602px -11px", "-659px -12px"];
for (i = 0; i < _UAE.length; i++) { $("div#" + _UAE[i], _UGE[3])[0].style.backgroundPosition = _UTP[i]; };
U.Dk.VW.DT((_UGE[1] = UDID || _UGE[1]));
}
//选择视图
U.Dk.VW.DT = function (UDID) {
var _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Select({ "UserDirectoryParentID": UDID }), _UDOD = $("div#UDK_LR_directoryListArea", _UGE[1][3])[0];
_UDOD.innerText = ""; (_UGE[1][4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)(_UDE, _UDOD); //打印数据
}
//------------------------------------------------------------------------------普通视图------------------------------------------------------------------------------
//普通视图文件打印
U.Dk.VW.PD = function (UDE, UDOD, UFID) {
var i, _UDTD, _UDSD, _UTF, _UFT, _UGE = US.Disk.UserDisk[1][0], _UDFD = $$("frag");
if (UDE.length) {
for (i = 0; i < UDE.length; i++) {
if (US.userInfo.userid == _UGE.UserId || !UDE[i].UserDirectoryEncrypt) {
_UTF = U.UP.IsDF(UDE[i].UserDirectoryExtendType)[0]; (!_UFT) && (_UFT = UFID == UDE[i].UserDirectoryID);
_UDTD = $$("div", { "id": "disk" + UDE[i].UserDirectoryID, "className": "UDK_RT_application" + (_UFT ? " UDK_RT_hover" : ""), "onclick": [[U.Dk.HP.DKDS, ["this"]], [U.Dk.LL.UDKURL, [UDE[i].UserDirectoryID]], [U.Dk.LE.DBC, [UDE[i].UserDirectoryID, _UGE.UserId]]], "onmousedown": [[U.M.StopBubble], [U.Dk.RM.DRC, ["this", UDE[i].UserDirectoryID, _UGE.UserId]]] }, _UDFD);
_UDSD = $$("div", { "className": "UDK_RT_UDD Radius5", "onmouseout": [[U.Dk.HP.DKDS, ["this"]]], "onmouseover": [U.Dk.HP.DKDS, ["this", UDE[i].Descript || UDE[i].UserallDirectoryName]] }, _UDTD); // [U.Dk.VW.CH, [_UDTD.childNodes]]
if (_UTF == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "className": "UDK_RT_UDD_DV", "src": UDE[i].UserDirectoryUrl }, _UDSD); }
else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_UDD_DV", "style": { "cssText": UDE[i].UserDirectoryUrl } }, _UDSD); }
$$("span", { "id": "resDataList_name_" + UDE[i].UserDirectoryID, "innerHTML": UDE[i].UserDirectoryName }, _UDSD); _UFT && (_UFT = _UDTD);
}
}
}
else { _UDTD = $$("div", { "style": { "position": "relative" } }, _UDFD); $$("div", { "className": "UDK_L_DiskGE UDK_RT_NFF" }, _UDTD); }
UDOD.appendChild(_UDFD); (_UTF) && (UDOD.scrollTop = _UFT.offsetTop);
}
//----------------------------------------------------------------------------列表视图--------------------------------------------------------------------------------
//列表视图文件打印
U.Dk.VW.PTD = function (UDE, UDOD) {
var i, _UTF, _UDTD, _UDSD, _UDID, _UPID, _UGE = US.Disk.UserDisk[1], _UDFD = $$("frag");
if (UDE.length) {
_UPID = UDE[0].UserDirectoryParentID; _UDTD = $$("div", { "className": "UDK_RT_DL_AT" }, _UDFD);
$$("div", { "className": "UDK_RS_listspan UDK_RT_DL_ATO", "onclick": [[U.Dk.VW.AS, [UDOD, true]]], "innerHTML": "全选" }, _UDTD);
$$("div", { "className": "UDK_RS_listspan UDK_RT_DL_ATT", "onclick": [[U.Dk.VW.NOD, [_UGE[4], _UPID]]], "innerHTML": "文件名" }, _UDTD);
$$("div", { "className": "UDK_RS_listspan", "style": { "width": "10%" }, "innerHTML": "文件大小", "onclick": [[U.Dk.HP.AtSTimeS, [_UPID, true]]] }, _UDTD);
$$("div", { "className": "UDK_RS_listspan", "style": { "textIndent": "1%", "width": "50px" }, "onclick": [[U.Dk.VW.NOD, [_UGE[4], _UPID]]], "innerHTML": "类型" }, _UDTD);
for (i = 0; i < UDE.length; i++) {
_UDID = UDE[i].UserDirectoryID; _UTF = U.UP.FFT(UDE[i].UserDirectoryExtendType);
_UDTD = $$("div", { "className": "UDK_RT_Details", "id": "disk" + _UDID, "onmousedown": [[U.M.StopBubble], [U.Dk.RM.DRC, ["this", _UDID, _UGE[0].UserId]]], "onclick": [[U.Dk.HP.DKDS, ["this"]], [U.Dk.LL.UDKURL, [_UDID]], [U.Dk.LE.DBC, [_UDID, _UGE[0].UserId]]] }, _UDFD);
$$("input", { "type": "checkbox", "check": i, "className": "UDK_RT_DL_CK" }, _UDTD);
_UDSD = $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FN", "id": "resDataList_name_" + UDE[i].UserDirectoryID }, _UDTD);
$$("i", { "className": "UDK_L_DiskGE UDK_RT_DL_IMG", "style": { "cssText": _UTF[2] } }, _UDSD);
$$("div", { "title": UDE[i].UserallDirectoryName, "innerHTML": UDE[i].UserallDirectoryName }, _UDTD);
$$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_DT", "innerHTML": U.MT.formatDateToArray(UDE[i].UserDirectoryAddTime) }, _UDTD);
$$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FZ", "innerHTML": U.UP.FileSize(UDE[i].UserDirectorySize) }, _UDTD);
$$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FT", "id": "reDataList_type_" + UDE[i].UserDirectoryID, "innerHTML": _UTF[0] }, _UDTD);
}
}
else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_NFF" }, _UDFD); }
UDOD.appendChild(_UDFD);
}
////-----------------------------------------------------------------页面点击时候执行的函数(包括左键)-----------------------------------------------------------------
////打开文件夹或者文件
//U.Dk.LE.DBC = function (UDID, userid) {//点击右边目录或者是文件的时候
// U.Dk.DiskOperatingSwitch(userid); var _UTF, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Select({ "UserDirectoryID": UDID }, null, 1)[0], _UTP = _UDE.UserDirectoryExtendType.toLowerCase(); //操作用户切换
// U.Dk.SBDD(_UGE[1][3], ["block", "none"]); //查看切换
// if (_UTP == "folder") { (US.userInfo.userid == userid && (U.AFB.GoList["disk" + userid]["OL"] == 1)) && (U.D.ZYXB(0, false, "WZ")); U.AFB.AddEvent([[U.Dk.LE.OFO, [_UDE, UDID, userid]]], "disk" + userid); }
// else {
// U.M.StopBubble(); _UTF = U.UP.IsDF(_UTP)[0]; //阻止冒泡
// if (_UTF == "P") { U.Dk.LE.OIMG(UDID, _UDE); } //图片预览器
// else if (_UTF == "M") { U.Dk.LE.OM(_UDE); } //音乐播放器
// else if (_UTP == "video") { U.Dk.LE.OV(_UDE); } //视频处理
// else {
// if (!U.U.L.isLogin()) {//执行下载文件或者打开office文档和txt文本文件.文件需要用全名
// if (_UTP == "ue" || _UTP == "uw") { U.M.divdoubleClick(_UTF == "ue" ? "US_Excel" : "US_Word", UDID, userid); } //网页Excel打开
// else { U.Dk.LE.OFT(_UDE.UserFilesServerName, _UDE.UserallDirectoryName, userid, UDE.UserDirectoryID); } //其余的Office文件打开
// }
// }
// U.Dk.RM.DRC(); //执行右键菜单
// }
//}
//U.Dk.UP.TF = true;
//U.Dk.UP.UP = { "7aeaab56-485f-4150-b781-8ffd86d593ce": [], "93553847-e299-464c-a0e2-c15872efb6ae": [], "8a2135ff-746a-43a8-97b8-552d228a00bb": [], "bf21bf7a-1e95-4194-8e4a-e9334d7d998d": [] };
////----------------------------------------------------------------------------------disk上传的接口
////判断上传窗口是否显示 显示就更换上传事件
//U.Dk.UP.SFUW = function (UDOD, UPID, userid, UDID) {
// var _UDTD = $("#UDK_UP")[0], _UTF = U.Dk.M.PDQX(DID);
// if (_UTF) {//判断是否有权限
// UDOD.onclick = U.M.apply(this, [[U.M.StopBubble], [U.Dk.UP.FUW, [UPID, userid, UDID, { "FCP": U.Dk.UP.SCGUP, "ID": "UDK_FUPB"}])]]; //上传点击
// if (_UDTD.style.display == "block") { U.D.PopupWindow(_UDTD); } //弹出上传框
// }
//}
////上传的接口
//U.Dk.UP.FUW = function (UPID, userid, UDID, UGS) {
// if (!U.U.L.isLogin()) {
// if (UPID == US.VG) { U.Dk.RE.AUPV(UDID); } //上传视频处理
// else {
// var _UDOD, _UYX, _UGE = U.Dk.UP.UP, _UTF = U.Dk.UP.UPF(UPID), _UDTD = $("#UDK_FUPI"), _UTP = U.CI.IsHF();
// if (_UTP == "HTML5") { } //HTML5的上传
// else if (_UTP == "Flash") { _UDOD = U.Dk.UP.FUP(UPID, UDID, _UTF, UGS); } //Flash上传
// else { _UDOD = U.Dk.UP.HUP(UPID, UDID, _UTF); } //HTML上传
// _UDOD = U.Dk.UP.HUP(UPID, UDID, _UTF);
// if (U.Dk.UP.TF) { _UGE = U.Dk.UP.UP = {}; _UGE[US.DG] = []; _UGE[US.PG] = []; _UGE[US.MG] = []; _UGE[US.VG] = []; } //设置上传的值
// if (_UTF[0] == "") { _UGE[UDID] = []; } //群上传设置 _UGE = {};
// $("div", _UDOD)[0].style.display = "block"; U.D.PopupWindow(_UDOD); _UYX = _UDTD.GetElementInfo(); //弹窗
// U.D.Tb.WindowRestore($("div", _UDOD)[0], null, "上传"); //创建任务栏
// if (US.Disk.UserDisk[0].length < 7) { U.D.ZYBH([false, "云端在线,体验云服务", "setp3:点击上传文件按钮,上传您的一个文件吧", null, { "X": _UYX["TX"], "Y": _UYX["TY"], "L": _UYX["TX"] + 80, "T": _UYX["TY"] - 350 }, "UD_ZY_CDIF", [-18, 3, "UD_ZYQT"]], _UDTD[0]); }
// }
// }
//}
////HTML上传 设置
//U.Dk.UP.HUP = function (UPID, UDID, UTF) {
// var _UDOD = $("#UDK_UP")[0], _UDTD = $("#UDK_UP_CC")[0], _UDAD = $("div", _UDOD), _UDID = $("input", _UDOD)[0];
// $("span", _UDOD)[0].innerHTML = "文件普通上传" + "(" + UTF[1] + "目前最大支持" + UTF[2] + ")"; //上传提示
// if (U.Dk.UP.TF) { _UDAD[8].innerHTML = ""; } //清空值
// _UDID.onchange = U.M.apply(_UDID, [[U.Dk.UP.UPLUP, [_UDID, _UDTD, UDID]]]); //上传事件选择
// _UDAD[_UDAD.length - 1].onclick = U.M.apply(_UDID, [[U.Dk.UP.SOUP, [UPID, UDID]]]); //上传到服务器处理
// return _UDOD;
//}
////Flsh上传
//U.Dk.UP.FUP = function (UPID, UDID, UTF, UGS) {
// var i, _USZ, _UWH = { "height": 30, "width": 88 }, _UDOD = $("#UDK_FUP")[0], _UDAD = $("div", _UDOD);
// for (i in _UWH) { _UWH[i] = UGS[i] || _UWH[i]; delete UGS[i]; }; _USZ = U.Dk.UP.FTF["FUN"] = UGS || {};
// _UDAD[2].innerHTML = "文件普通上传" + "(" + UTF[1] + "目前最大支持" + UTF[2] + ")"; //上传提示
// U.UP.FAFZ(_USZ, {}, UGS ? UGS["GS"] : null); U.Dk.UP.FTF["URL"] = UGS ? UGS["URL"] : ""; //添加访问
// U.UP.AddFAN(_UDAD["UDK_FUPI"], (UGS ? UGS["ID"] : "UDK_FUPB"), _UWH); //添加Flash上传按钮
// (U.Dk.UP.TF) && (_UDAD["UDK_FUPCC"].innerHTML = ""); //清空值
// return _UDOD;
//}
////通过目录ID获取格式
//U.Dk.UP.UPF = function (UDID) {
// var i, _UDE = [[US.DG, [U.UP.SFT("A"), "文件", "100MB", "disk"]], [US.PG, [U.UP.SFT("P"), "图片", "100MB", "photo"]], [US.MG, [U.UP.SFT("M"), "音乐", "100MB", "music"]], [US.VG, [[U.UP.SFT("V"), "视频", "100MB", "vedio"]]]];
// for (i = 0; i < _UDE.length; i++) {
// if (_UDE[i][0] == UDID) { return _UDE[i][1]; }
// }
// return ["", "友群", "250MB"]; ;
//}
////----------------------------------------------------------------------------from表单上传------------------------------------------------------------------
////点击添加按钮 显示文件名在页面上并创建新的inputk
//U.Dk.UP.UPLUP = function (UDI, UDOD, UDID) {
// var _UGE = US.Disk.UserDisk;
// if (_UGE[1][0].FileSize <= U.UP.GetSfileS(US.userInfo.UserDiskSpace + "M")) { //是否有足够的空间上传
// var _UDTD, _UDSD, _UDGD, _UDID, _UN = U.UP.GetUpName(UDI), _UTF = U.UP.SFT("B");
// if (!(U.UP.UploadFileType(UDI, _UTF))) {//过滤病毒类型
// _UTF = U.UP.IsDF(_UN[1])[1]; //上传文件的类型 我的电脑(US.DG) 我的音乐(US.PG) 我的视频(US.SG) 我的图片(US.MG)
// _UDTD = $$("div", { "className": "UDK_UP_FILEZL" });
// $$("div", { "className": "UDK_UP_FILEZLT", "innerHTML": "正在上传中..." }, _UDTD);
// $$("div", { "className": "UDK_L_DiskGE UDK_UP_DELETE", "onclick": U.M.apply(this, [[U.Dk.UP.DE, [UDI, _UTF]]]) }, _UDTD); //删除按钮
// $$("div", { "className": "UDK_UP_FILEName", "innerHTML": _UN[0] }, _UDTD);
// _UDSD = $$("div", { "className": "UDK_UP_MXLTdiv" }, _UDTD); _UDGD = $$("div", { "className": "UDK_UP_LTFrame" }, _UDSD); _UDID = $$("div", {}, _UDGD);
// $$("input", { "className": "UDK_UP_LTFTextarea", "name": "UDK_UP_LTF", "onblur": [U.MR.InputTip, (["this", ["", '可输入文件描述...']])], "onfocus": [U.MR.InputTip, (["this", ['可输入文件描述...', '']])], "value": "可输入文件描述..." }, _UDID);
// UDI.style.display = "none"; _UDID.appendChild(UDI);
// $$("input", { "name": "UDK_UP_ic", "className": "UD_filePrew UDK_UP_Add", "type": "file", "onchange": [[U.Dk.UP.UPLUP, ["this", UDOD, UDID]]] }, $("#UDK_UP_AU")[0]); //上传按钮复原
// U.Dk.UP.UP[_UTF] ? U.Dk.UP.UP[_UTF].push[UDI, _UDTD] : U.Dk.UP.UP[DID].push[UDI, _UDTD]; //添加input
// UDOD.appendChild(_UDTD); UDOD.scrollTop = UDOD.scrollHeight - UDOD.offsetHeight; //位置定位
// }
// else { U.Alert("该类型不允许上传"); }
// }
// else { U.Alert("你的网盘已满,请用积分兑换网盘空间"); }
//}
////上传处理
//U.Dk.UP.SOUP = function (UPID, UDID) {
// var i, _UGE = U.Dk.UP.UP;
// for (i in _UGE) {
// if (_UGE.hasOwnProperty(i)) {
// if (_UGE[i].length > 0) { if (UPID != i) { UDID = i; }; U.Dk.UP.SUP(i, UDID); return; }
// }
// }
//}
////上传到服务器
//U.Dk.UP.SUP = function (UPID, UDID) {
// var i, _UDTD, _UDSD, _UAE, _UGE = [], _UFD = US.Disk.UserDisk[0], _UDE = U.Dk.UP.UP[UPID];
// if (_UDE.length) {
// for (i = 0; i < _UDE.length; i++) { _UDSD = $("input", _UDE[i][1])[0]; $("div", _UDE[i][1])[0].style.display = "block"; _UDTD = $$("div", {}); _UDSD.value = _UDSD.value == _UDSD.defaultValue ? "" : _UDSD.value; _UDTD.appendChild(_UDE[i][0]); _UDTD.appendChild(_UDSD); _UGE.push(_UDTD); }
// U.Alert(_UGE.length ? "正在上传,请稍后查看" : "上传文件为空,无法上传");
// if (_UFD.length) { _UAE = _$(_UFD).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID"); U.Dk.UP.TF = false; U.UP.uploading(_UGE, U.Dk.UP.AsnySUP, [UPID, UDID, _UAE[0]], "http://disk.1473.cn/USupfile.ashx?iframename=UploadFlashfile&DirectoryId=" + UDID + "&GroupID=" + (_UAE[_UAE.length - 1].GroupID || "") + ("&Encrypt=" + (_UAE[_UAE.length - 1].UserDirectoryID == US.SG ? "Yes" : "")), true); } //执行上传
// return true;
// }
// return false;
//}
////上传删除
//U.Dk.UP.DE = function (UDI, UDID) {
// var _UGE = U.Dk.UP.UP[UDID], i;
// for (i = 0; i < _UGE.length; i++) { if (_UGE[i][0]) { _UGE[i][1].parentNode.removeChild(_UGE[i][1]); _UGE.splice(i, 1); return; } } //删除元素
//}
////上传完后的回调
//U.Dk.UP.AsnySUP = function (r) {
// var _UN, context = r.context, _UDOD = r.UpObj, _UDID = $("input", _UDOD)[0]; r = r.value;
// U.Dk.UP.DE(_UDID, context[0]); //删除上传
// if (r == "flase" || r == undefined) { U.Alert("上传文件超过限制"); } //上传超过限制
// else {
// _UN = U.UP.GetUpName(_UDID); //获取input上传名和 上传的格式
// U.Dk.UP.SCGUP(r, { "type": _UN[1], "name": _UN[0], "size": r[3], "ID": context[1] }, context[2]); //添加文件到网盘
// if (U.Dk.UP.UP[context[0]].length == 0) { U.Dk.UP.SOUP(); } //新的上传
// }
//}
////------------------------------------------------------------------------------flash上传-----------------------------------------------------------------------------
//U.Dk.UP.FTF = { "FL": [], "DID": "", "ID": "", "JD": [], "F": [], "ITF": [], "FUN": { "URL": "", "EX": "", "ADD": "", "ACP": "", "CP": "", "JDT": "", "FCP": "", "AFCP": ""} }; //这个是Flash上传的全局变量
////添加上传文件 上传文件的显示
//U.Dk.UP.FLAdd = function (UDE) {
// var i, _UDTD, _UDSD, _UGE = U.Dk.UP.FTF, _UDFL = _UGE["FL"], _UADF = _UGE["FUN"]["ADD"], _UMID = US.Disk.UserDisk[1][1], UDOD = $("#UDK_FUPCC")[0], _UDFD = $$("frag");
// _$(UDE).Add({ "ID": U.Dk.UP.FTF["ID"], "FUN": _UGE["FUN"], "URL": _UGE["FUN"]["URL"] }); //生成文件上传的属性
// for (i = 0; i < UDE.length; i++) {
// UDE[i].FID = U.MS.produceGuid(); //唯一的识别
// _UDTD = $$("div", { "className": "UDK_FUPCH UDK_FUPCCC" }, _UDFD);
// _UDSD = $$("div", { "className": "UDK_FUPCHL UTDF" }, _UDTD);
// $$("div", { "className": "UDK_L_DiskGE UDK_RT_DL_IMG", "style": { "cssText": U.UP.FFT(UDE[i].type.substr(1))[2]} }, _UDSD);
// $$("div", { "className": "UDK_FUPCHLT UTDF", "innerHTML": UDE[i].name }, _UDSD);
// $$("div", { "className": "UDK_FUPCHD UDK_FUPCHLN UTDF", "style": { "textIndent": "8px" }, "innerHTML": U.UP.FileSize(UDE[i].size) }, _UDSD);
// _UDSD = $$("div", { "className": "UDK_FUPCHLV UDK_FUPCCJ", "title": "(0%)" }, _UDTD);
// $$("div", { "className": "UDK_FUPCCJO" }, _UDSD);
// UDE[i]["JD"] = ($$("div", { "className": "UDK_FUPCCJT" }, _UDSD));
// $$("div", { "innerHTML": "(0%)", "className": "UDK_FUPCCJS", "style": { "height": "25px"} }, _UDSD);
// _UDSD = $$("div", { "className": "UDK_FUPCHD" }, _UDTD);
// $$("div", { "className": "UDK_L_DiskGE UDK_FUPCCS", "title": "关闭", "onclick": [U.Dk.UP.DFF, [UDE[i], _UDTD, _UDFL.length - 1]] }, _UDSD);
// }
// UDOD.appendChild(_UDFD); _UDFL.push(UDE); (_UADF) && (_UADF(UDE)); (_UDFL.length == 1) && (U.Dk.UP.FLUP(0, 0, UDE[0])); //直接执行上传
//}
////点击上传
//U.Dk.UP.FLUP = function (ITF, UTF, UDE) {
// var i, _UAE, _UKE, _UJM, _UGID, _UFRE = U.Dk.UP.FTF["FL"], _UGE = US.Disk.UserDisk; UDE.DID = U.UP.IsDF(UDE.type.substr(1))[1];
// if (U.Dk.UP.ISFLUP(UDE)) {//允许上传
// UDE.LO = "yes"; _UAE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": UDE.ID }, "UserDirectoryParentID"); _UKE = _UAE[_UAE.length - 1]; //获取指定的文件夹
// if (!UDE["URL"]) { (_UKE.UserDirectoryID != UDE.DID && _UKE.GroupID == null) && (UDE.ID = UDE.DID); UDE.URL = "http://disk.1473.cn/USupfile.ashx?iframename=UploadFlashfile&DirectoryId=" + UDE.ID + "&GroupID=" + (_UKE.GroupID || ""); } //没有指定的上传地址就使用默认的
// UDE["URL"] + "&Encrypt=" + (_UAE[_UAE.length - 1].UserDirectoryID == US.SG ? "Yes" : ""); //设置加密上传
// U.UP.FTF["EL"].UpLoad(ITF, UTF, UDE.FID); U.Alert("正在上传" + UDE["name"] + "文件,请等待"); //获取文件的hash码
// }
//}
////上传文件判断是否存在
//U.Dk.UP.IsFUp = function (UWJL, FID) {
// var _UGE = US.Disk.UserDisk, _UDL = U.Dk.UP.GetFWZ(FID), _UFL = _UDL[2], _UDE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": _UDL[2].ID }, "UserDirectoryParentID");
// U.A.Request(US.Auth,"UseStudioDisk.IsFUp", [_UFL.ID || "", _UDE[_UDE.length - 1].GroupID || "", _UFL.size, UWJL, _UFL.type.substr(1), ""]), U.Dk.UP.AsynIsFUp, ["", _UFL, _UDE]; //判断服务器是否有相同的文件
//}
////异步获取文件是否存在
//U.Dk.UP.AsynIsFUp = function (r) {
// var context = r.context, _UFL = context[1], _UDE = context[2], _UDT = U.Dk.UP.GetFWZ(_UFL.FID); r = r.value; try { r = eval(r)[0]; } catch (e) { }
// if (r) { U.Dk.UP.SUPF([r.UserFilesServerName, r.UserFilesID, r.UseFilesServerThumbnailName, _UFL.size], _UDE, _UFL); } //已有的文件自己拷贝
// else { U.UP.FTF["EL"].URRUP(_UFL["URL"] + "&UserId=" + US.userInfo.userid + "&IsF=true", _UFL.FID, _UDT[0], _UDT[1]); } //上传到服务器
//}
////上传的进度条
//U.Dk.UP.FLJD = function (UDE, FID) {
// var _UBL = Math.floor((UDE["Loaded"] / UDE["Total"]) * 100), _UDL = U.Dk.UP.GetFWZ(FID), _UDJD = _UDL[2]["JD"];
// _UDJD.style.width = (_UBL * 1.20) + "%"; _UDJD.parentNode.title = $("div", _UDJD.parentNode)[2].innerText = "(" + _UBL + "%)";
//}
////上传单个文件完毕
//U.Dk.UP.FLCP = function (UDTA) {
// U.Alert("等待服务器的响应...");
//}
////上传文件成功同时服务端返回了数据
//U.Dk.UP.FSLCP = function (UDAT, FID) {
// var _URE = UDAT.data, UFL = U.Dk.UP.GetFWZ(FID)[2];
// try { _URE = eval(_URE); } catch (e) { } //返回的值
// (_URE) && (U.Dk.UP.SUPF(_URE, null, UFL)); //文件成功的上传到服务器
//}
////上传文件成功
//U.Dk.UP.SUPF = function (URE, UDE, UFL) {
// var _UAF = UFL["FUN"]["FCP"];
// if (_UAF) { _UAF(URE, { "type": UFL.type.substr(1), "name": UFL.name, "size": UFL.size, "ID": UFL["ID"], "DID": UFL["DID"] }, UDE); } //上传文件回调
// U.Dk.UP.DFF(UFL); U.Alert("上传文件成功"); //继续上传
//}
////删除单个上传文件
//U.Dk.UP.DFF = function (UFL) {
// var i, j, _UTF = false, _UAFL = U.Dk.UP.FTF["FL"], _UDT = U.Dk.UP.GetFWZ(UFL.FID), _UDOD = UFL["JD"].parentNode.parentNode;
// _UDOD.parentNode.removeChild(_UDOD); _UAFL[_UDT[1]].splice(_UDT[0], 1); (!_UAFL[_UDT[1]].length) && (_UAFL.splice(_UDT[1], 1))
// if (_UAFL.length) { for (i = 0; i < _UAFL.length; i++) { for (j = 0; j < _UAFL[i].length; j++) { if (!_UAFL[i][j].LO) { U.Dk.UP.FLUP(j, i, _UAFL[i][j]); _UTF = !_UTF; break; } } if (_UTF) { break; } } }
// else { U.Dk.UP.FLACP(); U.Alert("所有文件上传完毕"); }
//}
//上传文件成功回调
U.Dk.UP.SCGUP = function (URE, UFE, UTE, TF) {
// var _UKE, _UGE = US.Disk.UserDisk, _UIF = US.userInfo, _UCE = UTE || _$(_UGE[0]).Select({ "UserDirectoryID": UFE["ID"] });
// URE[2] = (URE[2] == null ? U.UP.FFT(UFE["type"])[1] : US.fs + URE[2]); //文件缩略图
// _UKE = new U.Dk.M.Entity(([URE[1], URE[3], UFE["ID"], (UFE["name"].length > 10 ? UFE["name"].substr(0, 10) + "..." : UFE["name"]), UFE["name"], UFE["type"].toLowerCase(), URE[0], new Date(), URE[2], 9999.0000, null, UTE["GroupID"], 1, UFE["name"]])); //添加目录
// (_UGE[2] || US.userInfo.userid != _UGE[1][2]) && (_$(_UKE).Add({ "UserId": _UIF.UserId, "UserNickName": _UIF.UserNickName, "UserName": _UIF.UserName, "UserThumbnailImageHead": _UIF.UserThumbnailImageHead })); _UGE[0].push(_UKE); //修改文件目录
// if (_UGE[2]) { _UIF.FileSize = U.UP.FileSize((U.UP.GetSfileS(_UIF.FileSize) + UFE["size"])); U.Dk.M.AddUserHBImage(UFE["ID"], _UKE); } //上传头像或者背景图
// if (!TF) { U.Dk.RE.ARFO(_UKE); U.Dk.LE.DBC(UFE["ID"], US.userInfo.userid); U.Dk.onloadLeft(); } //添加文件
// if (!UTE.GroupID) { U.D.BC.SetNews[new U.D.T.CII([URE[1], US.userInfo.userid, US.userInfo.UserNickName, US.userInfo.UserThumbnailImageHead, "UD_DiskCon", UFE["ID"], UFE["name"], new Date(), _UKE]], true); } //公共信息提示
// return _UKE;
}
////文件判断是否允许上传
//U.Dk.UP.ISFLUP = function (UDE) {
// var _UGE = US.Disk.UserDisk, _UTF = false;
// if (UDE["size"] > U.UP.GetSfileS("100M")) { U.Alert("最大上传文件不可以超过100M"); } //上传的文件不能超过100M
// else if ((U.UP.GetSfileS(_UGE[1][0].FileSize + "M") + UDE.size) >= U.UP.GetSfileS(US.userInfo.UserDiskSpace + "M")) { U.Alert("你的网盘已满,请用积分兑换网盘空间"); return; } //超过网盘大小
// else { _UTF = !_UTF; }; return _UTF;
//}
////获取文件所在的位置
//U.Dk.UP.GetFWZ = function (FID) {
// var i, j, UGE = U.Dk.UP.FTF["FL"];
// for (i = 0; i < UGE.length; i++) { j = UGE[i].indexOf(FID, "FID"); return [j, i, UGE[i][j]]; }
//}
////上传所有文件完毕
//U.Dk.UP.FLACP = function (UFL) {
// var _UAF = UFL["FUN"]["AFCP"];
// U.Dk.UP.FTF["FL"] = []; U.Dk.UP.TF = true; //清除上传容器//允许从新上传
// (_UAF) && (_UAF()); //所有文件上传成功回调
//}
////上传的错误提示
//U.Dk.UP.FLEX = function (UDTA) {
// U.Alert(UDTA); U.M.Console(UDTA);
//}
////关闭按钮同时结束文件上传
//U.Dk.UP.DAF = function () {
// U.UP.FTF["EL"].DAF();
//}
//-------------------------------------------------------------disk导航条变化---------------------------------------------------------------------
//树形框点击事件:导航条清空递归重写
U.Dk.LL.Nav = function (UDID, userid) {
var i, _UDAD, _UDPD, _UTF, UMID, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID"), _UDOD = $("div#UDK_N_ArticleNav", _UGE[1][3])[0], _UDTD = $("div#UDK_HP_UpFile", _UGE[1][3])[0], _UDFD = $$("frag"), _UL = _UDE.length;
(_UDPD = _UDOD.parentNode).style.width = _UDPD.parentNode.offsetWidth - 400 + "px"; _UDOD.innerText = ""; U.Dk.DiskOperatingSwitch(userid); //操作用户切换
while ((i = _UL--)) { _UTF = i == _UDE.length; $$(_UTF ? "div" : "span", { "className": _UTF ? "UDK_L_DiskGE UDK_N_HOME" : "", "title": _UDE[i - 1]["UserallDirectoryName"], "onclick": [[U.Dk.LL.UDKURL, [_UDE[i - 1].UserDirectoryID])], [U.Dk.LE.DBC, ([_UDE[i - 1].UserDirectoryID, userid]]], "innerHTML": _UTF ? "" : "> " + _UDE[i - 1].UserDirectoryName }, _UDFD);
} _UDOD.appendChild(_UDFD); //导航打印
_UDAD = $(_UDOD).Child(); i = _UDE.length; _UL = 0; while (i--) { _UL += _UDAD[i].clientWidth + 10; } _UDOD.style.width = _UL + "px"; _UDOD.parentNode.scrollLeft = _UL;
U.Dk.HP.CPT(_UDE[_UDE.length - 1].UserDirectoryID); (_UDTD) && (U.Dk.UP.SFUW(_UDTD, _UDE[_UDE.length - 1].UserDirectoryID, userid, _UDE[0].UserDirectoryID)); //文件夹的权限 //上传区域赋值
}
//----------------------------------------------------------------左边栏JS-----------------------------------------------------------**
//判断是否伸缩 伸展菜单
U.Dk.LL.SM = function (UDOD, userid, UDID) {//obj就是单击的那张变化的图
var _UDE, _UDPD = UDOD.parentNode, _UDTD = $("div", UDOD)[0], _UL = $("div", _UDPD).length - 1;
U.Dk.DiskOperatingSwitch(userid); //操作用户切换
if (_UL > 1) { _UDPD.removeChild(_UDPD.lastChild); } //伸展取消
else {
_UDE = _$(US.Disk.UserDisk[0]).Select({ "UserDirectoryParentID": UDID, "filetype": 0 });
U.Dk.VW.LV(_UDE, _UDPD);
}
_UDTD.className = "UDK_L_DiskGE UDK_L_USTreesign " + (_UL > 1 ? "UR_I_D_E" : "UR_I_D_S");
U.Dk.LL.VM(UDOD); //改变单击的样式
}
//单击菜单时的效果 伸缩时候的点击元素效果
U.Dk.LL.VM = function (UDOD) {
var _UGE = US.Disk.UserDisk[1];
(_UGE[5]) && ($(_UGE[5]).addAttrArray({ "style": { "border": 0, "backgroundColor": "" } }));
UDOD.style.backgroundColor = "#dee6ef"; _UGE[5] = UDOD;
}
//Disk导航点击变化链接
U.Dk.LL.UDKURL = function (UDID) {
var _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID")[0], _UTF = U.Dk.HP.UPF(_UDE.UserDirectoryID)[3];
(_UTF) && (U.D.G.UrlWrite(_UTF + "/" + _UGE[1][0].UserName, _UGE[1][0].UserNickName + "的硬盘")); //url重写
}
//顶部导航函数,多个地方用到,合成一个函数
U.Dk.LL.TD = function (UDOD) {
U.UI.Confirm("将切换到硬盘首页,确认吗?", [U.Dk.LL.TDQH, [UDOD]], "");
}
//切换到网盘首页
U.Dk.LL.TDQH = function (UDOD) {
U.Dk.NologinDiskDown(US.userInfo.userid || US.NU, US.DG);
U.M.StopBubble();
}
////-----------------------------------------------------------------------打开文件处理-------------------------------------------------------------------------
////点击文件夹的处理
//U.Dk.LE.OFO = function (UDE, UDID, userid) {
// var _UGE = US.Disk.UserDisk[1]; U.Dk.DiskOperatingSwitch(userid); _UGE[1] = UDID; //记录所在的文件夹
// $("div#UDK_N_PX_PX", _UGE[3])[0].onclick = U.M.apply(this, [[U.Dk.HP.AtSTimeS, [UDID]]]); //按时间排序的
// U.Dk.VW.NOD(_UGE[4], UDID); U.Dk.LL.Nav(UDID, userid); //打印视图和导航
//}
////------------------------------------------------------------------------普通文件处理------------------------------------------------------------------------
////---------------------------------------------------------------------------------文件处理------------------------------------------------------------------
////点击图片处理
//U.Dk.LE.OIMG = function (UDID, UDE, UTF) {
// var i, k, _UAE, _UKE = [], _UGE = US.Disk.UserDisk;
// if (_UGE[1][1]) { _UAE = _$(_UGE[0]).Select({ "UserDirectoryParentID": UDE.UserDirectoryParentID, "filetype": 1 }); }
// else { _UAE = []; for (i = 0; i < 3; i++) { _UAE = _UAE.concat(_$(_UGE[0]).Select({ "UserDirectoryParentID": _UGE[0][i == 2 ? 3 : i].UserDirectoryID, "filetype": 1 })); } }
// for (i = 0; i < _UAE.length; i++) { (_UAE[i]["UserDirectoryID"] == UDE["UserDirectoryID"]) && (k = i); _UKE.push({ "Time": _UAE[i]["UserDirectoryModifyTime"], "Thm": _UAE[i].UserDirectoryUrl, "Img": US.fs + _UAE[i].UserFilesServerName }); } ///^abcd(.+?)fghj$/
// (!UTF) && (U.Img.Create(_UKE, k, { "TF": 2 })); return [_UKE, k]; //打印图片
//}
////-----------------------------------------------------------------------音乐的处理---------------------------------------------------------------------------
////打开音乐处理
//U.Dk.LE.OM = function (UDE) {
// var _UAE = U.Dk.LE.GM(UDE.UserDirectoryParentID); //获取当前所有的音乐和目录
// U.MPlayer.Open(_UAE[0], _UAE[1], UDE.UserDirectoryID); //打开音乐播放器
//}
////----------------------------------------------音乐辅助函数
////获取音乐文件和目录
//U.Dk.LE.GM = function (UDE) {
// var i, j, _UAE, _UKE = [], _UGE = US.Disk.UserDisk[0];
// (!UDE.UserDirectoryID) && (UDE = _$(_UGE).Select({ "UserDirectoryID": UDE })[0]); //转化指定的文件夹
// _UAE = _$(_UGE).Select({ "UserDirectoryParentID": UDE.UserDirectoryID }); //获取当前文件夹下所有的文件和文件夹
// _UKE[0] = [UDE, _$(_UAE).Select({ "filetype": 1 })]; _UAE = _$(_UAE).Select({ "filetype": 0 }); _UKE[1] = []; //生成
// for (j = 0; j < _UAE.length; j++) { _UKE[1].push(U.Dk.LE.GM(_UAE[j])); } //函数式的递归 改成成循环递归最好
// return _UKE;
//}
////-----------------------------------------------------------------------------视频处理-----------------------------------------------------------------------
////打开实现链接的视频
//U.Dk.LE.OV = function (UDE) {
// U.M.divdoubleClick("UseStudioBrowserDiv", UDE.UserFilesServerName, null);
//}
//全选功能
U.Dk.VW.AS = function (UDOD, UTF) {
$("input", UDOD.parentNode.parentNode).addAttrArray({ "checked": UTF });
UDOD.onclick = U.M.apply(UDOD, [[U.Dk.VW.AS, ([UDOD, !UTF])]]);
}
//判断用户权限
//U.Dk.M.PDQX = function (UDID) {
// var i, _UDE = _$(US.Disk.UserDisk[0]).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID");
// for (i = 0; i < _UDE.length; i++) { if (_UDE[i].UserDirectoryEncrypt == "true" && _UDE[i].GroupID != null) { return false; } }
// return _UDE;
//}
//---------------------------------------------------------------------左边树形的视图------------------------------------------------------------------------
//这里是说明左边的树形栏视图
U.Dk.VW.LV = function (UDE, UDOD) {
U.Dk.VW.CLV(UDE, $$("div", { "style": { "marginLeft": "10px" } }, UDOD));
}
//左边子元素
U.Dk.VW.CLV = function (UDE, UDOD) {
var i, _UDID, _UDTD, _UDSD, _UDMD, _UKE = ["UDK_L_USTreeFolderIcon", ""], userid = US.Disk.UserDisk[1][0].UserId, _UDFD = $$("frag");
for (i = 0; i < UDE.length; i++) {
if (US.userInfo.userid == userid || !UDE[i].UserDirectoryEncrypt) {
_UDID = UDE[i].UserDirectoryID; (UDE[i].UserDirectoryEncrypt) && (_UKE[0] = "UDK_L_USTreeFolderEncryptIcon", _UKE[1] = "(已加密)");
_UDTD = $$("div", { "classNmae": "UDK_L_USTreecontainA", "onclick": [[U.M.StopBubble], [U.Dk.LL.UDKURL, [_UDID]], [U.Dk.LE.DBC, [_UDID, userid]]] }, _UDFD);
_UDSD = $$("div", { "className": "UDK_L_USTTitle", "onclick": [U.Dk.LL.SM, ["retElement", userid, _UDID]] }, _UDTD);
$$("div", { "id": _UDID + 'img', "className": "UDK_L_DiskGE UR_I_D_E UDK_L_USTreesign" }, _UDSD);
_UDMD = $$("a", { "className": "UDK_L_USdisktreeA", "id": 'd' + _UDID, "onmousedown": [U.Dk.RM.DRC, ["this", _UDID, userid]] }, _UDSD);
$$("i", { "className": "UDK_L_DiskGE " + _UKE[0] }, _UDMD);
$$("span", { "innerHTML": UDE[i].UserDirectoryName + _UKE[1] }, _UDMD);
}
}
UDOD.appendChild(_UDFD);
}
////-------------------------------------------------------------------------------------disk本地搜索----------------------------------------------------------
////本地搜索
//U.Dk.S.LSearch = function (UDOD) {
// if (UDOD.value.isStrNull() && UDOD.value != UDOD.defaultValue) {
// var _UDV = UDOD.value, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Like({ "UserallDirectoryName": _UDV, "Descript": _UDV }), _UDTD = $("div#UDK_LR_directoryListArea", _UGE[1][3])[0];
// _UDTD.innerText = ""; (_UGE[1][4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)(_UDE, _UDTD);
// }
// else { U.Alert("请输入想要搜索的内容!"); }
//}
//------------------------------------------------------------------------------------权限设置-----------------------------------------------------------------------
////用户权限 是否给点击右键一下新建文件夹啊等等的一些功能
//U.Dk.HP.CPT = function (UDID) {
// return (U.Dk.RightAuthority = UDID == US.DG);
//}
////是否具有上传权限
//U.Dk.HP.AUD = function () {
// var _UGE = US.Disk.UserDisk[1], _UDOD = $("div#UDK_RS_directoryCommandArea", _UGE[3])[0]; _UDOD.innerText = "";
// if (US.userInfo.userid == _UGE[0].UserId) {
// $$("div", { "className": "UDK_L_DiskGE UDK_B_C UDK_B_CreateDirButton", "onclick": [[U.M.StopBubble], [U.Dk.RE.CMB, ["folder"]]] }, _UDOD);
// $$("div", { "id": "UDK_HP_UpFile", "className": "UDK_L_DiskGE UDK_B_C UDK_B_UpFileButton", "onclick": [[U.M.StopBubble], [U.Dk.UP.FUW, ["UDK_UpFlie", _UGE[0].UserId]]] }, _UDOD);
// }
//}
////用户右键的权限
//U.Dk.HP.EBB = function () {
// var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("p", _UGE[1][3]), _UDE = ["UDK_R_addFolderButton", "UDK_R_addWordButton", "UDK_R_addXlsButton", "UDK_R_addPPTButton", "UDK_R_encryptwindow", "UDK_R_divDeleteButton", "UDK_R_divModifyButton", "UDK_LR_S", "UDK_LR_Cut"];
// _UGE[3].onmousedown = U.Dk.RM.DRC; _UGE[3].onclick = $("div#UDK_LR_directorycontentarea", _UGE[3])[0].onmousedown = U.M.apply(this, [[U.Dk.RM.DRC, ["this", "add", _UGE[0].UserId]]]);
// for (i = 0; i < _UDE.length; i++) { _UDAD[_UDE[i]].parentNode.style.display = "none"; }
//}
////----------------------------------------------------------------------------disk定位-------------------------------------------------------------------------------
////拖动效果..文件与目录之间的拖动效果.
//U.Dk.HP.CD = function (UDOD) {
// var _UGE = US.Disk.UserDisk, UDPD = UDOD.parentNode, _UDAD = $(UDPD).Child();
// _UDAD[1].setCapture(); //聚焦
// document.onmousemove = U.M.apply(this, [[U.Dk.HP.XCD, [_UDAD, UDPD.clientWidth]]]);
// document.onmouseup = U.M.apply(this, [[U.Dk.HP.DCD, [UDOD]]]);
//}
////拖拉效果
//U.Dk.HP.XCD = function (UDAD, UW) {
// var _UX = event.clientX, _UTW = Math.max(Math.min(_UX - UDAD[1].getBoundingClientRect().left, 600), 208);
// UDAD[0].style.width = _UTW + "px"; _UDCD[2].style.width = (UW - _UTW - 6) + "px";
//}
////拖动结束
//U.Dk.HP.DCD = function (UDOD) {
// UDOD.releaseCapture(); //释放焦点
// document.onmousemove = document.onmousemove = null;
//}
////首页位置调整
//U.Dk.HP.NCW = function (UDOD) {
// var _UWH = U.M.GetElementInfo(UDOD), _UDAD = $("div", UDOD), _UDLD = _UDAD["UDK_RS_leftContent"], _UDRD = _UDAD["UDK_RS_rightContent"];
// if (_UWH["CW"]) {
// $(UDOD).addAttrArray({ "style": { "width": _UWH["OW"] + "px", "height": _UWH["OH"] + "px"} });
// _UDAD["UDK"].style.height = _UWH["OH"] - 37 + "px"; _UDAD[1].style.width = _UWH["OW"] - 30 + "px";
// _UDRD.style.width = Math.max((_UWH["OW"] - _UDLD.offsetWidth - 6), 0) + "px";
// }
//}
////登录调整位置格式
//U.Dk.HP.CW = function (UDOD) {
// var _UW, _UH, _UDPD, _UDAD, _UDLD, _UDRD, _UDTD, _UDFD, _UGE = US.Disk.UserDisk; UDOD = UDOD || (_UGE ? _UGE[1][3] : null);
// if (UDOD) {
// _UDPD = UDOD.parentNode; _UW = _UDPD.clientWidth; _UH = _UDPD.clientHeight - 35;
// if (_UW && _UH) {
// _UDAD = $("div", _UDPD); _UDRD = _UDAD["UDK_RS_rightContent"], _UDLD = _UDAD["UDK_RS_leftContent"]; _UDTD = _UDAD["UDK_L_USTreeTreeNode"]; _UDFD = _UDAD["UDK_LL_F"];
// UDOD.style.height = _UH - 2 + "px"; _UDAD[1].style.width = _UW - 30 + "px";
// if (_UDLD.clientHeight) {
// _UDFD.style.maxHeight = (_UDLD.clientHeight - 190) + "px"; _UDTD.style.maxHeight = (_UDLD.clientHeight - 223) + "px";
// _UDRD.style.width = Math.max((_UW - _UDLD.clientWidth - 6), 0) + "px";
// _UDAD["UDK_LL_USTreeMainNodeDiv"].style.height = _UH - _UDAD["UDK_LL_US"].clientHeight - 20 + "px";
// }
// _UDAD["UDK_LR_directorycontentarea"].style.height = Math.max(_UH - 175, 0) + "px";
// _UDPD.style.width = _UW + "px"; _UDPD.style.height = _UH + 35 + "px";
// }
// }
//}
////右键正确定位
//U.Dk.HP.RM = function (UDOD) {
// var _UDPD = $(UDOD).Parent("UDK_M_alreadylogin"), _UXY = U.M.GetMousep(_UDPD);
// $("div#UDK_R_rightMouseClickDiv", _UDPD).addAttrArray({ "style": { "visibility": "visible", "display": "block", "left": _UXY["X"] + "px", "top": _UXY["Y"] + "px"} }); // "visibility": "visible", "display": "inline-block",}
//}
////Disk弹出位置变化
//U.Dk.HP.DLO = function (UDOD) {
// var _UWH, _UT, _UL, _UDTD, _UGE = US.Disk.Layer, UDOD = UDOD || US.Disk.UserDisk[1][3].parentNode;
// if (!_UGE["LI"]) { _UGE["LI"] = UDOD; }
// else {
// _UWH = U.M.GetElementInfo(UDOD); _UDTD = _UGE["LI"] || UDOD; _UT = _UWH["OT"] + _UWH["OH"]; _UL = _UWH["OL"] + _UWH["OW"];
// _UT = _UT > US.Height ? 0 : _UWH["OT"] + _UGE["step"]; _UL = _UL > US.Width ? 0 : _UWH["OL"] + _UGE["step"];
// $(UDOD).addAttrArray({ "style": { "top": _UT + "px", "left": _UL + "px"} }); _UGE["LI"] = UDOD;
// }
//}
////文件描述位置
//U.Dk.HP.DKDS = function (UDOD, UMS) {
// if (UDOD && !(U.M.onmouseout(UDOD))) {
// var _UE = U.M.GetElementInfo(UDOD), _UDPD = $(UDOD).Parent("UDK").parentNode, _UDTD = $("div#UDK_DS", _UDPD)[0];
// if (typeof UMS != "string") { _UDTD.style.display = "none"; }
// else {
// $("div", _UDTD)[1].innerHTML = UMS; //文件描述
// $(_UDTD).addAttrArray({ "style": { "display": "block", "left": (_UE["TX"] - _UDPD.offsetLeft + (_UE["CW"] / 2)) + "px", "top": (_UE["TY"] - _UDPD.offsetTop + (_UE["CH"] / 2)) + "px"} }); //定位
// }
// }
//}
////--------------------------------------------------------------------------------disk排序--------------------------------------------------------------------------
////打印排序
//U.Dk.HP.AtSTimeS = function (UDID, TF) {
// var _UGE = US.Disk.UserDisk, _UDOD = $("div#UDK_LR_directoryListArea", _UGE[1][3])[0];
// U.M.Sequence(_$(_UGE[0]).Select({ "UserDirectoryParentID": UDID }), TF ? "UserDirectorySize" : "UserDirectoryAddTime", TF ? U.UP.IsSizeS : U.MT.SizeComparison); //用冒泡排序
// _UDOD.innerText = ""; (_UGE[1][4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)(_UDE, _UDOD); //打印文件
//}
////------------------------------------------------------------------网盘搜索和网盘动态------------------------------------------------------------------------
////网盘动态 网盘首页切换
//U.Dk.DI.SCMSD = function (UDOD, TF) {
// var _UDAD = $("div", UDOD), _UDE = ["none", "block"]; (TF) && (_UDE.reverse()); //云搜索
// _UDAD["UDK_SDP"].style.display = _UDE[0]; _UDAD["UDK_SSD"].style.display = _UDE[1];
//}
////--------------------------------------------------------------------------查看云网盘-------------------------------------------------------------------------
////--------------------------------------------------------------------网盘初始化
////网盘动态
//U.Dk.DI.CM = function (UDID, UDOD, userid) {
// var _UGE = US.Disk.DiskDaren, _UDAD = $("div", UDOD);
// if (_UGE["HF"]) { U.Dk.DI.SetHP(_UGE["HF"], _UDAD["UDK_RPHost"]); U.Dk.DI.GetTP(UDID, UDOD); U.Dk.DI.SDFN(UDID, _UDAD["UDK_SDP"], 1, userid); }
// else {
// if ($("iframe", _UDAD["UDK_RPGG"])[0] == null) { $$("iframe", { "frameBorder": 0, "marginheight": "0", "marginwidth": "0", "style": { "width": "100%", "height": "100%", "overflow": "hidden" }, "src": "/usercontrols/pages/UD_GG.htm?ID=tanx-a-mm_32325420_3265865_14580172&SID=tanx-s-mm_32325420_3265865_14580172&SRC=http://p.tanx.com/ex?i=mm_32325420_3265865_14580172" }, _UDAD["UDK_RPGG"]); }
// U.A.Request(US.Auth,"UseStudioDisk.GetDaren", [userid, UDID, US.NU], U.Dk.DI.AsynCM, [UDOD, UDID, UDOD, userid]);
// }
//}
////网盘首页异步
//U.Dk.DI.AsynCM = function (r) {
// var _UDE, _UGE = US.Disk.DiskDaren, context = r.context, _UDOD = context[0], _UDID = context[1], _userid = context[3], _UFN = context[5]; r = r.value;
// if (r.length) {
// _$(_UGE).Add({ "HF": r[0], "TF": r[2] }); //添加热门和最新网盘数据
// U.Dk.M.AddPND[_userid, _UDID, 1, r[1]]; //网盘滚动数据
// if (_UFN) { _UFN(); } //有回调的执行回调
// else { U.Dk.DI.CM(_UDID, _UDOD, _userid); } //网盘动态
// }
//}
////------------------------------------------------------------------热门云盘
////热门云盘
//U.Dk.DI.SetHP = function (UDE, UDOD) {
// var i, _UDTD, _UDSD, _UDHD;
// _UDTD = $$("div", { "className": "UDK_L_DiskGE UDK_RPtext" });
// _UDSD = $$("div", { "className": "UDK_RPHotDS" });
// for (i = 0; (i < UDE.length && i < 10); i++) {
// _UDHD = $$("div", { "className": "UDK_RPHotDiv", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", US.DG, UDE[i].UserID, null]]] }, _UDSD);
// $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead), "className": "UDK_RPHotImg"}, _UDHD);
// $$("div", { "className": "UDK_RPHotName", "innerHTML": UDE[i].UserName }, _UDHD);
// $$("span", { "className": "UDK_RPHotVoluTXT", "innerHTML": "文件个数:" }, _UDHD);
// $$("a", { "className": "UDK_RPHotVolume", "innerHTML": UDE[i].CN }, _UDHD);
// }
// UDOD.appendChild(_UDTD); UDOD.appendChild(_UDSD);
//}
////------------------------------------------------------------------排行榜
////排行榜切换
//U.Dk.DI.GetTP = function (UDID, UDOD) {
// var UDE = _$(US.Disk.DiskDaren["TF"]).Select({ "T": UDID }, null, 10); //获取指定的排行榜文件
// U.Dk.DI.SetTP(UDE, $("div#UDK_RPTop", UDOD)[0]); //打印排行榜文件
//}
////排行榜文件打印
//U.Dk.DI.SetTP = function (UDE, UDOD) {
// var i, _UDTD, _UDSD, _UDHD;
// _UDTD = $$("div", { "className": "UDK_RPTopOneDiv" });
// $$("div", { "className": "UDK_RPTopOne", "innerHTML": "01." }, _UDTD);
// $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[0].UserThumbnailImageHead), "className": "UDK_RPTopImg", "onclick": [[U.M.StopBubble], [U.U.I.POUW, [UDE[0].UserID]]] }, _UDTD);
// $$("span", { "className": "UDK_RPTopFilesName", "innerHTML": UDE[0].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", UDE[0].UserDirectoryID, UDE[0].UserID, null]]] }, _UDTD);
// $$("a", { "className": "UDK_RPTopNickName", "innerHTML": UDE[0].UserNickName }, _UDTD);
// _UDSD = $$("div", { "className": "UDK_RPTopNAMDiv" });
// for (i = 1; i < UDE.length; i++) {
// _UDHD = $$("div", { "className": "UDK_RPTopUNDiv" }, _UDSD);
// $$("div", { "className": "UDK_RPTopImgNUM", "innerHTML": "0" + (i + 1) }, _UDHD);
// $$("div", { "className": "UDK_RPTopNAM", "innerHTML": UDE[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", UDE[i].UserDirectoryID, UDE[i].UserID, null]]] }, _UDHD);
// $$("div", { "className": "UDK_RPTopUN", "innerHTML": UDE[i].UserNickName, "onclick": [[U.M.StopBubble], [U.U.I.POUW, [UDE[i].UserID]]] }, _UDHD);
// }
// UDOD.appendChild(_UDTD); UDOD.appendChild(_UDSD);
//}
////-----------------------------------------------------------------最新动态
//U.Dk.DI.UDSD; U.Dk.DI.DTE = [];
////最新动态切换
//U.Dk.DI.SDFN = function (UDID, UDOD, UP, userid) {
// userid = userid || US.NU; UDID = UDID || US.NU; var _UDTD = U.Dk.DI.UDSD = $("div#UDK_LPINew", UDOD)[0], _UDPD = _UDTD.parentNode, _UDSD = $("span", _UDPD)[0], _UDMD = $("div", _UDPD)[0];
// _UDTD.innerText = ""; _UDSD.onclick = U.M.apply(_UDSD, [[U.Dk.NologinDiskDown, (['', UDID, ''])]]); _UDMD.onclick = U.M.apply(this, [[U.Dk.NologinDiskDown, ([US.userInfo.userid || US.NU, UDID, ''])]]); //按钮事件赋值
// U.Dk.DI.DFN(UDID, UP, userid, _UDTD, UDOD); UDOD.onscroll = U.M.SSCH({ 'AF': U.M.apply(null, [[U.Dk.DI.SFND, [UDID, userid, _UDTD, UDOD]]]) }).SCH(); //设置数据加载
//}
////滚动变化
//U.Dk.DI.SFND = function (DID, userid, UDSD, UDOD) {
// U.Dk.DI.DFN(DID, this.P + 2, userid, UDSD, UDOD);
//}
////网盘最新动态
//U.Dk.DI.DFN = function (UDID, UP, userid, UDSD, UDOD, UFUN) {
// var _UDE = U.Dk.M.GetPND[userid, UDID, UP, 30, 300], _UTP = _UDE[1], _UE = _UTP * 300;
// if (_UDE[0]) { U.Dk.DI.SetDFN(_UDE[0], UDSD, userid, UP); } //打印网盘数据
// else { U.A.Request(US.Auth,"UseStudioDisk.GetUserFNew", [userid, UDID, _UE - 300, _UE, US.NU]), U.Dk.DI.AsynDFN, [UDOD, UDID, UP, userid, _UTP, UDSD, UFUN]; } //获取网盘数据
//}
////最新动态异步,硬盘首页图片ajax
//U.Dk.DI.AsynDFN = function (r) {
// var context = r.context, _UDOD = context[0], _UDID = context[1], _UP = context[2], _userid = context[3], _UTP = context[4], _UDTD = context[5]; r = r.value;
// if (r.length) {
// U.Dk.M.AddPND[_userid, _UDID, _UTP, r]; //网盘滚动数据
// U.Dk.DI.DFN(_UDID, _UP, _userid, _UDTD); //打印最新动态
// }
// else { _UDOD.onscroll = null; }
//}
////添加网盘动态数据
//U.Dk.DI.DTSJ = function (UDE) {
// var i, _UAE = [], userid = US.userInfo.userid || US.NU;
// for (i = 0; i < UDE.length; i++) { if (UDE[i].NEWTYPE == "UD_DiskCon") { _UAE.push(UDE[i]); } }
// U.Dk.M.AddPND[userid, "", 1, _UAE];
//}
////打印最新动态
//U.Dk.DI.SetDFN = function (UDE, UDOD, userid, UP) {
// var i, _UAE, _UTF, userid, _UDTD, _UDSD, _UDMD, _UDFD = $$("frag");
// if (UDE.length) {
// for (i = 0; i < UDE.length; i++) {
// _UAE = UDE[i].ET ? (UDE[i].ET = eval(UDE[i].ET)) : UDE[i]; _UTF = U.UP.IsDF(_UAE.UserDirectoryExtendType || _UAE.UserFilesExtendName)[0]; userid = UDE[i].UserID || UDE[i].UserId;
// _UDTD = $$("div", { "className": "UDK_LPINewDiv" }, _UDFD);
// _UDSD = $$("div", { "className": "UDK_LPINewFYDiv" }, _UDTD);
// $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(_UAE.UserThumbnailImageHead), "className": "UDK_LPINewIMG","onclick": [[U.M.StopBubble], [U.U.I.POUW, [userid]]] }, _UDSD);
// $$("div", { "className": "UDK_LPINewFYName", "onclick": [[U.M.StopBubble], [U.U.I.POUW, [userid]]], "innerHTML": _UAE.UserName }, _UDSD);
// $$("span", { "className": "UDK_LPINewFYWZ", "innerHTML": "上传了文件" }, _UDSD);
// _UDMD = $$("div", { "className": "UDK_LPINewLR" }, _UDSD);
// $$("div", { "className": "UDK_LPINewLTframe", "innerHTML": (_UAE.UserFilesDescript || _UAE.Descript) || "没有描述此文件..." }, _UDMD);
// $$("div", { "className": "UDK_L_DiskGE UDK_LPINewLTFH" }, _UDMD);
// if (_UTF == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "className": "UDK_LPINewLTicon", "src": US.fs + ((_UAE.UseFilesServerThumbnailName || _UAE.UserDirectoryUrl || _UAE.UserFilesServerName)).replace(US.fs, ""), "onclick": [[U.M.StopBubble], [U.Img.Create, ([[{ "Thm": US.fs + (_UAE["UseFilesServerThumbnailName"] || _UAE.UserDirectoryUrl), "Img": US.fs + _UAE["UserFilesServerName"]}]])]] }, _UDTD); }
// else { $$("div", { "className": "UDK_LPINewLTicon UDK_L_DiskGE", "style": { "cssText": U.UP.FFT(_UAE.UserDirectoryExtendType || _UAE.UserFilesExtendName)[1] }, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", _UAE.UserDirectoryID, _UAE.UserID, null]]] }, _UDTD); }
// $$("div", { "className": "UDK_LPINewFilesName", "innerHTML": _UAE.UserFilesName || _UAE.UserDirectoryName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", _UAE.UserDirectoryParentID || _UAE.UserDirectoryID, userid, null]]] }, _UDTD);
// $$("div", { "className": "UDK_LPINewFBTime", "innerHTML": U.MT.formatDateToArray(_UAE.UserFilesAddTime) }, _UDTD);
// $$("div", { "className": "UDK_LPINewLYcloud", "innerHTML": "来自有思云分享" }, _UDTD);
// }
// UDOD.appendChild(_UDFD);
// }
// else { if (userid != US.NU && UP == 1) { UDOD.innerText = ""; $$("div", { "className": "UDK_L_DiskGE UDK_LPIT" }, UDOD); } }
//}
////----------------------------------------------------------------------------音乐播放器功能--------------------------------------------------------------------------
////他人的专辑
//U.Dk.DI.HZJ = function () {
//}
////---------------------------------------------------------------------------disk右键功能全--------------------------------------------------------------------
////-----------------------------------------------------------------------------添加文件夹----------------------------------------------------------------------
////新添加视频文件
//U.Dk.RE.AUPV = function (DID) {
// var _UDT = $$("div", {}), _UDOD, _SW = ["视频名称:", "分享地址:"];
// for (var i = 0; i < _SW.length; i++) {//打印新添加视频弹框
// _UDOD = $$("div", { "style": { "cssText": "float:left; margin:20px 0 0 20px;line-height:20px;clear:both;" }, "innerHTML": _SW[i] }, _UDT);
// $$("input", { "type": "text", "style": { "cssText": "width:220px;height:18px;"} }, _UDOD);
// }
// var _UCM = U.Dk.RE.Prompt("分享视频", 180, 350, _UDT, U.M.apply(_UDT, [[U.Dk.RE.UPV, [DID]]]), US.Disk.UserDisk[1][3]);
// _UCM.Create();
//}
////Ajax上传到后台
//U.Dk.RE.UPV = function (DID) {
// var _UDI = $("input", this), _T = "video";
// if (U.Dk.RE.MBC(DID, _UDI[0].value, _T, "Create") && U.MS.Website(_UDI[1].value.trim())) {//判断文件是否及格
// var _FSN = _UDI[0].value.length > 15 ? _UDI[0].value.substring(0, 10) + "..." : _UDI[0].value; //文件简写名
// var _DKE = new U.Dk.M.Entity[U.MS.produceGuid(), 0, DID, _UDI[0].value, _FSN, _T, _UDI[1].value, new Date(), U.UP.FFT(_T)[1], 9999.000, null, null, 1];
// U.A.Request(US.Auth,"UseStudioDisk.addDirectoryOrFile", [US.userInfo.userid, DID, _DKE["UserDirectoryID"], _DKE["UserFilesServerName"], _UDI[0].value, _T, 9999, "", ""], U.Dk.RE.AsynAF, ["", _DKE]);
// }
//}
////-----------------------------------------------------------------------------------删除文件-------------------------------------------------------------------------
////------------------------------------------------------------------------------修改文件名----------------------------------------------------------------------
////修改文件名
//U.Dk.RE.MRNT = function (UDOD, UDID) {
// var _UDOD, _UDTD, _UDID, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Select({ "UserDirectoryID": UDID })[0], _UTF = U.Dk.M.PDQX(_UDE.UserDirectoryID);
// if (_UTF) {
// _UDOD = $$("div", { "className": "UDL U_UI_dlnoSR" }); _UDTD = $$("div", {}, _UDOD); _UDID = $$("input", { "type": "text", "className": "UDK_XG", "value": _UDE.UserallDirectoryName.split("." + _UDE.UserDirectoryExtendType)[0], "onkeypress": [[U.M.returnkeylogin, [null, [[U.Dk.RE.MRN, [_UDE, _UDOD]]]]]] }, _UDTD);
// U.Dk.RE.Prompt("修改文件", 140, 350, _UDOD, U.M.apply(_UDOD, [[U.Dk.RE.MRN, [_UDE, _UDOD]]]), US.Disk.UserDisk[1][3]).Create(); _UDID.select(); //创建对话框
// }
//}
////修改函数名接口
//U.Dk.RE.MRN = function (UDE, UDOD) {
// U.Dk.RE.MFN(UDE, $("input", UDOD)[0].value);
//}
////-------------------------------------------------------------------------加密解密开始----------------------------------------------------------------------
////------------------------------------------------------------------------------------文件文件夹赋值粘贴
////------------------------------------------------------------------------刷新文件------------------------------------------------------------------------------------
////刷新
//U.Dk.RE.CN = function () {
// U.Dk.onloadAjax(US.Disk.UserDisk[1][1], US.Disk.UserDisk[1][2]); //基本资料更新
// U.Dk.LE.DBC(US.Disk.UserDisk[1][1], US.Disk.UserDisk[1][0].UserId); //导航条
// U.Dk.LL.UDKURL(US.Disk.UserDisk[1][1]); //url变化
//}
////--------------------------------------------------------------------------------文件下载---------------------------------------------------------------------
////文件下载
//U.Dk.RE.ODL = function (USN, UN, UDID) {
// var _UTF = U.UP.GetUpName(USN)[1];
// if (!U.U.L.isLogin()) {
// if (_UTF == null && USN.indexOf("http") > 0) { window.open(USN); } //如果是外网的连接直接连接
// else {
// if (_UTF == "ue" || _UTF == "uw") { //下载web word excel
// U.Alert("云office暂不提供下载");
// //if (browser.msie) { parent.U.A.Request(US.Auth,"UseStudioDisk.GetFileContent", [UDID], U.Dk.RE.AsynXZ, ["", UN]); U.Alert("正在加载下载页"); } //IE的下载方式
// //else { U.UP.uploading([$$("input", { "type": "text", "value": USN, "name": "filename" }), $$("input", { "type": "text", "value": UN + ".htm", "name": "filepath" }), $$("input", { "type": "text", "value": US.userInfo.userid, "name": "UserId" })], null, null, "http://disk.1473.cn/UseStudiodisk.ashx?functionname=UseStudioDisk.UploadFile", false); } //调用上传的接口实现下载
// }
// else { window.open("/userpages/UD_XZ.aspx?fileservername=" + USN + "&filename=" + UN + "&UserId=" + US.userInfo.userid + "&usrd=" + Math.random()); }
// }
// }
//}
////IE异步下载
//U.Dk.RE.AsynXZ = function (r) {
// var _W, _DO, _UDN = r.context[1];
// r = r.value;
// if (r != false) {
// _W = window.open("javascript:void((function(){document.open();document.domain='1473.cn';document.close()})())"); //
// try {
// _DO = _W.document.open(); //打开空文件生成下载页
// _DO.write('' + r);
// _DO.execCommand("SaveAs", true, _UDN);
// _DO.close(); _W.close();
// } catch (e) { }
// }
// else { U.Alert("文件损坏"); }
//}
////文件下载
//U.D.SY.WPXZWJ = function (UDE) {
// if (!U.U.L.isLogin(3)) {
// if (UDE.filetype) { U.Dk.RE.ODL(UDE.UserFilesServerName, UDE.UserallDirectoryName, UDE.UserDirectoryID); } //文件下载
// else { U.Alert("文件夹暂时不提供下载"); } //文件夹下载
// }
//}
////剪切的异步
//U.Dk.RE.AysnUFCut = function (r) {
// var context = r.context, _UDE = context[2], _UAF = context[4], _UPID = _UDE[0].UserDirectoryParentID, _UGE = US.Disk.UserDisk; r = r.value;
// _$(_UDE).Change({ "UserDirectoryParentID": context[1] }); //更改父层ID
// (_UGE[1][1] == context[1] && _UGE[1][1] == _UPID) && (U.Dk.VW.DT(_UGE[1][1])); (_UAF) && (_UAF(_UDE, r, _UPID)); //剪切答应
//}
////单击到目录item时候,执行右键菜单
//U.Dk.RM.DRC = function (UDOD, UDID, userid) {
// if (event && event.button == 2 && UDID != null) {//右键操作
// var _UTF, _UDV, _UAE, _UDAD, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE).Select({ "UserDirectoryID": UDID == "add" ? _UGE[1][1] : UDID })[0];
// U.Dk.DiskOperatingSwitch(userid); //操作用户切换
// if (UDID == "add") {
// _UAE = U.Dk.M.PDQX(_UDE.UserDirectoryID);
// if (_UAE && (U.Dk.RightAuthority || _UDE[0].GroupID)) { _UDV = ["none", "none", "none", "block", "none", "block", "block", "none", "none", "none", "none", "block", "block", "block", "block", "block", "none"]; } //有权限的操作
// else { _UDV = ["none", "none", "none", "block", "none", "block", "block", "none", "none", "none", "none", "block", "none", "none", "none", "block", "none", "none"]; if (_UGE[1][0].UserDiskND.indexOf(_UGE[1][1]) > -1 || _UAE === false) { _UDV[11] = _UDV[16] = "none"; } } //无权限的操作
// if (U.Dk.RE.CE.length > 0) { $("p#UDK_LR_S", _UGE[1][3])[0].className = "UR_P"; } //粘贴样式改变
// }
// else {
// if ((_UAE = U.D.DragE) && !_UAE.Event()) { //多选右键功能
// _UAE = _UDE = U.Dk.RM.MFDRC(_UAE.TC, _UGE[0]);
// if (_UAE.length) { _UDV = ["block", "none", "none", "none", "none", "none", "none", "none", "none", "block", "none", "none", "none", "none", "none", "none", "block"]; if (_UGE[1][0].UserDiskND.indexOf(_UGE[1][1]) > -1) { _UDV[17] = _UDV[9] = "none"; } }
// else { U.D.DragE.SetHover(); U.Alert("文件夹不支持多选功能"); return; }
// }
// else {
// if ("folderencrypt,folder".indexOf(_UDE.UserDirectoryExtendType) > -1) {
// if (_UGE[1][0].UserDiskND.indexOf(_UDE.UserDirectoryParentID) > -1) { _UDV = ["block", "block", "block", "none", "block", "none", "none", "block", "none", "none", "none", "none", "none", "none", "none", "none", "block"]; } //文件夹权限
// else { _UDV = ["block", "block", "block", "none", "block", "none", "none", "block", "block", "block", "none", "none", "none", "none", "none", "none", "block"]; }
// }
// else {//文件操作
// $("span", $("p#UDK_R_encryptwindow", _UGE[1][3])[0]).addAttrArray({ "innerHTML": _UDE.UserDirectoryEncrypt ? "解密" : "加密" });
// if (_UDE.UserFilesServerName == "请不要删除") { _UDV = ["none", "block", "none", "none", "block", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none"]; } //不允许删除的
// else { _UDV = ["none", "block", "none", "none", "block", "none", "none", "none", "block", "block", "block", "none", "none", "none", "none", "none", "none"]; }
// }
// }
// U.Dk.RM.SLM[[UDOD.onclick], [U.Dk.RE.UFCopy, [_UDE, "Copy"]], [U.Dk.RE.AB, ["this", UDID]], [U.Dk.RE.ODL, [_UDE.UserFilesServerName, _UDE.UserallDirectoryName, _UDE.UserDirectoryID]], [U.D.CM.CMSS, [UDID, 1]], [U.Dk.RE.SHEW, ["this.innerText", UDID]], [U.Dk.RE.MRNT, ["this", UDID]], [U.Dk.RE.DMB, [_UDE]], [U.Dk.RE.UFCopy, [_UDE, "Cut"]]]; //右键赋值
// }
// U.Dk.RM.VHIDDEN(_UDV); U.Dk.HP.RM(UDOD); U.M.StopBubble(); //正确显示 //右键定位 // 阻止冒泡
// }
// else {
// var _UGE = US.Disk.UserDisk[1][3]; (UDID) && (U.M.StopBubble());
// $("div#UDK_R_rightMouseClickDiv", _UGE)[0].style.visibility = "hidden";
// }
//}
////右键菜单的显示
//U.Dk.RM.VHIDDEN = function (UAE) {
// var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("p", _UGE[3]), _UDE = ["UDK_LR_CP", "UDK_R_openfolder", "UDK_R_openanddownload", "UDK_R_refreshDirectoryButton", "UDK_R_attribute", "UDK_LR_Normal", "UDK_LR_Details", "UDK_LR_TL", "UDK_R_divModifyButton", "UDK_R_divDeleteButton", "UDK_R_encryptwindow", "UDK_R_addFolderButton", "UDK_R_addWordButton", "UDK_R_addXlsButton", "UDK_R_addPPTButton", "UDK_LR_S", "UDK_LR_Cut"];
// for (i = 0; i < _UDE.length; i++) { if (US.userInfo.userid == _UGE[0].UserId || i < 8) { _UDAD[_UDE[i]].parentNode.style.display = UAE[i]; } }
//}
////右键查单赋予事件
//U.Dk.RM.SLM = function (UAE) {
// var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("p", _UGE[3]), _UDE = ["UDK_R_openfolder", "UDK_LR_CP", "UDK_R_attribute", "UDK_R_openanddownload", "UDK_LR_TL", "UDK_R_encryptwindow", "UDK_R_divModifyButton", "UDK_R_divDeleteButton", "UDK_LR_Cut"];
// for (i = 0; i < _UDE.length; i++) { if (US.userInfo.userid == _UGE[0].UserId || i < 5) { _UDAD[_UDE[i]].onclick = U.M.apply(this, [UAE[i]]); } }
//}
//_$(U.Dk).Add({ "Ism": false, "CSH": [] });
////--------------------------------------------------------------------------本地硬盘网络硬盘共同区域----------------------------------------------------
////首页和本地硬盘切换
//U.Dk.NologinDiskDown = function (userid, UDID, TF) {
// var _UDOD;
// if (TF) { //显示本地硬盘
// if (UDID) { _UDOD = U.Dk.DiskDown(userid, UDID, TF); } //获取资料
// else { if (!U.U.L.isLogin()) { _UDOD = U.Dk.cloneDisk(userid); U.Dk.SBDD(_UDOD, ["block", "none"]); } else { return; } } //切换到网盘查看的页面
// }
// else {//显示首页
// if (UDID) { _UDOD = U.Dk.DiskTC(UDID, (userid || US.NU)); } //好友数据共享
// else { _UDOD = U.Dk.cloneDisk((userid || US.NU)); _UDOD.style.display = "block"; U.D.SetDTop(_UDOD); U.Dk.DI.SCMSD(_UDOD); U.Dk.SBDD(_UDOD, ["none", "block"]); } //云搜索
// }
// return _UDOD;
//}
////首页和网盘查看
//U.Dk.SBDD = function (UDOD, UTF) {
// var i, _UDE = ["UDK_RS_UserDiskMain", "UDK_S"];
// for (i = 0; i < _UDE.length; i++) { $("div#" + _UDE[i], UDOD)[0].style.display = UTF[i]; }
//}
////克隆disk窗口 同时判断是否需要克隆
//U.Dk.cloneDisk = function (userid) {
// var _UDOD, _UDTD, _UDE = US.Disk.Disks[userid]; //获取用户Disk资料
// if (_UDE && _UDE[1]) { _UDOD = _UDE[1][3].parentNode; }
// else {
// if (userid == US.NU) { if ((_UDTD = $("#UseStudioUserDiskDiv" + (userid = (US.userInfo.userid || US.NU)))[0])) { _UDOD = _UDTD; } } //首页的克隆方式
// if (!_UDOD) {
// _UDOD = $("#UseStudioUserDiskDiv").addAttrArray({ "style": { "width": "95%", "height": "75%"} })[0]; //获取克隆的实体
// _UDOD = _UDOD.cloneNode(true); parent.$("body", document)[0].appendChild(_UDOD); //添加到桌面
// }
// _UDOD.id = "UseStudioUserDiskDiv" + userid; //克隆Disk窗体
// }
// return _UDOD;
//}
////disk添加多个窗口
//U.Dk.DiskDown = function (userid, UDID, TF) {
// var _UDOD = U.Dk.cloneDisk(userid); //克隆窗体
// if (_UDOD) {
// U.Dk.SBDD(_UDOD, (TF ? ["block", "none"] : ["none", "block"])); //首页和硬盘显示
// if (_UDOD.style.display == "block") { U.D.SetDTop(_UDOD); } else { U.D.PopupWindow(_UDOD, U.M.apply(this, [[U.Dk.HP.DLO, [_UDOD]]])); } //弹出最上层窗口
// U.D.Tb.WindowRestore(_UDOD, $$("div", { "style": { "width": "61px", "height": "60px", "margin": "11px 0 0 5px", "className": "UD_DI_iconimg UD_NUB"} }).outerHTML, "硬盘"); //创建任务栏链接
// if (UDID && userid) { U.Dk.Commonresource(userid, UDID, $("div#UDK", _UDOD)[0]); } //查看用户的切换
// return _UDOD;
// }
//}
//-----------------------------------------------------------------------共享网络硬盘区域--------------------------------------------------------------
////网络硬盘数据共享区域
//U.Dk.DiskTC = function (UDID, userid, TF) {
// var _UDOD = U.Dk.DiskDown(US.userInfo.userid || US.NU, "", TF), _UDAD = $("div", _UDOD), _UDSD = $("span", _UDAD["UDK_LPIcon"].parentNode)[0];
// _UDSD.style.display = US.userInfo.userid ? "block" : "none"; //是否显示陌生人查看
// U.Dk.HP.NCW(_UDOD); //位置调整
// U.Dk.DI.CM(UDID, _UDAD["UDK"], userid); //根据DID选择页面
// U.D.G.UrlWrite("disk", "有思硬盘"); //Url重写
// U.Dk.DI.SCMSD(_UDOD, true); //网盘动态
// return _UDOD;
//}
//------------------------------------------------------------------------------登录用户本地硬盘和查看他人硬盘操作----------------------------------------------------------------------
////根据用户文件得到用户Disk
//U.Dk.GetDsikFID = function (UFID) {
// U.A.Request(US.Auth,"UseStudioDisk.GetDsikFID", [UFID], U.Dk.AsynGetDsikFID, ["", UFID]);
//}
////异步获取用户Disk通过文件ID
//U.Dk.AsynGetDsikFID = function (r) {
// var _URE = r.value, _userid = _URE[0][1].UserId, _DID = _URE[1], _USOD = U.Dk.cloneDisk(_userid), _UDK = $("div#UDK", _USOD)[0]; //克隆disk
// r.context = [_UDK, _userid, _DID]; r.value = _URE[0]; U.Dk.onloadup(r); //添加值
// U.Dk.NologinDiskDown(_userid, _DID, true); //查看对应用户的硬盘
//}
////判断用户是否需要获取数据
//U.Dk.Commonresource = function (userid, UDID, UDOD) {
// var _UDE = US.Disk.Disks[userid];
// if (_UDE) {//正在获取或者存在数据
// if (_UDE.length) {//存在数据
// US.Disk.UserDisk = _UDE; _UDE[1][1] = UDID; U.Dk.HP.CW(); U.Dk.onloadfunction(); //生成Disk
// if (US.userInfo.userid == _UDE[1][2]) { _UDE[1][0] = US.userInfo; U.Dk.M.refreshfile(); } //刷新网盘
// }
// }
// else { U.Dk.HP.CW(UDOD); US.Disk.Disks[userid] = []; U.A.Request(US.Auth,"UseStudioDisk.Commonresource", [US.userInfo.userid || US.NU, userid]), U.Dk.onloadup, [UDOD, userid, UDID]; } //获取用户资料
//}
////加载音乐文件
//U.Dk.Om = function (userid) {
// U.Alert("正在加载音乐文件..."); U.Dk.Ism = true; U.Dk.Commonresource(userid || US.NU, US.MG, $("div#UDK", U.Dk.cloneDisk(userid))[0]); //打开音乐
//}
////生成disk对应的树
//U.Dk.onloadup = function (r) {
// var i, _UGE, context = r.context, _UDOD = context[0], _userid = context[1], _UDID = context[2]; r = r.value;
// if (r.length) {
// _UGE = U.Dk.GUserBL(_userid, _UDID, _UDOD, r); //设置用户Disk变量
// U.Dk.HP.EBB(); //设置用户右键权限
// U.Dk.GALAF(r[1].UserId); //disk前进后退
// U.Dk.M.refreshfile(); //更新资料
// U.Dk.onloadAjax(_UGE[1][1], _userid); //装载网络硬盘。
// U.Dk.onloadfunction(); //加载显示的文件
// if (US.userInfo.userid == _UGE[1][0].UserId) { U.D.ZYXB(0); } //用户指引
// for (i = 0; i < U.Dk.CSH.length; i++) { U.Dk.CSH[i](_userid, _UDID); } //初始化
// }
//}
////disk前进后退辅助
//U.Dk.GALAF = function (UserId) {
// var _UDAD = $("div", US.Disk.UserDisk[1][3]);
// U.AFB.RGoL("disk" + UserId); //注册前进后退事件
// _UDAD["UDK_LR_navback"].onclick = U.M.apply(this, [[U.AFB.DrawBack, ["disk" + UserId])]];
// _UDAD["UDK_N_next"].onclick = U.M.apply(this, [[U.AFB.GoForward, ["disk" + UserId])]];
//}
////当用户登录后执行的函数
//U.Dk.onloadfunction = function () {
// var _UDE, _UDOD;
// if (U.Dk.Ism) { _UDE = U.Dk.LE.GM(US.MG); U.MPlayer.Open(_UDE[0], _UDE[1]); U.Dk.Ism = false; } //音乐播放器
// else if ((_UDE = US.Disk.UserDisk[1])[1]) {
// if ((_UDOD = $("a#d" + _UDE[1], _UDE[3])[0])) { U.Dk.LL.SM(_UDOD.parentNode, _UDE[0].UserId, _UDE[1]); } //展开用户点击是什么
// U.Dk.HP.AUD(); //设置硬盘上传权限
// U.Dk.LE.DBC(_UDE[1], _UDE[0].UserId)//导航条
// U.Dk.LL.UDKURL(_UDE[1]); //Url重写
// }
//}
////---------------------------------------------------------------------------------用户disk左边显示--------------------------------------------------------------
////用户登录视图
//U.Dk.onloadAjax = function (UDID, userid) {
// var _UDAD, _UGE = US.Disk.UserDisk[1]; U.Dk.onloadLeft(_UGE[1]); //用户视图展示
// if (US.userInfo.userid == _UGE[2]) {
// _UDAD = $("div", _UGE[3]);
// U.Dk.SetDF(US.Friend[1], _UDAD["UDK_LL_F"]); //用户好友
// U.Dk.SetDF(US.Friend[2], _UDAD["UDK_LL_Group"]); //群
// }
// U.Dk.directoryAjax(_UGE[0].UserId, UDID); //装载左边文件区域数据
//}
////用户视图显示
//U.Dk.onloadLeft = function () {
// var _UGE = US.Disk.UserDisk, _UDAD = $("div", $("div#UDK_LL_US", _UGE[1][3])[0]), _UDCD = $("div", _UDAD["UDKLLNR"]), _UDE = ["UDK_LL_US_SP", "UDK_LL_VirC", "UDK_LL_Fcount"], _UKE = [_UGE[1][0].UserNickName, "积分:" + (_UGE[1][0].VirtualCurrency || 0) + "分", "文件:" + _UGE[1][0].FilesCount + "个"];
// $("img", _UDAD[0]).addAttrArray({ "onerror": U.M.ImgError, "src": U.M.GetImgU(_UGE[1][0].UserThumbnailImageHead) }, 0); //用户头像
// //信息打印
// for (i = 0; i < _UDE.length; i++) { _UDAD[_UDE[i]].innerHTML = _UKE[i]; }
// _UDE = [2, 5]; _UKE = [U.UP.FileSize(U.UP.GetSfileS(_UGE[1][0].UserDiskSpace + "G")), _UGE[1][0].FileSize];
// for (i = 0; i < _UDE.length; i++) { _UDCD[_UDE[i]].innerHTML = _UKE[i]; }
// _UDAD["UDK_LL_US_TX"].onclick = U.M.apply(this, [[U.M.StopBubble], [U.U.I.POUW, [_UGE[1][0].UserId]]]); //新增用户
// (_UGE[1][3]) && ($("span#UDK_Title", _UGE[1][3].parentNode)[0].innerHTML = "" + _UGE[1][0].UserNickName + "" + "的网盘");
//}
////用户好友和群
//U.Dk.SetDF = function (UDE, UDOD) {
// var i, _UDTD, _UDFD = $$("frag"); UDOD.innerHTML = "";
// for (i = 0; i < UDE.length; i++) {
// _UDTD = $$("div", { "className": "UDK_LL_HYXZ", "onclick": UDE[i].GroupManageID ? [[U.Dk.LE.DBC, [UDE[i].GroupManageID, US.userInfo.userid]]] : [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", US.DG, UDE[i].UserId, null]]] }, _UDFD);
// if (UDE[i].GroupManageID) { _UDTD.appendChild(U.Dk.PGroup(UDE[i])); }
// else { $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead), "title": "聊天", "className": "UDK_LL_HYImg", "onclick": [[U.M.StopBubble], [U.F.W.DMW, [UDE[i]]]] }, _UDTD); }
// $$("span", { "className": "UDK_LL_HYName", "innerHTML": UDE[i].FriendsDescript || UDE[i].GroupManageName, "title": "查看网盘" }, _UDTD);
// }
// UDOD.appendChild(_UDFD);
//}
////用户群
//U.Dk.PGroup = function (UDE) {
// var i, j, k = 0, _UDOD, _UDTD, _UAE = _$(US.Friend[3]).Select({ "GroupManageID": UDE.GroupManageID }, null, 9), _UIF = _UAE.length == 1 ? 1 : _UAE.length < 5 ? 2 : 3;
// US.Disk.UserDisk[0].splice(6, 0, new U.Dk.M.Entity[UDE.GroupManageID, 0, US.userInfo.userid, UDE.GroupManageName, UDE.GroupManageName, "folder", null, U.MT.formatDateToArray(new Date()), U.UP.FFT("folder")[1], 1, null, null, 0, "", UDE.GroupManageID]); //新建实体
// _UDOD = $$("div", { "className": "UDK_LL_HYImg", "onclick": [[U.M.StopBubble], [U.F.W.DGMW, [UDE]]] }); //打开群
// for (i = 0; i < _UIF; i++) { _UDTD = $$("div", { "style": { "width": "100%", "height": Math.floor(40 / _UIF) + "px"} }, _UDOD); for (j = 0; j < _UIF; j++) { if (_UAE[k]) { $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(_UAE[k].UserThumbnailImageHead), "style": { "width": Math.floor(40 / _UIF) + "px", "height": Math.floor(40 / _UIF) + "px"} }, _UDTD); k++; } else { break; } } } //生成群头像
// return _UDOD;
//}
////音乐好友
//U.Dk.SetMDF = function (UDE, UDOD) {
// var _UDTD, UDFD = $$("frag");
// for (i = 0; i < UDE.length; i++) {//在音乐里打印用户好友
// _UDTD = $$("div", { "className": "U_MPFZL", "onclick": [[U.M.StopBubble], [U.Dk.Om, [UDE[i].UserId]]] }, _UDFD);
// $$("img", { "onerror": U.M.ImgError, "style": { "width": "30px", "height": "30px" }, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead) }, _UDTD);
// $$("span", { "style": { "cursor": "pointer" }, "innerHTML": UDE[i].FriendsDescript }, _UDTD);
// }
// UDOD.appendChild(_UDFD);
//}
////用户提示
//U.Dk.UTS = function (UTS, UDOD) {
// if (US.Disk.UserDisk[1][0].UserId == US.userInfo.userid || U.M.GTPN("UseStudioUserDiskDiv" + US.userInfo.userid, UDOD)) { U.Dk.DiskOperatingSwitch(US.userInfo.userid); if (UTS[2]) { U.F.M.FAW("fg"); U.Alert(UTS[0]); return false; } return true; }
// else { U.Alert(UTS[1]); return false; }
//}
////好友导航的隐藏和查看
//U.Dk.DSDFD = function (UDOD) {
// UDOD.style.display = UDOD.style.display == "block" ? "none" : "block";
//}
////初始化网盘左边的树
//U.Dk.directoryAjax = function (userid) {
// var i, _UDTD, _UDSD, _UDGD, _UGE = US.Disk.UserDisk, _UDOD = $("div#UDK_L_USTreeTreeNode", _UGE[1][3])[0], _UDE = _UGE[0].slice(2, 6), _UDFD = $$("frag"), _UAE = ["UDK_L_USTreeComputerIcon", "UDK_L_USTreeAlbumIcon", "UDK_L_USTreeMusicIcon", "UDK_L_USTreeVideoIcon", "UDK_L_USTreeRecycleBin"]; _UDOD.innerText = "";
// for (i = 0; i < _UDE.length; i++) {
// _UDTD = $$("div", { "className": "UDK_L_USTreecontainA" }, _UDFD);
// _UDSD = $$("div", { "className": "UDK_L_USTTitle", "onclick": [[U.M.StopBubble], [U.Dk.LL.UDKURL, [_UDE[i].UserDirectoryID]], [U.Dk.LL.SM, ["retElement", userid, _UDE[i].UserDirectoryID]], [U.Dk.LE.DBC, [_UDE[i].UserDirectoryID, userid]]] }, _UDTD);
// $$("div", { "className": "UDK_L_DiskGE UR_I_D_E UDK_L_USTreesign" }, _UDSD);
// _UDGD = $$("a", { "className": "UDK_L_USTreeusestudiodisktreeA", "id": "d" + _UDE[i].UserDirectoryID }, _UDSD);
// $$("i", { "className": "UDK_L_DiskGE " + _UAE[i] }, _UDGD);
// $$("span", { "innerHTML": _UDE[i].UserDirectoryName }, _UDGD);
// }
// U.Dk.DSDFD(_UDOD); _UDOD.appendChild(_UDFD);
//}
//---------------------------------------------------------------------------添加网盘达人-----------------------------------------------------------------------------
////添加最新动态
//U.Dk.M.AddPND = function (UDE) {
// var _UGE = US.Disk.DiskDaren[UDE[0]];
// if (!_UGE) { _UGE = US.Disk.DiskDaren[UDE[0]] = []; }
// _UGE = _UGE[UDE[1]] = _UGE[UDE[1]] || [];
// _UGE[UDE[2]] = UDE[3].concat((_UGE[UDE[2]] || []));
//}
////分页获取最新动态
//U.Dk.M.GetPND = function (UAE) {
// var _UKE, _UDE = US.Disk.DiskDaren[UAE[0]], _UP = UAE[2], _UTP = Math.ceil(_UP * UAE[3] / UAE[4]), _UIP = _UP % UAE[3], _UE = _UIP * UAE[3], _US = _UE - UAE[3];
// _UDE && (_UDE = _UDE[UAE[1]]) && (_UDE = _UDE[_UTP]) && (_UKE = _UDE.slice(_US, _UE)); return [_UKE, _UTP];
//}
//没有使用。。。先放着
//U.Dk.SelectRectangle = function (obj) {
// var FirstX = event.clientX;
// var FirstY = event.clientY;
// var SecondX = 0;
// var SecondY = 0;
// var isShare = true;
// var div = document.getElementById("UDK_LL_ShareBox");
// div.style.left = FirstX + "px";
// div.style.top = FirstY + "px";
// div.style.width = "0px";
// div.style.height = "0px";
// div.style.display = "block";
// window.onmousemove = function () {
// if (isShare == true) {
// window.scrollTo(0, 0)
// SecondX = event.clientX;
// SecondY = event.clientY;
// if (SecondX > FirstX) {
// div.style.left = FirstX + "px";
// div.style.width = SecondX - FirstX + "px";
// }
// if (SecondY > FirstY) {
// div.style.top = FirstY + "px";
// div.style.height = SecondY - FirstY + "px";
// }
// if (SecondY < FirstY) {
// div.style.top = SecondY + "px";
// div.style.height = FirstY - SecondY + "px";
// }
// if (SecondX < FirstX) {
// div.style.left = SecondX + "px";
// div.style.width = FirstX - SecondX + "px";
// }
// }
// }
// window.onmouseup = function () {
// isShare = false;
// div.style.display = "none";
// }
// window.onblur = function () {
// isShare = false;
// div.style.display = "none";
// }
//}
//设置权限
U.Dk.RE.SZQX = function () {
var _ITF, _UGE = US.Disk.UserDisk, _UDID = _UGE[1][1], _UDRD = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": _UDID }, "UserDirectoryParentID");
if (_UDRD.length > 1 && _UDRD[0].UserDirectoryEncrypt != "true" && _UDRD[_UDRD.length - 1].GroupID != null) { _ITF = ["是否设置文件夹权限", "encrypt", "true"]; } //设置文件夹权限
else {
if (_UDRD[0].UserDirectoryEncrypt == "true") { _ITF = ["是否
'" + _musicName + "'
" + // "