1 |
- Namespace.register("U.D"); U.D.TF = false; window.onload = function () { U.D.FLoad(); }; U.D.FLoad = function () { U.A = null; U.CI.GCInfo(); U.D.AsynLI(); US["ITID"] = Guid.NewGuid(); U.D.MaxMin(); U.D.PreLoad(); U.MPlayer.Onload(); }; U.D.AsynJWH = function () { var a = $("#UF_UPT"), b = a.GetElementInfo(); U.D.TF = true; U.D.AD.ZK(); U.D.ZYBH([false, "云端在线,体验云服务", "最新上线:云端在线<span title='点击打开Word' style='color:#5fa1e8;cursor:pointer;' onmousedown='U.M.StopBubble();' onclick='U.M.StopBubble();U.D.UDOS[7].click();'>Word</span><span style='color:red;'> 新! </span><span title='点击打开Excel' style='color:#5fa1e8;cursor:pointer;' onmousedown='U.M.StopBubble();' onclick='U.M.StopBubble();U.D.UDOS[8].click();'>Excel</span><span style='color:red;'> 新!</span>,实现在线生成网站同时可分享,体验最好的云端服务。", [U.D.UDOS[7].onclick, "登录", U.U.L.LARG, "Word"], { "X": b["TX"], "Y": b["TY"], "L": b["TX"] - 400, "T": b["TY"] + 60 }], a[0]); }; U.D.ONTSJZ = function (a) { a["TF"] = false; U.D.USTimer(); U.U.L.CookieL(); U.D.AsynJWH(); }; U.D.AsynLI = function () { var d, e = document.createDocumentFragment(), c, b = { "U_Main": "A", "U_Disk": "Adisk", "U_BG": "UB", "U_PB": "PB", "U_Pay": "PY", "reply": "RY", "U_ME": "MA", "TF": true }, a = [["U_Main", "http://main.1473.cn/index.htm", "A"]]; U.D.ITF = a.length; for (var d = 0; d < a.length; d++) { c = $$("iframe", { "id": a[d][0], "name": a[d][0], "src": a[d][1], "width": 0, "height": 0, "style": { "display": "none" } }, e); U.MD.IframeLoad(c, [[U.D.AsynLIFA, ([b])]]); } document.body.appendChild(e); }; U.D.AsynLIFA = function (a) { for (var b in a) { if (a.hasOwnProperty(b) && b != "TF") { (window.U)[a[b]] = window.frames["U_Main"].U.A; delete a[b]; } } this.contentWindow.name = this.id; U.D.ONTSJZ(a); }; U.D.PreLoad = function () { U.D.T.displayDesktop(); U.D.prinetic(); U.D.MS.onesetInterval(0); U.D.MS.SetTimeout(); document.onclick = document.body.onmousedown = U.M.apply(this, [[U.D.SetDTop], [U.D.R.DeskTopRightClick]]); }; U.D.USTimer = function () { U.U.L.UInfo(); setTimeout(U.M.apply(this, ([[U.D.GG.GL, ([US.PB.Category[U.P.getRandom(5), true]])]])), 300000); setTimeout(U.M.apply(this, ([[U.D.GG.GN, ([US.PB.TZGG.all])]])), 125000); }; U.D.MaxMin = function () { var a = $("body", document).GetElementInfo(); US.Height = a["CH"]; US.Width = a["CW"]; }; U.D.WRZTimer = null; window.onresize = function () { clearTimeout(U.D.WRZTimer); U.D.WRZTimer = setTimeout(function () { if (document.readyState == "complete") { U.D.MaxMin(); if (U.D.UDOS) { U.D.IconRank(); } if (US.Disk.diskfileTree) { U.Dk.HP.CW(); } } }, 500); }; document.onselectstart = function () { U.M.StopBubble(); var a = U.M.GetDE(event.srcElement); if (a && a.nodeType == 3 || a.tagName.toLocaleLowerCase() != "body") { return true; } else { return false; } }; U.D.Favorite = function () { window.external.addFavorite("", "云操作系统"); }; U.D.SHome = function (a) { a.style.behavior = "url(#default#homepage)"; a.setHomePage(""); return false; }; Namespace.register("U.D.R"); U.D.R.DeskTopRightClick = function () { U.D.R.DesktopLeftClick(); var a = true; if (event.button == 2) { U.D.R.DNIcon((["block", "none", "none", "none"])); U.M.RLocate($("#UD_RM_RMenu")[0]); } ((event) && (event.srcElement.tagName.toLocaleLowerCase() == "a") && (a = false)); return a; }; U.D.R.AppRightClick = function (d, f) { var b = U.M.GetMousep(), e = $("#UD_RM_AppMenu")[0], a = $("li", e), c; U.D.R.DNIcon((["none", "block", "none", "none"])); U.M.RLocate(e); c = d.AppNewWin ? "US_Manage_App_Open" : d.ApplicaitonUrl; a[0].onclick = U.M.apply(this, [[U.M.divdoubleClick, ([c, d.ApplicationID, "", f.outerHTML, d.AppNewWin, d.ApplicaitonUrl])], [document.onclick]]); a[1].onclick = U.M.apply(this, [[U.D.deleteApp, ([d, f])]]); a[0].onmousedown = a[1].onmousedown = U.M.StopBubble; }; U.D.R.ChatBoxRightclick = function (e) { var b = $("#UD_RM_LT_AM")[0]; U.M.RLocate(b); var a = $("li", b); var d = [[U.U.I.POUW, ([e.UserId])], [U.F.J.ANF, ([e, "add"])], [U.F.W.DMW, ([e])]]; for (var c = 0; c < d.length; c++) { a[c].onclick = U.M.apply(this, [d[c]]); } b.onmousedown = U.M.StopBubble; U.M.StopBubble(); }; U.D.R.DNIcon = function (a) { $("#UD_RM_RMenu")[0].style.display = a[0]; $("#UD_RM_AppMenu")[0].style.display = a[1]; $("#UD_RM_UPMenu")[0].style.display = a[2]; $("#UD_RM_LT_AM")[0].style.display = a[3]; }; U.D.R.DesktopLeftClick = function () { U.D.R.DNIcon((["none", "none", "none", "none"])); $("#UD_GG_BN")[0].style.display = $("#UD_GG")[0].style.display = $("#UF_RB_FriDLBox")[0].style.display = $("#UD_BB_BAB")[0].style.display = $("#UD_MF_Per")[0].style.display = "none"; }; U.D.R.AboutUSright = function (c) { var b = $("#UD_AboutUs")[0]; var a = $("span", b); if (c.id == "UD_GYW_AU") { U.MR.OptionGroupSelect(a[0]); U.D.R.AboutChange(a[0].parentNode); } else { U.MR.OptionGroupSelect(a[1]); U.D.R.AboutChange(a[1].parentNode); } }; U.D.R.AboutChange = function (d) { var a, c = $("#UD_AboutUs_Content")[0], b = d.getAttribute("selectnum"); c.innerHTML = ""; if (b == "1") { $$("div", { "className": "UD_R_GYH", "innerHTML": "云操作系统:通过多种技术的结合制作云存储,聊天系统,音乐播放,云视频,云浏览器等功能的用户操作系统。<br /><div style='color:red;'>联系方式如下:</div>" }, c); $$("div", { "className": "UD_R_GYL", "innerHTML": "新浪微博:<br />腾讯微博:<br />开发QQ群:<br />联系手机:<br />百度贴吧:<br />微信号:<br />企业版授权:" }, c); $$("div", { "className": "UD_R_GYR", "innerHTML": "http://weibo.com/usestudio<br />http://t.qq.com/us1473<br />337510064<br />13928417148<br />云操作系统<br />雨云科技<br /><span style='cursor:pointer;' onclick=window.open('http://www.szeer.com')>深圳市东立胜科技有限公司</span>" }, c); $$("div", { "className": "UD_R_GYB", "innerHTML": "CopyRight © UseStudio.All Rights Reserved.<br />版权所有©深圳市雨云科技有限公司<br />" }, c); $$("img", { "className": "UD_R_GYEW", "src": "/img/qqew.jpg" }, c); } else { if (b == "2") { a = $$("div", { "innerHTML": "欢迎对计算机技术有兴趣的同仁加入云操作系统的研发。<br />需要掌握的技术:javascript,css,html,winForm,SQL,MySql,<br />php,net,C语言,linux,mono,<br />Gcc,分布式存储,HTML5,网络部署等.<br />联系email:121889866@qq.com.<br />在线购买书籍地址:" }, c); $$("a", { "href": "javascript:U.M.divdoubleClick('UM_Shop')", "innerHTML": "书籍购买地址" }, a); } else { a = $$("div", { "innerHTML": "联系方式:121889866@qq.com.<br />QQ群:337510064<br />手机:13928417148<br />微博地址:" }, c); $$("a", { "href": "http://weibo.com/u/3934163141", "target": "blank", "innerHTML": "http://weibo.com/u/3934163141" }, a); a.innerHTML += "<br />"; $$("a", { "href": "javascript:void(0)", "title": "点击进入意见反馈", "onclick": "U.M.StopBubble();U.M.divdoubleClick('UseStudioStudyControlDiv','8989bc55-6f36-44e8-8b1b-cc18486cf140',null ,null ,'SUB3c779543-bc1a-4851-af22-af9ba97a5f33')", "innerHTML": "进入反馈区域" }, a); } } }; U.D.R.AboutUS = function () { if ($("#UD_About")[0] == null) { var b = $$("div", { "style": { "width": "100%", "height": "100%" } }); var a = $$("div", { "style": { "marginLeft": "30%" }, "id": "UD_AboutUs", "onclick": [U.D.R.AboutChange, (["this"])], "className": "UD_PS_SO UD_PS_SO_R", "selectnum": "1", "value": "背景设置" }, b); $$("span", { "onclick": [U.MR.OptionGroupSelect, (["this"])], "style": { "color": "#fff", "fontWeight": "bold" }, "innerHTML": "关于我们" }, a); $$("span", { "onclick": [U.MR.OptionGroupSelect, (["this"])], "innerHTML": "加入我们" }, a); $$("span", { "onclick": [U.MR.OptionGroupSelect, (["this"])], "innerHTML": "联系我们" }, a); $$("i", { "className": "UF_S_Img Cloud" }, a); var d = $$("div", { "className": "UD_PS_C", "style": { "marginTop": "20px" }, "onselectstart": function () { U.M.StopBubble(); return true; } }, b); var c = $$("div", { "id": "UD_AboutUs_Content", "className": "UD_R_ABC" }, d); U.M.Window_Create([1, "50", "10%", "579", "420", "UD_About", "关于我们", "", b, "no", false, true, false, "background:url('/img/usestudiobackgroudnimage/beta1/bg12(1).jpg');"]); U.D.R.AboutChange(a); } U.D.PopupWindow($("#UD_About")[0]); U.D.Tb.WindowRestore($("#UD_About")[0], "", "关于我们"); }; U.D.R.XY = function () { if ($("#UDR_AM")[0] == null) { var a = $$("div", { "style": { "width": "100%", "height": "100%" } }); var c = $$("div", { "className": "UD_PS_C", "style": { "marginTop": "20px" }, "onselectstart": function () { U.M.StopBubble(); return true; } }, a); var b = $$("div", { "id": "UDR_AM_Content", "style": { "cssText": "margin:20px 50px; font-size:14px; line-height:25px; " } }, c); U.M.Window_Create([1, "50", "10%", "579", "420", "UDR_AM", "用户协议", "", a, "no", false, true, false, "background:url('/img/usestudiobackgroudnimage/beta1/bg12(1).jpg');"]); U.MD.DynamicLoad("/js/UU/U.U.C.js", "js", [[U.D.R.YJZ, ([b])]]); } U.D.PopupWindow($("#UDR_AM")[0]); U.D.Tb.WindowRestore($("#UDR_AM")[0], "", "用户协议"); U.M.StopBubble(); }; U.D.R.YJZ = function (a) { a.innerHTML = U.U.C.XY; }; Namespace.register("U.D.B"); U.D.B.SetLoginBGimg = function () { if (US.userInfo.UserBackGroundImage == null) { US.userInfo.UserBackGroundImage = "/img/usestudiobackgroudnimage/beta1/bg14.jpg"; } else { _TP = U.D.B.BGimgR(); $("#usestudiocontainer")[0].style.backgroundImage = ""; $("#BigBackGroundImg")[0].src = _TP[1]; U.D.BgShowWay(_TP[0]); } }; U.D.B.BGimgR = function () { var a = US.userInfo.UserBackGroundImage, b = a.lastIndexOf("/"); return [a.substr(b + 1), a.substr(0, b)]; }; U.D.B.windowCreate = function () { var a, b, d, c = $("#UD_PS")[0]; a = $$("div", { "id": "UD_PS_SO", "selectnum": "1", "value": "背景设置" }); b = $$("div", { "style": { "cssText": "height:77px;" } }, a); d = $$("div", { "style": { "cssText": "padding-left:60px; padding-top:20px;" } }, b); $$("span", { "id": "BGround", "onclick": [U.D.B.JudgeAnniu, ([a, "back"])], "className": "ud_bgset" }, d); $$("span", { "id": "UD_PS_BJ" }, d); $$("span", { "id": "ud_rightbtn", "className": "ud_bgrightbtn", "onclick": [U.D.B.JudgeAnniu, ([a, "next"])] }, d); $$("div", { "className": "UD_PS_C", "id": "UD_PS_C" }, a); c = U.M.Window_Create([1, "50", "10%", "575", "443", "UD_PS", "个性化设置", "", a, "no", false, true, false, "background:url(/img/settingWindow.jpg) no-repeat;"]); $("#UD_PS_SO").addAttrArray({ "selectnum": 2 }); U.D.B.JudgeAnniu(a, "back"); U.D.PopupWindow(c); U.D.Tb.WindowRestore(c, '<div style="margin:11px 0 0 5px; width:61px; height:65px; background-position: -343px -75px;" class="UD_DI_iconimg UD_NUB"></div>', "个性化设置"); }; U.D.B.JudgeAnniu = function (g, h) { var f, e, b = parseInt(g.getAttribute("selectnum")), d = $("#UD_PS_C")[0], c = [[U.D.B.BackgroundLoad, "-11px -42px"], [U.D.B.Gainbackground, "-11px -81px"], [U.D.B.OtherLoad, "-198px -37px"]], a = U.M.GTCN(d.childNodes); for (f = 0; f < a.length; f++) { a[f].style.display = "none"; } (h == "next" && b < 3) && (e = true, b++); (h == "back" && b > 1) && (e = true, b--); $(g).addAttrArray({ "selectnum": b }); $("#UD_PS_BJ")[0].style.backgroundPosition = c[b - 1][1], c[b - 1][0](); }; U.D.B.BackgroundLoad = function () { var b, e, a, c = $("#UD_PS_C")[0], d = $("div#UD_PS_B", c)[0]; if (d) { d.style.display = "block"; } else { e = ["bg14", "bg9", "bg10", "bg11", "bg12", "bg13", "bg1", "bg2", "bg3", "bg4", "bg5", "bg6", "bg7", "bg8"]; a = $$("div", { "className": "UD_PS_B", "id": "UD_PS_B" }, c); for (b = 0; b < e.length; b++) { $$("img", { "className": "BG", "src": "/img/usestudiobackgroudnimage/beta1/" + e[b] + "(1).jpg", "onclick": [U.D.B.ChangeBackground, (["/img/usestudiobackgroudnimage/beta1/" + e[b] + ".jpg"])] }, a); } } }; U.D.B.OtherLoad = function () { var e, h, g, b, d, f = $("#UD_PS_C")[0], c = $("div#UD_PS_O", f)[0], a = ["是否开启标题栏提示", "是否开启提示音", "背景"]; if (c) { c.style.display = "block"; } else { c = $$("div", { "innerHTML": "", "className": "UD_PS_O", "id": "UD_PS_O" }); h = $$("div", { "className": "is_change" }, c); for (e = 0; e < a.length; e++) { g = $$("div", { "className": "UD_SCD" }, h); $$("span", { "className": "UD_SOS", "innerHTML": a[e] }, g); b = $$("div", { "id": "UD_PS_OTitle", "className": "U_OpSelect UD_PS_SO_r1", "style": e == 2 ? { "backgroundPosition": "-1px -180px", "width": "161px" } : { "backgroundPosition": "-179px -180px", "width": "110px" }, "selectnum": "1", "value": "OFF" }, g); $$("span", { "onclick": e == 2 ? [U.D.B.CSetBG, ["this", "Stretch"]] : [U.MR.OptionGroupSelect, ["this"]], "style": { "cssText": "color:#fff; width:45px; font-weight:bold;margin-left:12px;" }, "innerHTML": e == 2 ? "拉伸" : "OFF" }, b); $$("span", { "onclick": e == 2 ? [U.D.B.CSetBG, ["this", "Tile"]] : [U.MR.OptionGroupSelect, ["this"]], "style": { "cssText": "width:45px;" }, "innerHTML": e == 2 ? "平铺" : "ON" }, b); if (e == 2) { $$("span", { "onclick": [U.D.B.CSetBG, ["this", "Middle"]], "style": { "cssText": "color:#fff; width:45px; font-weight:bold;" }, "innerHTML": "居中" }, b); } $$("i", { "className": "U_OpSelectD" }, b); } f.appendChild(c); } if (US.userInfo.userid) { U.MR.OptionGroupSelect($("#ud_" + U.D.B.BGimgR()[0])[0]); } }; U.D.B.Gainbackground = function () { var k, c = $("#UD_PS_C")[0], e = $("#U_P_BGDiv")[0]; (e) && (c.removeChild(e)); if (US.userInfo.userid == null) { k = $$("div", { "className": "UD_PS_B", "id": "U_P_BGDiv" }); $$("img", { "src": "/img/ud_login.png", "onclick": [U.U.L.LAR], "alt": "请登录", "style": { "cssText": "margin-left:158px; margin-top:40px;" } }, k); c.appendChild(k); } else { var f, b, g, j, h, a, d = $("#ud_upbg")[0]; if (d) { c.removeChild(d); } d = $$("div", { "className": "ud_upbg", "id": "ud_upbg" }, c); $$("input", { "type": "file", "name": "upfile", "id": "UU_N_HeadImageInput", "accept": "image/gif, image/jpeg", "onchange": [U.D.B.onupfile, (["this"])], "className": "UD_uploadbg", "multiple": "true" }, d); g = $$("div", { "className": "UD_PS_B", "id": "U_P_BGDiv" }, c); j = U.Dk.M.seqencing(US.userInfo["UserBImage"]); for (f = 0; f < j.length; f++) { h = j[f]["UserDirectoryUrl"].replace("background-image:url(", "").replace(");", ""); b = $$("div", { "className": "UD_PS_B_UD", "style": { "cssText": "float:left; width:179px; height:130px; position:relative;" } }, g); $$("a", { "className": "UD_PS_DELEimg UD_PS_DE", "onclick": [U.D.B.deletePhoto, ([j[f].UserDirectoryID, b])] }, b); $$("img", { "className": "BG", "src": h, "onclick": [U.D.B.ChangeBackground, ([US.fs + j[f]["UserFilesServerName"]])], "onerror": [[U.M.ImgError, ([1])]] }, b); } } }; U.D.B.onupfile = function (b) { var c = b.parentNode, a = U.UP.SFT("P"); if (U.UP.UploadFileType(b, a)) { U.UP.uploading([b], U.D.B.UploadBackgrounShow, ([]), "http://disk.1473.cn/USupfile.ashx?iframename=ajaxlogin", true); c.appendChild(b); } else { U.UI.Confirm("只允许上传图片"); } }; U.D.B.UploadBackgrounShow = function (d) { var b, c, a = d.context; d = d.value; if (d) { for (b = 0; b < d.length; b++) { c = new U.Dk.M.Entity([d[b].UserFilesID, d[b].UserFilesSize, d[b].UserDirectoryID, d[b].UserFilesName.substring(0, 10) + "...", d[b].UserFilesName, d[b].UserFilesExtendName, d[b].UserFilesServerName, U.MT.GetDT(), US.fs + d[b].UseFilesServerThumbnailName, 99999, null, null, 1, ""]); U.Dk.M.ufinfoarray("add", c); U.Dk.RE.ARFO(c); US.userInfo["UserBImage"].push(c); } U.D.B.Gainbackground(); } }; U.D.B.deletePhoto = function (a, b) { U.UI.Confirm("确定删除背景图片吗?", [U.D.B.DLP, ([a, b])], ""); }; U.D.B.DLP = function (b, c) { var a = U.Dk.M.ufinfoarray("onefind", b); c.parentNode.removeChild(c); U.D.B.deleteBImag(b); U.Adisk.Request("UseStudioDisk.deleteDirectoryOrFile", ([US.userInfo.userid, b, 1]), U.Dk.RE.AsynDF, (["", a])); }; U.D.B.deleteBImag = function (b) { var a, c = US.userInfo["UserBImage"]; for (a = 0; a < c.length; a++) { if (c[a].UserDirectoryID == b) { c.splice(a, 1); } } }; U.D.B.CSetBG = function (a, b) { U.D.BgShowWay(b); if (US.userInfo.userid) { U.UI.Confirm("是否使用该类型摆放背景", [U.D.B.SetBGT, ([a, b])], [U.D.B.SetBGF]); } else { U.MR.OptionGroupSelect(a); } }; U.D.B.SetBGT = function (a, b) { U.MR.OptionGroupSelect(a); U.D.B.SaveBackground($("#BigBackGroundImg")[0].src, b); }; U.D.B.ChangeBackground = function (b) { var a = b + "?number=" + Math.random(); $("#BigBackGroundImg")[0].src = a; $("#usestudiocontainer")[0].style.backgroundImage = "url(" + a + ")"; (US.userInfo.userid != null) && (U.UI.Confirm("是否使用该背景!!", [U.D.B.SaveBackground, ([b])], [U.D.B.SetLoginBGimg])); }; U.D.B.SaveBackground = function (b, a) { if (US.userInfo.userid && b) { a = a || U.D.B.BGimgR()[0]; U.A.Request("UseStudioManage.SetUserBackgroudnImage", ([US.userInfo.userid, b, a]), U.M.apply(this, "U.Alert('保存成功')"), ([])); US.userInfo.UserBackGroundImage = b + "/" + a; } }; U.D.BgShowWay = function (b) { var d = $("#BigBackGroundImg")[0], c = $("#usestudiocontainer")[0], a; switch (b) { case "Tile": a = [{ "width": "100%", "height": "100%", "backgroundImage": "url('" + d.src + "')", "backgroundRepeat": "", "backgroundPosition": "" }, { "width": "0%", "height": "0%" }]; case "Middle": a[0]["backgroundRepeat"] = "no-repeat"; a[0]["backgroundPosition"] = "center center"; break; case "Stretch": a = [{ "backgroundImage": "" }, { "width": "100%", "height": "100%" }]; break; default: U.D.BgShowWay("Stretch"); break; } (a) && ($(c).addAttrArray({ "style": a[0] }), $(d).addAttrArray({ "style": a[1] })); }; Namespace.register("U.D.BC"); U.D.BC.BS = ["", false, null, { "": { "ID": US.NU, "L": 0 }, "UD_DiskCon": { "ID": US.NU, "L": 0 }, "UD_BlogCon": { "ID": US.NU, "L": 0 }, "UD_ChatCon": { "ID": US.NU, "L": 0 }, "UD_BBSCon": { "ID": US.NU, "L": 0 }, "UD_AppCon": { "ID": US.NU, "L": 0 } }, false]; U.D.BC.M = []; U.D.BC.GetMessage = function () { U.A.Request("UseStudioManage.Onload", ([US.NLInfo.LogAddr || "", US["ITID"]]), U.D.BC.AyMessage, ([""])); }; U.D.BC.AyMessage = function (b) { var a = b.context; b = b.value; if (b != null) { U.D.BC.BS[4] = true; U.D.BC.SetNews(b[1][0], true); _$(US.NLInfo).Add(b[2]); U.D.UTNews(US.NLInfo); U.D.PSU([b[1][1], b[1][2]]); if (b[1][0].length > 0) { setTimeout(U.D.BC.Chatdisplay, 5000); U.D.BC.BS[3][""]["ID"] = b[1][0][b[1][0].length - 1].NEWID; } } }; U.D.BC.Setmessage = function () { if (US.userInfo.userid == null) { U.Alert("登录了才可以聊天哦"); } else { var d = $("#UD_EnterBox")[0], a = $("#UD_ChatCon")[0], b = d.innerHTML.replace(new RegExp('"', "gm"), "'").SubN(); if (b.IsGEdit()) { U.D.BC.ChatBoxSwitchTab($("div", $("#UD_C_ChatTab")[0])[1]); var c = new U.D.T.CII([U.MS.produceGuid(), US.userInfo.userid, US.userInfo.UserNickName, US.userInfo.UserThumbnailImageHead, "UD_ChatCon", "", b, "", ""]); U.D.BC.M.push(c); U.D.BC.SetNews([c], true); d.innerHTML = ""; } } }; U.D.BC.NLGN = function () { if (U.D.BC.BS[4] && Guid.test(U.D.BC.BS[3][U.D.BC.BS[0]]["ID"])) { U.A.Request("UseStudioManage.GetAllChat", ([U.D.BC.BS[3][U.D.BC.BS[0]]["ID"], U.D.BC.BS[0], US["ITID"]]), U.D.BC.AsynNLGN, (["", U.D.BC.BS[0]])); } }; U.D.BC.AsynNLGN = function (b) { var a = b.context; b = b.value; if (b) { if (b[0].length > 0) { U.D.BC.SetNews(b[0], true); U.D.BC.BS[3][a[1]]["ID"] = b[0][b[0].length - 1].NEWID; } U.D.PSU([b[1], b[2]]); } }; U.D.BC.SetNews = function (g, c) { if (g.length > 0) { U.D.BC.BS[2] = U.D.BC.BS[2] == null ? { "UD_AllCon": $("#UD_AllCon")[0], "UD_ChatCon": $("#UD_ChatCon")[0], "UD_DiskCon": $("#UD_DiskCon")[0], "UD_BlogCon": $("#UD_BlogCon")[0], "UD_BBSCon": $("#UD_BBSCon")[0] } : U.D.BC.BS[2]; var e, b, d = U.D.BC.BS[2]["UD_AllCon"].parentNode.parentNode, f = false, a = $("div", U.D.BC.BS[2]["UD_AllCon"]), h = { "": [], "UD_DiskCon": [], "UD_BlogCon": [], "UD_ChatCon": [], "UD_BBSCon": [], "UD_AppCon": [] }; for (var e = 0; e < g.length; e++) { if ((g[e].UserId != US.userInfo.userid || U.D.BC.BS[1]) || c) { h[""].push(g[e]); h[g[e].NEWTYPE].push(g[e]); f = true; } } if (f) { for (e in h) { if (h.hasOwnProperty(e) && h[e].length > 0) { b = U.D.BC.BS[2][(e) || "UD_AllCon"]; U.D.BC.SNewS(b, h[e]); b.scrollTop = b.scrollHeight - b.offsetHeight; if (e != "" && (c != true || US.userInfo.userid == null)) { U.D.BC.BS[3][e]["ID"] = h[e][h[e].length - 1].NEWID; } } } if (h["UD_DiskCon"].length > 0) { U.Dk.DI.DTSJ(h["UD_DiskCon"]); } if (d.style.display == "none") { $("div", $("#UD_NUB_C")[0])[0].style.display = "block"; } } } }; U.D.BC.SNewS = function (d, g) { var e, n, l, b, f, k, j, c, m = d.childNodes, h = m.length + g.length, a = document.createDocumentFragment(); if (h > 100) { for (e = 0; (e < h - 100) && (e < m.length); e++) { d.removeChild(m[e]); } if (g.length > 100) { g = g.slice(g.length - 100, g.length); } } for (e = 0; e < g.length; e++) { l = $$("div", { "className": "UD_Chat_All" }, a); b = $$("div", { "className": "UD_Chat_Username", "innerHTML": "[" + (g[e].UserNickName || g[e].UserName) + "]" + "\t" + U.MT.GetDT(g[e].Time || new Date()), "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([g[e].UserId, "this"])]], "onmousedown": U.M.StopBubble, "oncontextmenu": [U.D.R.ChatBoxRightclick, ([g[e], "this"])] }, l); f = $$("div", { "className": "UD_Chat_UserContent UC_TF", "onselectstart": U.M.StopBubble }, l); k = $$("div", { "innerHTML": g[e].NEWC }, f); switch (g[e].NEWTYPE) { case "UD_DiskCon": $(k).addAttrArray({ "onclick": [[U.M.StopBubble], [U.Dk.NologinDiskDown, ([g[e].UserId, g[e].NEWT, true])]], "className": "UTDF", "title": "点击查看详情", "innerHTML": "上传了(" + g[e].NEWC + ")" }); break; case "UD_BlogCon": $(k).addAttrArray({ "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioBlogSystemDiv", null, g[e].UserId, null, g[e].NEWID])]], "className": "UTDF", "title": "点击查看详情", "innerHTML": "在博客分享-" + g[e].NEWT }); break; case "UD_BBSCon": $(k).addAttrArray({ "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioStudyControlDiv", null, "", null, g[e].NEWID])]], "className": "UTDF", "title": "点击查看详情", "innerHTML": "在论坛分享-" + g[e].NEWT }); break; default: break; } } d.appendChild(a); if (US.userInfo.userid) { U.D.BC.BS[1] = false; } }; U.D.BC.Chatdisplay = function () { var b = $("#UD_Chat")[0], a = (U.D.BC.BS[2] != null ? U.D.BC.BS[2][(U.D.BC.BS[0] || "UD_AllCon")] : $("#UD_AllCon")[0]); if (b.style.display == "block") { b.style.display = "none"; } else { $("#UD_Chatbottom")[0].style.display = "block"; U.D.BC.ChatBoxSwitchTab($("div", $("#UD_C_ChatTab")[0])[0]); U.D.PopupWindow(b); a.scrollTop = a.scrollHeight - a.offsetHeight; $("div", $("#UD_NUB_C")[0])[0].style.display = "none"; } U.M.StopBubble(); }; U.D.BC.ChatBoxCSH = function (b) { var a = b.parentNode; a.style.minHeight = "0px"; if (a.getAttribute("stat") == "display") { $("#UD_Chatbottom")[0].style.display = "none"; U.D.PB.VN; $(a).animate({ "height": "21px" }, 500, U.M.apply(this, [[U.D.BC.Shrink, ([a, a.clientHeight + "px"])]])); } else { $(a).animate({ "height": a.getAttribute("stat") }, 500, U.M.apply(this, [[U.D.BC.Stretch, ([a])]])); } }; U.D.BC.Shrink = function (a, b) { $("#UD_resize")[0].style.display = "none"; a.style.minHeight = "0px"; a.setAttribute("stat", b); }; U.D.BC.Stretch = function (a) { a.style.minHeight = "262px"; $("#UD_Chatbottom")[0].style.display = "block"; $("#UD_resize")[0].style.display = "block"; a.setAttribute("stat", "display"); }; U.D.BC.ChatBoxClose = function (a) { $(a).addAttrArray({ "style": { "minWidth": "0px", "minHeight": "0px" } }); $(a).animate({ "width": "0px", "height": "0px" }, 300, function () { $(a).addAttrArray({ "style": { "width": "380px", "height": "262px", "minWidth": "380px", "minHeight": "262px", "display": "none" } }); }); }; U.D.BC.ChatBoxSwitchTab = function (c) { var a = $("div", c.parentNode); for (var b = 0; b < a.length; b++) { if (a[b] == c) { c.style.backgroundPosition = " -80px -222px"; } else { a[b].style.backgroundPosition = "-134px -222px"; } } U.D.BC.ChatBoxDIS(c.getAttribute("value")); }; U.D.BC.ChatBoxDIS = function (b) { var a = U.M.GTCN($("#UD_content")[0].childNodes); for (var c = 0; c < a.length; c++) { if (b == a[c].id) { a[c].style.display = "block"; a[c].scrollTop = a[c].scrollHeight - a[c].offsetHeight; U.D.BC.BS[0] = a[c].id; U.D.BC.BS[0] = U.D.BC.BS[0] == "UD_AllCon" ? "" : U.D.BC.BS[0]; } else { if (a[c].style.display != "none") { a[c].style.display = "none"; } } } }; Namespace.register("U.D.CM"); U.D.CM.RP = {}; U.D.CM.CMSS = function (b, d) { var f = d * 10, c = f - 10, e = U.D.CM.RP[b], a = U.D.CM.AsynCO(b); (d == 1) && (a.innerHTML = ""); (e) && (_UICL = e.slice(c, f)); if (e) { U.D.CM.SetRPSS(_UICL, a); U.M.StopBubble(); U.Dk.RM.DRC(); } else { U.RY.Request("Reply", (["selectreply", b, c, 100]), U.D.CM.CMSG, ([a.parentNode, b, d, a])); } }; U.D.CM.CMSG = function (c) { var b = c.context; c = c.value; if (c) { var a = c[0]; if (a.length == 0) { b[3].onscroll = null; } else { (U.D.CM.RP[b[1]] == null) && (U.D.CM.RP[b[1]] = []); U.D.CM.RP[b[1]] = U.D.CM.RP[b[1]].concat(U.D.CM.QFOTP(a)); U.D.CM.CMSS(b[1], b[2]); } } }; U.D.CM.QFOTP = function (b) { var d, c, a = []; for (d = 0; d < b.length; d++) { if (b[d]["ReplyDeep"] == 1) { b[d]["NextP"] = []; a.push(b[d]); b.splice(d, 1); d--; } else { for (c = 0; c < a.length; c++) { if (a[c].ReplyID === b[d].ReplyBindingID) { a[c]["NextP"].push(b[d]); break; } } } } return a; }; U.D.CM.AsynCO = function (d) { var a = $("#USUR" + d)[0], g, f, c, e, b; if (a == null) { g = $$("div", { "className": "UD_CM_UPL" }); f = $$("div", { "className": "UD_CM_UVZD", "style": { "height": ((US.Height * 0.8) - 200) + "px" }, "onscroll": U.M.SSCH({ "AF": U.M.apply(null, [[U.D.CM.SFND, ([d])]]) }).SCH() }, g); c = $$("div", { "id": "UD_CM_UNR" }, f); e = $$("div", { "className": "UD_CM_UHF" }, g); b = $$("div", { "className": "UD_CM_HF_K" }, e); U.D.E.RichEditor(b, "", 85, false); $$("div", { "onclick": [U.D.CM.MR, [d, $("div@contenteditable=true", b)[0], 1, "", "", ""]], "className": "UD_CM_UHFR", "innerHTML": "发 表" }, e); $$("div", { "className": "UD_CM_USHHF", "innerHTML": "评论" }, g); U.M.Window_Create([1, "50", "10%", "750", "80%", "USUR" + d, "评论列表", "", g, "no", false, true, false, ""]); a = g.parentNode.parentNode.parentNode; } U.D.PopupWindow(a); U.D.Tb.WindowRestore(a, "", "评论列表"); return c || $("#UD_CM_UNR", a)[0]; }; U.D.CM.SetRPSS = function (f, h) { var d, b, c, a, g, e; for (d = 0; d < f.length; d++) { c = f[d]; a = U.D.CM.UOSS(c), g = $("div#UD_CM_URFV", a)[0]; for (b = 0; b < (c["NextP"] || { "length": 0 }).length; b++) { e = c["NextP"][b]; U.D.CM.UTSS(e, g); } h.appendChild(a); } }; U.D.CM.UOSS = function (f, d) { var i, b, e, a, g, c, h; i = $$("div", { "className": "UD_CM_HFPL", "id": "RPID" + f.ReplyID }, d); b = $$("div", {}, i); $$("img", { "className": "UD_CM_HFPLLImg", "onclick": [[top.U.U.I.POUW, ([f.UserID])]], "src": U.M.GetImgU(f.ReplyUserThumbnailImageHead), "onerror": [U.M.ImgError, (["retElement"])], "alt": "点击查看资料" }, b); $$("div", { "className": "UDK_L_DiskGE UD_CM_HFPLL" }, b); e = $$("div", { "className": "UD_CM_HFPLR " }, i); $$("div", { "title": "查看该用户", "className": "UD_CM_HFPLRUs", "innerHTML": f.UserName, "onclick": [[top.U.U.I.POUW, ([f.ReplyAddUserID])]] }, e); $$("div", { "className": "UD_CM_HFPLRVa", "innerHTML": " 发表評論:" }, e); $$("div", { "innerHTML": f.ReplyContent, "className": "UD_CM_OCT" }, e); $$("div", { "className": "UD_CM_OCRTT", "innerHTML": U.MT.GTS(f.ReplyAddTime) }, e); $$("div", { "className": "UD_CM_OCRTTX", "innerHTML": "來自" + (f.ReplyParentNickname || US.userInfo.LoginBrowser) }, e); $$("div", { "className": "UD_CM_OCRTTB", "style": { "color": "#3863dc" }, "onclick": [[U.D.CM.UTTP, ([f, e])]], "innerHTML": "回复" }, e); $$("div", { "className": "UD_CM_URFV", "id": "UD_CM_URFV" }, e); return i; }; U.D.CM.UTSS = function (d, b) { var a, f, e, c, e; a = $$("div", { "className": "UD_CM_HFPL" }, b); f = $$("div", { "className": "UD_CM_HFPLR", "style": { "marginRight": "22px", "marginLeft": "0" } }, a); $$("div", { "className": "UD_CM_HFPLRUs", "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([d.UserID])]], "innerHTML": d.UserName }, f); $$("div", { "className": "UD_CM_OCTE", "innerHTML": "回复了" }, f); $$("div", { "className": "UD_CM_HFPLRUs", "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([d.ReplyParentID])]], "innerHTML": "@" + d.UserName }, f); $$("div", { "className": "UD_CM_OCT", "innerHTML": d.ReplyContent }, f); $$("div", { "className": "UD_CM_OCRTT", "innerHTML": U.MT.GTS(d.ReplyAddTime) }, f); $$("div", { "className": "UD_CM_OCRTTX", "innerHTML": "來自" + (d.ReplyParentNickname || US.userInfo.LoginBrowser) }, f); $$("div", { "className": "UD_CM_OCRTTB", "onclick": [[U.D.CM.UTTP, ([d, a, true])]], "innerHTML": "回复" + "<br />" }, f); $$("div", { "className": "UDK_L_DiskGE UD_CM_HFPLLR" }, a); $$("img", { "className": "UD_CM_HFPLLImg", "onclick": [[top.U.U.I.POUW, ([d.UserID])]], "src": U.M.GetImgU(d.ReplyUserThumbnailImageHead), "onerror": [U.M.ImgError, (["this"])] }, a); return a; }; U.D.CM.UTTP = function (d, b, f) { var a = U.M.GetCById((f ? b.parentNode : b), "UD_CM_URFVB"), g, e, c; if (a == null) { a = $$("div", { "className": "UD_CM_HFPLInfos0", "id": "UD_CM_URFVB", "style": { "width": "100%" } }); g = $$("div", { "className": "UD_CM_URFVF" }, a); e = $$("div", { "contentEditable": "true", "id": "UD_CM_URFK", "className": "UF_FW_DEC UD_CM_URFK" }, g); $$("a", { "innerHTML": "@" + d.UserName, "onclick": [[U.U.I.POUW, ([d.UserId])]] }); c = $$("div", { "className": "UD_CM_HFPLInfo", "style": { "width": "105px", "height": "33px" } }, a); _UDND = $$("div", { "unselectable": "on", "className": "UD_PiLt UF_FW_face", "title": "表情", "onmousedown": [[U.D.E.GetSelectionRange, ([window, e, { "TF": "HF" }])]], "onclick": [[U.D.E.CreateSf, (["ChattingFaceDiv", null, "this", window, e, "HF"])]] }, c); $$("div", { "className": "UD_CM_HFPLInfo UD_CM_URFVR", "style": { "width": "53px", "height": "25px" }, "onclick": [[U.D.CM.MR, ([d.FileID, e, 2, (d["ReplyBindingID"] || d["ReplyID"]), d["UserID"], d["UserName"]])], [U.D.CM.BNPE, ([e])]], "innerHTML": "发表" }, c); f ? (b.nextSibling ? b.parentNode.insertBefore(a, b.nextSibling) : b.appendChild(a)) : b.insertBefore(a, b.lastChild); } else { a.style.display = a.style.display == "none" ? "block" : "none"; } $("div#UD_CM_URFK", a)[0].focus(); return a; }; U.D.CM.BNPE = function (a) { a.parentNode.parentNode.style.display = "none"; }; U.D.CM.SFND = function (a, b) { U.D.CM.CMSS(a, b, this.P + 2); }; U.D.CM.TCM = function (a) { this.FileID = a[0]; this.UserID = a[1]; this.UserName = a[2]; this.ReplyID = a[3]; this.ReplyContent = a[4]; this.ReplyAddTime = a[5]; this.ReplyIP = a[6]; this.ReplyAddress = a[7]; this.ReplyDeep = a[8]; this.ReplyUserThumbnailImageHead = a[9]; this.ReplyBindingID = a[10]; this.ReplyParentID = a[11]; this.ReplyParentNickname = a[12]; }; U.D.CM.MR = function (i, d, a, f, h, g) { var c = d.innerHTML.SubN().Trim(); if (!c) { U.Alert("请输入内容"); return; } var b = [i, US.userInfo.userid, US.userInfo.UserNickName, U.MS.produceGuid(), c, new Date(), US.userInfo.LoginIP, US.userInfo.LoginAddress, a, US.userInfo.UserThumbnailImageHead, f, h, g || US.userInfo.LoginBrowser]; var e = new U.D.CM.TCM(b); b.splice(5, 1); b.unshift("insertreply"); d.innerHTML = ""; U.RY.Request("Reply", (b), U.D.CM.AsynMR, (["", e])); }; U.D.CM.AsynMR = function (d) { var c = d.context; d = d.value; if (d !== false) { var f, a, b, e = c[1]["FileID"]; if (c[1]["ReplyBindingID"]) { b = U.D.CM.GetOL(e, c[1]["ReplyBindingID"]); b["NextP"].unshift(c[1]); a = U.D.CM.UTSS(c[1]), f = $("div#UD_CM_URFV", $("#RPID" + c[1]["ReplyBindingID"])[0])[0]; } else { (U.D.CM.RP[e] == null) && (U.D.CM.RP[e] = []); c[1]["NextP"] = []; U.D.CM.RP[e].unshift(c[1]); a = U.D.CM.UOSS(c[1]), f = $("div#UD_CM_UNR", $("#USUR" + e)[0])[0]; } f.insertBefore(a, f.firstChild); } }; U.D.CM.GetOL = function (d, b) { var c, a, e = U.D.CM.RP[d]; for (c = 0; c < e.length; c++) { if (e[c]["ReplyID"] == b) { a = e[c]; } } return a; }; Namespace.register("U.D.G"); U.D.G.UrlGuide = function () { var a = U.M.GetUF(); if (a) { if (a[2]) { var b = a[3] || ""; if (a[1] == "pb" || a[1] == "tg" || a[1] == "file") { U.D.G.Guide(a[1], null, (b == "" ? a[2] : "")); } else { U.A.Request("UseStudioManage.GetUserIdByUsername", ([a[2]]), U.D.G.AsynUrlGuide, (["", a[1], b])); } } else { if (a[1] != "") { U.D.G.Guide(a[1]); } } } }; U.D.G.AsynUrlGuide = function (b) { var a = b.context; b = b.value; U.D.G.Guide(a[1], b, a[2]); }; U.D.G.Guide = function (d, a, c) { var b = true; switch (d) { case "disk": case "photo": case "video": c = d == "disk" ? US.DG : (d == "photo" ? US.PG : US.VG); U.M.divdoubleClick("UseStudioUserDiskDiv", c, a, null); break; case "file": U.Dk.GetDsikFID(c); break; case "music": U.M.divdoubleClick("UseStudioU_MP", "", a, null); break; case "blog": U.M.divdoubleClick("UseStudioBlogSystemDiv", null, a, null, c); break; case "pb": U.M.divdoubleClick("UseStudioStudyControlDiv", "", null, null, c); break; case "app": U.M.divdoubleClick("US_Manage_App_Mark", "", "", null); break; case "tg": if (Guid.test(c)) { U.CI.GCUInfo(U.M.apply(this, [[U.U.GZ.AddUr, ([c])]])); } b = false; break; case "Office": break; default: break; } if (b && Guid.test(a)) { U.CI.GCUInfo(U.M.apply(this, [[U.U.GZ.AddUrID, ([a])]])); } }; U.D.G.UrlWrite = function (b, a) { document.location.hash = "!/" + b; document.title = a + " - 云操作系统"; }; Namespace.register("U.D.GG"); U.D.GG.GN = function (a, c) { var b = $("#UD_GG")[0]; if (b.style.display == "block" && c == null) { b.style.display = "none"; } else { if (US.PB.TZGG[a]) { U.D.GG.DisGN(US.PB.TZGG[a], b); } else { U.PB.Request("pb.SearchNoticeInfo", ([a]), U.D.GG.GN_CB, (["", a])); } } }; U.D.GG.GN_CB = function (b) { var a = b.context; b = b.value; US.PB.TZGG[a[1]] = b; U.D.GG.GN(a[1], true); }; U.D.GG.DisGN = function (b, g) { var a, d, f = $("#UD_Notice")[0], e = $("div", g)[1], c = document.createDocumentFragment(); e.innerHTML = ""; for (d = 0; d < b.length; d++) { a = $$("div", { "className": "UD_GGCA", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioStudyControlDiv", "8989bc55-6f36-44e8-8b1b-cc18486cf140", null, null, "ART" + b[d].ArticleID])]], "innerHTML": b[d].ArticleTitle }, c); } e.appendChild(c); U.D.SetDTop(($(g).addAttrArray({ "style": { "display": "block", "left": (f.offsetLeft + 35) + "px", "top": (f.offsetTop + 50) + "px" } })[0])); }; U.D.GG.GL = function (a, e) { var d = $("#UD_GG_NL")[0], c = $("#UD_NL_FO")[0], b = U.D.T.SF("GetNews", ([a])); if (e) { U.D.PopupWindow(d); } else { U.D.SetDTop(d); } if (b) { U.D.GG.PGetPic(b, c); } else { U.PB.Request("pb.GetPicturesArticle", (["8"]), U.D.GG.GetPic, ([c, a])); } }; U.D.GG.GetPic = function (b) { var a = b.context; b = b.value; if (b) { U.D.T.SF("AddNews", b); U.D.GG.GL(a[1]); } }; U.D.GG.PGetPic = function (c, b) { var a, f, g, e, d = document.createDocumentFragment(); b.innerHTML = ""; if (c.length > 0) { for (e = 0; e < c.length; e++) { if (e == c.length - 1) { g = $$("div", { "className": "UD_GG_NL_pic" }, d); $$("iframe", { "frameBorder": 0, "marginheight": "0", "scrolling": "no", "marginwidth": "0", "className": "UD_NL_FO_GG", "src": "/usercontrols/pages/UD_AD_Medium.htm" }, g); break; } a = U.D.GG.GetOImgS(c[e].ArticleContent); f = $$("div", { "className": "UD_GG_NL_pic", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioStudyControlDiv", "8989bc55-6f36-44e8-8b1b-cc18486cf140", null, null, c[e].ArticleID])]] }, d); $$("img", { "src": a, "className": "UD_NL_FO_IM", "onerror": [U.M.ImgError, (["this", 1])] }, f); $$("div", { "className": "UD_GG_TIT", "title": c[e].ArticleTitle, "innerHTML": c[e].ArticleTitle }, f); } b.appendChild(d); } else { $$("div", { "className": "UD_NL_Not", "innerHTML": "暂时没有新闻" }, b); } }; U.D.GG.GetOImgS = function (b) { var a = $$("div", { "innerHTML": b }); return $("img", a)[0].src; }; Namespace.register("U.D"); U.M.CreateControl = function (a) { var b; switch (a) { case "US_Manage_DisplayFileArea": b = [0, "6%", "10%", "70%", "70%", "US_Manage_DisplayFileArea", "文件浏览", "US_Manage_DisplayFileAreaIframe", "/userpages/UD_XZ.aspx", "auto", true, true, true, false]; break; case "UseStudioStudyControlDiv": b = [0, "3%", "3%", "95%", "95%", "UseStudioStudyControlDiv", "论坛", "UseStudioStudyControlDivIframe", "", "auto", true, true, true, false]; break; case "UseStudioBlogSystemDiv": b = [0, "3%", "3%", "95%", "95%", "UseStudioBlogSystemDiv", "博客,可任意定制分类,并可把满意的文章发布到学习系统", "UseStudioBlogSystemIframe", "", "auto", true, true, true, false]; break; case "US_Manage_SearchDiv": b = [0, "5%", "5%", "70%", "80%", "US_Manage_SearchDiv", "搜索管理", "US_Manage_Searchiframe", "", "auto", true, true, true, false]; break; case "US_Manage_App_Mark": b = [0, "15%", "26%", "75%", "85%", "US_Manage_App_Mark", "应用", "US_Manage_Out_AppIframe", "", "auto", true, true, true, false]; break; case "US_Manage_SiteOutAppDiv": b = [0, "5%", "5%", "80%", "85%", "US_Manage_SiteOutAppDiv", "游戏", "US_Manage_Searchiframe", "http://play.1473.cn", "auto", true, true, true, false]; break; case "US_Manage_LocateFrinedsDiv": b = [0, "6%", "30%", "52%", "85%", "US_Manage_LocateFrinedsDiv", "好友", "US_locateFriendsiframe", "", "auto", true, true, true, false]; break; case "UseStudioAPIDiv": b = [0, "50", "10%", "70%", "80%", "UseStudioAPIDiv", "有思API", "UseStudioAPIDivIframe", "", "auto", true, true, true, false]; break; case "UseStudioBrowserDiv": b = [0, "50", "10%", "70%", "80%", "UseStudioBrowserDiv", "有思浏览器", "UseStudioBrowserDivIframe", "/usercontrols/UD_B.htm", "auto", true, true, true, false]; break; case "US_Manage_App_Open": b = [0, "10%", "20%", "90%", "80%", "US_Manage_App_Open", "站外应用", "US_Manage_Out_AppOpeniframe", "", "auto", true, true, true, true, true]; break; case "US_Excel": b = [0, "0%", "0%", "100%", "100%", "US_Excel", "表格", "US_ExcelFrame", "", "no", true, true, true, false]; break; case "US_Word": b = [0, "0%", "0%", "100%", "100%", "US_Word", "文档编辑", "US_WordFrame", "", "no", true, true, true, false]; break; case "UD_DK_YX": b = [0, "0%", "0%", "100%", "100%", "UD_PG", "游戏中心", "UD_PGFrame", "", "auto", true, true, true, false]; break; } if (b) { return [U.M.Window_Create(b), b]; } }; U.M.Window_Create = function (a) { var b = $("#" + a[5])[0]; if (b == null) { b = U.UI.UForms({ "Embed": a[0], "Top": a[1], "Left": a[2], "Width": a[3], "Height": a[4], "ContainerId": a[5], "titleName": a[6], "ContentId": a[7], "Content": a[8], "hasScroll": a[9], "hasMax": a[10], "hasMin": a[11], "hasDraw": a[12], "CStyle": a[13], "IsR": a[14] }); $("body")[0].appendChild(b); } return b; }; U.M.divdoubleClick = function (g, i, d, m, l, j) { if (U.D.MoveCase) { U.D.MoveCase = false; return false; } if (l == true) { window.open(j); U.D.R.DesktopLeftClick(); return; } else { var n, h, e, c, f = US.userInfo.userid || "", b = U.M.CreateControl(g); d = d || f; (b) && (n = b[0], e = $("iframe", n), e = e[e.length - 1]); switch (g) { case "UD_PG": h = "http://d.1473.cn"; case "UM_WZDH": (h == null) && (h = "/userpages/UD_WZ.aspx"); case "UM_Shop": (h == null) && (h = "/userpages/UD_Taobao.aspx"); case "UM_GW": (h == null) && (h = "http://ai.taobao.com/?pid=mm_32325420_3265865_10712530&eventid=101329"); U.M.DJTC(h); break; case "UseStudioAPIDiv": case "UD_DK_YX": case "US_Manage_DisplayFileArea": h = [null, [[U.MD.uploading, ([e.parentNode])]]]; case "UseStudioBrowserDiv": (h == null) && (h = [null, [[U.MD.uploading, ([e.parentNode])], ['top.window.frames["UseStudioBrowserDivIframe"].U.D.BR.AddUrl', ([i])]]]); case "US_Manage_App_Mark": (h == null) && (h = ["http://app.1473.cn/Application.aspx"]); case "UseStudioBlogSystemDiv": (h == null) && (h = ["http://blog.1473.cn/Myboards.aspx?NavigatePath=" + "&userguid=" + d + "&ArticleId=" + (l || ""), [["window.frames['UseStudioBlogSystemIframe'].U.B.G.BlogOnload", ([i || "", d, (l || "")])]]]); case "UseStudioStudyControlDiv": (h == null) && (h = ["http://pb.1473.cn/PublicBoards.aspx?NavigatePath=" + l, [["window.frames['UseStudioStudyControlDivIframe'].U.BB.Navigateonload", ([l || ""])]]]); case "US_Excel": (h == null) && (h = ["/Office/U_Excel.aspx", [["window.frames['US_ExcelFrame'].U.Excel.OPBE", ([i, null, d])]], true]); case "US_Word": (h == null) && (h = ["/Office/U_Word.aspx", [["window.frames['US_WordFrame'].U.Word.OPBW", ([i, true, d])]], true]); U.M.BBCL(n, e, h); break; case "mouseroverNote": h = U.D.N.NoteSwitch; case "UD_DK_IC": (h == null) && (h = U.U.P.LoginIC); case "Chat": (h == null) && (h = U.F.A.ISFriend); if (!U.U.L.LARG()) { h(d); } break; case "UseStudioUserDiskDiv": U.Dk.NologinDiskDown(d, i, d); break; case "UseStudioU_MP": c = U.MPlayer.Close; if (d == "") { U.Dk.NologinDiskDown(US.NU, i); return; U.M.apply(this, [[U.MPlayer.Posmove, ([this])]]); } else { U.Dk.Om(d); } break; case "US_Manage_App_Open": var k = $("span", n)[0], a = l || U.D.T.SF("GetIc", [i]); n.style.display = "block"; k.innerHTML = a.ApplicationName || a.Description; b[1][6] = k.innerHTML = k.innerHTML.length > 8 ? k.innerHTML.substr(0, 8) + "..." : k.innerHTML; e.src = j; U.MD.loading(e.parentNode); U.MD.IframeLoad(e, [[U.MD.uploading, ([e.parentNode])]]); U.M.StopBubble(); break; } if (n) { U.D.PopupWindow(n); U.D.Tb.WindowRestore(n, m, b[1][6], c); } } }; U.M.DJTC = function (a) { window.open(a); }; U.M.BBCL = function (a, e, d) { var b = true, c = [[]]; a.style.display = "block"; if (d[0] != null && e.src == "/" || e.src == "") { c[0] = [U.MD.uploading, ([e.parentNode])]; U.MD.loading(e.parentNode); e.src = d[0]; b = false; } (d[1] && (d[2] || b)) && (c = c.concat(d[1])); U.MD.IframeLoad(e, c); }; Namespace.register("U.D.MS"); U.D.MS.onetimer = null; U.D.MS.onesetInterval = function (a) { var c = US.userInfo != null ? US.userInfo.userid : "", e = [$("div", $("#UD_UTT")[0])]; clearInterval(U.D.MS.onetimer); if (a == 0) { var b = 0; U.D.MS.onetimer = setInterval(function () { b++; if (b % 12 == 0) { U.D.Time(e); } U.D.BC.NLGN(); }, 5000); } else { if (a == 1) { var d = 0; U.D.MS.onetimer = setInterval(function () { d++; if (d % 5 == 0) { d = 0; U.F.N.GNM(c); } if (d % 60 == 0) { U.D.Time(e); } U.F.N.NMC(); }, 1000); } } }; U.D.MS.SetTimeout = function () { }; Namespace.register("U.D.N"); U.D.N.NoteSwitch = function () { var a = $("#UD_NP_container")[0]; if (US.userInfo.userNotepad == null) { U.A.Request("UseStudioManage.selectNotePadContent", ([US.userInfo.userid]), U.D.N.NoteAnsy, ([""])); } U.D.PopupWindow(a); }; U.D.N.NoteAnsy = function (b) { var a = b.context; b = b.value; US.userInfo.userNotepad = (b == "(null)" || b == undefined || b == "undefined") ? "" : b; $("#UD_NP_mouseroverNote")[0].innerHTML = US.userInfo.userNotepad; U.D.N.NoteSwitch(); }; U.D.N.NotePadUser = function () { var a = $("#UD_NP_mouseroverNote")[0]; if (US.userInfo.userNotepad != a.innerHTML) { US.userInfo.userNotepad = a.innerHTML; U.A.Request("UseStudioManage.inserNotePadContent", ([US.userInfo.userid, US.userInfo.userNotepad]), U.M.apply(this, 'function () { U.Alert("保存成功"); }')); } }; Namespace.register("U.D.PB"); U.D.PB.VN = function (c) { if (!U.U.L.LARG()) { var b = $("#UD_GG_BN"), a = $("#UD_Notice")[0]; if (b[0].style.display == "block") { b[0].style.display = "none"; } else { U.D.SetDTop((b.addAttrArray({ "style": { "display": "block", "left": (a.offsetLeft - 175) + "px", "top": (a.offsetTop + 50) + "px" } })[0])); } } }; U.D.PB.CSNT = function (d, e) { var b, c = $("div", d), a = e ? ["UD_GG_BNTTT", "UD_GG_BNTTO"] : ["UD_GG_BNTTO", "UD_GG_BNTTT"]; for (b = 0; b < a.length; b++) { c[b].className = a[b]; } U.D.PB.CPBN(e); }; U.D.PB.CPBN = function (j) { var l, b, g, f, e, k = j ? US.PB.News[1] : US.PB.News[0], a = document.createDocumentFragment(), h = $("#UD_GG_BNC")[0], c = $("#UD_GG_BNBR"); h.innerHTML = ""; if (k.length > 0) { for (var d = 0; d < k.length; d++) { l = $$("div", { "className": "UD_GG_BNCA" }, a); b = $$("div", { "className": "UD_GG_BNCAO", "title": "点击查看用户", "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([k[d].ReplyAddUserID])]] }, l); $$("img", { "className": "UD_Radius", "src": U.M.GetImgU(k[d].UserThumbnailImageHead) }, b); g = $$("div", { "className": "UD_GG_BNCAT" }, l); $$("div", { "className": "UD_GG_BNCATN", "innerHTML": k[d].UserNickName }, g); $$("div", { "className": "UD_GG_BNCATT UTDF", "title": "点击查看", "innerHTML": k[d].ArticleTitle, "onclick": [[U.M.StopBubble], (j ? [] : [U.D.PB.LN, ([[k[d].ArticleID], 2, 0, 1, k, j])]), [U.M.divdoubleClick, (["UseStudioBlogSystemDiv", null, US.userInfo.userid, "", k[d].ArticleID])]] }, g); $$("div", { "className": "UD_GG_BNCATC UTDF", "title": "点击查看", "innerHTML": k[d].ArticleContentBrief, "onclick": [[U.M.StopBubble], (j ? [] : [U.D.PB.LN, ([[k[d].ArticleID], 2, 0, 1, k, j])]), [U.M.divdoubleClick, (["UseStudioBlogSystemDiv", null, US.userInfo.userid, "", k[d].ArticleID])]] }, g); f = $$("div", { "className": "UD_GG_BNCAR" }, l); $$("div", { "className": "UD_GG_BNCARC UD_ICON UD_W_TB_WM_Close", "title": j ? "删除提示" : "设为已读", "onclick": [[U.D.PB.CMNS, ([k[d].ArticleID, j])]] }, f); } c.addAttrArray({ "innerHTML": j ? "清空所有数据" : "全部设为已读", "onclick": [[U.D.PB.CMNS, ([k, j])]] }); } else { $$("div", { "className": "UD_GG_BN_NO", "innerHTML": "暂无消息" }, a); c.addAttrArray({ "innerHTML": "", "onclick": null }); } h.appendChild(a); if (j == null) { if (k.length > 0) { $("div", $("#UD_NUB_PB")[0])[0].style.display = "block"; } else { } } }; U.D.PB.CMNS = function (a, e) { var c, b = [], d = e ? [US.PB.News[1], 2, 2] : [US.PB.News[0], 0, 1]; if (typeof a == "string") { b.push(a); } else { for (c = 0; c < a.length; c++) { b.push(a[c].ArticleID); } } U.D.PB.LN(b, e ? 4 : 2, d[1], d[2], d[0], e); }; U.D.PB.LN = function (h, a, c, e, k, f) { var d, b, g; k = k || US.PB.News[0]; for (d = 0; d < h.length; d++) { for (b = 0; b < k.length; b++) { if (k[b].ArticleID == h[d]) { g = k.splice(b, 1)[0]; break; } } if (a == 2) { if (g) { US.PB.News[1].unshift(g); } } } h = U.MS.SerializeJsonToStr(h); U.A.Request("UseStudioManage.ChangeMoreNewsState", ([h, c, e, a]), U.M.apply(), ([])); if (f == null) { f = US.PB.News[0].length == 0 ? true : null; (f) && ($("div", $("#UD_NUB_PB")[0])[0].style.display = "none"); } UD_GG_BNTT($("#UD_GG_BNTT")[0], f); }; Namespace.register("U.D.T"); U.D.T.News; U.D.DestopStr; U.D.icon_list; U.D.T.SF = function (a, b) { switch (a) { case "AddNews": U.D.T.AddNews(b); break; case "GetNews": return U.D.T.GetNews(b); break; case "GetIc": return U.D.T.GetDI(b); break; case "AddTG": break; default: break; } }; U.D.T.AddNews = function (a) { U.D.T.News = a; }; U.D.T.GetNews = function (b) { var c = []; if (U.D.T.News) { for (var a = 0; a < U.D.T.News.length; a++) { if (U.D.T.News[a].PublishedDirectoryID == b[0]) { c.push(U.D.T.News[a]); } } return c; } }; U.D.T.GetDI = function (c) { var a = US.userInfo["icon"] || U.D.DestopStr; for (var b = 0; b < a.length; b++) { if (a[b].ApplicationID == c[0]) { return a[b]; } } }; U.D.T.Entity = function (a) { this.ApplicationID = a[0]; this.UserDirectoryID = a[1]; this.ApplicationName = a[2]; this.ApplicaitonUrl = a[3]; this.ApplicaitonImg = a[4]; this.AppNewWin = a[5]; }; U.D.T.displayDesktop = function () { U.D.DestopStr = [{ "ApplicationID": "7aeaab56-485f-4150-b781-8ffd86d593ce", "UserDirectoryID": "", "ApplicationName": "网盘", "ApplicaitonUrl": "UseStudioUserDiskDiv", "ApplicaitonImg": { "x": -304, "y": -20 } }, { "ApplicationID": "93553847-e299-464c-a0e2-c15872efb6ae", "UserDirectoryID": "", "ApplicationName": "相册", "ApplicaitonUrl": "UseStudioUserDiskDiv", "ApplicaitonImg": { "x": -88, "y": -92 } }, { "ApplicationID": "8a2135ff-746a-43a8-97b8-552d228a00bb", "UserDirectoryID": "", "ApplicationName": "音乐", "ApplicaitonUrl": "UseStudioUserDiskDiv", "ApplicaitonImg": { "x": -16, "y": -20 } }, { "ApplicationID": "1e0742d8-737e-46e2-b03b-2f23ca8c1f17", "UserDirectoryID": "", "ApplicationName": "博客", "ApplicaitonUrl": "UseStudioBlogSystemDiv", "ApplicaitonImg": { "x": -88, "y": -20 } }, { "ApplicationID": "8989bc55-6f36-44e8-8b1b-cc18486cf140", "UserDirectoryID": "", "ApplicationName": "论坛", "ApplicaitonUrl": "UseStudioStudyControlDiv", "ApplicaitonImg": { "x": -160, "y": -20 } }, { "ApplicationID": "0085d7d9-a5aa-4785-b914-05136e3f4bf0", "UserDirectoryID": "", "ApplicationName": "应用", "ApplicaitonUrl": "US_Manage_App_Mark", "ApplicaitonImg": { "x": -160, "y": -92 } }, { "ApplicationID": "0d0686f0-b3df-429b-a586-db5899118ec5", "UserDirectoryID": "", "ApplicationName": "便签", "ApplicaitonUrl": "mouseroverNote", "ApplicaitonImg": { "x": -232, "y": -92 } }, { "ApplicationID": "", "UserDirectoryID": "", "ApplicationName": "文档编辑", "ApplicaitonUrl": "US_Word", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "", "UserDirectoryID": "", "ApplicationName": "工作表", "ApplicaitonUrl": "US_Excel", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "6DB2FD18-B8E0-075A-605F-F3FB928FE7AB", "UserDirectoryID": "", "ApplicationName": "购物", "ApplicaitonUrl": "UM_GW", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "5312340d-a802-a8c6-f80a-000000000000", "UserDirectoryID": "", "ApplicationName": "积分中心", "ApplicaitonUrl": "UD_DK_IC", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "6DB2FD18-B8E0-075A-605F-000000000000", "UserDirectoryID": "", "ApplicationName": "Use聊", "ApplicaitonUrl": "Chat", "ApplicaitonImg": { "x": -232, "y": -20 } }, { "ApplicationID": "DA0EEA4E-AD61-4F2A-8DB1-3ADF0A506C86", "UserDirectoryID": "", "ApplicationName": "在线编程", "ApplicaitonUrl": "UD_PG", "ApplicaitonImg": { "x": -232, "y": -20 } }]; }; U.D.T.CII = function (a) { this.NEWID = a[0]; this.UserId = a[1]; this.UserName = a[2]; this.UserThumbnailImageHead = a[3]; this.NEWTYPE = a[4]; this.NEWT = a[5]; this.NEWC = a[6]; this.Time = a[7]; this.ET = a[8]; }; Namespace.register("U.D.Tb"); U.D.Tb.WindowRestore = function (f, g, b, e, c) { if ($("#UD_BB_Restore" + f.id)[0] == null) { g = g || '<div class="UD_NUB UD_NUB_iconimg" style="background-position: -286px -75px;"></div>'; var d = $("#UD_BB_BAB_Content")[0]; var a = $$("li", { "id": "UD_BB_Restore" + f.id, "className": "UD_BB_App", "title": "移出框外关闭应用" }, d); a.remove = U.M.apply(this, [[U.D.Tb.PopupWinClose, ([f, c, e])]]); if (b) { if (b.length > 6) { g += '<marquee class="UD_BB_marquee" behavior="alternate" scrollamount="3">' + b + "</marquee>", $(a).addAttrArray({ "onmouseover": "$('marquee',this)[0].stop()", "onmouseout": "$('marquee',this)[0].start()" }); } else { g += "<div>" + b + "</div>"; } } else { g += "<div>" + b + "</div>"; } a.innerHTML = g; U.D.Tb.DragRestore(a, f); top.$("#WinMinsCount")[0].innerHTML++; } }; U.D.Tb.winmins = function (b) { var a = $("#UD_BB_BAB"); if (a[0].style.display == "block") { a[0].style.display = "none"; } else { U.D.SetDTop((a.addAttrArray({ "style": { "left": b.offsetLeft - 150 + "px", "display": "block" } }))[0]); } }; U.D.Tb.AllClear = function () { var c = $("#UD_BB_BAB_Content")[0]; var a = $("li", c); for (var b = 0; b < a.length; b++) { a[b].remove(); } }; U.D.Tb.PopupWinClose = function (c, a, b) { U.D.Tb.TaskbarClose(c); U.D.CloseWindow(c, a); if (b) { b(); } }; U.D.Tb.TaskbarClose = function (b) { var a = $("#UD_BB_Restore" + b.id)[0]; if (b != null && a != null) { a.parentNode.removeChild(a); $("#WinMinsCount")[0].innerHTML--; } }; U.D.Tb.changeRestoreName = function (b, e) { var c = $("#" + "UD_BB_Restore" + b)[0]; if (c) { var d = $("marquee", c)[0]; var a = $("div", c)[1]; if (e.length > 6) { if (d) { d.innerHTML = e; } else { c.removeChild(a); $$("marquee", { "className": "UD_BB_marquee", "behavior": "alternate", "scrollamount": "3", "innerHTML": e }, c); c.addAttrArray({ "onmouseover": "$('marquee',this)[0].stop()", "onmouseout": "$('marquee',this)[0].start()" }); } } else { if (d) { c.removeChild(d); $$("div", { "innerHTML": e }); } else { a.innerHTML = e; } } } }; U.D.Tb.DragRestore = function (a, b) { a.onmousedown = function () { var c = U.M.GetMousep(); var f = U.M.GetElementInfo(a); var e = U.M.GetElementInfo(a.parentNode.parentNode); var d = a.cloneNode(true); d.className += " UD_BB_CI"; document.body.appendChild(d); d.setCapture(); document.onmousemove = function () { var g = U.M.GetMousep(); $(d).addAttrArray({ "style": { "left": (g.X - (c.X - f["BCRL"])) + "px", "top": (g.Y - (c.Y - f["BCRT"])) + "px" } }); }; document.onmouseup = function () { var g = U.M.GetMousep(); if (c.X == g.X && c.Y == g.Y) { b.style.display = "block"; U.D.SetDTop(b); document.onclick(); } else { if (g.X < e["BCRL"] || g.Y > e["BCRB"] || g.Y < e["BCRT"] || g.X > e["BCRR"]) { a.remove(); document.onclick(); } } d.releaseCapture(); document.onmouseup = document.onmousemove = null; document.body.removeChild(d); }; U.M.StopBubble(); }; }; Namespace.register("U.D"); U.D.UDMB; U.D.UDOS; U.D.prinetic = function () { var c = U.D.UDMB = U.D.UDMB || $("#UD_MBoard")[0]; var b = U.D.UDOS = U.D.UDOS || $("span", c); for (var a = 0; a < b.length; a++) { U.LC["dkA"].push($("div", b[a])[2]); b[a].onmousedown = U.M.apply(this, [[U.M.StopBubble], [U.D.RGL, ([b[a], U.D.DestopStr[a]])]]); b[a].onclick = U.M.apply(this, [[U.M.divdoubleClick, ([U.D.DestopStr[a].ApplicaitonUrl, U.D.DestopStr[a].ApplicationID, "", $("div", b[a])[1].outerHTML, U.D.DestopStr[a].AppNewWin])]]); } U.D.IconRank(); }; U.D.loginic = function (c) { var b = U.D.UDMB; for (var a = 0; a < c.length; a++) { U.D.AddApp(c[a], b); } U.D.UDOS = $("span", b); U.D.IconRank(); }; U.D.AddApp = function (c, b) { var d, a, e; d = $$("span", { "className": " UD_NUB_app", "onmousedown": [[U.M.StopBubble], [U.D.RGL, (["this", c])]], "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["US_Manage_App_Open", c.ApplicationID, "", "$('div',this)[1]", c.AppNewWin, c.ApplicaitonUrl]]] }, b); a = $$("div", { "className": "UD_DI_icontainer" }, d); e = $$("div", { "className": "UD_NUB_iconimg" }, a); $$("img", { "onerror": [U.M.ImgError, (["this", 1])], "onmousedown": U.M.apply(), "onselectstart": U.M.apply(), "ondragstart": U.M.apply(), "style": { "width": "48px", "height": "48px", "marginTop": "3px", "marginLeft": "5px" }, "src": US.afs + c.ApplicaitonImg, "alt": c.ApplicationID }, e); $$("div", { "className": "UD_NUB UD_NUB_appname", "innerHTML": c.ApplicationName }, a); }; U.D.loginicArray = function () { var c = $("#UD_MBoard")[0], b = $("span", c); U.D.T.displayDesktop(); for (var a = U.D.DestopStr.length; a < b.length; a++) { c.removeChild(b[a]); } if (US.userInfo.icon) { U.D.DestopStr = U.D.DestopStr.concat(US.userInfo.icon); } }; U.D.AddDeskTop = function (b, e, c, a, d, f) { U.A.Request("UseStudioManage.AddDesktop", ([b, e, c, a, d, f]), U.M.apply(), ([])); }; U.D.OAPP = function (a, f, e, b, g) { var c = US.userInfo.userid; if (!U.U.L.LARG()) { var h = U.D.UDMB; for (var d = 0; d < U.D.DestopStr.length; d++) { if (U.D.DestopStr[d].ApplicationID == f) { U.Alert("您已经添加过该应用了"); return; } } U.UI.Confirm("是否添加应用?", [U.D.AAPP, ([h, f, b, a, e, g])], ""); } }; U.D.AAPP = function (b, f, d, a, e, g) { var c = new U.D.T.Entity([f, "", d, a, e, g]); U.D.DestopStr.push(c); U.D.AddDeskTop(US.userInfo.userid, f, d, a, e, g); U.D.AddApp(c, U.D.UDMB); U.D.UDOS = $("span", b); U.D.IconRank(); }; U.D.deleteApp = function (b, c) { if (b.AppNewWin) { for (var a = 0; a < U.D.DestopStr.length; a++) { if (U.D.DestopStr[a].ApplicationID == b.ApplicationID) { U.D.DestopStr.splice(a, 1); } } c.parentNode.removeChild(c); U.A.Request("UseStudioManage.deleteApplication", ([US.userInfo.userid, b.ApplicationName]), U.M.apply(), ([])); U.D.UDOS = $("span", U.D.UDMB); U.D.R.DesktopLeftClick(); } else { U.D.R.DNIcon((["none", "none", "none", "none"])); } }; U.D.IconRank = function () { var b, d = U.D.UDOS, c = 50, a = 40; for (b = 0; b < d.length; b++) { $(d[b]).addAttrArray({ "style": { "top": c + "px", "left": a + "px" } }); c += 120; (c + 200 >= US.Height) && (c = 50, a += 95); } }; U.D.RGL = function (b, a) { if (event.button == 0 || event.button == 1) { U.D.iconmove(b, null, { "ST": U.D.TDXZ, "UP": U.D.TDUP }); } else { U.D.R.AppRightClick(a, b); } }; U.D.TDXZ = function (a) { $(a).addAttrArray({ "style": { "zIndex": US.ZV + 1, "backgroundPosition": "-97px -210px" } }); }; U.D.TDUP = function (k) { var g, m = k, d, e, h = U.D.UDOS, n = Math.max(k.offsetTop, this.Y), a = Math.max(k.offsetLeft, this.X), j = Math.min(k.offsetTop, this.Y), l = Math.min(k.offsetLeft, this.X), f = (a == l && k.offsetTop > this.Y), c = Math.round((this.SO.offsetLeft - 40) / 95), b = Math.round((this.SO.offsetTop - 30) / 120); $(this.SO).addAttrArray({ "style": { "left": 40 + 95 * c + "px", "top": 50 + 120 * b + "px", "zIndex": "", "backgroundPosition": "-13px -210px" } }); while ((d = U.D.ISF(m, [m.offsetLeft, m.offsetTop]))) { if (this.X == a && !f) { c = d.offsetLeft; b = d.offsetTop + 120; if (b > US.Height - 200) { c += 95; b = 50; } d.style.left = c + "px"; d.style.top = b + "px"; } else { c = d.offsetLeft; b = d.offsetTop - 120; if (b < 50) { c -= 95; b = (Math.round((US.Height - 30) / 120) * 120 - 190); } d.style.left = c + "px"; d.style.top = b + "px"; } m = d; } }; U.D.ISF = function (d, c) { var a, b = U.D.UDOS; for (a = 0; a < b.length; a++) { if (b[a] !== d && (b[a].offsetLeft == c[0] && b[a].offsetTop == c[1])) { return b[a]; } } return false; }; U.D.UDAD; U.D.UTNews = function (b) { var d = $("#UD_UT")[0]; var c = U.D.UDAD = U.D.UDAD ? U.D.UDAD : $("div", d), a = $("div", c["UD_UTS"]); a[5].innerText = U.D.SS(b[3]); c[10].innerText = b["province"] + b["city"]; U.D.UTLNews(); U.D.Time([$("div", c["UD_UTT"])]); d.style.display = "block"; }; U.D.UTLNews = function () { var a = U.D.UDAD ? U.D.UDAD : $("div", $("#UD_UT")[0]); $("img", a[0].parentNode)[0].src = U.M.GetImgU(US.userInfo.UserThumbnailImageHead); a[3].innerText = US.userInfo.UserNickName || "未登录"; if (US.userInfo.userid) { a[4].innerText = "退出"; } else { a[4].innerText = ""; } }; U.D.Time = function (a) { var c, b = U.MT.getTimeStr(new Date(), "Array"); for (c = 0; c < a.length; c++) { a[c][0].innerText = b[3] + ":" + b[4]; a[c][2].innerText = b[0] + "-" + b[1] + "-" + b[2]; } }; U.D.PSU = function (c) { var b = U.D.UDAD ? U.D.UDAD : $("div", $("#UD_UT")[0]), a = $("div", b["UD_UTS"]); b[7].innerText = U.D.SS(c[0]); a[2].innerText = U.D.SS(c[1]); }; U.D.SSKH = function () { a = [100, "block"]; if (U.D.UDAD["UD_UTX"].style.display == "block") { var a = [0, "none"]; } U.D.UDAD["UD_UTX"].style.display = a[1]; $(U.D.UDAD["UD_UTX"]).animate({ "height": a[0] + "px" }, 300, null); }; U.D.SS = function (a) { a = a + ""; var d = a.length, c = Math.ceil(d / 3), b = ""; for (var e = 0; e < c; e++) { b = (e == c - 1 ? "" : ",") + a.substring(d - 3 * (e + 1), d - 3 * e) + b; } return b; }; U.D.SZY = function (a, d) { var c = $("div", a); for (var b = 0; b < c.length; b++) { if (d == b) { c[b].className = "UD_UTSRZ"; } else { c[b].className = "UD_UTSRE"; } } U.LC.C(d == 0 ? "Z" : "E"); }; U.D.ZTSGL = { "WZ": ["DF", "DZ"], "S": ["Disk", "Blog", "Pb", "Word", "Excel", "GR"], "UP": { "RT": -320, "RL": 80, "UX": -23, "UY": -3, "WQ": "UD_ZYQT", "UIC": "UD_ZY_CDIF", "ID": "UDK_FUPB", "T": "云端在线,体验云服务", "C": "setp3:点击上传文件按钮,上传您的一个文件吧!" }, "DF": { "RT": 30, "RL": 150, "B": "下一步", "WQ": "UD_ZYQO", "UX": 80, "UY": 40, "UIC": "UD_ZY_CDIF", "ID": "UDK_LL_FDSC", "T": "云端在线,体验云服务", "C": "这里可以查看自己,好友,有群共享的资料" }, "DZ": { "RT": -320, "RL": 80, "UX": -23, "UY": -3, "WQ": "UD_ZYQT", "UIC": "UD_ZY_CDIF", "ID": "UDK_HP_UpFile", "T": "云端在线,体验云服务", "C": "setp3:点击<span style='color:#5fa1e8;cursor:pointer;' onclick='U.M.StopBubble();$(\"div#UDK_HP_UpFile\",US.Disk.diskfileTree[1][3])[0].click();'>上传文件</span>按钮,存储你需要的资源吧!" }, "Disk": { "UIC": "UD_ZY_CDIZ", "ITF": "0", "T": "云端在线,体验云服务", "C": "网络U盘,存储需要的图片、音乐、文件、视频。和好友分享不需要随身携带,永不丢失" }, "Blog": { "UIC": "UD_ZY_CDIS", "ITF": "3", "T": "云端在线,体验云服务", "C": "发表文章,让读者以互动的方式留下意见,存储自己需要的技术和学习文章" }, "Pb": { "UIC": "UD_ZY_CDIS", "ITF": "4", "T": "云端在线,体验云服务", "C": "一个结合了各种新闻资讯的论坛,用户可以随意的发帖和公告,通过学习社区可了解最新的信息" }, "Word": { "UIC": "UD_ZY_CDIS", "ITF": "7", "FUN": "", "T": "云端在线,体验云服务", "C": " 新功能!编辑好的Word可以在线生成网站,发给自己的朋友查看。" }, "Excel": { "UIC": "UD_ZY_CDIS", "ITF": "8", "FUN": "", "T": "云端在线,体验云服务", "C": "工作表已经加入云端了哦。" }, "GR": { "UIC": "UD_ZY_CDIS", "T": "添加个人资料吧", "C": "换个头像,更新个人资料让更多云友认识你把!", "B": "确定", "CB": "U.U.UPD" } }; U.D.ZYBH = function (o, n) { var j, p, m, e, k, d, g, a, f = ["block", "none"], q = $("#UD_ZY"), c = $("div", q[0]), h = c["UD_ZY_CD"], l = c["UD_ZY_CS"]; p = $("div", h); c[5]["className"] = "UD_ZYI UD_ZY_CDI " + (o[5] || "UD_ZY_CDIQ"); for (j = 0; j < 3; j++) { if (j < 2) { if (typeof o[j + 1] == "string") { p[j].innerHTML = o[j + 1]; } else { p[j].innerText = ""; p[j].appendChild(o[j + 1]); } } else { if (o[j + 1]) { if (o[j + 1][0]) { $(p[j + 2]).addAttrArray({ "style": { "display": "block" }, "onmousedown": U.M.StopBubble, "onclick": o[j + 1][0], "innerHTML": o[j + 1][3] || "下一步" }); } else { p[j + 2].style.display = "none"; } $(p[j + 1]).addAttrArray({ "innerHTML": o[j + 1][1], "onmousedown": U.M.StopBubble, "onclick": o[j + 1][2] }); } else { p[j + 1].style.display = p[j + 2].style.display = "none"; } } } if (o[4]) { var m = (o[4]["X"] - o[4]["L"]), e = o[4]["Y"] - o[4]["T"]; if (e > 0) { e = Math.min(140, e -= 100); d = 210 + (e / 2); a = 210 + (e / 4); } else { if (Math.abs(e) > n.offsetHeight) { e += n.offsetHeight; } d = (e / 6 * 5); a = (e / 2); } if (m > 0) { m -= 150; k = 250 + (m / 2); g = 250 + (m / 4); } else { if (Math.abs(m) > n.offsetWidth) { m += n.offsetWidth; } k = (m / 6 * 5) + 25; g = (m / 4) + 30; } } if (k) { c.addAttrArray({ "style": { "left": k + "px", "top": d + "px", "display": "block" } }, 0); c.addAttrArray({ "style": { "left": g + "px", "top": a + "px", "display": "block" } }, 1); if (o[6] && n) { var b = (n) && (U.M.GetElementInfo(n)); c.addAttrArray({ "className": "UD_ZYI UD_ZYQ " + (o[6][2] || "UD_ZYQO"), "style": { "left": (b["TX"] - o[4]["L"] - 25 - (o[6][0] || 0)) + "px", "top": (b["TY"] - o[4]["T"] - 8 - (o[6][1] || 0)) + "px", "display": "block" } }, 2); } else { c[2].style.display = "none"; } } else { for (j = 0; j < 3; j++) { c[j].style.display = "none"; } U.D.PopupWindow(q[0]); return; } U.D.SetDTop((q.addAttrArray({ "style": { "left": o[4]["L"] + "px", "top": o[4]["T"] + "px", "display": "block" } }))[0]); }; U.D.ZYXB = function (c, h, f) { if (US.userInfo.userid != null) { var d = U.D.ZTSGL[f || "S"], b = d[c]; while (!U.D.ISZY(b) && c < d.length) { c += 1; b = U.D.ZTSGL[f || "S"][c]; } d = U.D.ZTSGL[b]; if (h || d) { var a = (d["ITF"] == null ? (d["ID"] == null ? null : $("div#" + d["ID"], US.Disk.diskfileTree[1][3])[0]) : U.D.UDOS[d["ITF"]]), g = $("#UD_ZY_CGB")[0], e = (a) && (U.M.GetElementInfo(a)); g.onclick = U.M.apply(g, [[U.D.ZYXB, ([d.length, h, f])]]); U.D.ZYBH([true, d["T"], d["C"], [f == "WZ" ? null : (c == U.D.ZTSGL["S"].length - 1 ? null : U.M.apply(g, [[U.D.ZYXB, ([c + 1, h, f])]])), d["B"] || "打开", ((a) && ([[U.D.ZYXB, ([c + 1, false, f])], [a.onclick]])) || ([[U.D.CloseWindow, ([$("#UD_ZY")[0]])], [d["CB"]]])], a ? ({ "X": e["TX"], "Y": e["TY"], "L": e["TX"] + (d["RL"] || 130), "T": e["TY"] + (d["RT"] || 0) }) : null, d["UIC"], [d["UX"], d["UY"], d["WQ"]]], a); } else { $("#UD_ZY")[0].style.display = "none"; } } else { $("#UD_ZY")[0].style.display = "none"; } }; U.D.ISZY = function (b) { var a = true; switch (b) { case "Word": a = (U.Dk.M.ufinfoarray("GetFBT", "uw").length < 1); break; case "Excel": a = (U.Dk.M.ufinfoarray("GetFBT", "ue").length < 1); break; case "GR": a = (U.U.CUD() < 70); break; case "DF": a = (US.Friend[1].length < 1 || US.Friend[2].length < 1); break; default: a = (US.Disk.diskfileTree[0].length < 7); break; } return a; }; Namespace.register("U.Dk.RE"); U.Dk.RE.CMB = function (b, c) { var a, d; if ("UW,UE,folder".indexOf(b) > -1) { a = $$("div", { "className": "UDL U_UI_dlnoSR" }); d = $$("div", {}, a); $$("input", { "type": "text", "style": { "cssText": "width: 220px; height: 18px; border:none; outline:none; background:none; margin-left:16px; " } }, d); U.Dk.RE.Prompt(b == "folder" ? "新建文件夹" : "新建" + b + "文件", 140, 350, a, "OKCancel", U.M.apply(a, [[U.Dk.RE.AF, ([b, a, c])]]), US.Disk.diskfileTree[1][3]).Create(); return true; } else { U.Alert("拒绝访问"); return false; } }; U.Dk.RE.AF = function (e, g, k) { var f = US.userInfo.userid; if (f != null && f == US.Disk.diskfileTree[1][0].UserId) { var b = $("input", g)[0]; if (U.Dk.RE.MBC(US.Disk.diskfileTree[1][1], b.value, e, "Create") && U.Dk.M.ufinfoarray("PDQX", US.Disk.diskfileTree[1][1])) { var j = 1, g = U.MT.GetDT(new Date()), m = b.value.RemoveHTMLSign(), c = m.length > 10 ? m.substring(0, 10) + "..." : m, a = 9999, d = US.Disk.diskfileTree[1][1], h = U.Dk.M.ufinfoarray("RecurD", d), i = U.Dk.M.ufinfoarray("onefind", d), l = new U.Dk.M.Entity(([U.MS.produceGuid(), 0, d, c, m, e, U.MS.produceGuid() + "." + e, new Date(), U.Dk.HP.FFT(e)[1], a, null, null, j, "", null])); if (e == "folderencrypt" || e == "folder") { j = 0; a = i.UserDirectoryDeep + 1; } U.Adisk.Request("UseStudioDisk.addDirectoryOrFile", ([US.userInfo.userid, l["UserDirectoryParentID"], l["UserDirectoryID"], l["UserFilesServerName"], m.toHtml(), e, a, h[h.length - 1].GroupID || ""]), U.Dk.RE.AsynAF, (["", l, k])); } else { U.Alert("无访问的权限!"); } } }; U.Dk.RE.AsynAF = function (b) { var a = b.context; b = b.value; if (b != null) { U.Dk.M.ufinfoarray("add", a[1]); if (a[1].UserDirectoryExtendType == "folder") { U.Dk.RE.ALFO(a[1]); } U.Dk.RE.ARFO(a[1]); if (a[2]) { a[2](a, b); } U.Alert("文件添加成功~"); } else { U.Alert("系统繁忙,添加失败"); } }; U.Dk.RE.ARFO = function (b) { if (US.Disk.diskfileTree[1][1] == b.UserDirectoryParentID) { var a = $("div#UDK_LR_directoryListArea", US.Disk.diskfileTree[1][3])[0]; if ($("div", a)[1].className == "UDK_L_DiskGE UDK_RT_NFF") { a.innerText = ""; } if (US.Disk.diskfileTree[1][4] == "Normal") { U.Dk.VW.PD([b], a); } else { if (US.Disk.diskfileTree[1][4] == "Details") { U.Dk.VW.PTD([b], a); } } } }; U.Dk.RE.AUPV = function (c) { var f = $$("div", {}), a, e = ["视频名称:", "分享地址:"]; for (var d = 0; d < e.length; d++) { a = $$("div", { "style": { "cssText": "float:left; margin:20px 0 0 20px;line-height:20px;clear:both;" }, "innerHTML": e[d] }, f); $$("input", { "type": "text", "style": { "cssText": "width:220px;height:18px;" } }, a); } var b = U.Dk.RE.Prompt("分享视频", 180, 350, f, "OKCancel", U.M.apply(f, [[U.Dk.RE.UPV, ([c])]]), US.Disk.diskfileTree[1][3]); b.Create(); }; U.Dk.RE.UPV = function (a) { var e = $("input", this), c = "video"; if (U.Dk.RE.MBC(a, e[0].value, c, "Create") && U.MS.Website(e[1].value.Trim())) { var b = e[0].value.length > 15 ? e[0].value.substring(0, 10) + "..." : e[0].value; var d = new U.Dk.M.Entity(([U.MS.produceGuid(), 0, a, e[0].value, b, c, e[1].value, new Date(), U.Dk.HP.FFT(c)[1], 9999, null, null, 1])); U.Adisk.Request("UseStudioDisk.addDirectoryOrFile", ([US.userInfo.userid, a, d["UserDirectoryID"], d["UserFilesServerName"], e[0].value, c, 9999, ""]), U.Dk.RE.AsynAF, (["", d])); } }; U.Dk.RE.ALFO = function (a, d) { if (a["UserDirectoryExtendType"] == "folder") { var c = $("a", US.Disk.diskfileTree[1][3])["d" + a.UserDirectoryParentID]; if (c != null) { var b = U.M.GTCN(c.parentNode.parentNode.childNodes)[1]; if (b && U.M.GTCN(b.childNodes).length > 0) { if (d) { b.removeChild($("a", b)["d" + a.UserDirectoryID].parentNode.parentNode); } else { U.Dk.VW.CLV([a], b); } } else { U.Dk.LL.SM(c.parentNode, US.Disk.diskfileTree[1][0].UserId, a.UserDirectoryParentID); } } } }; U.Dk.RE.DMB = function (f, e) { var d, c, a, b = U.Dk.M.ufinfoarray("PDQX", US.Disk.diskfileTree[1][1]); if (b) { if (f.length) { for (d = 0; d < f.length; d++) { if (f[d]["filetype"] == 0) { f.splice(d, 1); d--; } } if (f.length > 0) { a = $$("div", { "style": { "cssText": "float:left;text-align:center;width:100%;padding:5% 0 5% 0;" } }); $$("span", { "style": { "cssText": "font-weight:bold;" }, "innerHTML": "你确定要删除这" + f.length + "项吗?" }, a); } } else { c = 220; a = U.Dk.RE.ABYS(null, f); } U.Dk.RE.Prompt("删除文件", c, 350, a, "OKCancel", U.M.apply(this, ([[U.Dk.RE.DF, ([f])], e])), US.Disk.diskfileTree[1][3]).Create(); } }; U.Dk.RE.DF = function (b) { if (US.userInfo.userid != null && US.userInfo.userid == US.Disk.diskfileTree[1][0].UserId) { b = b.length != null ? b : [b]; var c = ""; if (b[0].filetype == 0) { if (U.Dk.M.ufinfoarray("find", ([b[0].UserDirectoryID])).length > 0) { U.Alert("文件夹下还有文件,请用户删除文件夹再删除文件"); return; } } var d = U.Dk.M.ufinfoarray("RecurD", b[0].UserDirectoryParentID); for (var a = 0; a < b.length; a++) { c += b[a].UserDirectoryID + (a == b.length - 1 ? "" : ","); } U.Adisk.Request("UseStudioDisk.deleteDirectoryOrFile", ([US.userInfo.userid, c, b[0].filetype, d[d.length - 1].GroupID || ""]), U.Dk.RE.AsynDF, (["", b])); } else { U.Alert("无访问的权限!"); } }; U.Dk.RE.AsynDF = function (d) { var c = d.context; d = d.value; if (d) { var a = c[1].UserDirectoryID, e = 0; if (c[1].length) { for (var b = 0; b < c[1].length; b++) { U.Dk.M.deletefindfile(c[1][b].UserDirectoryID); e += c[1][b].UserDirectorySize; } a = c[1][0].UserDirectoryParentID; } else { U.Dk.M.deletefindfile(c[1].UserDirectoryID); } US.Disk.diskfileTree[1][0].FileSize = Math.ceil((U.Dk.HP.GetSfileS(US.Disk.diskfileTree[1][0].FileSize + "M") - e) / 1024 / 1024); if (US.Disk.diskfileTree[1][1] == a) { U.Dk.VW.DT(a); U.Dk.RE.ALFO(c[1][0], "D"); } U.Dk.onloadLeft(); } else { U.Alert("该文件夹还包含文件,删除文件后才能删除该文件夹!"); } }; U.Dk.RE.MRNT = function (e, b) { var a, g, f, c = U.Dk.M.ufinfoarray("onefind", b), d = U.Dk.M.ufinfoarray("PDQX", c.UserDirectoryID); if (d) { a = $$("div", { "className": "UDL U_UI_dlnoSR" }); g = $$("div", {}, a); f = $$("input", { "type": "text", "style": { "cssText": "width: 220px;height: 18px; border:none; outline:none;background:none; margin-left:16px; " }, "value": c.UserallDirectoryName.split("." + c.UserDirectoryExtendType)[0], "onkeypress": [[U.M.returnkeylogin, ([null, [[U.Dk.RE.MRN, ([c, a])]]])]] }, g); U.Dk.RE.Prompt("修改文件", 140, 350, a, "OKCancel", U.M.apply(a, ([[U.Dk.RE.MRN, ([c, a])]])), US.Disk.diskfileTree[1][3]).Create(); } f.select(); }; U.Dk.RE.MRN = function (a, b) { U.Dk.RE.MFN(a, $("input", b)[0].value); }; U.Dk.RE.MFN = function (a, d) { var c = a.UserDirectoryExtendType, b = a.UserDirectoryID; d = d.RemoveHTMLSign(); (c == "folderencrypt") && (c = "folder"); if (U.Dk.RE.MBC(US.Disk.diskfileTree[1][1], d, c, "Change")) { if (d == a.UserallDirectoryName) { U.Alert("修改文件名成功"); } else { U.Adisk.Request("UseStudioDisk.modifyDirectoryOrFile", ([US.userInfo.userid, b, d, c]), U.Dk.RE.AsynMRN, (["", a, d])); } } }; U.Dk.RE.AsynMRN = function (h) { var d = h.context, a = d[1], f = d[2], c, g, b, e = US.Disk.diskfileTree[1][3]; h = h.value; if (h) { a.UserallDirectoryName = f; a.UserDirectoryName = f.length > 15 ? f.substr(0, 10) + "..." : f; c = a.UserDirectoryExtendType; (c == "folderencrypt") && (c = "folder"); g = $("span#resDataList_name_" + a.UserDirectoryID, e)[0]; (g) && (g.innerHTML = a.UserDirectoryName, g.parentNode.parentNode.title = f); if (c == "folder") { b = $("a#d" + a.UserDirectoryID, e)[0]; (b) && ($("span", b)[0].innerHTML = a.UserDirectoryName); } U.Alert("修改文件名成功"); } else { U.Alert("系统繁忙,请重新修改"); } }; U.Dk.RE.AB = function (c, b) { var a = U.Dk.RE.ABYS(b); U.Dk.RE.Prompt(c.innerText, 220, 350, a, null, null, US.Disk.diskfileTree[1][3]).Create(); }; U.Dk.RE.ABYS = function (c, b) { var h = b || U.Dk.M.ufinfoarray("onefind", c), d = U.Dk.HP.IsDF(h.UserDirectoryExtendType)[0], g = (h.UserDirectoryExtendType == "folder" || h.UserDirectoryExtendType == "folderencrypt") ? "文件夹" : "文件"; var i = $$("div", { "style": { "cssText": "float:left;padding-top:5px;" } }); $$("span", { "style": { "cssText": "font-weight:bold;padding-left:10px;" }, "innerHTML": "该" + g + "属性:" }, i); var a = $$("div", { "style": { "cssText": "float:left;padding:5px;width:inherit;" } }, i); var e = $$("div", { "style": { "cssText": "width:65px;height:65px;float:left;margin:10px 0 0 15px;" } }, a); if (d == "P") { $$("img", { "className": "UDK_RT_UDD_DV", "src": h.UserDirectoryUrl, "onerror": [[U.M.ImgError, ([1])]] }, e); } else { $$("i", { "className": "UDK_L_DiskGE", "style": { "cssText": "float:left;width:65px;height:61px;display:inline-block;" + h.UserDirectoryUrl } }, e); } var f = $$("div", { "style": { "cssText": "float:left;width:250px;" } }, a); $$("span", { "style": { "cssText": "margin:4px 0 5px 25px; float:left;width: 220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;" }, "innerHTML": "名称:" + h.UserallDirectoryName + "<br />" }, f); if (h.filetype == 1) { $$("span", { "style": { "cssText": "margin:0 0 5px 25px; float:left;width: 220px;white-space:pre-wrap;height:33px;text-overflow:ellipsis;" }, "spellcheck": "false", "contenteditable": "true", "innerHTML": "链接地址:disk.1473.cn/#!/" + h["UserDirectoryID"] + "<br />" }, f); } $$("span", { "style": { "cssText": "margin:0 0 5px 25px; float:left;width: 220px;" }, "innerHTML": "类型:" + g + "<br />" }, f); $$("span", { "style": { "cssText": "margin:0 0 5px 25px; float:left;width: 220px;" }, "innerHTML": "创建日期:" + U.MT.GetDT(h.UserDirectoryAddTime) + "<br />" }, f); $$("span", { "style": { "cssText": "margin:0 0 5px 25px; float:left;width: 220px;" }, "innerHTML": "文件大小:" + U.Dk.HP.FileSize(h.UserDirectorySize) + "<br />" }, f); return i; }; U.Dk.RE.SHEW = function (b, a) { var h, c, f, d = 280, i = 180, g = "OKCancel", e = false; if (b == "加密") { h = $$("div", { "style": { "cssText": "margin:auto; padding-top:15px; width:230px; height:100px;" } }); c = $$("div", { "style": { "cssText": "width:100%;height:25px;" } }, h); $$("span", { "style": { "cssText": "display:block; width:70px; height:25px; line-height:25px;float:left;" }, "innerHTML": "输入密码:" }, c); $$("input", { "type": "password", "style": { "width": "140px", "height": "20px" } }, c); f = $$("div", { "style": { "cssText": "margin-top:15px;clear:both;width:100%;height:25px;" } }, h); $$("span", { "style": { "cssText": "display:block; width:70px; height:25px; line-height:25px;float:left;" }, "innerHTML": "确认密码:" }, f); $$("input", { "type": "password", "style": { "width": "140px", "height": "20px" } }, f); e = true; } else { h = $$("div", { "style": { "cssText": "margin:auto; padding-top:10px; width:230px; height:30px;" } }); $$("span", { "style": { "cssText": "display:block; width:70px; height:25px; line-height:25px; float:left;" }, "innerHTML": "输入密码:" }, h); $$("input", { "type": "password", "style": { "width": "140px", "height": "20px" } }, h); i = 125; } U.Dk.RE.Prompt("暂时" + b, i, d, h, g, U.M.apply(h, [[U.Dk.RE.ETUE, ([e, a])]]), US.Disk.diskfileTree[1][3]).Create(); }; U.Dk.RE.ETUE = function (b, a) { var c = $("input", this); if (b) { if (c[0].value == c[1].value && c[0].value.IsGEdit()) { U.Adisk.Request("UseStudioDisk.encryptwindowButtonClick", ([US.userInfo.userid, a, c[0].value]), U.Dk.RE.AsynETUE, (["", "encrypt", a, c])); U.Alert("和服务器同步中..."); } else { U.Alert("无法和服务器同步,请输入密码"); } } else { if (c[0].value.IsGEdit()) { U.Adisk.Request("UseStudioDisk.DeciphermentFile", ([US.userInfo.userid, a, c[0].value]), U.Dk.RE.AsynETUE, (["", "unencrypted", a, null])); } else { U.Alert("密码错误"); } } }; U.Dk.RE.SZQX = function () { var d = US.Disk.diskfileTree[1][1], c = U.Dk.M.ufinfoarray("RecurD", d), b = false, a = (c.length > 1 && c[0].UserDirectoryEncrypt != "true" && c[c.length - 1].GroupID != null && c[0].GroupID == null); if (a) { b = ["是否<span style='color:red;'>设置</span>文件夹权限", "encrypt", "true"]; } else { if (c[0].UserDirectoryEncrypt == "true" && c[0].GroupID == null) { b = ["是否<sapn style='color:red;'>解除</sapn>文件夹权限", "unencrypted", null]; } else { if (US.Disk.diskfileTree[0].UserId == US.userInfo.userid) { U.Alert("本地文件无权限可设!"); } else { U.Alert("无法设置他人权限"); } } } if (b) { U.UI.Confirm(b[0], [U.Dk.RE.SQX, ([d, b[1], b[2]])], null); } }; U.Dk.RE.SQX = function (a, c, b) { U.Adisk.Request("UseStudioDisk.SetUserQX", ([US.userInfo.userid, a, (b == null ? "" : b)]), U.Dk.RE.AsynETUE, (["", c, a, b])); U.Alert("和服务器同步中..."); }; U.Dk.RE.AsynETUE = function (b) { var a = b.context; b = b.value; if (b !== false) { U.Dk.RE.CUP(a[1], b, a[2], (b || a[3])); U.Alert("文件夹设置成功"); } else { U.Alert("密码错误"); } }; U.Dk.RE.CUP = function (h, g, f, d) { var b = U.Dk.M.ufinfoarray("onefind", f), e = $("div#disk" + f, US.Disk.diskfileTree[1][3])[0], c = $("a#d" + f, US.Disk.diskfileTree[1][3])[0], a = h == "encrypt" ? [d, "background-position:-660px -40px;", b.UserDirectoryName + "(已加密)", US.Disk.diskfileTree[1][4] == "Details" ? "-241px -96px" : "-660px -40px", "UDK_L_DiskGE UDK_L_USTreeFolderEncryptIcon"] : [null, "background-position:-6px -41px;", b.UserDirectoryName, (US.Disk.diskfileTree[1][4] == "Details" ? "-217px -173px" : "-6px -41px"), "UDK_L_DiskGE UDK_L_USTreeFolderIcon"]; b.UserDirectoryEncrypt = a[0]; b.UserDirectoryUrl = a[1]; (e) && ($("div", e)[1].style.backgroundPosition = a[3]); (c) && ($("span", c)[0].innerHTML = a[2], $("i", c)[0].className = a[4]); }; U.Dk.RE.TF; U.Dk.RE.UFCopy = function (c, a) { if (c.length == null) { c = [c]; } for (var b = 0; b < c.length; b++) { if (c[b]["filetype"] == 0) { c.splice(b, 1); b--; } } U.Dk.RE.CE = c; U.Dk.RE.TF = a; }; U.Dk.RE.UFStick = function () { var g = U.Dk.RE.CE; if (US.userInfo.userid == US.Disk.diskfileTree[1][2] && g.length > 0) { var c, d = 0, h = true, f = ""; var b = U.Dk.M.ufinfoarray("RecurD", US.Disk.diskfileTree[1][1]); var a = U.Dk.UP.UPF(b[b.length - 1].UserDirectoryID); for (c = 0; c < g.length; c++) { f += g[c].UserDirectoryID + ","; d += g[c].UserDirectorySize; if (!U.UP.UploadFileType(g[c].UserallDirectoryName, (b[b.length - 1].UserDirectoryID == US.DG ? null : a[0])) && b[0].GroupID == null) { h = false; break; } } if (h || b[0].GroupID) { if (U.Dk.RE.TF == "Cut") { var e = U.Dk.M.ufinfoarray("onefind", U.Dk.RE.CE[0].UserDirectoryParentID); U.Adisk.Request("UseStudioDisk.CutFile", ([US.userInfo.userid, US.Disk.diskfileTree[1][1], f, b[0].GroupID || "", e.GroupID || ""]), U.Dk.RE.AysnUFCut, (["", US.Disk.diskfileTree[1][1], g])); } else { if (U.Dk.HP.GetSfileS(US.Disk.diskfileTree[1][0].FileSize + "M") + d <= U.Dk.HP.GetSfileS(US.userInfo.UserDiskSpace + "M")) { U.A.Request("UseStudioDisk.CopyFile", ([US.userInfo.userid, US.Disk.diskfileTree[1][1], f, b[0].GroupID || ""]), U.Dk.RE.AsynUFStick, (["", US.Disk.diskfileTree[1][1], g, d])); } else { U.Alert("网盘空间不足"); } } } else { U.Alert(a[1] + "不允许粘贴" + g[c].UserDirectoryExtendType + "格式"); } } else { U.M.StopBubble(); } }; U.Dk.RE.AsynUFStick = function (f) { var e, c, a; var d = f.context; f = f.value; var b = U.Dk.M.ufinfoarray("onefind", d[1]).UserDirectoryDeep + 1; for (e = 0; e < f.length; e++) { for (c = 0; c < d[2].length; c++) { if (d[2][c].UserDirectoryID == f[e].PID) { a = new U.Dk.M.Entity(([f[e].UserFilesID, d[2][c].UserDirectorySize, d[1], d[2][c].UserDirectoryName, d[2][c].UserallDirectoryName, d[2][c].UserDirectoryExtendType, d[2][c].UserFilesServerName, U.MT.GetDT(new Date()), d[2][c].UserDirectoryUrl, b, null, null, 1])); U.Dk.M.ufinfoarray("add", a); U.Dk.RE.ARFO(a); break; } } } US.Disk.diskfileTree[1][0].FileSize += Math.ceil(d[3] / 1024 / 1024); U.Dk.onloadLeft(); U.Alert("粘贴完成"); }; U.Dk.RE.AysnUFCut = function (e) { var d = e.context; e = e.value; var b = d[2][0].UserDirectoryParentID; var a = U.Dk.M.ufinfoarray("onefind", d[1]); for (var c = 0; c < d[2].length; c++) { d[2][c].UserDirectoryParentID = d[1]; } if (US.Disk.diskfileTree[1][1] == b || US.Disk.diskfileTree[1][1] == d[1]) { U.Dk.VW.DT(US.Disk.diskfileTree[1][1]); } }; U.Dk.RE.CN = function () { U.Dk.onloadAjax(US.Disk.diskfileTree[1][1], US.Disk.diskfileTree[1][2]); U.Dk.LE.DBC(US.Disk.diskfileTree[1][1], US.Disk.diskfileTree[1][0].UserId); U.Dk.LL.UDKURL(US.Disk.diskfileTree[1][1]); }; U.Dk.RE.ODL = function (d, c, b) { var a = d.substring(d.lastIndexOf(".") + 1, d.length); if (!U.U.L.LARG()) { if (a == null && d.indexOf("http") > 0) { window.open(d); } else { if (a == "ue" || a == "uw") { if (browser.msie) { top.U.Adisk.Request("UseStudioDisk.GetOffice", ([b]), U.Dk.RE.AsynXZ, (["", c])); U.Alert("正在加载下载页"); } else { U.UP.uploading([$$("input", { "type": "text", "value": d, "name": "filename" }), $$("input", { "type": "text", "value": c + ".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=" + d + "&filename=" + c + "&UserId=" + US.userInfo.userid + "&usrd=" + Math.random()); } } } }; U.Dk.RE.AsynXZ = function (d) { var a, c, b = d.context[1]; d = d.value; if (d != false) { a = window.open("javascript:void((function(){document.open();document.domain='1473.cn';document.close()})())"); try { c = a.document.open(); c.write('<link charset="utf-8" href="/css/UC20.css" rel="stylesheet" type="text/css" /><link href="/Office/U_Excel.css" rel="stylesheet" type="text/css" /><link href="/Office/U_ONO.css" rel="stylesheet" type="text/css" /><script type="text/javascript" charset="utf-8" src="/js/UC/UC20.js"><\/script><script type="text/javascript" charset="utf-8" src="/Office/U_OFD.js"><\/script>' + d); c.execCommand("SaveAs", true, b); c.close(); a.close(); } catch (f) { } } else { U.Alert("文件损坏"); } }; U.Dk.RE.MBC = function (e, f, a, c) { var b = true, d = U.Dk.M.ufinfoarray("find", ([e])); if ((US.userInfo.userid == null && US.userInfo.userid != US.Disk.diskfileTree[1][0].UserId)) { U.Alert("无权利访问"); b = false; } else { if (!f.IsGEdit()) { U.Alert("名字不能空"); b = false; } else { if (!f.SubstrN(40)) { U.Alert("文件名过长"); b = false; } } } if (a == "folder" && !(U.Dk.M.ufinfoarray("IsSName", ([d, f.SubN(), a])))) { U.Alert('此目录已经包含了名为"' + f.SubN() + '"的文件夹'); b = false; } return b; }; U.Dk.RE.Prompt = function (d, e, b, g, h, a, f) { var c = new U.UI.Dialog(null, null, d, b, e, "", "", h, "", a, g, "", f); return c; }; Namespace.register("U.Dk.DI"); U.Dk.DI.SCMSD = function (a, b) { var d = $("div", a), e = d["UDK_SDP"], c = d["UDK_SSD"]; if (b) { b = ["block", "none"]; } else { b = ["none", "block"]; } e.style.display = b[0]; c.style.display = b[1]; }; U.Dk.DI.CM = function (c, b, a) { var d = $("div", b); if (US.Disk.DiskDaren["HF"]) { U.Dk.DI.SetHP(US.Disk.DiskDaren["HF"], d["UDK_RPHost"]); U.Dk.DI.GetTP(c, b); U.Dk.DI.SDFN(c, d["UDK_SDP"], 1, a); } else { if ($("iframe", d["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" }, d["UDK_RPGG"]); } U.Adisk.Request("UseStudioDisk.GetDaren", ([a, c]), U.Dk.DI.AsynCM, ([b, c, b, a])); } }; U.Dk.DI.AsynCM = function (b) { var a = b.context; b = b.value; if (b.length) { U.Dk.M.Daren("AddDaren", b); U.Dk.M.Daren("AddPND", [a[3], a[1], 1, b[1]]); if (a[5]) { a[5](); } else { U.Dk.DI.CM(a[1], a[2], a[3]); } } }; U.Dk.DI.SetHP = function (d, a) { var c, b, f, e; a.innerHTML = ""; b = $$("div", { "className": "UDK_L_DiskGE UDK_RPtext" }); f = $$("div", { "className": "UDK_RPHotDS" }); for (c = 0; c < d.length; c++) { e = $$("div", { "className": "UDK_RPHotDiv", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioUserDiskDiv", US.DG, d[c].UserID, null])]] }, f); $$("img", { "src": U.M.GetImgU(d[c].UserThumbnailImageHead), "className": "UDK_RPHotImg", "onerror": U.M.ImgError }, e); $$("div", { "className": "UDK_RPHotName", "innerHTML": d[c].UserName }, e); $$("span", { "className": "UDK_RPHotVoluTXT", "innerHTML": "文件个数:" }, e); $$("a", { "className": "UDK_RPHotVolume", "innerHTML": d[c].CN }, e); } a.appendChild(b); a.appendChild(f); }; U.Dk.DI.GetTP = function (c, a) { var b = U.Dk.M.Daren("STopD", c); U.Dk.DI.SetTP(b, $("div#UDK_RPTop", a)[0]); }; U.Dk.DI.SetTP = function (d, a) { var c, f, e, b; a.innerHTML = ""; f = $$("div", { "className": "UDK_RPTopOneDiv" }); $$("div", { "className": "UDK_RPTopOne", "innerHTML": "01." }, f); $$("img", { "src": U.M.GetImgU(d[0].UserThumbnailImageHead), "className": "UDK_RPTopImg", "onerror": U.M.ImgError, "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([d[0].UserID])]] }, f); $$("span", { "className": "UDK_RPTopFilesName", "innerHTML": d[0].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioUserDiskDiv", d[0].UserDirectoryID, d[0].UserID, null])]] }, f); $$("a", { "className": "UDK_RPTopNickName", "innerHTML": d[0].UserNickName }, f); e = $$("div", { "className": "UDK_RPTopNAMDiv" }); for (c = 1; c < d.length; c++) { b = $$("div", { "className": "UDK_RPTopUNDiv" }, e); $$("div", { "className": "UDK_RPTopImgNUM", "innerHTML": "0" + (c + 1) }, b); $$("div", { "className": "UDK_RPTopNAM", "innerHTML": d[c].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioUserDiskDiv", d[c].UserDirectoryID, d[c].UserID, null])]] }, b); $$("div", { "className": "UDK_RPTopUN", "innerHTML": d[c].UserNickName, "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([d[c].UserID])]] }, b); } a.appendChild(f); a.appendChild(e); }; U.Dk.DI.UDSD; U.Dk.DI.DTE = []; U.Dk.DI.SDFN = function (d, c, f, a) { a = a == null ? US.NU : a; var g = U.Dk.DI.UDSD = $("div#UDK_LPINew", c)[0], b = $("span", g.parentNode)[0], e = $("div", g.parentNode)[0]; g.innerHTML = ""; b.onclick = U.M.apply(this, [[U.Dk.NologinDiskDown, (["", d || US.NU, ""])]]); e.onclick = U.M.apply(this, [[U.Dk.NologinDiskDown, ([US.userInfo.userid || US.NU, d, ""])]]); U.Dk.DI.DFN(d, f, a, g, c); c.onscroll = U.M.SSCH({ "AF": U.M.apply(null, [[U.Dk.DI.SFND, ([d, a, g, c])]]) }).SCH(); }; U.Dk.DI.SFND = function (c, a, d, b) { U.Dk.DI.DFN(c, this.P + 2, a, d, b); }; U.Dk.DI.DFN = function (d, f, a, g, c, e) { var b = 30; f = f % 10; f == 0 ? f + 1 : f, _TP = Math.ceil(f * b / 300), _UDPD = U.Dk.M.Daren("GetPND", [d == "" ? US.NU : a, d, _TP, f * b - b, f * b]); if (d != US.NU && d != "") { if (_UDPD) { U.Dk.DI.SetDFN(_UDPD, g, a, f); } else { U.Adisk.Request("UseStudioDisk.GetUserFNew", ([a, d, _TP * 300 - 300, _TP * 300]), U.Dk.DI.AsynDFN, ([c, d, f, a, _TP, g, e])); } } else { if (_UDPD) { U.Dk.DI.SetDFN(_UDPD, g, a, f); } c.onscroll = null; } }; U.Dk.DI.AsynDFN = function (b) { var a = b.context; b = b.value; if (b.length != null) { if (b.length == 0) { a[0].onscroll = null; } U.Dk.M.Daren("AddPND", [a[3], a[1], a[4], b]); U.Dk.DI.DFN(a[1], a[2], a[3], a[5]); } }; U.Dk.DI.DTSJ = function (d) { var b = [], a = US.userInfo.userid || US.NU; for (var c = d.length - 1; c >= 0; c--) { if (d[c].NEWTYPE == "UD_DiskCon") { b.push(d[c]); } } if (b.length > 0) { U.Dk.M.Daren("AddPND", [US.userInfo.userid || US.NU, "", 1, b]); } }; U.Dk.DI.SetDFN = function (UDL, UDOD, UID, P) { var i, _UDI, _UDTD, _UDSD, _UDND, _UDLI, _UDT, _UDFD = document.createDocumentFragment(); if (UDL.length > 0) { for (i = UDL.length - 1; i >= 0; i--) { _UDLI = (UDL[i].ET != null) ? (typeof UDL[i].ET == "string" ? (UDL[i].ET = eval(UDL[i].ET)) : UDL[i].ET) : UDL[i]; _UDT = U.Dk.HP.IsDF(_UDLI.UserDirectoryExtendType || _UDLI.UserFilesExtendName)[0]; _UDTD = $$("div", { "className": "UDK_LPINewDiv" }); _UDSD = $$("div", { "className": "UDK_LPINewFYDiv" }, _UDTD); $$("img", { "src": U.M.GetImgU(_UDLI.UserThumbnailImageHead || UDL[i].UserThumbnailImageHead), "className": "UDK_LPINewIMG", "onerror": U.M.ImgError, "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([UDL[i].UserID || UDL[i].UserId])]] }, _UDSD); $$("div", { "className": "UDK_LPINewFYName", "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([UDL[i].UserID || UDL[i].UserId])]], "innerHTML": UDL[i].UserName }, _UDSD); $$("span", { "className": "UDK_LPINewFYWZ", "innerHTML": "上传了文件" }, _UDSD); _UDND = $$("div", { "className": "UDK_LPINewLR" }, _UDSD); $$("div", { "className": "UDK_LPINewLTframe", "innerHTML": (_UDLI.UserFilesDescript || _UDLI.Descript) || "没有描述此文件..." }, _UDND); $$("div", { "className": "UDK_L_DiskGE UDK_LPINewLTFH" }, _UDND); if (_UDT == "P") { $$("img", { "className": "UDK_LPINewLTicon", "src": US.fs + ((_UDLI.UseFilesServerThumbnailName || _UDLI.UserFilesServerName) || _UDLI.UserDirectoryUrl).replace(US.fs, ""), "onerror": [[U.M.ImgError, (["this", 1])]], "onclick": [[U.M.StopBubble], [U.Img.Create, ([[{ "Thm": US.fs + (_UDLI["UseFilesServerThumbnailName"] || _UDLI.UserDirectoryUrl), "Img": US.fs + _UDLI["UserFilesServerName"] }]])]] }, _UDTD); } else { $$("div", { "className": "UDK_LPINewLTicon UDK_L_DiskGE", "style": { "cssText": U.Dk.HP.FFT(_UDLI.UserDirectoryExtendType || _UDLI.UserFilesExtendName)[1] }, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioUserDiskDiv", _UDLI.UserDirectoryID, _UDLI.UserID, null])]] }, _UDTD); } $$("div", { "className": "UDK_LPINewFilesName", "innerHTML": _UDLI.UserFilesName || _UDLI.UserDirectoryName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioUserDiskDiv", _UDLI.UserDirectoryParentID || _UDLI.UserDirectoryID, (UDL[i].UserID || UDL[i].UserId), null])]] }, _UDTD); $$("div", { "className": "UDK_LPINewFBTime", "innerHTML": U.MT.GetDT(_UDLI.UserFilesAddTime) }, _UDTD); $$("div", { "className": "UDK_LPINewLYcloud", "innerHTML": "来自有思云分享" }, _UDTD); _UDFD.firstChild ? _UDFD.insertBefore(_UDTD, _UDFD.firstChild) : _UDFD.appendChild(_UDTD); } UDOD.appendChild(_UDFD); } }; U.Dk.DI.HZJ = function () { }; Namespace.register("U.Dk.HP"); U.Dk.HP.FFT = function (b) { var c, a = []; b = b.toLowerCase(); switch (b) { case "folder": a = ["文件夹", "-6px -41px;", "-169px -5px;"]; break; case "folderencrypt": a = ["文件夹", "-660px -40px;", "-736px -77px"]; break; case "png": case "jpg": case "bmp": case "gif": a = ["图片文件", "-593px -402px;", "-61px -5px"]; break; case "docx": case "uw": case "doc": a = ["Word文档", "-155px -41px", "-511px -198px;", "-65px -420px"]; break; case "xls": case "ue": a = ["Excel文档", "-297px -41px", "-290px -50px;", "-120px -420px"]; break; case "ppt": case "pptx": a = ["PPT幻灯片", "-227px -41px", "-548px -198px;", "-220px -420px"]; break; case "txt": a = ["Txt文本文档", "-84px -41px", "-477px -198px;", "-170px -420px"]; break; case "wmv": case "video": a = ["视频文件", "-503px -41px", "-760px -42px;"]; break; case "mp3": a = ["Mp3音乐文件", "-438px -41px", "-734px -43px;", "-15px -420px"]; break; case "rar": case "zip": a = ["Rar压缩文件", "-368px -41px", "-619px -199px;", "-270px -420px"]; break; default: a = ["系统文件", "-578px -41px", "-478px -230px;", "-320px -420px"]; break; } for (c = 1; c < a.length; c++) { a[c] = "background-position:" + a[c]; } return a; }; U.Dk.HP.IsDF = function (b) { var c = U.UP.SFT("A"); var a = U.UP.SFT("P"); var d = U.UP.SFT("M"); var e = U.UP.SFT("V"); if (c.indexOf(b) > -1) { return ["A", US.DG]; } else { if (a.indexOf(b) > -1) { return ["P", US.PG]; } else { if (d.indexOf(b) > -1) { return ["M", US.MG]; } else { if (e.indexOf(b) > -1) { return ["V", US.VG]; } else { return ["A", US.DG]; } } } } }; U.Dk.HP.CPT = function (a) { if (a == US.DG) { U.Dk.RightAuthority = true; } else { U.Dk.RightAuthority = false; } }; U.Dk.HP.AUD = function () { var b, a = $("div#UDK_RS_directoryCommandArea", US.Disk.diskfileTree[1][3])[0]; a.innerHTML = ""; if (US.userInfo.userid == US.Disk.diskfileTree[1][0].UserId) { b = $$("div", { "className": "UDK_L_DiskGE UDK_B_C UDK_B_CreateDirButton", "onclick": [[U.M.StopBubble], [U.Dk.RE.CMB, (["folder"])]] }); $$("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", US.Disk.diskfileTree[1][0].UserId])]] }, a); a.appendChild(b); } else { var c = $("div#UDK_LR_Froms", US.Disk.diskfileTree[1][3])[0]; if (c != null) { c.parentNode.removeChild(c); } } }; U.Dk.HP.EBB = function () { var c, a = $("p", US.Disk.diskfileTree[1][3]), b = ["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"]; US.Disk.diskfileTree[1][3].onmousedown = U.M.apply(this, [[U.Dk.RM.DRC]]); US.Disk.diskfileTree[1][3].onclick = $("div#UDK_LR_directorycontentarea", US.Disk.diskfileTree[1][3])[0].onmousedown = U.M.apply(this, [[U.Dk.RM.DRC, (["this", "add", US.Disk.diskfileTree[1][0].UserId])]]); for (c = 0; c < b.length; c++) { a[b[c]].parentNode.style.display = "none"; } }; U.Dk.HP.CD = function () { var b, a, c, d; a = US.Disk.diskfileTree ? US.Disk.diskfileTree[1][3].parentNode : top.window.$("#UseStudioUserDiskDiv" + US.NU)[0]; c = $("div#UDK_M_alreadylogin", a)[0]; d = U.M.GTCN(c.childNodes); d[1].setCapture(); document.onmousemove = function () { b = event.clientX - d[0].getBoundingClientRect().left; b = Math.max(Math.min(b, 600), 208); d[0].style.width = b + "px"; d[2].style.width = (a.clientWidth - b - 6) + "px"; }; document.onmouseup = function () { d[1].releaseCapture(); document.onmousemove = document.onmousemove = null; }; }; U.Dk.HP.NCW = function (b) { var d = b.clientWidth, e = b.clientHeight, c = $("div", b), a = c["UDK_RS_leftContent"].clientWidth; if (a > 0) { b.style.width = d + "px"; b.style.height = e + "px"; c["UDK"].style.height = e - 37 + "px"; c[1].style.width = d - 30 + "px"; c["UDK_RS_rightContent"].style.width = Math.max((d - a - 6), 0) + "px"; } }; U.Dk.HP.CW = function (a) { a = a || (US.Disk.diskfileTree ? US.Disk.diskfileTree[1][3] : null); if (a) { var c = a.parentNode.clientWidth; var f = a.parentNode.clientHeight - 35; if (c > 0 || f > 0) { var b = $("div", a.parentNode), e = b["UDK_RS_leftContent"], g = b["UDK_L_USTreeTreeNode"], d = b["UDK_LL_F"]; a.style.height = f - 2 + "px"; b[1].style.width = c - 30 + "px"; if (e.clientHeight > 0) { d.style.maxHeight = (e.clientHeight - 190) + "px"; g.style.maxHeight = (e.clientHeight - 223) + "px"; b["UDK_RS_rightContent"].style.width = Math.max((c - e.clientWidth - 6), 0) + "px"; b["UDK_LL_USTreeMainNodeDiv"].style.height = f - b["UDK_LL_US"].clientHeight - 20 + "px"; } b["UDK_LR_directorycontentarea"].style.height = Math.max(f - 175, 0) + "px"; a.parentNode.style.width = c + "px"; a.parentNode.style.height = f + 35 + "px"; } } }; U.Dk.HP.RC = function () { var b = U.M.GetMousep(); var a = U.M.GetElementInfo(U.M.GTPN((event.srcElement), "UDK_M_alreadylogin")); return { "x": b["X"] - a["TX"], "y": b["Y"] - a["TY"] }; }; U.Dk.HP.RM = function () { var a = U.Dk.HP.RC(); $("div#UDK_R_rightMouseClickDiv", US.Disk.diskfileTree[1][3]).addAttrArray({ "style": { "visibility": "visible", "display": "inline-block", "left": a["x"] + "px", "top": a["y"] + "px" } }); }; U.Dk.HP.FunD = function (g) { var c, f = U.M.GTPN(g, "UDK_M_alreadylogin"), a = $("div#UDK_FF", f)[0], d = $("div", a), e = [[0, 48], [-5, 0], [-33, 94], [-18, 2], [-47, 95]], h = U.M.GetElementInfo(g), b = U.M.pageXY(f); U.Dk.HP.FunDN(a); $(a).addAttrArray({ "style": { "display": "block", "left": (h["TX"] - b[1] - f.scrollLeft - 82) + "px", "top": (h["TY"] - b[0] - f.scrollTop - 27) + "px" } }); for (c = 0; c < d.length; c++) { $(d[c]).animate({ "top": e[c][0] + "px", "left": e[c][1] + "px" }, 100); } }; U.Dk.HP.DLo = function (f) { var e = f || US.Disk.diskfileTree[1][3].parentNode; if (US.Disk.Layer["LI"] == null) { US.Disk.Layer["LI"] = e; return; } var b, c, g = US.Disk.Layer["LI"] = US.Disk.Layer["LI"] || e, d = g.offsetTop + g.offsetHeight, a = g.offsetLeft + g.offsetWidth; d = d > $.fn.Screenheight() ? 0 : (a > $.fn.Screenwidth() ? 0 : g.offsetTop + US.Disk.Layer["step"]); a = a > $.fn.Screenwidth() ? 0 : (d == 0 ? 0 : g.offsetLeft + US.Disk.Layer["step"]); $(e).addAttrArray({ "style": { "top": d + "px", "left": a + "px" } }); US.Disk.Layer["LI"] = e; }; U.Dk.HP.FunDN = function (a) { a.style.display = "none"; $("div", a).addAttrArray({ "style": { "left": "", "top": "" } }); }; U.Dk.HP.DKDS = function (e, d) { if (e && !(U.M.onmouseout(e))) { var c = U.M.GTPN(e, "UDK_M_alreadylogin"); var b = $("div#UDK_DS", c)[0]; if (typeof d != "string") { b.style.display = "none"; } else { $("div", b)[1].innerHTML = d; var f = U.M.GetElementInfo(e); var a = U.M.pageXY(c); $(b).addAttrArray({ "style": { "display": "block", "left": (f["BCRL"] - a[1] - c.scrollLeft + (f["CW"] / 2)) + "px", "top": (f["BCRT"] - a[0] - c.scrollTop + (f["CH"] / 2)) + "px" } }); } } }; U.Dk.HP.AtTimeS = function (b) { var a = $("div#UDK_LR_directoryListArea", US.Disk.diskfileTree[1][3])[0]; var c = U.Dk.M.ufinfoarray("find", ([b])); U.M.Sequence(c, "UserDirectoryAddTime", U.MT.comptime); a.innerHTML = ""; if (US.Disk.diskfileTree[1][4] == "Normal") { U.Dk.VW.PD(c, a); } else { U.Dk.VW.PTD(c, a); } }; U.Dk.HP.AtSizeS = function (b) { var a = $("div#UDK_LR_directoryListArea", US.Disk.diskfileTree[1][3])[0]; var c = U.Dk.M.ufinfoarray("find", ([b])); U.M.Sequence(c, "UserDirectorySize", U.Dk.HP.IsSizeS); a.innerHTML = ""; if (US.Disk.diskfileTree[1][4] == "Normal") { U.Dk.VW.PD(c, a); } else { U.Dk.VW.PTD(c, a); } }; U.Dk.HP.IsSizeS = function (b, a) { if (b > a) { return false; } else { return true; } }; U.Dk.HP.FileSize = function (a) { var b = ""; if (a < 1024) { b = Math.round(a) + "B"; } else { if ((a / 1024) < 1024) { b = Math.round(a / 1024) + "KB"; } else { if (((a / 1024) > 1024) && ((a / (1024 * 1024)) < 1024)) { b = Math.round(a / (1024 * 1024)) + "M"; } else { b = Math.round(a / (1024 * 1024 * 1024)) + "G"; } } } return b; }; U.Dk.HP.GetSfileS = function (a) { if (a.indexOf("B") > -1) { return a; } else { if (a.indexOf("KB") > -1) { return (a.replace("KB", "")) * 1024; } else { if (a.indexOf("M") > -1) { return (a.replace("M", "")) * 1024 * 1024; } else { if (a.indexOf("G") > -1) { return (a.replace("G", "")) * 1024 * 1024 * 1024; } else { return (a.replace("T", "")) * 1024 * 1024 * 1024 * 1024; } } } } }; Namespace.register("U.Dk"); U.Dk.Ism = false; U.Dk.NologinDiskDown = function (b, d, c) { var a; if (c) { if (d) { a = U.Dk.DiskDown(b, d, c); } else { if (!U.U.L.LARG()) { a = U.Dk.cloneDisk(b); U.Dk.SBDD(a, ["block", "none"]); } else { return; } } } else { if (d) { a = U.Dk.DiskTC(d, (b || US.NU)); } else { a = U.Dk.cloneDisk((b || US.NU)); a.style.display = "block"; U.D.SetDTop(a); U.Dk.DI.SCMSD(a); U.Dk.SBDD(a, ["none", "block"]); } } return a; }; U.Dk.SBDD = function (a, b) { $("div#UDK_RS_UserDiskMain", a)[0].style.display = b[0]; $("div#UDK_S", a)[0].style.display = b[1]; }; U.Dk.cloneDisk = function (b) { var e = US.Disk.UserDisk[b]; if (e == null) { var c = $("#UseStudioUserDiskDiv").addAttrArray({ "style": { "width": "95%", "height": "75%" } })[0]; if (b == US.NU) { var d = $("#UseStudioUserDiskDiv" + (US.userInfo.userid || US.NU))[0]; if (d) { return d; } } if (US.userInfo.userid == b) { var a = $("#UseStudioUserDiskDiv" + US.NU)[0]; if (a) { a.id = c.id.replace(US.NU, "") + b; return a; } } var a = c.cloneNode(true); a.id = c.id.replace(US.NU, "") + b; top.$("body", document)[0].appendChild(a); return a; } if (e && e[1]) { return e[1][3].parentNode; } }; U.Dk.DiskDown = function (a, d, b) { var c = U.Dk.cloneDisk(a); if (c) { U.Dk.SBDD(c, (b ? ["block", "none"] : ["none", "block"])); if (c.style.display == "block") { U.D.SetDTop(c); } else { U.D.PopupWindow(c, U.M.apply(this, [[U.Dk.HP.DLo, ([c])]])); } U.D.Tb.WindowRestore(c, '<div style="width:61px; height:65px; margin:11px 0 0 5px; background-position: -3px -3px;" class="UD_DI_iconimg UD_NUB"></div>', "硬盘"); if (d && a) { U.Dk.Commonresource(a, d, $("div#UDK", c)[0]); } return c; } }; U.Dk.DiskTC = function (d, b, c) { var a = U.Dk.DiskDown(US.userInfo.userid || US.NU, "", c), e = $("div", a), g = e["UDK_LPIcon"], f = $("span", g.parentNode)[0]; f.style.display = US.userInfo.userid ? "block" : "none"; U.Dk.HP.NCW(a); U.Dk.DI.CM(d, e["UDK"], b); U.D.G.UrlWrite("disk", "有思硬盘"); U.Dk.DI.SCMSD(a, true); return a; }; U.Dk.GetDsikFID = function (a) { U.Adisk.Request("UseStudioDisk.GetDsikFID", ([a]), U.Dk.AsynGetDsikFID, (["", a])); }; U.Dk.AsynGetDsikFID = function (d) { var f = d.value, a = f[0][1].UserId, b = f[1], c = U.Dk.cloneDisk(a), e = $("div#UDK", c)[0]; d.context = [e, a, b]; d.value = f[0]; U.Dk.onloadup(d); U.Dk.NologinDiskDown(a, b, true); }; U.Dk.DiskOperatingSwitch = function (a) { var b = US.Disk.UserDisk[a]; US.Disk.diskfileTree = b; }; U.Dk.Commonresource = function (a, b, c) { var d = US.Disk.UserDisk[a]; if (d == null) { U.Dk.HP.CW(c); US.Disk.UserDisk[a] = []; U.Adisk.Request("UseStudioDisk.Commonresource", ([a]), U.Dk.onloadup, ([c, a, b])); } else { if (d.length > 0) { US.Disk.diskfileTree = d; d[1][1] = b; U.Dk.HP.CW(); U.Dk.onloadfunction(); if (US.userInfo.userid == US.Disk.diskfileTree[1][2]) { US.userInfo["DiskHeadImg"] = d[1][0]["DiskHeadImg"]; US.userInfo["UserBImage"] = d[1][0]["UserBImage"]; } } } }; U.Dk.Om = function (a) { U.Alert("正在加载音乐文件..."); U.Dk.Ism = true; U.Dk.Commonresource(a, "8a2135ff-746a-43a8-97b8-552d228a00bb", $("div#UDK", U.Dk.cloneDisk(a))[0]); }; U.Dk.onloadup = function (b) { var a = b.context; b = b.value; if (b.length) { U.Dk.GUserBL(a[1], a[2], a[0], b); U.Dk.HP.EBB(); U.Dk.GALAF(b[1].UserId); U.Dk.M.refreshfile(); U.Dk.onloadAjax(US.Disk.diskfileTree[1][1], a[1]); U.Dk.onloadfunction(); if (US.userInfo.userid == US.Disk.diskfileTree[1][0].UserId) { U.D.ZYXB(0); } U.Dk.LL.UDKURL(US.Disk.diskfileTree[1][1]); } }; U.Dk.GUserBL = function (a, b, c, d) { d[0] = [new U.Dk.M.Entity(["7aeaab56-485f-4150-b781-8ffd86d593ce", 0, "d8ae0266-481d-4064-86d2-fb52a4059793", "电脑", "我的电脑", "folder", null, null, null, 1, null, null, 1, ""]), new U.Dk.M.Entity(["93553847-e299-464c-a0e2-c15872efb6ae", 0, "d8ae0266-481d-4064-86d2-fb52a4059793", "相册", "我的相册", "folder", null, null, null, 1, null, null, 1, ""]), new U.Dk.M.Entity(["8a2135ff-746a-43a8-97b8-552d228a00bb", 0, "d8ae0266-481d-4064-86d2-fb52a4059793", "音乐", "我的音乐", "folder", null, null, null, 1, null, null, 1, ""]), new U.Dk.M.Entity(["bf21bf7a-1e95-4194-8e4a-e9334d7d998d", 0, "d8ae0266-481d-4064-86d2-fb52a4059793", "视频", "我的视频", "folder", null, null, null, 1, null, null, 1, ""])].concat(d[0]); US.Disk.diskfileTree = [d[0], [(d[1].UserId == US.userInfo.userid ? US.userInfo : d[1]), b, a, c, "Normal"]]; US.Disk.UserDisk[a] = US.Disk.diskfileTree; }; U.Dk.GALAF = function (a) { var b = $("div", US.Disk.diskfileTree[1][3]); U.AFB.RGoL("disk" + a); b["UDK_LR_navback"].onclick = U.M.apply(this, [[U.AFB.DrawBack, (["disk" + a])]]); b["UDK_N_next"].onclick = U.M.apply(this, [[U.AFB.GoForward, (["disk" + a])]]); }; U.Dk.onloadfunction = function () { if (U.Dk.Ism) { var b = U.Dk.LE.GM("8a2135ff-746a-43a8-97b8-552d228a00bb"); U.MPlayer.Open(b[0], b[1]); U.Dk.Ism = false; } else { var a = $("a#d" + US.Disk.diskfileTree[1][1], US.Disk.diskfileTree[1][3])[0]; if (a) { U.Dk.LL.SM(a.parentNode, US.Disk.diskfileTree[1][0].UserId, US.Disk.diskfileTree[1][1]); } U.Dk.HP.AUD(); U.Dk.LE.DBC(US.Disk.diskfileTree[1][1], US.Disk.diskfileTree[1][0].UserId); U.Dk.LL.UDKURL(US.Disk.diskfileTree[1][1]); } }; U.Dk.onloadAjax = function (c, a) { U.Dk.onloadLeft(US.Disk.diskfileTree[1][1]); if (US.userInfo.userid == US.Disk.diskfileTree[1][2]) { var b = $("div", US.Disk.diskfileTree[1][3]); U.Dk.SetDF(US.Friend[1], b["UDK_LL_F"]); U.Dk.PGroup(b["UDK_LL_Group"]); } U.Dk.directoryAjax(US.Disk.diskfileTree[1][0].UserId, c); }; U.Dk.onloadLeft = function () { var a = $("div", $("div#UDK_LL_US", US.Disk.diskfileTree[1][3])[0]), b = $("div", a["UDKLLNR"]); $("img", a[0]).addAttrArray({ "src": U.M.GetImgU(US.Disk.diskfileTree[1][0].UserThumbnailImageHead), "onerror": U.M.ImgError }, 0); a["UDK_LL_US_SP"].innerHTML = US.Disk.diskfileTree[1][0].UserNickName; a["UDK_LL_VirC"].innerHTML = "积分:" + (US.Disk.diskfileTree[1][0].VirtualCurrency || 0) + "分"; a["UDK_LL_Fcount"].innerHTML = "文件:" + US.Disk.diskfileTree[1][0].FilesCount + "个"; a["UDK_LL_US_TX"].onclick = U.M.apply(this, [[U.M.StopBubble], [U.U.I.POUW, ([US.Disk.diskfileTree[1][0].UserId])]]); b[2].innerHTML = U.Dk.HP.FileSize(U.Dk.HP.GetSfileS((US.Disk.diskfileTree[1][0].UserDiskSpace * 102.4) + "M")); b[5].innerHTML = U.Dk.HP.FileSize(U.Dk.HP.GetSfileS(US.Disk.diskfileTree[1][0].FileSize + "M")); $("span#UDK_Title", US.Disk.diskfileTree[1][3].parentNode)[0].innerHTML = "<span style='color:#4d8bcc;'>" + US.Disk.diskfileTree[1][0].UserNickName + "</span>" + "的网盘"; }; U.Dk.SetDF = function (d, a) { var c, e, b = document.createDocumentFragment(); a.innerHTML = ""; for (var c = 0; c < d.length; c++) { e = $$("div", { "className": "UDK_LL_HYXZ", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioUserDiskDiv", US.DG, d[c].UserId, null])]] }, b); $$("img", { "src": U.M.GetImgU(d[c].UserThumbnailImageHead), "title": "聊天", "className": "UDK_LL_HYImg", "onerror": U.M.ImgError, "onclick": [[U.M.StopBubble], [U.F.W.DMW, ([d[c]])]] }, e); $$("span", { "className": "UDK_LL_HYName", "innerHTML": d[c].FriendsDescript, "title": "查看网盘" }, e); } a.appendChild(b); }; U.Dk.PGroup = function (m) { var l, o, f, g, q, d, c, b, e, p = [], n = US.Friend[2], a = document.createDocumentFragment(); m.innerHTML = ""; for (e = 0; e < n.length; e++) { US.Disk.diskfileTree[0].splice(4, 0, new U.Dk.M.Entity(([n[e].GroupManageID, 0, US.userInfo.userid, n[e].GroupManageName, n[e].GroupManageName, "folder", null, U.MT.GetDT(new Date()), U.Dk.HP.FFT("folder")[1], 1, null, null, 0, "", n[e].GroupManageID]))); o = _$(US.Friend[3]).Select({ "GroupManageID": n[e].GroupManageID }, null, 9); l = o.length <= 3 ? o.length : (o.length > 4 ? 3 : 2); b = (o.length % 3 == 0 || o.length > 4) ? 3 : (o.length % 3) + (o.length > 3 ? 1 : 0); f = $$("div", { "className": "UDK_LL_HYXZ", "onclick": [[U.Dk.LE.DBC, ([n[e].GroupManageID, US.userInfo.userid])]] }, a); q = $$("div", { "className": "UDK_LL_HYImg", "onclick": [[U.M.StopBubble], [U.F.W.DGMW, ([n[e]])]] }, f); for (d = 0; d < l; d++) { g = $$("div", { "style": { "width": "100%", "height": Math.floor(40 / l) + "px" } }, q); for (c = d * b; c < d * b + b && c < o.length; c++) { $$("img", { "src": U.M.GetImgU(o[c].UserThumbnailImageHead), "style": { "width": Math.floor(40 / b) + "px", "height": Math.floor(40 / b) + "px" }, "onerror": [U.M.ImgError, (["this"])] }, g); } } $$("span", { "className": "UDK_LL_HYName", "innerHTML": n[e].GroupManageName }, f); } m.appendChild(a); }; U.Dk.SetMDF = function (d, a) { var c, e, b = document.createDocumentFragment(); for (c = 0; c < d.length; c++) { e = $$("div", { "className": "U_MPFZL", "onclick": [[U.M.StopBubble], [U.Dk.Om, ([d[c].UserId])]] }, b); $$("img", { "style": { "width": "30px", "height": "30px" }, "src": U.M.GetImgU(d[c].UserThumbnailImageHead), "onerror": U.M.ImgError }, e); $$("span", { "style": { "cursor": "pointer" }, "innerHTML": d[c].FriendsDescript }, e); } a.appendChild(b); }; U.Dk.UTS = function (a, b) { if (US.Disk.diskfileTree[1][0].UserId == US.userInfo.userid || U.M.GTPN("UseStudioUserDiskDiv" + US.userInfo.userid, b)) { U.Dk.DiskOperatingSwitch(US.userInfo.userid); if (a[2]) { U.F.M.FAW("fg"); U.Alert(a[0]); return false; } return true; } else { U.Alert(a[1]); return false; } }; U.Dk.DSDFD = function (a) { if (a.style.display == "block") { a.style.display = "none"; } else { a.style.display = "block"; } }; U.Dk.directoryAjax = function (c) { var l, j, g, d, b, a = document.createDocumentFragment(), k = US.Disk.diskfileTree[0].slice(0, 4), h = ["UDK_L_USTreeComputerIcon", "UDK_L_USTreeAlbumIcon", "UDK_L_USTreeMusicIcon", "UDK_L_USTreeVideoIcon", "UDK_L_USTreeRecycleBin"], e = $("div#UDK_L_USTreeTreeNode", US.Disk.diskfileTree[1][3])[0]; e.innerHTML = ""; for (var f = 0; f < k.length; f++) { l = $$("div", { "className": "UDK_L_USTreecontainA" }, a); d = $$("div", { "className": "UDK_L_USTTitle", "onclick": [[U.M.StopBubble], [U.Dk.LL.UDKURL, ([k[f].UserDirectoryID])], [U.Dk.LL.SM, (["retElement", c, k[f].UserDirectoryID])], [U.Dk.LE.DBC, ([k[f].UserDirectoryID, c])]] }, l); $$("div", { "className": "UDK_L_DiskGE UR_I_D_E UDK_L_USTreesign" }, d); b = $$("a", { "className": "UDK_L_USTreeusestudiodisktreeA", "id": "d" + k[f].UserDirectoryID }, d); $$("i", { "className": "UDK_L_DiskGE " + h[f] }, b); $$("span", { "innerHTML": k[f].UserDirectoryName }, b); } U.Dk.DSDFD(e); e.appendChild(a); }; Namespace.register("U.Dk.LE"); U.Dk.LE.DBC = function (b, a) { U.Dk.DiskOperatingSwitch(a); U.Dk.SBDD(US.Disk.diskfileTree[1][3], ["block", "none"]); var e = U.Dk.M.ufinfoarray("onefind", b); var d = e.UserDirectoryExtendType.toLowerCase(); d = d == "folderencrypt" ? "folder" : d; if (d != "folder") { U.M.StopBubble(); var c = U.Dk.HP.IsDF(d)[0]; if (c == "P") { U.Dk.LE.OIMG(b, e); } else { if (c == "M") { U.Dk.LE.OM(e); } else { if (d == "video") { U.Dk.LE.OV(e); } else { if (!U.U.L.LARG()) { if (d == "ue") { U.M.divdoubleClick("US_Excel", b, a); } else { if (d == "uw") { U.M.divdoubleClick("US_Word", b, a); } else { U.Dk.LE.OFT(e.UserFilesServerName, e.UserallDirectoryName, a); } } } } } } U.Dk.RM.DRC(); } else { if (US.userInfo.userid == a && (U.AFB.GoList["disk" + a]["OL"] == 1)) { U.D.ZYXB(0, false, "WZ"); } U.AFB.AddEvent([[U.Dk.LE.OFO, ([e, b, a])]], "disk" + a); } }; U.Dk.LE.USOS = function (a, c, e, b, g, f) { if (!U.U.L.LARG()) { if (Guid.test(a)) { var d = top.U.Dk.M.ufinfoarray("onefind", a); if (US.userInfo.userid == US.Disk.diskfileTree[1][0].UserId && U.Dk.M.ufinfoarray("PDQX", d.UserDirectoryParentID)) { if (d.UsOffice != c) { U.Alert("保存中..."); top.U.Adisk.Request("UseStudioDisk.OffMDF", ([a, c]), top.U.Dk.LE.AsynUSOS, (["", a, c])); } else { top.U.Alert("保存成功"); } } else { U.Alert("拒绝访问"); } (b) && (U.M.apply(this, [b])()); } else { if ((c != "" || g)) { U.Alert("请新建一个文件再保存"); U.M.divdoubleClick("UseStudioUserDiskDiv", f || US["DG"], US.userInfo.userid); (b == null) && (b = []); b.push([top.U.Dk.LE.NUSOS, ([c, e])]); top.U.Dk.RE.CMB(e, U.M.apply(this, b)); } else { U.Alert("拒绝访问"); } } } }; U.Dk.LE.NUSOS = function (d, e, b, a) { var c = b[1]["UserDirectoryID"]; if (e == "UW") { window.frames["US_WordFrame"].U.Word.TF["ID"] = c; } else { window.frames["US_ExcelFrame"].U.Excel.TF[c] = window.frames["US_ExcelFrame"].U.Excel.TF["ID"]; window.frames["US_ExcelFrame"].U.Excel.SY["ID"] = c; } U.Dk.LE.USOS(c, d, e); }; U.Dk.LE.AsynUSOS = function (b) { var a = b.context; b = b.value; if (b) { var c = top.U.Dk.M.ufinfoarray("onefind", a[1]); c.UsOffice = a[2]; c.UserDirectoryModifyTime = U.MT.SetDT(); top.U.Alert("保存成功"); } else { U.Alert("磁盘空间已满,无法修改内容"); } }; U.Dk.LE.OFO = function (c, b, a) { U.Dk.DiskOperatingSwitch(a); US.Disk.diskfileTree[1][1] = c.UserDirectoryID; $("div#UDK_N_PX_PX", US.Disk.diskfileTree[1][3])[0].onclick = U.M.apply(this, [[U.Dk.HP.AtTimeS, ([c.UserDirectoryID])]]); U.Dk.VW.NOD(US.Disk.diskfileTree[1][4], c.UserDirectoryID); U.Dk.LL.Nav(b, a); }; U.Dk.LE.OFT = function (c, e, a) { var d = c.split(".")[1], b = (US.userInfo.userid == a); if (U.UP.SFT("Office").indexOf(d) > -1) { U.Alert("正在努力的打开中,请稍后"); window.open("/userpages/U_OF.aspx?fileservername=" + c + "&filename=" + e + "&IsU=" + b + "&usrd=" + Math.random() + "&UserId=" + US.userInfo.userid); } else { U.Dk.RE.ODL(c, e); } }; U.Dk.LE.OIMG = function (c, d) { var b = U.Dk.M.ufinfoarray("find", ([d.UserDirectoryParentID, 1])); var a = U.Dk.M.ufinfoarray("spliceimg", ([b, c])); U.Img.Create(a[0], a[1], { "TF": 2 }); }; U.Dk.LE.OM = function (a) { var b = U.Dk.LE.GM(a.UserDirectoryParentID); U.MPlayer.Open(b[0], b[1], a.UserDirectoryID); }; U.Dk.LE.GM = function (b) { var a = U.Dk.M.ufinfoarray("onefind", b); return U.Dk.M.ufinfoarray("GetMusic", a); }; U.Dk.LE.OV = function (a) { U.M.divdoubleClick("UseStudioBrowserDiv", a.UserFilesServerName, null); }; Namespace.register("U.Dk.LL"); U.Dk.LL.Nav = function (d, a) { U.Dk.DiskOperatingSwitch(a); var f = $("div#UDK_HP_UpFile", US.Disk.diskfileTree[1][3])[0]; var c = $("div#UDK_N_ArticleNav", US.Disk.diskfileTree[1][3])[0]; c.innerHTML = ""; var b = U.Dk.M.ufinfoarray("RecurD", d); $$("div", { "className": "UDK_L_DiskGE UDK_N_HOME", "title": b[b.length - 1]["UserallDirectoryName"], "onclick": [[U.Dk.LL.UDKURL, ([b[b.length - 1].UserDirectoryID])], [U.Dk.LE.DBC, ([b[b.length - 1].UserDirectoryID, a])]] }, c); for (var e = b.length - 1; e--;) { $$("span", { "title": b[e]["UserallDirectoryName"], "onclick": [[U.Dk.LL.UDKURL, ([b[e].UserDirectoryID])], [U.Dk.LE.DBC, ([b[e].UserDirectoryID, a])]], "innerHTML": "> " + b[e].UserDirectoryName }, c); } U.Dk.M.Nav("islength"); U.Dk.HP.CPT(b[b.length - 1].UserDirectoryID); if (f) { U.Dk.UP.SFUW(f, b[b.length - 1].UserDirectoryID, a, b[0].UserDirectoryID); } }; U.Dk.LL.SM = function (e, g, b) { U.Dk.DiskOperatingSwitch(g); var c = $("div", e)[0]; var d = $("div", e.parentNode).length - 1; var f = "UDK_L_DiskGE UR_I_D_E UDK_L_USTreesign"; if (d > 1) { e.parentNode.removeChild(e.parentNode.lastChild); } else { var a = U.Dk.M.ufinfoarray("find", ([b, 0])); if (a != null) { U.Dk.VW.LV(a, e.parentNode); f = "UDK_L_DiskGE UR_I_D_S UDK_L_USTreesign"; } } c.className = f; U.Dk.LL.VM(e); }; U.Dk.LL.VM = function (a) { if (US.Disk.diskfileTree[1][5]) { $(US.Disk.diskfileTree[1][5]); US.Disk.diskfileTree[1][5].style.border = "0"; US.Disk.diskfileTree[1][5].style.backgroundColor = ""; } a.style.backgroundColor = "#dee6ef"; US.Disk.diskfileTree[1][5] = a; }; U.Dk.LL.UDKURL = function (b) { var a = U.Dk.M.ufinfoarray("RecurD", b), c = U.Dk.UP.UPF(a[a.length - 1].UserDirectoryID)[3]; (c) && (U.D.G.UrlWrite(c + "/" + US.Disk.diskfileTree[1][0].UserName, US.Disk.diskfileTree[1][0].UserNickName + "的硬盘")); }; U.Dk.LL.TD = function (a) { U.UI.Confirm("将切换到硬盘首页,确认吗?", [U.Dk.LL.TDQH, ([a])], ""); }; U.Dk.LL.TDQH = function (a) { U.Dk.NologinDiskDown(US.userInfo.userid || US.NU, US.DG); U.M.StopBubble(); }; Namespace.register("U.Dk.M"); US.Disk.DiskDaren = {}; US.Disk.UserDisk = {}; US.Disk.diskfileTree; US.Disk.Layer = { "step": 20, "LI": null }; U.Dk.RightAuthority; U.Dk.RE.CE = []; U.Dk.M.refreshfile = function () { var d, g, b, c, a = US.Disk.diskfileTree[0], f = US.Disk.diskfileTree[1][0].UserDiskND = [], e = 0; for (d = 0; d < a.length; d++) { U.Dk.M.RUS(a[d]); if (a[d].UserDirectoryParentID == US.PG) { switch (a[d].UserallDirectoryName) { case "用户头像": g = a[d].UserDirectoryID; break; case "背景图片": b = a[d].UserDirectoryID; break; case "临时图片": f.push(a[d].UserDirectoryID); break; } } else { if (a[d].UserDirectoryParentID == US.DG && a[d].UserallDirectoryName == "临时目录") { f.push(a[d].UserDirectoryID); } } if (a[d].filetype == 1) { e++; } } US.Disk.diskfileTree[1][0].FilesCount = e; c = U.Dk.M.GetUserHeadImage(([g, b])); US.Disk.diskfileTree[1][0]["DiskHeadImg"] = c[0]; US.Disk.diskfileTree[1][0]["UserBImage"] = c[1]; if (US.userInfo.userid == US.Disk.diskfileTree[1][2]) { US.userInfo["DHID"] = g; US.userInfo["BHID"] = b; US.userInfo["DiskHeadImg"] = c[0]; US.userInfo["UserBImage"] = c[1]; } }; U.Dk.M.RUS = function (a) { a.UserDirectoryName = a.UserallDirectoryName; a.UserDirectoryName = a.UserDirectoryName.length > 10 ? a.UserDirectoryName.substring(0, 10) + "..." : a.UserDirectoryName; a.UserDirectoryExtendType = a.UserDirectoryEncrypt != null ? "folderencrypt" : a.UserDirectoryExtendType; a.UserFilesServerName = a.UserFilesServerName == null ? null : a.UserFilesServerName.toLowerCase(); a.UserDirectoryUrl = (a.UserDirectoryExtendType && a.UserDirectoryUrl != null && a.UserDirectoryUrl.indexOf("background") == -1) ? US.fs + a.UserDirectoryUrl.toLowerCase().replace(US.fs, "") : U.Dk.HP.FFT(a.UserDirectoryExtendType.toLowerCase())[1]; a.UserDirectoryModifyTime = a.UserDirectoryModifyTime || a.UserDirectoryAddTime; return a; }; U.Dk.M.GetUserHeadImage = function (c) { var g = US.Disk.diskfileTree[0]; var b, f = 0, d = [], a = [], e = US.Disk.diskfileTree[1][0].UserDiskND; for (b = 0; b < g.length; b++) { if (g[b].UserDirectoryParentID == c[0]) { d.push(g[b]); } else { if (g[b].UserDirectoryParentID == c[1]) { a.push(g[b]); } } (g[b].UserDirectoryParentID != e[0] && g[b].UserDirectoryParentID != e[1] && g[b].GroupID == null) && (f += g[b].UserDirectorySize); } US.Disk.diskfileTree[1][0].FileSize = Math.ceil(f / (1024 * 1024)); return [d, a]; }; U.Dk.M.AddUserHBImage = function (a, b) { if (US.userInfo["DHID"] == a) { US.userInfo["DiskHeadImg"].push(b); } else { if (US.userInfo["BHID"]) { US.userInfo["UserBImage"].push(b); } } }; U.Dk.M.ufinfoarray = function (a, b) { switch (a) { case "find": return U.Dk.M.findfile(b); break; case "onefind": return U.Dk.M.onefindfile(b); break; case "Distinguish": return U.Dk.M.Distinguish(b); break; break; case "RecurD": return U.Dk.M.RecurD(b); break; case "SFF": return U.Dk.M.SFF(b); break; case "AddCS": U.Dk.M.AddCS(b); break; case "AddNCS": U.Dk.M.AddNCS(b); break; case "spliceMusic": return U.Dk.M.MusicJson(b); break; case "spliceimg": return U.Dk.M.ImgJson(b); break; case "AllMusic": return U.Dk.M.AllMusic(); case "GetMusic": return U.Dk.M.GetMusic(b); break; case "TFFM": return U.Dk.M.TFFM(b); break; case "GetFBT": return U.Dk.M.GetFBT(b); break; case "GDBFM": return U.Dk.M.GDBFM(b); break; case "PDQX": return U.Dk.M.PDQX(b); break; } if (US.userInfo.userid == null) { return; } U.Dk.DiskOperatingSwitch(US.userInfo.userid); switch (a) { case "add": U.Dk.M.addfindfile(b); break; case "delete": U.Dk.M.deletefriend(b); break; case "IsSName": return U.Dk.M.IsSName(b); break; } }; U.Dk.M.PDQX = function (c) { var b, a = U.Dk.M.RecurD(c); for (b = 0; b < a.length; b++) { if (a[b].UserDirectoryEncrypt == "true" && a[b].GroupID != null) { return false; } } return a; }; U.Dk.M.findfile = function (b) { b[0] = b[0].toLowerCase(); var d = US.Disk.diskfileTree[0]; var a, c = []; if (b[1] == null) { for (a = 0, j = 0; a < d.length; a++) { if (d[a].UserDirectoryParentID == b[0]) { c.push(d[a]); } } } else { for (a = 0; a < d.length; a++) { if (d[a].UserDirectoryParentID == b[0]) { if (d[a].filetype == b[1]) { c.push(d[a]); } } } } return c; }; U.Dk.M.onefindfile = function (c) { var d = US.Disk.diskfileTree[0]; for (var b = 0, a = 0; b < d.length; b++) { if (d[b].UserDirectoryID == c) { return d[b]; } } }; U.Dk.M.GetFBT = function (c) { var b, d = [], a = US.Disk.diskfileTree; (typeof c != "object") && (c = [c, null]); if (a && (a = a[0])) { for (b = 0; b < a.length; b++) { if (a[b].UserDirectoryExtendType.toLocaleLowerCase() == (c[0] || c) && (c[1] == null || a[b].UserDirectoryParentID == c[1])) { d.push(a[b]); } } } return d; }; U.Dk.M.IsSName = function (b) { var a, c = b[0]; for (a = 0; a < c.length; a++) { if (c[a].UserallDirectoryName == b[1] && c[a].UserDirectoryExtendType == b[2]) { return false; } } return true; }; U.Dk.M.RecurD = function (d) { var b = [], e = []; var a = US.Disk.diskfileTree[0]; for (var c = 0; c < a.length; c++) { if (a[c].UserDirectoryID == d) { b.push(a[c]); if (a[c].UserDirectoryDeep == 1) { return b; } e = U.Dk.M.RecurD(a[c].UserDirectoryParentID); return b.concat(e); } } return []; }; U.Dk.M.addfindfile = function (b) { var c = b.length != null ? b : [b]; for (var a = 0; a < c.length; a++) { U.Dk.M.RUS(c[a]); } US.Disk.diskfileTree[0] = US.Disk.diskfileTree[0].concat(c); }; U.Dk.M.deletefindfile = function (b) { var c = US.Disk.diskfileTree[0]; for (var a = 0; a < c.length; a++) { if (c[a].UserDirectoryID == b) { return (c.splice(a, 1)); } } }; U.Dk.M.SFF = function (d) { var b = []; var a = US.Disk.diskfileTree[0]; for (var c = 0; c < a.length; c++) { if ((a[c].UserallDirectoryName.indexOf(d) > -1 || (a[c].Descript != null && a[c].Descript.indexOf(d) > -1)) && (a[c].Descript != "" && a[c].UserallDirectoryName != "")) { b.push(a[c]); } } return b; }; U.Dk.M.Entity = function (a) { this.UserDirectoryID = a[0]; this.UserDirectorySize = a[1]; this.UserDirectoryParentID = a[2]; this.UserDirectoryName = a[3]; this.UserallDirectoryName = a[4]; this.UserDirectoryExtendType = a[5]; this.UserFilesServerName = a[6]; this.UserDirectoryAddTime = a[7]; this.UserDirectoryUrl = a[8]; this.UserDirectoryDeep = a[9]; this.UserDirectoryModifyTime = a[10]; this.UserDirectoryEncrypt = a[11]; this.filetype = a[12]; this.Descript = a[13]; this.GroupID = a[14]; this.UsOffice = a[15]; }; U.Dk.M.Distinguish = function (c) { var b, a = [], d = [], e = []; for (b = 0; b < c.length; b++) { if (c[b].filetype == 0) { d.push(c[b]); } else { if (c[b].UserDirectoryExtendType == "mp3") { e.push(c[b]); } } } a.push(d); a.push(e); return a; }; U.Dk.M.AllMusic = function () { return U.Dk.M.GetFBT("mp3"); }; U.Dk.M.GetMusic = function (b) { var e, d, c = []; c[0] = [], c[1] = []; e = U.Dk.M.ufinfoarray("find", ([b.UserDirectoryID])); d = U.Dk.M.ufinfoarray("Distinguish", e); c[0] = [b, d[1]]; for (var a = 0; a < d[0].length; a++) { c[1][a] = []; c[1][a] = U.Dk.M.GetMusic(d[0][a]); } return c; }; U.Dk.M.ImgJson = function (d) { var e = [], c = {}; var a; for (var b = 0; b < d[0].length; b++) { if (d[0][b].UserDirectoryID == d[1]) { a = b; } c["Thm"] = d[0][b].UserDirectoryUrl.replace("background-image:url(", "").replace(");", ""); c["Img"] = US.fs + d[0][b].UserFilesServerName; c["FilesID"] = d[1]; e.push(c); c = {}; } return ([e, a]); }; U.Dk.M.seqencing = function (a) { U.M.Sequence(a, "UserDirectoryAddTime", U.MT.comptime); return a; }; U.Dk.M.TFFM = function (b) { var a, c = US.Disk.diskfileTree[1][0].UserDiskND; for (a = 0; a < c.length; a++) { if (b == c[a]) { return true; } } return false; }; U.Dk.M.GDBFM = function (a) { var b = U.Dk.M.GetFBT(a); U.M.Sequence(b, "UserDirectoryModifyTime", U.MT.comptime); if (b.length > 0) { b = U.Dk.M.GetFBT(["uw", b[b.length - 1].UserDirectoryParentID]); } return b; }; U.Dk.M.Daren = function (a, b) { switch (a) { case "AddDaren": U.Dk.M.AddDaren(b); break; case "AddPND": U.Dk.M.AddPND(b); break; case "STopD": return U.Dk.M.STopD(b); break; case "GetPND": return U.Dk.M.GetPND(b); break; } }; U.Dk.M.AddDaren = function (a) { US.Disk.DiskDaren["HF"] = a[0]; US.Disk.DiskDaren["TF"] = a[2]; }; U.Dk.M.STopD = function (c) { var b, d = [], a = US.Disk.DiskDaren["TF"]; for (b = 0; b < a.length; b++) { if (a[b]["T"] == c) { d.push(a[b]); } if (d.length == 10) { break; } } return d; }; U.Dk.M.AddPND = function (b) { var a = US.Disk.DiskDaren[b[0]]; if (a == null) { US.Disk.DiskDaren[b[0]] = []; a = US.Disk.DiskDaren[b[0]]; } if (a[b[1]] == null) { a[b[1]] = []; } a = a[b[1]]; a[b[2]] = a[b[2]] ? b[3].concat(a[b[2]]) : b[3]; }; U.Dk.M.GetPND = function (b) { var a = US.Disk.DiskDaren[b[0]]; if (a) { a = a[b[1]]; if (a) { a = a[b[2]]; if (a) { return a.slice(b[3], b[4]); } } } }; U.Dk.M.Nav = function (a, b) { switch (a) { case "add": U.Dk.M.AddNav(); break; case "islength": U.Dk.M.IsNav(); break; case "change": U.Dk.M.navchange(b); break; } }; U.Dk.M.AddNav = function (a) { }; U.Dk.M.IsNav = function () { var e, d, b, g = $("div#UDK_N_ArticleNav", US.Disk.diskfileTree[1][3])[0], a = Math.round(g.parentNode.parentNode.parentNode.offsetWidth / 9), f = g.getElementsByTagName("span"), c = g.offsetWidth; e = b = 0; d = 10; for (e = b; e < f.length; e++) { f[e].style.display = "block"; d += f[e].innerText.length + 5; if (d > a) { f[b].style.display = "none"; d -= (f[b].innerText.length + 5); b++; } } }; U.Dk.M.navchange = function (c) { var b; var d = $("div#UDK_N_ArticleNav", US.Disk.diskfileTree[1][3])[0]; var a = $("span", d)[0]; for (b = c; b <= a.length;) { Deepid = a[b]; if (Deepid != null) { d.removeChild(Deepid); } else { return; } } }; Namespace.register("U.Dk.RM"); U.Dk.RM.DRC = function (i, e, d) { if (event && event.button == 2 && e != null) { U.Dk.DiskOperatingSwitch(d); var b, j = U.Dk.M.ufinfoarray("onefind", e == "add" ? US.Disk.diskfileTree[1][1] : e); if (e == "add") { b = U.Dk.M.ufinfoarray("PDQX", j.UserDirectoryID); (b != false) && (b.splice(0, 1)); if (b && (U.Dk.RightAuthority || j.GroupID || (b[0] && b[b.length - 1].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 (U.Dk.M.ufinfoarray("TFFM", US.Disk.diskfileTree[1][1]) || b === false) { _UDV[11] = _UDV[16] = "none"; } } if (U.Dk.RE.CE.length > 0) { $("p#UDK_LR_S", US.Disk.diskfileTree[1][3])[0].className = "UR_P"; } } else { var h = true; if (U.D.DragE) { h = U.D.DragE.Event(); } if (h) { var f = j.UserDirectoryExtendType == "folderencrypt" ? "folder" : j.UserDirectoryExtendType; if (f == "folder") { var g = $("p#UDK_R_encryptwindow", US.Disk.diskfileTree[1][3])[0], a = j.UserDirectoryEncrypt || null, c = ["UR_I_D_Lock", "加密"]; if (a) { c = ["UR_I_D_UN", "解密"]; } g.innerHTML = ""; $$("span", { "className": "UR_Span", "innerHTML": c[1] }, g); if (j.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"]; } } else { if (U.Dk.M.ufinfoarray("TFFM", j.UserDirectoryParentID)) { _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 { j = U.Dk.RM.MFDRC(U.D.DragE.TC); if (j.length == 0) { U.D.DragE.SetHover(); U.Alert("文件夹不支持多选功能"); } else { _UDV = ["block", "none", "none", "none", "none", "none", "none", "none", "none", "block", "none", "none", "none", "none", "none", "none", "block"]; } if (U.Dk.M.ufinfoarray("TFFM", j[0].UserDirectoryParentID)) { _UDV[17] = _UDV[9] = "none"; } } U.Dk.RM.SLM(([[i.onclick], [U.Dk.RE.UFCopy, ([j])], [U.Dk.RE.AB, (["this", e])], [U.Dk.RE.ODL, ([j.UserFilesServerName, j.UserallDirectoryName, j.UserDirectoryID])], [U.D.CM.CMSS, ([e, 1])], [U.Dk.RE.SHEW, (["this.innerText", e])], [U.Dk.RE.MRNT, (["this", e])], [U.Dk.RE.DMB, ([j])], [U.Dk.RE.UFCopy, ([j, "Cut"])]])); } U.Dk.RM.VHIDDEN(_UDV); U.Dk.HP.RM(); U.M.StopBubble(); } else { if (e == null) { U.M.StopBubble(); } $("div#UDK_R_rightMouseClickDiv", US.Disk.diskfileTree[1][3])[0].style.visibility = "hidden"; U.Dk.HP.FunDN($("div#UDK_FF", US.Disk.diskfileTree[1][3])[0]); } }; U.Dk.RM.VHIDDEN = function (e) { var d = $("p", US.Disk.diskfileTree[1][3]); var b = ["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 (var c = 0; c < 8; c++) { d[b[c]].parentNode.style.display = e[c]; } if (US.userInfo.userid == US.Disk.diskfileTree[1][0].UserId) { for (var a = 8; a < b.length; a++) { d[b[a]].parentNode.style.display = e[a]; } } }; U.Dk.RM.SLM = function (e) { var d = $("p", US.Disk.diskfileTree[1][3]); var b = ["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 (var c = 0; c < 5; c++) { d[b[c]].onclick = U.M.apply(this, [e[c]]); } if (US.userInfo.userid == US.Disk.diskfileTree[1][0].UserId) { for (var a = 5; a < b.length; a++) { d[b[a]].onclick = U.M.apply(this, [e[a]]); } } }; U.Dk.RM.SetFunD = function (g, d) { var f = U.M.GTPN(g, "UDK"), e = $("div#UDK_FF", f)[0]; var a = [[], [U.Dk.RE.DMB, ([d])], (d.filetype == 0 ? [U.Dk.RE.SHEW, ([d.UserDirectoryEncrypt ? "解密" : "加密", d.UserDirectoryID])] : []), [], (d.filetype == 1 ? [U.Dk.RE.ODL, ([d, d.UserallDirectoryName])] : [])]; var c = $("div", e); for (var b = 0; b < c.length; b++) { c[b].onclick = U.M.apply(c[b], ([a[b]])); } }; U.Dk.RM.MFDRC = function (c) { var b, a, d = []; for (b = 0; b < c.length; b++) { a = U.Dk.M.ufinfoarray("onefind", c[b].id.substr(4)); if (a.filetype == 1) { d.push(a); } } return d; }; Namespace.register("U.Dk.S"); U.Dk.S.P; U.Dk.S.SDSD = function (h, b) { var e = $("div", h.parentNode); var f = U.M.GTPN(h, "UDK_SSD"); var d = $("div#UDK_SSD_C", f)[0]; var g = $("input", f)[0]; var a = $("div", g.parentNode.parentNode)[1]; for (var c = 0; c < e.length; c++) { if (e[c].style.color == "#5e85bb" && e[c] == h) { return; } } e.addAttrArray({ "style": { "color": "" }, "className": "" }); U.Dk.S.P = null; U.M.GTCN(d.childNodes)[1].innerHTML = ""; $(h).addAttrArray({ "style": { "color": "#5e85bb" }, "className": "UDK_SSD_HO" }); a.onclick = U.M.apply(a, [[U.Dk.S.SetSCH, ([g, 1, b, d])]]); a.onclick(); }; U.Dk.S.SetSCH = function (e, c, a, b) { var d = U.M.GTCN(b.childNodes); U.M.GTCN(b.childNodes)[1].innerHTML = ""; d[0].style.display = "block"; $("div", d[0])[0].innerHTML = e.value; b.parentNode.parentNode.onscroll = U.M.SSCH({ "AF": U.M.apply(null, [[U.Dk.S.SFND, ([e, a, b])]]) }).SCH(); U.Dk.S.DSD(e, c, a, b); }; U.Dk.S.SFND = function (c, a, b) { U.Dk.S.DSD(c, this.P + 2, a, b); }; U.Dk.S.STFND = function (b) { var a = $("input", U.M.GTPN(b, "UDK_S"))[1]; U.Dk.NologinDiskDown(US.NU, ""); a.value = b.value; $("div", a.parentNode.parentNode)[1].onclick(); }; U.Dk.S.DSD = function (d, c, a, b) { a = U.UP.SFT(a); if (d.value.IsGEdit() && d.value != "搜索云文件..") { if (U.Dk.S.P == null || U.Dk.S.P > (c * 100 - 99)) { U.Adisk.Request("UseStudioDisk.Managequery", ([d.value, a, c * 100 - 99, c * 100]), U.Dk.S.AsynDSD, (["", b, d])); } } else { $("img", b)[0].style.display = "block"; $("div", b)[0].style.display = "none"; } }; U.Dk.S.AsynDSD = function (b) { var a = b.context; b = b.value; U.M.GTCN(a[1].childNodes)[2].style.display = "none"; if (b.length) { U.Dk.S.P = b[0]["AllF"]; U.Dk.S.SetDSD(U.M.GTCN(a[1].childNodes)[1], b); } else { U.Dk.S.P = null; } }; U.Dk.S.SetDSD = function (a, e) { var d, b, g, f, c = document.createDocumentFragment(); for (d = 0; d < e.length; d++) { f = U.Dk.HP.IsDF(e[d].UserFilesExtendName)[0]; g = $$("div", { "className": "UDK_RT_application", "title": e[d].UserFilesName }, c); b = $$("div", { "className": "UDK_RT_UDD Radius5", "style": { "position": "static" }, "onclick": [[U.M.StopBubble], [U.Dk.NologinDiskDown, ([e[d].UserID, e[d].UserDirectoryID, true])]] }, g); if (f == "P") { $$("img", { "className": "UDK_RT_UDD_DV", "src": US.fs + e[d].UseFilesServerThumbnailName, "onerror": [[U.M.ImgError, (["this", 1])]] }, b); } else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_UDD_DV", "style": { "cssText": U.Dk.HP.FFT(e[d].UserFilesExtendName)[1] } }, b); } $$("span", { "innerHTML": e[d].UserFilesName.length > 10 ? e[d].UserFilesName.substr(0, 10) + "..." : e[d].UserFilesName }, b); } a.appendChild(c); }; U.Dk.S.LSearch = function (a) { if (a.value != "" && a.value != "搜索文件") { var c = $("div#UDK_LR_directoryListArea", US.Disk.diskfileTree[1][3])[0]; if (a.value.IsGEdit()) { var b = U.Dk.M.ufinfoarray("SFF", a.value.Trim()); c.innerHTML = ""; if (US.Disk.diskfileTree[1][4] == "Normal") { if (b != "" || a.value != "搜索文件") { c.innerHTML = ""; } U.Dk.VW.PD(b, c); } else { U.Dk.VW.PTD(b, c); } } } else { U.Alert("请输入想要搜索的内容!"); } }; Namespace.register("U.Dk.UP"); 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": [] }; U.Dk.UP.SFUW = function (f, e, b, d) { var a = $("#UDK_UP")[0], c = U.Dk.M.ufinfoarray("PDQX", d); if (c) { f.onclick = U.M.apply(this, [[U.M.StopBubble], [U.Dk.UP.FUW, ([e, b, d, { "FCP": U.Dk.UP.SCGUP, "ID": "UDK_FUPB" }])]]); if (a.style.display == "block") { U.D.PopupWindow(a); } } }; U.Dk.UP.FUW = function (c, b, f, g) { if (!U.U.L.LARG()) { var e, h, a = U.Dk.UP.UPF(c), d = $("#UDK_FUPI"); if (c == US.VG) { U.Dk.RE.AUPV(f); return; } if (U.CI.IsHF()) { e = U.Dk.UP.FUP(c, f, a, g); } else { e = U.Dk.UP.HUP(c, f, a); } if (U.Dk.UP.TF) { U.Dk.UP.UP = { "7aeaab56-485f-4150-b781-8ffd86d593ce": [], "93553847-e299-464c-a0e2-c15872efb6ae": [], "8a2135ff-746a-43a8-97b8-552d228a00bb": [], "bf21bf7a-1e95-4194-8e4a-e9334d7d998d": [] }; } if (a[0] == "") { U.Dk.UP.UP = {}; U.Dk.UP.UP[f] = []; } $("div", e)[0].style.display = "block"; U.D.PopupWindow(e); h = d.GetElementInfo(); U.D.Tb.WindowRestore($("div", e)[0], null, "上传"); if (US.Disk.diskfileTree[0].length < 7) { U.D.ZYBH([false, "云端在线,体验云服务", "setp3:点击上传文件按钮,上传您的一个文件吧", null, { "X": h["TX"], "Y": h["TY"], "L": h["TX"] + 80, "T": h["TY"] - 350 }, "UD_ZY_CDIF", [-18, 3, "UD_ZYQT"]], d[0]); } } }; U.Dk.UP.HUP = function (c, e, b) { var d = $("#UDK_UP")[0], g = $("#UDK_UP_CC")[0], f = $("div", d), a = $("input", d)[0]; $("span", d)[0].innerHTML = "文件普通上传" + "(" + b[1] + "目前最大支持" + b[2] + ")"; if (U.Dk.UP.TF) { f[8].innerHTML = ""; } a.onchange = U.M.apply(a, [[U.Dk.UP.UPLUP, ([a, g, e])]]); f[f.length - 1].onclick = U.M.apply(a, [[U.Dk.UP.SOUP, ([c, e])]]); return d; }; U.Dk.UP.FUP = function (b, e, a, g) { var f, d = false, c = $("#UDK_FUP")[0], h = $("div", c); U.Dk.UP.FTF["ID"] = e; U.Dk.UP.FTF["DID"] = b, _UWH = { "height": 30, "width": 88 }; _UTF = U.Dk.UP.FTF["FUN"] = {}; if (g) { for (f in g) { if (g.hasOwnProperty(f)) { (_UWH[f]) && (_UWH[f] = g[f], d = true); (!d) && (_UTF[f] = g[f]); d = false; } } } h[2].innerHTML = "文件普通上传" + "(" + a[1] + "目前最大支持" + a[2] + ")"; U.UP.FAFZ(_UWH, {}, g ? g["GS"] : null); U.Dk.UP.FTF["URL"] = g ? g["URL"] : ""; U.UP.AddFAN(h["UDK_FUPI"], (g ? g["ID"] : "UDK_FUPB"), _UWH); if (U.Dk.UP.TF) { h["UDK_FUPCC"].innerHTML = ""; } return c; }; U.Dk.UP.UPF = function (a) { switch (a) { case US.DG: return [U.UP.SFT("A"), "文件", "100MB", "disk"]; case US.PG: return [U.UP.SFT("P"), "图片", "100MB", "photo"]; case US.MG: return [U.UP.SFT("M"), "音乐", "100MB", "music"]; case US.VG: return [U.UP.SFT("V"), "视频", "100MB", "vedio"]; default: return ["", "友群", "250MB"]; break; } }; U.Dk.UP.UPLUP = function (g, i, e) { if (US.Disk.diskfileTree[1][0].FileSize <= US.userInfo.UserDiskSpace) { var h, j, b, k, a = document.createDocumentFragment(), f = U.UP.GetUpName(g), c = U.UP.SFT("B"); if (!U.UP.UploadFileType(g, c)) { var d = U.MS.produceGuid(); c = U.Dk.HP.IsDF(f[1])[1]; h = $$("div", { "className": "UDK_UP_FILEZL" }, a); $$("div", { "className": "UDK_UP_FILEZLT", "innerHTML": "正在上传中..." }, h); $$("div", { "className": "UDK_L_DiskGE UDK_UP_DELETE", "onclick": U.M.apply(this, [[U.Dk.UP.DE, ([g, c])]]) }, h); $$("div", { "className": "UDK_UP_FILEName", "innerHTML": f[0] }, h); k = $$("div", { "className": "UDK_UP_MXLTdiv" }, h); j = $$("div", { "className": "UDK_UP_LTFrame" }, k); b = $$("div", {}, j); $$("input", { "className": "UDK_UP_LTFTextarea", "onblur": [U.MR.InputTip, (["this", "可输入文件描述...", false])], "onfocus": [U.MR.InputTip, (["this", "可输入文件描述...", true])], "value": "可输入文件描述..." }, b); g.style.display = "none"; b.appendChild(g); $$("input", { "name": "UDK_UP_ic", "className": "UD_filePrew UDK_UP_Add", "type": "file", "onchange": [[U.Dk.UP.UPLUP, (["this", i, e])]] }, $("#UDK_UP_AU")[0]); U.Dk.UP.UP[c] ? U.Dk.UP.UP[c].push([g, h]) : U.Dk.UP.UP[e].push([g, h]); i.appendChild(a); i.scrollTop = i.scrollHeight - i.offsetHeight; } else { U.Alert("该类型不允许上传"); } } else { U.Alert("你的网盘已满,请用积分兑换网盘空间"); } }; U.Dk.UP.SOUP = function (a, b) { for (var c in U.Dk.UP.UP) { if (U.Dk.UP.UP.hasOwnProperty(c)) { if (U.Dk.UP.UP[c].length > 0) { if (a != c) { b = c; } U.Dk.UP.SUP(c, b); return; } } } }; U.Dk.UP.SUP = function (a, c) { var h = U.Dk.UP.UP[a]; if (h.length > 0) { var g, f, j = [], d = $("#UDK_UP_CC")[0]; for (var b = 0; b < h.length; b++) { f = $("input", h[b][1])[0]; $("div", h[b][1])[0].style.display = "block"; g = $$("div", {}); g.appendChild(h[b][0]); $$("input", { "type": "text", "name": "UDK_UP_LTF", "value": (f.value == "可输入文件描述..." ? "" : f.value.SubstrU(40)) }, g); j.push(g); } if (j.length > 0) { U.Alert("正在上传,请稍后查看"); var e = U.Dk.M.ufinfoarray("RecurD", a); U.Dk.UP.TF = false; U.UP.uploading(j, U.Dk.UP.AsnySUP, ([a, c, e[0]]), "http://disk.1473.cn/USupfile.ashx?iframename=UploadFlashfile&DirectoryId=" + c + "&GroupId=" + (e[e.length - 1].GroupID || ""), true); } else { U.Alert("上传文件为空,无法上传"); } return true; } return false; }; U.Dk.UP.DE = function (c, a) { for (var b = 0; b < U.Dk.UP.UP[a].length; b++) { if (U.Dk.UP.UP[a][b][0] == c) { U.Dk.UP.UP[a][b][1].parentNode.removeChild(U.Dk.UP.UP[a][b][1]); U.Dk.UP.UP[a].splice(b, 1); return; } } }; U.Dk.UP.AsnySUP = function (d) { var c = d.context; var a = d.UpObj; d = d.value; var e = $("input", a)[0]; U.Dk.UP.DE(e, c[0]); if (d == "flase" || d == undefined) { U.Alert("上传不允许超过25M"); } else { var b = U.UP.GetUpName(e); U.Dk.UP.SCGUP(d, { "type": b[1], "name": b[0], "size": d[3], "ID": c[0] }, c[2]); if (U.Dk.UP.UP[c[0]].length == 0) { U.Dk.UP.SOUP(); } } }; U.Dk.UP.FTF = { "FL": [], "DID": "", "ID": "", "JD": [], "F": [], "ITF": [], "FUN": { "URL": "", "EX": "", "ADD": "", "ACP": "", "CP": "", "JDT": "", "FCP": "", "AFCP": "" } }; U.Dk.UP.FLUP = function (c, d) { U.Dk.UP.FTF["ITF"] = [c, d]; var g, b = U.Dk.UP.FTF["FL"], a = U.Dk.UP.FTF["F"][c]; if (a == null) { b.splice(d, 1); U.Dk.UP.FX(b[0]); a = U.Dk.UP.FTF["F"][c]; } if (a) { if (a["size"] > 102400000) { U.Alert("最大上传文件不可以超过100M"); U.Dk.UP.DFF(0, U.Dk.UP.FTF["JD"][U.Dk.UP.FTF["ITF"][0]].parentNode.parentNode, 0); } if (b[0]["FUN"]["URL"]) { a.URL = b[0]["FUN"]["URL"]; } else { var e = U.Dk.M.ufinfoarray("RecurD", a.ID), f = e[e.length - 1].GroupID; a.DID = U.Dk.HP.IsDF(a.type.substr(1))[1]; if (f == null && e[e.length - 1].UserDirectoryID != a.DID) { a.ID = a.DID; } a.URL = "http://disk.1473.cn/USupfile.ashx?iframename=UploadFlashfile&DirectoryId=" + a.ID + "&GroupId=" + (f || ""); } if ((U.Dk.HP.GetSfileS(US.Disk.diskfileTree[1][0].FileSize + "M") + a.size) >= U.Dk.HP.GetSfileS(US.userInfo.UserDiskSpace + "M")) { U.Alert("你的网盘已满,请用积分兑换网盘空间"); return; } U.UP.FTF["EL"].UpLoad(c); U.Alert("正在上传" + a["name"] + "文件,请等待"); } else { U.Dk.UP.FLACP(g); U.Alert("所有文件已经上传完毕.."); } }; U.Dk.UP.IsFUp = function (e, b) { var a = U.Dk.UP.FTF["F"][b], c = U.Dk.M.ufinfoarray("RecurD", a.ID), d; (c.length > 0) && (d = c[c.length - 1].GroupID); U.Adisk.Request("UseStudioDisk.IsFUp", ([a.ID || "", d || "", a.size, e, a.type.substr(1)]), U.Dk.UP.AsynIsFUp, (["", a, c])); }; U.Dk.UP.AsynIsFUp = function (request) { var context = request.context, _FL = U.Dk.UP.FTF["FL"], _UFI = context[1]; request = request.value; try { request = eval(request); } catch (e) { } if (request) { U.Dk.UP.SUPF([request[0].UserFilesServerName, request[0].UserFilesID, request[0].UseFilesServerThumbnailName, _UFI.size], context[2]); } else { U.UP.FTF["EL"].URRUP((_UFI.URL + "&UserId=" + US.userInfo.userid + "&IsF=true")); } }; U.Dk.UP.FLAdd = function (e) { var f, c, j = $("#UDK_FUPCC")[0], k = document.createDocumentFragment(), d, b, h, a, l = U.Dk.UP.FTF["FL"], g = { "JD": [], "F": e, "FUN": U.Dk.UP.FTF["FUN"] }; l.push(g); for (f = 0; f < e.length; f++) { d = $$("div", { "className": "UDK_FUPCH UDK_FUPCCC" }, k); b = $$("div", { "className": "UDK_FUPCHL UTDF" }, d); $$("div", { "className": "UDK_L_DiskGE UDK_RT_DL_IMG", "style": { "cssText": U.Dk.HP.FFT(e[f].type.substr(1))[2] } }, b); $$("div", { "className": "UDK_FUPCHLT UTDF", "innerHTML": e[f].name }, b); $$("div", { "className": "UDK_FUPCHD UDK_FUPCHLN UTDF", "style": { "textIndent": "8px" }, "innerHTML": U.Dk.HP.FileSize(e[f].size) }, d); h = $$("div", { "className": "UDK_FUPCHLV UDK_FUPCCJ", "title": "(0%)" }, d); $$("div", { "className": "UDK_FUPCCJO" }, h); g["JD"].push($$("div", { "className": "UDK_FUPCCJT" }, h)); $$("div", { "innerHTML": "(0%)", "className": "UDK_FUPCCJS", "style": { "height": "25px" } }, h); a = $$("div", { "className": "UDK_FUPCHD" }, d); $$("div", { "className": "UDK_L_DiskGE UDK_FUPCCS", "title": "关闭", "onclick": [U.Dk.UP.DFF, ([e[f], d, l.length - 1])] }, a); e[f].ID = U.Dk.UP.FTF["ID"]; } U.Alert("自动过滤病毒文件"); j.appendChild(k); c = g["FUN"]["ADD"]; if (c) { c(e); } U.Dk.UP.TF = false; if (l.length == 1) { U.Dk.UP.FX(g); U.Dk.UP.FLUP(0, 0); } }; U.Dk.UP.FLJD = function (a) { var c = Math.floor((a["Loaded"] / a["Total"]) * 100), b = U.Dk.UP.FTF["JD"][U.Dk.UP.FTF["ITF"][0]]; b.style.width = (c * 1.2) + "px"; b.parentNode.title = $("div", b.parentNode)[2].innerText = "(" + c + "%)"; }; U.Dk.UP.FLCP = function (b) { U.Alert("等待服务器的响应..."); var a = U.Dk.UP.FTF["FL"][0]["FUN"]["CP"]; if (a) { a(); } }; U.Dk.UP.FSLCP = function (UDAT, ITF) { var _URE; try { _URE = eval(UDAT.data); } catch (e) { _URE = UDAT.data; } if (_URE) { U.Dk.UP.SUPF(_URE); } }; U.Dk.UP.SUPF = function (c, e) { var b = U.Dk.UP.FTF["FL"][0]["FUN"]["FCP"], d = U.Dk.UP.FTF["JD"][U.Dk.UP.FTF["ITF"][0]].parentNode.parentNode, a = U.Dk.UP.FTF["F"][U.Dk.UP.FTF["ITF"][0]]; if (b) { b(c, { "type": a.type.substr(1), "name": a.name, "size": a.size, "ID": a["ID"], "DID": a["DID"] }, e); } U.Dk.UP.DFF(a, d, 0); U.Alert("上传文件成功"); }; U.Dk.UP.DFF = function (g, a, f) { var c = U.Dk.UP.FTF["FL"], h = U.Dk.UP.FTF["ITF"], b = U.Dk.UP.GetFWZ(g), e = b[0], d = b[1]; a.parentNode.removeChild(a); U.UP.FTF["EL"].DF(e, d); c[e]["JD"].splice(e, 1); c[e]["F"].splice(e, 1); if (h[0] == d && h[1] == e && c.length > 0) { if (c[e]["F"].length > 0) { U.Dk.UP.FLUP(d, e); } else { c.splice(e, 1); U.Dk.UP.FX(c[0]); U.Dk.UP.FLUP(0, 0); } } }; U.Dk.UP.FX = function (a) { if (a) { U.Dk.UP.FTF["F"] = a["F"]; U.Dk.UP.FTF["JD"] = a["JD"]; } }; U.Dk.UP.GetFWZ = function (d) { var c, b, a = U.Dk.UP.FTF["FL"]; for (c = 0; c < a.length; c++) { for (b = 0; b < a[c]["F"].length; b++) { if (a[c]["F"][b] === d) { return [c, b]; } } } }; U.Dk.UP.FLACP = function (a) { if (arguments.length < 2) { var b = U.Dk.UP.FTF["FUN"]["AFCP"]; (b) && (b()); U.Dk.UP.FTF["FL"] = []; U.Dk.UP.TF = true; } }; U.Dk.UP.FLEX = function (a) { U.Alert(a); U.M.Console(a); }; U.Dk.UP.DAF = function () { U.UP.FTF["EL"].DAF(); }; U.Dk.UP.SCGUP = function (c, b, a) { a = a || U.Dk.M.ufinfoarray("onefind", b["ID"]); c[2] = (c[2] == null ? U.Dk.HP.FFT(b["type"])[1] : US.fs + c[2]); var d = new U.Dk.M.Entity(([c[1], c[3], b["ID"], (b["name"].length > 10 ? b["name"].substr(0, 10) + "..." : b["name"]), b["name"], b["type"].toLowerCase(), c[0], new Date(), c[2], 9999, null, null, 1, b["name"]])); U.Dk.M.ufinfoarray("add", d); U.Dk.M.AddUserHBImage(b["ID"], d); U.Dk.RE.ARFO(d); U.Dk.LE.DBC(b["ID"], US.userInfo.userid); US.Disk.diskfileTree[1][0].FileSize += Math.ceil((b["size"] / 1024) / 1024); U.Dk.onloadLeft(); if (a.GroupId == null) { U.D.BC.SetNews([new U.D.T.CII([c[1], US.userInfo.userid, US.userInfo.UserNickName, US.userInfo.UserThumbnailImageHead, "UD_DiskCon", b["ID"], b["name"], new Date(), d])], true); } }; Namespace.register("U.Dk.VW"); U.Dk.VW.NOD = function (d, a) { var b = US.Disk.diskfileTree[1][3], c = ["-602px -11px", "-659px -12px"]; if (d == "Details") { c = ["-483px -11px", "-540px -12px"]; } $("div#UDK_N_PX_TB", b)[0].style.backgroundPosition = c[0]; $("div#UDK_N_PX_LB", b)[0].style.backgroundPosition = c[1]; US.Disk.diskfileTree[1][1] = a || US.Disk.diskfileTree[1][1]; U.Dk.VW.DT(US.Disk.diskfileTree[1][1]); }; U.Dk.VW.DT = function (b) { var c = U.Dk.M.ufinfoarray("find", ([b])); var a = $("div#UDK_LR_directoryListArea", US.Disk.diskfileTree[1][3])[0]; a.innerHTML = ""; if (US.Disk.diskfileTree[1][4] == "Normal") { U.Dk.VW.PD(c, a); } else { U.Dk.VW.PTD(c, a); } }; U.Dk.VW.PD = function (g, c, j) { var a, f, b, l = document.createDocumentFragment(), d, k, h; if (US.userInfo.userid == US.Disk.diskfileTree[1][0].UserId) { k = true; } if (g.length == 0) { f = $$("div", { "style": { "position": "relative" } }, l); $$("div", { "className": "UDK_L_DiskGE UDK_RT_NFF" }, f); } else { for (var e = 0; e < g.length; e++) { h = (j == g[e].UserDirectoryID); d = U.Dk.HP.IsDF(g[e].UserDirectoryExtendType)[0]; if (!k) { if (g[e].UserDirectoryEncrypt != null) { continue; } } b = $$("div", { "id": "disk" + g[e].UserDirectoryID, "className": "UDK_RT_application" + (h ? " UDK_RT_hover" : ""), "onclick": [[U.Dk.HP.DKDS, (["this"])], [U.Dk.LL.UDKURL, ([g[e].UserDirectoryID])], [U.Dk.LE.DBC, ([g[e].UserDirectoryID, US.Disk.diskfileTree[1][0].UserId])]], "onmousedown": [[U.M.StopBubble], [U.Dk.RM.DRC, (["this", g[e].UserDirectoryID, US.Disk.diskfileTree[1][0].UserId])]] }, l); a = $$("div", { "className": "UDK_RT_UDD Radius5", "onmouseout": [[U.Dk.HP.DKDS, (["this"])], [U.Dk.VW.CH, ([b.childNodes])]], "onmouseover": [U.Dk.HP.DKDS, (["this", g[e].Descript || g[e].UserallDirectoryName])] }, b); if (d == "P") { $$("img", { "className": "UDK_RT_UDD_DV", "src": g[e].UserDirectoryUrl, "onerror": [[U.M.ImgError, (["this", 1])]] }, a); } else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_UDD_DV", "style": { "cssText": "" + g[e].UserDirectoryUrl + ";" } }, a); } $$("span", { "id": "resDataList_name_" + g[e].UserDirectoryID, "innerHTML": g[e].UserDirectoryName }, a); h && (h = b); } } c.appendChild(l); h && (c.scrollTop = h.offsetTop); }; U.Dk.VW.CH = function (a) { if (!(U.M.onmouseout(a[0]))) { if (!(U.M.onmouseout(a[1]))) { a[0].style.backgroundColor = ""; } else { a[0].style.backgroundColor = "#ededed"; } } }; U.Dk.VW.PTD = function (e, g) { if (e.length == 0) { $$("div", { "className": "UDK_L_DiskGE UDK_RT_NFF" }, g); } else { var f, j, d, a, b, h, k = document.createDocumentFragment(); j = $$("div", { "className": "UDK_RT_DL_AT" }, k); $$("div", { "className": "UDK_RS_listspan UDK_RT_DL_ATO", "onclick": [[U.Dk.VW.AS, (["this"])]], "innerHTML": "全选" }, j); $$("div", { "className": "UDK_RS_listspan UDK_RT_DL_ATT", "onclick": [[U.Dk.VW.NOD, ([US.Disk.diskfileTree[1][4], e[0].UserDirectoryParentID])]], "innerHTML": "文件名" }, j); $$("div", { "className": "UDK_RS_listspan UDK_RT_DL_ATF", "onclick": [[U.Dk.HP.AtTimeS, ([e[0].UserDirectoryParentID])]], "innerHTML": "上传时间" }, j); $$("div", { "className": "UDK_RS_listspan", "style": { "width": "10%" }, "innerHTML": "文件大小", "onclick": [[U.Dk.HP.AtSizeS, ([e[0].UserDirectoryParentID])]] }, j); $$("div", { "className": "UDK_RS_listspan", "style": { "textIndent": "1%", "width": "50px" }, "onclick": [[U.Dk.VW.NOD, ([US.Disk.diskfileTree[1][4], e[0].UserDirectoryParentID])]], "innerHTML": "类型" }, j); for (var c = 0; c < e.length; c++) { a = U.Dk.HP.FFT(e[c].UserDirectoryExtendType); b = U.Dk.HP.FileSize(e[c].UserDirectorySize); if (!h) { if (e[c].UserDirectoryEncrypt != null) { continue; } } f = $$("div", { "className": "UDK_RT_Details", "id": "disk" + e[c].UserDirectoryID, "onmousedown": [[U.M.StopBubble], [U.Dk.RM.DRC, (["this", e[c].UserDirectoryID, US.Disk.diskfileTree[1][0].UserId])]], "onclick": [[U.Dk.HP.DKDS, (["this"])], [U.Dk.LL.UDKURL, ([e[c].UserDirectoryID])], [U.Dk.LE.DBC, ([e[c].UserDirectoryID, US.Disk.diskfileTree[1][0].UserId])]] }, k); $$("input", { "type": "checkbox", "check": c, "className": "UDK_RT_DL_CK" }, f); d = $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FN", "id": "resDataList_name_" + e[c].UserDirectoryID }, f); $$("i", { "className": "UDK_L_DiskGE UDK_RT_DL_IMG", "style": { "cssText": a[2] } }, d); $$("div", { "title": e[c].UserallDirectoryName, "innerHTML": e[c].UserallDirectoryName }, d); $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_DT", "innerHTML": U.MT.GetDT(e[c].UserDirectoryAddTime) }, f); $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FZ", "innerHTML": b }, f); $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FT", "id": "reDataList_type_" + e[c].UserDirectoryID, "innerHTML": a[0] }, f); } g.appendChild(k); } }; U.Dk.VW.AS = function (a) { var b = true; var d = $("input", a.parentNode.parentNode); if (d[0]) { if (d[0].checked) { b = false; } } for (var c = 0; c < d.length; c++) { d[c].checked = b; } }; U.Dk.VW.LV = function (b, c) { var a = $$("div", { "style": { "marginLeft": "10px" } }, c); U.Dk.VW.CLV(b, a); }; U.Dk.VW.CLV = function (j, e) { var k, d, h, f, b, c, a = document.createDocumentFragment(); if (US.userInfo.userid == US.Disk.diskfileTree[1][0].UserId) { k = true; } for (var g = 0; g < j.length; g++) { if (!k) { if (j[g].UserDirectoryEncrypt != null) { continue; } } if (j[g].UserDirectoryEncrypt) { b = "UDK_L_USTreeFolderEncryptIcon"; c = "(已加密)"; } else { b = "UDK_L_USTreeFolderIcon"; c = ""; } d = $$("div", { "classNmae": "UDK_L_USTreecontainA", "onclick": [[U.M.StopBubble], [U.Dk.LL.UDKURL, ([US.Disk.diskfileTree[1][1]])], [U.Dk.LE.DBC, ([j[g].UserDirectoryID, US.Disk.diskfileTree[1][0].UserId])]] }, a); h = $$("div", { "className": "UDK_L_USTTitle", "onclick": [U.Dk.LL.SM, (["retElement", US.Disk.diskfileTree[1][0].UserId, j[g].UserDirectoryID])] }, d); $$("div", { "id": j[g].UserDirectoryID + "img", "className": "UDK_L_DiskGE UR_I_D_E UDK_L_USTreesign" }, h); f = $$("a", { "className": "UDK_L_USdisktreeA", "id": "d" + j[g].UserDirectoryID, "onmousedown": [U.Dk.RM.DRC, (["this", j[g].UserDirectoryID, US.Disk.diskfileTree[1][0].UserId])] }, h); $$("i", { "className": "UDK_L_DiskGE " + b }, f); $$("span", { "innerHTML": j[g].UserDirectoryName + c }, f); } e.appendChild(a); }; Namespace.register("U.F.R"); U.F.R.FGC = function (a, d) { var b = U.M.GetMousep(), c = $("#UF_RB_FriDLBox").addAttrArray({ "style": { "display": "block", "left": b["X"] + "px", "top": b["Y"] + "px", "zIndex": 9999 } }); U.F.R.AM(a, d, c[0]); }; U.F.R.AM = function (c, f, a) { var d, e = $("div", a), b = [[U.F.W.DMW, [f]], [U.F.R.FSA, [f, c]], [U.F.R.SOB, (["删除好友", f, c])], [U.F.R.SOB, (["修改备注", f, c])], [U.U.I.POUW, ([f.UserId])]]; for (d = 1; d <= b.length; d++) { if (d != 2) { e[d].onclick = U.M.apply(this, [b[d - 1]]); } else { e[2].onmousemove = U.M.apply(this, [b[d - 1]]); } } }; U.F.R.FSA = function (g, b) { var d, a = US.Friend[0], c = document.createDocumentFragment(), f = $("#UserFriendArrayBox")[0], e = $("#UF_RB_FriDLBox")[0]; f.innerText = ""; if (a.length > 1) { for (d = 0; d < a.length; d++) { if (g.FriendsGroupID != a[d].FriendsGroupID) { $$("div", { "onclick": [U.F.R.MF, ([a[d].FriendsGroupID, g, b])], "innerHTML": a[d].FriendsGroupName }, c); } } f.style.height = ((a.length - 1) * 30) + "px"; f.appendChild(c); U.F.R.DFP(e, f); U.D.SetDTop(f); } }; U.F.R.DFP = function (b, a) { var c = b.offsetLeft, d = c + b.offsetWidth - 1; (d + 142 > US.Width) && (d = c - 142); $(a).addAttrArray({ "style": { "top": b.offsetTop + 54 + "px", "left": d + "px", "display": (b.style.display = "block") } }); }; U.F.R.MF = function (a, c, b) { (b) && (b.style.display = "none"); U.A.Request("UseStudioManage.ModifyFrinedsAjaxMove", ([US.userInfo.userid, c.FriendsID, a]), U.F.R.AsynAFA, ["", a, c]); }; U.F.R.AsynAFA = function (d) { var b, c = d.context, e = c[1], a = c[2]; d = d.value; if (d != null) { b = _$(US.Friend[0]).Select({ "FriendsGroupID": e }, null, 1); _$(US.Friend[1]).Select({ "FriendsID": a.FriendsID })[0].FriendsGroupID = e; (_$(US.Friend[1]).Reset({ "IsLogin": 1 })); U.F.refreshFriends(); U.F.M.PF(a.FriendsGroupID, b.FriendsGroupName, "fg"); } }; U.F.R.SOB = function (c, e, a) { var d, b; if (c == "删除好友") { d = $$("div", { "className": "USFriendsOperational_Delete" }); $$("div", { "id": "DeleteFriendTitle", "innerHTML": " 您确定要删除以下联系人吗?" }, d); $$("img", { "src": U.M.GetImgU(e.UserThumbnailImageHead), "className": "UF_FA_DFNI", "onerror": U.M.ImgError }, d); $$("span", { "className": "UserNameDelete", "innerHTML": e.FriendsDescript }, d); $$("div", { "innerHTML": " 要删除的话,那就无法恢复好友!", "className": "UF_FA_DFNC" }, d); } else { d = $$("div", { "className": "USFriendsOperational_Amend" }); $$("div", { "className": "AmendFriendTitle", "innerHTML": "请输入或修改备注用户和姓名" }, d); $$("input", { "className": "USFriendsName", "type": "text", "value": e.FriendsDescript }, d); } b = new U.UI.Dialog(null, null, c, 350, "", "", "", "", "", U.M.apply(d, [[U.F.R.CF, ([c, a, e])]]), d, ""); U.D.PopupWindow(b.Create()); }; U.F.R.CF = function (b, a, c) { if (b == "修改备注") { U.F.R.CUR($("input", this)[0].value, a, c); } else { U.F.R.DF(a, c); } }; U.F.R.CUR = function (b, a, c) { (b.SubN() == "") && (b = c.UserNickName); U.A.Request("UseStudioManage.ModifyFriendsDescriptName", ([US.userInfo.userid, c.FriendsID, b]), U.F.R.AsynCUR, (["", c, b, a])); }; U.F.R.AsynCUR = function (d) { var c = d.context, b = c[1], e = c[2], a = c[3]; d = d.value; _$(US.Friend[1]).Select({ "FriendsID": b.FriendsID })[0].FriendsDescript = $("span", c[3])[0].innerHTML = e; U.Alert("修改好友备注成功"); }; U.F.R.DF = function (a, b) { U.A.Request("UseStudioManage.USFreindsDeleteFriendAjax", ([US.userInfo.userid, b.FriendsID, b.UserId]), U.F.R.AsynDF, ["", a, b]); }; U.F.R.AsynDF = function (f) { var c, d = f.context, b = d[1], a = d[2], g = $("em", b.parentNode.parentNode)[0], e = g.innerHTML; f = f.value; c = _$(US.Friend[0]).Select({ "FriendsGroupID": a.FriendsGroupID }, null, 1); g.innerHTML = "[" + (e.substring(1, e.length - 1) - 1) + "]"; b.parentNode.removeChild(b); _$(US.Friend[1]).Delete({ "FriendsID": a.FriendsID }); U.F.M.PF(a.FriendsGroupID, c.FriendsGroupName, "fg"); }; U.F.R.FDN = function (b, a) { (!(U.M.onmouseout(b))) && (U.F.R.MMO(a)); }; U.F.R.MMO = function (a) { a.style.display = (U.M.onmouseout(a)) ? "block" : "none"; }; U.F.R.USF = function (a) { $("#UserstatusFat").addAttrArray({ "style": { "backgroundPosition": a.style.backgroundPosition } }); a.parentNode.parentNode.style.display = "none"; }; U.F.R.US = function () { var a = $("#Userstatus")[0]; a.style.display = a.style.display == "block" ? "none" : "block"; }; Namespace.register("U.F.A"); U.F.A.MAGC = function (d) { var c, b, a = ["UF_UP_FriendBoard", "UF_UP_GroupBoard", "UF_UP_ChatRecord"]; for (c = 0; c < a.length; c++) { if (a[c] == d) { b = "block"; } else { b = "none"; } $("#" + a[c])[0].style.display = b; } }; U.F.A.ISFriend = function () { if (!U.U.L.LARG()) { var a = $("#UF_UP_UserBoard")[0], b = ["150px", "block"]; (a.style.display == "block") && (b[0] = "-2000px", b[1] = "none"); $(a).animate({ "top": b[0], "display": b[1] }, 100); } return a; }; U.F.A.IframeAutoHight = function (a) { var c, h, g, b, f, e = U.M.GetElementInfo(a), d = U.M.GTCN(a.childNodes); if (e["CW"] > 0) { for (c = 0; c < d.length; c++) { if (d[c].id.indexOf("UF_FW_Content") > -1 && d[c].id.length > 14 && d[c].style.display != "none") { h = $("div#UF_FW_Context", d[c])[0]; g = $("div#UF_FW_C", h)[0]; if (g.offsetWidth > 0) { a.style.minWidth = "730px"; } else { a.style.minWidth = "430px"; } if (e["CH"] > 0) { b = $("div", h); g.style.height = (e["CH"] - 119) + "px"; e = U.M.GetElementInfo(a); b[2].style.height = (e["CH"] - 231) + "px"; b[0].style.width = e["CW"] - g.offsetWidth + "px"; } f = $("div#SendMessageImg", a)[0]; f.parentNode.style.width = e["CW"] - 22 + "px"; f.style.marginLeft = e["CW"] - 60 + "px"; $("div#UF_FW_user", a)[0].style.width = e["CW"] - 92 + "px"; } } } }; U.F.A.GIframeAutoHight = function (b) { var d = U.M.GetElementInfo(b), h = $("div#UF_GW_CE", b)[0], f = $("div#UF_GW_C", b)[0], c = $("div#GainFormation", b)[0], e = $("div#UF_GW_user", b)[0], g = $("div#UF_GW_Context", b)[0], a = $("div#SendMessageImg", b)[0]; e.style.width = d["CW"] - 92 + "px"; g.style.width = d["CW"] - f.offsetWidth + "px"; c.style.height = f.style.height = d["CH"] - 122 + "px"; h.style.width = d["CW"] - f.offsetWidth - c.offsetWidth + "px"; $("div", h)[0].style.height = d["CH"] - 240 + "px"; a.parentNode.style.width = d["CW"] - 22 + "px"; a.style.marginLeft = d["CW"] - 60 + "px"; }; Namespace.register("U.F.FM"); U.F.FM.SGM = function (b, c, d) { var a = $("div@contenteditable=true", b)[0]; U.F.FM.SMT(c, a.innerHTML, "", d); U.F.FM.SMS(c, b, a); }; U.F.FM.SMS = function (b, a, c) { var d = $("div#Content" + b, a)[0]; U.F.FM.SFGM(c, d); d.scrollTop = d.scrollHeight - d.offsetHeight; }; U.F.FM.PGM = function (a, c) { for (var b = 0; b < a.length; b++) { U.F.FM.PSNS(a[b].GroupMessageSendUsername || a[b].MessageDescript, U.MT.GetDT(a[b].GroupMessageSendTime || a[b].MessageSendTime), a[b].GroupMessageContent || a[b].MessageContent, c); } c.scrollTop = c.scrollHeight - c.offsetHeight; }; U.F.FM.SMT = function (c, b, d, e) { var a = e ? ["GetGroupMessageServiceStatus", "addgroupmessage"] : ["GetMessageServiceStatus", "addmessage"]; if (b == "") { U.A.Request("UseStudioManage." + a[0], ([US.userInfo.userid, c]), (d || U.F.FM.AsynSMT), (["", c, e])); } else { U.A.Request("UseStudioManage." + a[1], ([US.userInfo.userid, US.userInfo.UserNickName || US.userInfo.username, c, b]), U.M.apply(), ([""])); (!_TF) && (U.F.FM.SLF(c)); } }; U.F.FM.AsynSMT = function (e) { var d = e.context, b = d[1], c = d[2], a = $("#Content" + b)[0]; e = e.value; if (e && e.length) { U.F.FM.PGM(e, a); } }; U.F.FM.GSH = function (c, b, e, f) { var g = e * 20, d = g - 20, a = f ? "GetGroupMessage" : "allrecord"; U.A.Request("UseStudioManage." + a, ([c, d, g]), U.F.FM.AsynGSH, (["", b, c, e, f])); }; U.F.FM.AsynGSH = function (d) { var c = d.context, a = c[1], b = $("div#UF_FW_Chatrecord", a)[0]; d = d.value; if (d) { b.innerText = ""; U.F.FM.PGM(d, b); U.F.FM.GMP(a, d.length == 0 ? 0 : d[0].AllC, c[2], c[3], c[4]); } }; U.F.FM.GMP = function (c, b, d, f, g) { var a = g ? "UF_GW_Message" : "UF_FW_Message", e = $("div#" + a, c)[0]; e.innerHTML = ""; U.PG.PPage(e, b, f, 20, { "fun": [[U.F.FM.GSH, ([d, c, f, g])]], "page": [2] }); }; U.F.FM.SLF = function (a) { U.F.FM.ALMG(_$(US.Friend[1]).Select({ "UserId": a }, null, 1)[0] || _$(US.Friend[4]).Select({ "UserId": a }, null, 1)[0]); }; U.F.FM.ALMG = function (b) { if (b) { var a = US.Friend[4].inArray(b.UserId, "UserId"); if (a !== false) { US.Friend[4].unshift(US.Friend[4].splice(a, 1)[0]); } else { US.Friend[4].unshift(new U.F.T.LFE(([b.UserId, b.UserName, b.UserImageHead, b.UserNickName, b.UserThumbnailImageHead, b.maxMessageSendTime || U.MT.GetDT(), b.FriendsDescript, b.UserIndividualitysignature, b.IsLogin]))); } U.F.linkmantabulation($("#UF_UP_ChatRecord")[0]); } }; U.F.FM.SFGM = function (b, d) { var c, a = [["*", { "style": { "position": "static" } }], ["img", { "onclick": "U.M.apply(this, [[top.U.Img.Create, ([{ 'Thm': Element.src, 'Img': Element.src}])]])" }]]; for (c = 0; c < a.length; c++) { U.M.SetElement(b, a[c][0], a[c][1]); } U.F.FM.PSNS(US.userInfo.UserNickName, U.MT.GetDT(), b.innerHTML, d, true); b.innerHTML = ""; }; U.F.FM.PSNS = function (c, d, a, b, e) { e = e ? "#0000CC" : "#0193CE"; var f = $$("div", { "style": { "textIndent": "10px", "marginTop": "10px" } }, b); $$("span", { "style": { "color": e }, "innerHTML": c + "   " + d }, f); $$("div", { "style": { "cssText": "color:black; padding-left: 5px; padding-top: 5px;" }, "innerHTML": a }, f); }; Namespace.register("U.F.J"); U.F.J.AFG = function (a, b) { if (!U.U.L.LARG()) { if (_$(US.Friend[2]).Select({ "GroupManageID": a })[0]) { U.Alert("你已经加入群" + b + "了"); } else { U.UI.Confirm("确认要加入群" + b + "吗", [U.F.J.AFGT, ([a, b])], ""); } } }; U.F.J.AFGT = function (a, b) { U.Alert("和云端同步中"); U.A.Request("UseStudioManage.AddToGroupMessageStatus", ([a, US.userInfo.userid, b]), U.M.apply(this, "U.Alert('等待回应')"), ([""])); }; U.F.J.AUG = function (b) { var a = _$(US.Friend[2]).Select({ "GroupManageID": b.MessageContent })[0]; if (_$(US.Friend[3]).Select({ "GroupManageID": b.MessageContent, "UserId": b.MessageSendUserID })[0]) { U.Alert(b.UserNickName + "加入" + a.GroupManageName + "群了"); U.A.Request("UseStudioManage.canceluseraddtogrouprequest", ([US.userInfo.userid, b.MessageID]), U.M.apply(), [""]); } else { U.UI.Confirm("您确认要添加" + b.UserNickName + "进" + a.GroupManageName + "群吗?", [U.F.J.AUGT, ([b, a, true])], [U.A.Request, (["UseStudioManage.canceluseraddtogrouprequest", ([US.userInfo.userid, b.MessageID]), U.M.apply(), [""]])]); } }; U.F.J.AUGT = function (d, c, f) { var a = $("#" + d.GroupManageID + "Content")[0], b = d.UserId || d.MessageSendUserID, e = d.GroupManageID || d.MessageContent || d.GroupManageID; if (!_$(US.Friend[3]).Select({ "GroupManageID": e, "UserId": b })[0]) { US.Friend[3].push(new U.F.T.GFE(([b, U.M.GetImgU(d.UserImageHead), d.UserNickName || d.UserName, d.UserName, U.M.GetImgU(d.UserThumbnailImageHead), d.GroupUsersDescript || d.UserNickName, e, 1]))); } if (f) { U.A.Request("UseStudioManage.AddUsrsToGroup", ([US.userInfo.userid, d.MessageID, d.MessageSendUserID, d.MessageContent, U.MS.produceGuid(), d.GroupManageName]), U.M.apply(this, [[U.A.Request, (["UseStudioManage.canceluseraddtogrouprequest", ([US.userInfo.userid, d.MessageID]), U.M.apply(), [""]])]]), [""]); } if (a) { U.F.DisplayGroupMembers(d.GroupManageID, a); } }; U.F.J.AG = function (a) { U.UI.Confirm("你已经被" + a.UserNickName + "拉入" + a.MessageDescript + "群"); U.A.Request("UseStudioManage.canceluseraddtogrouprequest", ([US.userInfo.userid, a.MessageID]), U.M.apply(), [""]); if (_$(US.Friend[2]).Select({ "GroupManageID": a.MessageContent })[0] == null) { U.Adisk.Request("UseStudioDisk.GetGF", ([a.MessageContent]), U.F.J.DL, ([])); U.A.Request("UseStudioManage._gaingroupandgroupallfriend", ([a.MessageContent]), U.F.J.AsynAG, (["", a])); } }; U.F.J.DL = function (b) { var a = b.context; b = b.value; U.Dk.M.ufinfoarray("add", b); }; U.F.J.AsynAG = function (e) { var d, f, a, c = e.context, b = c[1]; e = e.value; if (e && e.length > 0) { US.Friend[2].push((f = new U.F.T.GE(([b.MessageContent.toLocaleLowerCase(), b.MessageDescript, e[0].GroupManageCreateDate, b.MessageSendUserID, US.NU, "", null])))); for (d = 0; d < e.length; d++) { if (!_$(US.Friend[3]).Select({ "GroupManageID": e[d].GroupManageID || e[d].MessageContent, "UserId": e[d].UserId || e[d].MessageSendUserID })[0]) { US.Friend[3].push(new U.F.T.GFE(([e[d].UserId || e[d].MessageSendUserID, U.M.GetImgU(e[d].UserImageHead), e[d].UserNickName || e[d].UserName, e[d].UserName, U.M.GetImgU(e[d].UserThumbnailImageHead), e[d].GroupUsersDescript || e[d].UserNickName, e[d].GroupManageID || e[d].MessageContent, 1]))); } } (!(a = $("#GroupclassPanel_" + f.GroupManageID)[0])) && (U.F.PGroup(f, $("#UF_UP_GroupBoard")[0], _$(US.Friend[3]).Select({ "GroupManageID": f.GroupManageID }))); } }; U.F.J.ANF = function (e, d) { if (!U.U.L.LARG()) { if (e.UserId != US.userInfo.userid) { var a = $("#addnewFriendsGroup")[0], c = $("#FriendSystemContent")[0], b = _$(US.Friend[1]).Select({ "UserId": e.UserId }, null, 1)[0]; if (b == null) { $("img", a).addAttrArray({ "src": U.M.GetImgU(e.UserThumbnailImageHead), "onerror": U.M.ImgError }, 0); $("div", a)[3].innerHTML = e.UserNickName || e.UserName; c.innerHTML = ""; U.F.J.SA(d, e.UserId, c); U.F.J.LG(e, c); U.D.PopupWindow(a); } (b || d == "padd") && (U.A.Request("UseStudioManage.canceluseraddtogrouprequest", ([e.MessageID]), U.M.apply(), ([""])), (b) && (U.F.W.DMW(b))); } else { U.Alert("无法添加自己为好友"); } } }; U.F.J.SA = function (f, b, d) { var e, c = [["div", "AddUser_Remind"], ["div", "RemindFriendTitle"], ["a", "AddUser_Yes"], ["a", "AddUser_NO"]], a = f == "add" ? ["添加好友", "(添加好友)", "确定", "取消"] : ["对方要求添加好友", "(对方要求添加好友)", "同意", "不同意"]; for (e = 0; e < c.legnth; e++) { $(c[e][0] + "#" + c[e][1], d)[0].innerHTML = a[e]; } }; U.F.J.LG = function (d, b) { var c, a = US.Friend[0]; for (c = 0; c < a.length; c++) { $$("div", { "onclick": [[U.F.J.AFIC, ([b.parentNode.parentNode, d, a[c].FriendsGroupID])]], "className": "AddFriendGroupDivs", "innerHTML": a[c].FriendsGroupName }, b); } }; U.F.J.AFIC = function (b, c, a) { U.UI.Confirm("确认添加到此分组吗?", [U.F.J.AFICT, ([b, c, a])], ""); U.F.J.DFW(b); }; U.F.J.AFICT = function (c, d, a) { var b = U.MS.produceGuid(); U.A.Request("UseStudioManage.AddFrinedsAjax", ([US.userInfo.userid, d.UserId, b, a, d.UserNickName || d.UserName]), U.F.J.AsynAFIC, (["", d, a, b])); }; U.F.J.AsynAFIC = function (d) { var c, b = d.context, a = b[1], e = a.FriendsDescript || a.UserNickName || a.UserName; d = d.value; if (d != null) { c = new U.F.T.FE([a.UserIndividualitysignature, a.UserId, U.M.GetImgU(a.UserThumbnailImageHead), US.fs + a.UserThumbnailImageHead, e, e, b[3], e, b[2], d == "True" ? 1 : 0]); US.Friend[1].push(c); (_$(US.Friend[1]).Reset({ "IsLogin": 1 })); U.F.refreshFriends(); U.F.W.DMW(b[1]); } }; U.F.J.FW = function (b) { var a = 134, c, f = $("#UF_DM_AFSWindow"), e = b.offsetLeft, d = b.offsetWidth; US.Width > e + d + a ? (c = e + d - a) : (c = e, a = -a); f.addAttrArray({ "style": { "display": "block", "zIndex": b.style.zIndex, "top": b.offsetTop + 11 + "px", "left": c + "px" } }).animate({ "left": c + a + "px" }, 200); }; U.F.J.DFW = function (a) { $("#UF_DM_AFSWindow")[0].style.display = $("#addnewFriendsGroup")[0].style.display = a.style.display = "none"; }; Namespace.register("U.F"); U.F.LoadFriendsAjax = function () { var a = U.F.A.ISFriend(); U.M.GTCN(a.childNodes)[1].style.display = "block"; U.F.GetAllFriendsAjax($("div#UF_UP_FriendBoard", a)[0]); U.F.GetAllGroupAjax($("#UF_UP_GroupBoard")[0]); U.F.linkmantabulation($("#UF_UP_ChatRecord")[0]); U.F.Loaduserinfo(US.userInfo, a); }; U.F.fgd = []; U.F.GetAllFriendsAjax = function (c) { var d, a, e, b = US.Friend[0]; for (d = 0; d < b.length; d++) { a = _$(US.Friend[1]).Select({ "FriendsGroupID": b[d].FriendsGroupID }); e = U.F.CFGG(c, b[d], a); U.F.PFriend(a, e); } U.F.M.IFGAW(); }; U.F.CFGG = function (c, b, a) { var g, f, d, e; g = $$("div", {}); f = $$("span", { "id": "ListClass_" + b.FriendsGroupID, "onmousedown": U.M.StopBubble, "onclick": [[U.F.UserFriendGroupPanel, ([g])]], "title": b.FriendsGroupName }, g); $$("i", { "className": "UD_PiLt Hide" }, f); $$("a", { "innerHTML": b.FriendsGroupName }, f); d = $$("em", { "innerHTML": "[" + a.length + "]" }, f); e = $$("ul", { "id": b.FriendsGroupID, "style": { "display": "none" } }, g); c.appendChild(g); U.F.fgd.push(e); return e; }; U.F.PFriend = function (a, b) { var d, e, c = document.createDocumentFragment(); for (d = 0; d < a.length; d++) { e = $$("li", { "id": "Buddy_" + a[d].FriendsID, "onmousedown": U.M.StopBubble, "onclick": [[U.M.StopBubble], [U.F.W.DMW, ([a[d]])]], "oncontextmenu": [[U.F.R.FGC, (["this", a[d]])]] }, c); $$("img", { "style": { "cssText": a[d].IsLogin == 0 ? "filter:gray;-moz-opacity:.3;opacity:0.3;" : "" }, "src": U.M.GetImgU(a[d].UserThumbnailImageHead), "onerror": U.M.ImgError }, e); $$("a", { "className": "UF_UP_State_GoOnline" }, e); $$("span", { "innerHTML": a[d].FriendsDescript }, e); $$("em", { "innerHTML": a[d].UserIndividualitysignature || "" }, e); } b.appendChild(c); }; U.F.refreshFriends = function () { var b, c, a = U.F.fgd; for (b = 0; b < a.length; b++) { if (a[b]) { c = _$(US.Friend[1]).Select({ "FriendsGroupID": a[b].id }); a[b].innerText = ""; $("em", a[b].parentNode)[0].innerText = "[" + c.length + "]"; U.F.PFriend(c, a[b]); } } }; U.F.UserFriendGroupPanel = function (c) { var a = $("ul", c)[0], d = $("i", c)[0], b = a.style.display == "block" ? ["none", "Hide"] : ["block", "Show"]; a.style.display = b[0]; d.className = "UD_PiLt " + b[1]; }; U.F.Deltefgd = function (a) { var c, b = U.F.fgd; for (c = 0; c < b.length; c++) { if (b[c].id == a) { b[c].parentNode.removeChild(b[c]); b.splice(c, 1); break; } } }; U.F.GetAllGroupAjax = function (b) { var c, a = US.Friend[2]; b.innerText = ""; for (c = 0; c < a.length; c++) { U.F.PGroup(a[c], b, _$(US.Friend[3]).Select({ "GroupManageID": a[c].GroupManageID })); } }; U.F.PGroup = function (l, d, b) { b = b.slice(0, 9); var h, g, c, a, k, f = b.length <= 3 ? b.length : (b.length > 4 ? 3 : 2), e = (b.length % 3 == 0 || b.length > 4) ? 3 : (b.length % 3) + (b.length > 3 ? 1 : 0); c = $$("div", { "id": "GroupclassPanel_" + l.GroupManageID, "className": "UF_UP_GGD", "onmousedown": U.M.StopBubble, "onclick": [[U.M.StopBubble], [U.F.W.DGMW, ([l])]] }); a = $$("div", { "className": "UF_UP_GID" }, c); for (h = 0; h < f; h++) { k = $$("div", { "style": { "width": "100%", "height": Math.floor(40 / f) + "px" } }, a); for (g = h * e; g < h * e + e && g < b.length; g++) { $$("img", { "src": U.M.GetImgU(b[g].UserThumbnailImageHead), "style": { "width": Math.floor(40 / e) + "px", "height": Math.floor(40 / e) + "px" }, "onerror": [U.M.ImgError, (["this"])] }, k); } } $$("span", { "innerHTML": l.GroupManageName }, c); d.appendChild(c); }; U.F.DisplayGroupMembers = function (a, c) { var e, f, b = _$(US.Friend[3]).Select({ "GroupManageID": a }), d = document.createDocumentFragment(); c.innerHTML = ""; for (e = 0; e < b.length; e++) { f = $$("div", { "className": "repeaterfriendsdiv", "onmousedown": U.M.StopBubble, "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([b[e].UserId])]] }, d); $$("img", { "style": { "cssText": b[e].IsLogin == 0 ? "filter:gray;-moz-opacity:0.3;opacity:0.3;" : "" }, "onerror": U.M.ImgError, "src": U.M.GetImgU(b[e].UserThumbnailImageHead) }, f); $$("div", { "style": { "cssText": "float:left;margin-left:10px;width:70px;" }, "className": "UTDF", "innerHTML": b[e].GroupUsersDescript }, f); } c.appendChild(d); }; U.F.linkmantabulation = function (b) { var c, a = US.Friend[4], d, e = $$("ul", { "id": "LinkMan", "style": { "cssText": "display:block;" } }); b.innerText = ""; for (c = 0; c < a.length; c++) { d = $$("li", { "id": "LinkMan" + a[c].FriendsID, "style": { "cssText": "display:block;" }, "onclick": [[U.M.StopBubble], [U.F.W.DMW, ([a[c]])]] }, e); $$("img", { "alt": a[c].UserNickName, "src": U.M.GetImgU(a[c].UserThumbnailImageHead), "onerror": U.M.ImgError, "style": { "cssText": a[c].IsLogin == 0 ? "filter:gray;-moz-opacity:0.3;opacity:0.3;" : "" } }, d); $$("a", { "className": "UF_UP_State_GoOnline" }, d); $$("span", { "innerHTML": a[c].FriendsDescript }, d); $$("em", { "innerHTML": a[c].UserIndividualitysignature }, d); } b.appendChild(e); }; U.F.Loaduserinfo = function (c, a) { var b = $("div", $("div#UF_UP_CUM_C", a)[0]); b[0].innerHTML = ""; b[3].innerHTML = c.UserNickName; b[4].innerHTML = "登录IP:" + c.LoginIP; $("marquee#UF_UP_Maruee", a)[0].innerHTML = US.userInfo.UserIndividualitysignature; $$("img", { "style": { "width": "50px", "height": "50px" }, "onerror": U.M.ImgError, "src": U.M.GetImgU(c.UserThumbnailImageHead), "onclick": U.U.UPD }, b[0]); }; Namespace.register("U.F.M"); U.F.M.FAW = function () { var a = $("#UF_GM_FMDiv")[0]; U.D.PopupWindow(a); U.D.Tb.WindowRestore(a, null, "好友管理器"); U.F.M.IFGAW(); }; U.F.M.IFGAW = function (b) { var c = (b || 1) + 1, a = [[$("#UF_FM_FGW")[0], US.Friend[0], ["FriendsGroupID", "fg", "FriendsGroupName"]], [$("#UF_FM_GGW")[0], US.Friend[2], ["GroupManageID", "gg", "GroupManageName"]]]; while ((c !== b && c--)) { a[c][0].innerText = ""; U.F.M.PFAGG(a[c][0], a[c][1], a[c][2]); } }; U.F.M.PFAGG = function (b, a, c) { for (i = 0; i < a.length; i++) { $$("div", { "oncontextmenu": [U.F.M.RC, ([a[i][c[0]], "this", c[1]])], "onclick": [U.F.M.PF, ([a[i][c[0]], a[i][c[2]], c[1]])], "innerHTML": a[i][c[2]] }, b); } }; U.F.M.RC = function (j, d, g) { var e, f = g == "fg" ? $("#UF_FM_AddFG")[0] : $("#UF_FM_AddGG")[0], c = $("#RightClick_Groupmenu"), b = U.M.GetMousep(), h = $("a", c[0]), a = [[U.F.M.DCFG, ([j, d.innerHTML, d, g])], [U.F.M.DGFG, ([j, d.innerHTML, d, g])], [f.onclick]]; if (g == "fg" && _$(US.Friend[0]).Select({ "FriendsGroupID": j }, null, 1)[0].FriendsGroupDescript == "自动创建") { c.style.display = "none"; return; } for (e = 0; e < a.length; e++) { h.addAttrArray({ "onclick": [a[e], [U.F.M.NR]] }, e); } U.D.SetDTop(c.addAttrArray({ "style": { "left": b["X"] + "px", "top": b["Y"] + "px", "display": "block" } })[0]); }; U.F.M.NR = function (a) { (a || $("#RightClick_Groupmenu")[0]).style.display = "none"; }; U.F.M.PF = function (b, e, d) { var c, a = $("#UF_FM_FCR")[0]; a.innerText = ""; if (d == "fg") { c = _$(US.Friend[1]).Select({ "FriendsGroupID": b }); c.MFF = [U.F.M.DMF, U.F.M.DDF, U.F.M.MOF]; } else { c = _$(US.Friend[3]).Select({ "GroupManageID": b }); c.MFF = [U.F.M.DMF, U.F.M.DFGF, U.M.apply()]; } U.F.M.PAF(c, e, a); }; U.F.M.PAF = function (a, f, b) { var d, g, e, c = document.createDocumentFragment(); for (d = 0; d < a.length; d++) { g = $$("div", { "className": "UF_FM_CFLT" }, c); $$("img", { "src": U.M.GetImgU(a[d].UserThumbnailImageHead), "className": "UF_FM_CSHD", "onerror": U.M.ImgError, "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([a[d].UserId])]] }, g); e = $$("div", { "className": "UF_FM_HCT" }, g); $$("div", { "className": "UF_FM_CNTT", "innerHTML": a[d].UserNickName }, e); $$("div", { "className": "UF_FM_CFMKT", "innerHTML": a[d].GroupUsersDescript || a[d].FriendsDescript || a[d].UserName, "onclick": [a.MFF[0], ([a[d], "this", a[d].GroupManageID])] }, e); $$("div", { "className": "UF_FM_CFGPT UTDF", "innerHTML": f, "onclick": [a.MFF[2], ([a[d], f, "this"])] }, e); $$("div", { "className": "UF_FM_CSFLTT", "innerHTML": a[d].UserIndividualitysignature || "1473云端" }, e); $$("div", { "className": "UF_FM_COS UF_FM_CFDBT", "onclick": [a.MFF[1], ([a[d], a[d].GroupManageID || a[d].FriendsGroupID, g])] }, e); } b.appendChild(c); }; U.F.M.DCFG = function (a, d, b, c) { b.innerHTML = ""; $$("input", { "type": "text", "onkeyup": [[U.M.returnkeylogin, ([null, [[U.F.M.CFG, ([b, "retElement", a, d, c])]]])]], "onclick": U.M.StopBubble, "className": "UF_FM_InputAdmin", "value": d, "onblur": [[U.F.M.CFG, ([b, "retElement", a, d, c])]] }, b).focus(); }; U.F.M.CFG = function (c, b, a, e, d) { if (b.value.SubN() != "" && b.value != e && b.value.SubstrN(40)) { if (U.F.M.SCFG(b, a, d, c)) { c.innerHTML = b.value; return; } else { U.Alert("您不是群主,无法修改群"); } } else { U.Alert("无效输入"); } c.innerHTML = e; }; U.F.M.SCFG = function (b, a, d) { var c = d == "fg" ? [true, "ModifyFriendsGroup"] : [_$(US.Friend[2]).Select({ "GroupManageID": a, "GroupManageCreateUserID": US.userInfo.userid })[0], "ModifyGroup"]; if (c[0]) { U.A.Request("UseStudioManage." + c[1], ([US.userInfo.userid, b.value, a]), U.F.M.AsynSCFG, (["", a, b.value, d])); } return c[0]; }; U.F.M.AsynSCFG = function (e) { var c, b, a, d = e.context, g = d[1], f = d[2], c = d[3]; e = e.value; if (c == "fg") { b = _$(US.Friend[0]).Select({ "FriendsGroupID": g })[0]; a = $("a", $("#ListClass_" + g)[0])[0]; c = "FriendsGroupName"; } else { b = _$(US.Friend[2]).Select({ "GroupManageID": g })[0]; a = $("span", $("#GroupclassPanel_" + g)[0])[0]; c = "GroupManageName"; } (a) && (a.innerText = b[c] = f); U.F.M.PF(g, f, c); U.F.M.IFGAW(); }; U.F.M.DMF = function (b, a) { a.innerText = ""; $$("input", { "type": "text", "id": "FriendsDescript", "className": "UF_FM_InputAdmin", "value": b.FriendsDescript || b.GroupUsersDescript || b.UserName, "onblur": [U.F.M.MF, ([b, a])] }, a).select(); }; U.F.M.MF = function (b, a) { var c = (b.FriendsDescript || b.GroupUsersDescript); if (this.value.SubN() != "" && this.value != c) { if (b.GroupManageID) { if (U.F.M.CGFT(b, this)) { this.value = c; } } else { U.F.R.CUR(this.value, $("Buddy_" + b.FriendsID)[0], b); } } else { this.value = c; } a.innerText = this.value; }; U.F.M.CGFT = function (b, a) { if (b.UserId == US.userInfo.userid || _$(US.Friend[2]).Select({ "GroupManageID": b.GroupManageID, "GroupManageCreateUserID": US.userInfo.userid })[0]) { U.F.M.CGN(b.GroupManageID, b.UserId, a.value); } else { U.Alert("无权限修改"); return true; } }; U.F.M.CGN = function (a, b, c) { U.A.Request("UseStudioManage.ModifyGroupFriedns", ([US.userInfo.userid, a, b, c]), U.F.M.AsynCGN, (["", a, b, c])); }; U.F.M.AsynCGN = function (c) { var b = c.context, e = b[1], a = b[2], d = b[3]; c = c.value; if (c != null) { _$(US.Friend[3]).Select({ "GroupManageID": e, "UserId": a }, null, 1)[0].GroupUsersDescript = d; U.Alert("修改成功"); } }; U.F.M.DGFG = function (a, d, b, c) { U.UI.Confirm("你确定删除 " + d + "分组吗?", [U.F.M.DGFGT, (arguments)], ""); }; U.F.M.DGFGT = function (a, d, b, c) { if (c == "fg") { if (US.Friend[1].Select({ "FriendsGroupID": a }, null, 1)[0]) { U.F.M.DFG(d, a, b); } else { U.Alert("好友分组下有好友,无法删除"); } } else { U.F.M.DFGF(US.userInfo, a, b); } }; U.F.M.DFG = function (c, a, b) { U.A.Request("UseStudioManage.DeleteFrinedsGroup", ([US.userInfo.userid, a]), U.F.M.AsynDFG, (["", b, a, c])); }; U.F.M.AsynDFG = function (d) { var c, b = d.context, a = b[1], e = b[2], f = [$("span#ListClass_" + e)[0], a]; d = d.value; if (d != null) { _$(US.Friend[0]).Delete({ "FriendsGroupID": e }, null); for (c = 0; c < f.length; c++) { f[c].parentNode.removeChild(f[c]); } U.Alert("成功删除" + b[3] + "分组"); } }; U.F.M.DFGF = function (e, a, c) { var b = e.UserId, d = [U.UI.Confirm, false, "你确定要删除该成员吗?", [U.F.M.KF, ([e, a, c, b])]]; if (_$(US.Friend[2]).Select({ "GroupManageID": e.GroupManageID, "GroupManageCreateUserID": US.userInfo.userid })[0]) { if (b == US.userInfo.userid) { d[2] = "你确定要解散该群吗?"; d[3] = [U.F.M.DGG, ([a, c])]; } } else { if (US.userInfo.userid == b) { d[2] = "你确定离开群吗?"; } else { U.Alert("你不是群主或管理员无法移除该成员"); d[1] = true; } } if (!d[1]) { d[0](d[2], d[3], null); } }; U.F.M.KF = function (d, a, c, b) { U.A.Request("UseStudioManage.GroupFriednsDelect", ([US.userInfo.userid, a, b]), U.F.M.AsynKF, (["", a, b, c])); }; U.F.M.AsynKF = function (d) { var c = d.context, e = c[1], b = c[2], a = c[3]; d = d.value; if (d != null) { if (b == US.userInfo.userid) { U.F.M.YDGG(e, a); } else { _$(US.Friend[3]).Delete({ "GroupManageID": e, "UserId": b }); a.parentNode.removeChild(a); } } }; U.F.M.DGG = function (a, b) { U.A.Request("UseStudioManage.DeleteGroupFriendsAjax", ([US.userInfo.userid, a]), U.F.M.AsynDGG, (["", a, b])); }; U.F.M.AsynDGG = function (c) { var b = c.context, d = b[1], a = b[2]; c = c.value; if (c != null) { U.F.M.YDGG(d, a); U.Alert("群解散成功!"); } }; U.F.M.YDGG = function (a, b) { _$(US.Friend[2]).Delete({ "GroupManageID": a }); _$(US.Friend[3]).Delete({ "GroupManageID": a }); b.parentNode.removeChild(b); $("#UF_FM_FCR")[0].innerText = ""; U.F.M.IFGAW(1); U.F.GetAllGroupAjax($("#UF_UP_GroupBoard")[0]); }; U.F.M.DDF = function (a) { U.UI.Confirm("你确定删除" + a.FriendsDescript + "联系人吗?", [U.F.M.DDFT, ([a])], ""); }; U.F.M.DDFT = function (a) { U.F.R.DF($("#Buddy_" + a.FriendsID)[0], a); U.Alert("移除好友成功"); }; U.F.M.AGAF = function (b, a) { if (!$("input", a)[0]) { $$("input", { "type": "text", "onkeyup": [[U.M.returnkeylogin, ([null, [[U.F.M.AGF, ([b])]]])]], "onblur": [[U.F.M.AGF, ([b])]], "className": "UF_FM_InputAdmin", "name": "0", "maxlength": "24" }, a).focus(); } }; U.F.M.AGF = function (b) { var a = this.value.Trim(); if (a.SubN() != "" && a.SubstrN(40)) { if (confirm("你确定要保存吗?")) { U.F.M.AGFT(this, b); } } else { U.Alert("输入的文字无效,不可为空或大于40"); } this.parentNode.removeChild(this); }; U.F.M.AGFT = function (b, d) { var c = U.MS.produceGuid(), a = d == "fg" ? "AddToFriendsGroup" : "AddNewGroup"; U.A.Request("UseStudioManage." + a, ([US.userInfo.userid, b.value, c, ""]), U.F.M.AsynAFG, (["", b, c, d])); }; U.F.M.AsynAFG = function (g) { var b, f = 0, e = g.context, a = e[1], d = e[2], c = e[3]; g = g.value; if (g != null) { if (c == "fg") { US.Friend[0].push((b = new U.F.T.UFET(["", d, a.value]))); U.F.CFGG($("#UF_UP_FriendBoard")[0], b, []); } else { US.Friend[2].push(new U.F.T.GE(([d, a.value, U.MT.GetDT(), US.userInfo.userid, US.NU, "", null]))); US.Friend[3].push(new U.F.T.GFE([US.userInfo.userid, US.userInfo.UserImageHead, US.userInfo.UserNickName, US.userInfo.username, US.userInfo.UserThumbnailImageHead, US.userInfo.UserNickName, d, 1])); U.F.GetAllGroupAjax($("#UF_UP_GroupBoard")[0]); f = 1; } U.F.M.IFGAW(f); } }; U.F.M.MOF = function (g, e, b) { var c, d, a = US.Friend[0], f = $("select", b)[0]; if (!f) { b.innerText = ""; f = $$("select", { "id": "ListAdmin", "className": "UF_FM_SelectAdmin", "onblur": [U.F.M.MOFB, ([b, e])], "onchange": ([U.F.M.SMOF, ([g])]), "onclick": U.M.StopBubble }); for (c = 0; c < a.length; c++) { f.options.length += 1; d = f.options[c]; d.value = a[c].FriendsGroupName + "|" + a[c].FriendsGroupID; d.text = a[c].FriendsGroupName; (g.FriendsGroupID == a[c].FriendsGroupID) && (d.selected = true); } b.appendChild(f); d.focus(); } }; U.F.M.MOFB = function (a, b) { a.innerHTML = b; }; U.F.M.SMOF = function (e) { var c = this.value, a = c.lastIndexOf("|"), d = c.substring(0, a), b = c.substring(a + 1); U.UI.Confirm("你确定移动到" + d + "这个分组吗?", [U.F.M.SMOFT, ([e, b])], ""); }; U.F.M.SMOFT = function (b, a) { (a != b.FriendsGroupID) && (U.F.R.MF(a, b)); }; Namespace.register("U.F.N"); U.F.N.SFNB = function (b) { if (!U.U.L.LARG()) { var c = $("#UF_FA_FMAlertWin"), a = { "display": "none" }; (c[0].style.display == "none") && (a.display = "block", a.left = b.offsetLeft - 65 + "px"); c.addAttrArray({ "style": a }); } }; U.F.N.GNM = function (a) { var b = U.D.BC.BS, c = U.D.BC.M; U.A.Request("UseStudioManage.GetNewMessageService", ([a, US.userInfo.OnUserId, U.MS.SerializeJsonToStr(c), b[0], b[3][b[0]]["ID"], US["ITID"]]), U.F.N.AsynGNM, (["", b[0]])); U.D.BC.M.splice(0, c.length); }; U.F.N.AsynGNM = function (f) { var d, a, e, c = f.context, b = c[1]; f = f.value; if (f) { a = f[0]; e = f[1]; if (e == "upline") { U.F.N.DL(); } else { if (e == "none") { U.D.MS.onesetInterval(0); if (confirm("登录超时!。是否从新登陆")) { U.A.Request("UseStudioManage.UserStateLogin", ([US.userInfo.username, US.userInfo.UserPassword, US.userInfo.OnUserId, 0]), U.F.N.AsynLogin, ([])); U.Alert("正在和服务器连接"); } else { U.U.L.TCUL(); } } else { for (d = 0; d < 2; d++) { U.F.N.ST(e[d], d); } if (e[2]) { (e[2].length > 0) && (U.D.BC.SetNews(e[2]), U.D.BC.BS[3][b]["ID"] = e[2][e[2].length - 1].NEWID); } if (e[4] && e[4].length) { U.F.N.SRXX(e[4]); } U.D.PSU([e[5], e[3]]); U.F.N.SNF(a); } } } }; U.F.N.AsynLogin = function (a) { a = a.value; (a) && (U.D.MS.onesetInterval(1), U.Alert("和服务器连接成功")); }; U.F.N.DL = function () { U.D.MS.onesetInterval(0); if (confirm("您好,您的账号在别处有登录,点击确定从新登录")) { U.A.Request("UseStudioManage.lineUser", ([US.userInfo.userid, US.userInfo.username, US.userInfo.OnUserId]), U.M.apply(), ([])); U.D.MS.onesetInterval(1); } else { U.U.L.TCUL(); } }; U.F.N.ST = function (b, g) { var d, c, f, e, a = U.F.W.GNF; for (d = 0; d < b.length; d++) { if (b[d] != US.userInfo.userid) { for (c = 0; c < 3; c++) { _$(_$(US.Friend[(c == 0 ? 1 : c + 2)]).Select({ "UserId": b[d] })).Change({ "IsLogin": g }); } f = true; } } if (f) { for (d = 0; d < 2; d++) { (_$(US.Friend[(d == 0 ? 1 : 3)]).Reset({ "IsLogin": 1 })); } for (d = 0; d < a.length; d++) { U.F.DisplayGroupMembers(a[d].id, $("div#UF_GW_MembersDiv", a[d])[0]); } U.F.refreshFriends(); } }; U.F.N.SRXX = function (UDE) { var i, j, _UCE, _UKE, _UPE, _UN; for (i = 0; i < UDE.length; i++) { if ((_UCE = UDE[i]) && (UDE[i].UserId != US.userInfo.userid)) { switch (_UCE["NEWTYPE"]) { case "UD_DiskCon": eval("_UKE =" + _UCE["NEWC"]); _UKE = _UKE.length == null ? [_UKE] : _UKE; _UPE = US.Disk.diskfileTree; for (j = 0; j < _UKE.length; j++) { _UN = _UKE[j].UserDirectoryName || _UKE[j].UserFilesName; _UCE = U.Dk.M.RUS(new U.Dk.M.Entity(([_UKE[j].UserFilesID || _UKE[j].UserDirectoryID, _UKE[j].UserFilesSize || 0, _UKE[j].UserDirectoryParentID || _UKE[j].UserDirectoryID, _UN, _UN, _UKE[j].UserDirectoryExtendType || _UKE[j].UserFilesExtendName, _UKE[j].UserFilesServerName, new Date(), _UKE[j].UseFilesServerThumbnailName ? US.fs + _UKE[j].UseFilesServerThumbnailName : U.Dk.HP.FFT(_UKE[j].UserDirectoryExtendType || _UKE[j].UserFilesExtendName)[1], _UKE[j].UserDirectoryDeep || "9999.00", null, null, _UKE[j].UserDirectoryExtendType ? 0 : 1, _UKE[j].UserDirectoryDescript || _UKE[j].UserFilesDescript, _UKE[j].UserID]))); _UPE[0].push(_UCE); } (_UPE[1][1] == _UCE.UserDirectoryParentID) && (U.Dk.VW.DT(_UCE.UserDirectoryParentID)); break; case "DDisk": _UKE = _UCE["NEWC"].split(","); _UPE = US.Disk.diskfileTree; for (j = 0; j < _UKE.length; j++) { _$(_UPE[0]).Delete({ "UserDirectoryID": _UKE[i] }); } if (_UPE[1][1] == _UCE["NEWT"]) { U.Alert((_UCE["UserNickName"] || _UCE["UserName"]) + "跟新了当前目录"); U.Dk.VW.DT(_UCE["NEWT"]); } break; case "AddG": eval("_UKE =" + _UCE["NEWC"]); U.F.J.AUGT(_UKE, { "GroupManageID": _UCE["NEWT"] }); break; } } } }; U.F.N.SNF = function (k) { var e, g, h, d, f, m, c, n = U.F.W.GNF, l = $("#UF_UP_UCNewsRecord")[0], b = $("#Friend_Count")[0], a = document.createDocumentFragment(); for (i = 0; i < k.length; i++) { for (j = 0; j < k[i].length; j++) { e = k[i][j]; d = true; f = e.UserThumbnailImageHead; e.UserId = e.MessageSendUserID; e.FriendsDescript = e.UserNickName; switch (e.MessageIsVerify) { case 0: U.F.FM.ALMG(e); if (U.F.T.IW(e.UserId)) { U.F.FM.SMT(e.UserId, ""); k[i].splice(j, 1); j--; d = false; } m = [[U.F.W.DMW, ([e])]]; break; case 1: case 2: case 3: h = [U.F.J.ANF, U.F.J.AUG, U.F.J.AG]; m = [[h[i], ([e, "padd"])]]; break; default: d = true; h = _$(US.Friend[2]).Select({ "GroupManageID": e.GroupManageID }, null, 1)[0]; f = US.ms + "img/chatgroup.png"; m = [[U.F.W.DGMW, ([e])]]; if (_$(n).Select({ "id": e.GroupManageID }, null, 1)[0]) { U.F.FM.SMT(e.GroupManageID, "", "", true); k[i].splice(j, 1); j--; d = false; } break; } if (d) { m.push([U.F.N.DM]); c = $$("i", { "className": "UF_FA_F_Border", "onclick": m }, a); $$("img", { "alt": "", "src": U.M.GetImgU(f), "onerror": U.M.ImgError }, c); $$("span", { "innerHTML": e.UserNickName || e.GroupManageName }, c); } } U.F.N.ISM(k[i]); } l.innerText = ""; l.appendChild(a); U.F.N.NMC(); }; U.F.N.DM = function () { this.parentNode.removeChild(this); U.F.N.NMC(); }; U.F.N.NMC = function () { var d, e, a = $("#UF_UP_UCNewsRecord")[0], g = $("#UD_HF_NewMessage")[0], b = g.parentNode, f = $("i", a), c = $("img", b); if (f.length > 0) { g.innerText = f.length; d = c[0]; e = $("img", f[0])[0]; if (!d) { d = $("img", f[0])[0].cloneNode(true); b.appendChild(d); } else { if (d.src != e.src) { d.src = e.src; } } $(d).addAttrArray({ "className": "UF_FA_FNR_img", "style": { "display": "block" }, "onclick": (b.ondblclick = f[0].onclick) }); setTimeout(U.M.apply(this, [[U.F.N.SNMC, ([d])]]), 500); } else { b.ondblclick = null; (g.innerText != 0) && (g.innerText = 0); (c.length > 0) && (c[0].parentNode.removeChild(c[0])); } }; U.F.N.SNMC = function (a) { a.style.display = "none"; }; U.F.N.M = []; U.F.N.ISM = function (b) { var c, a = U.F.N.M, d; for (c = 0; c < b.length; c++) { if (a.inArray((d = (b[c].MessageID || b[c].GroupManageID))) === false) { U.F.SFM(); a.push(d); } } }; U.F.SFM = function () { try { $("*U_MP_MPFlash")[0].loadNew("/img/消息提示音/MP3剪切-Msn短信提示音.mp3"); } catch (a) { $("#UseStudioU_MP").addAttrArray({ "style": { "display": "block", "left": "-1000px" } }); window.setTimeout(U.F.SFM, 500); } }; U.F.N.SM = function (b) { var a = U.F.N.M, c = a.inArray((b.MessageID || b.GroupManageID)); (b !== false) && (U.F.N.M.splice(c, 1)); }; U.F.N.YCSM = function () { $("#UF_UP_UCNewsRecord")[0].innerText = $("#UD_HF_NewMessage")[0].innerText = $("#Friend_Count").innerText = ""; }; Namespace.register("U.F.S"); U.F.S.TF = { "P": 0 }; U.F.S.WC = function (b) { var a = $("#UF_S_Div")[0]; U.D.PopupWindow(a); U.D.Tb.WindowRestore(a, null, "查找好友"); $("div", a)[b == null ? 4 : b].onclick(); }; U.F.S.S = function (f, b, e) { var g = e * 8, d = g - 8, a = $("#UF_S_SR")[0], c = US.userInfo.userid || US.NU; U.F.S.TF["P"] = b || U.F.S.TF["P"], _UDE = ["SelectUserByKeyWord", "bygroupnameselsectgroup", "HasNGetF"], _UV = [f, d, g]; (U.F.S.TF["P"] == 1) && (_UV.splice(0, 0, c)); U.A.Request("UseStudioManage." + _UDE[U.F.S.TF["P"] - 1], (_UV), U.F.S.PSUG, ([a, U.F.S.TF["P"], f, e])); }; U.F.S.PSUG = function (e) { var c = e.context, a = c[0], g = $("#U_F_S_Pag")[0], b = c[1], d = c[2], f = c[3]; e = e.value; g.innerText = a.innerText = ""; if (e) { if (e.length) { U.PG.PPage(g, e[0]["DCount"] || e[1], f, 8, { "fun": [[U.F.S.S, ([d, b, f])]], "page": [2] }); U.F.S.SF(b == 3 ? e[0] : e, b, a); } else { U.Alert("搜索无结果"); } } }; U.F.S.SF = function (b, a, c) { var d, f, e = []; for (d = 0; d < b.length; d++) { f = b[d]; e.push((a == 2 ? { "UserName": f.GroupManageName, "UserTotal": "这群主有点懒,什么也没写", "TA": f.GroupUserCount + "个成员", "Sex": "", "Address": U.MT.GetDT(f.GroupManageCreateDate), "ImageHead": US.ms + "img/chatgroup.png", "AF": [[U.M.StopBubble], [U.F.J.AFG, ([f.GroupManageID, f.GroupManageName])]], "MF": [[U.M.StopBubble], [U.F.S.DGI, ([f])]] } : { "UserName": f.UserNickName, "Age": f.Birthday ? U.MT.getTimeStr(new Date(), "Array")[0] - U.MT.getTimeStr(f.Birthday, "Array")[0] : "0", "UserTotal": (f.UserTatolNum || "-") + "个共同好友", "Sex": f.UserSex == 1 ? "-576px -30px" : "-576px -8px", "Address": f.Country || "-", "IsLogin": f.IsLogin == false ? "filter:gray;-moz-opacity:.3;opacity:0.3;" : "", "ImageHead": U.M.GetImgU(f.UserThumbnailImageHead), "AF": [[U.M.StopBubble], [U.F.J.ANF, ([f, "add"])]], "MF": [[U.M.StopBubble], [U.U.I.POUW, ([f.UserId])]] })); } U.F.S.SS(c, e); }; U.F.S.SS = function (c, j) { var e, b, f, h, d, g, a = document.createDocumentFragment(); for (e = 0; e < j.length; e++) { b = $$("div", { "className": "UF_SUT" }, a); $$("img", { "onerror": U.M.ImgError, "src": j[e]["ImageHead"], "style": { "cssText": j[e]["IsLogin"] }, "className": "UF_SIMG", "onclick": j[e]["MF"] }, b); f = $$("div", { "style": { "cssText": "float:left;width:90px;" } }, b); $$("span", { "className": "UF_SUN", "innerHTML": j[e]["UserName"] }, f); if (j[e]["TA"]) { $$("span", { "innerHTML": j[e]["TA"], "className": "UF_SUE", "style": { "whiteSpace": "normal" } }, f); } else { h = $$("div", { "className": "UF_SOS UF_SUA" }, b); d = $$("div", { "className": "UF_SAT" }, h); $$("div", { "className": "UF_SOS UF_SIC", "style": { "cssText": "background-position:" + j[e]["Sex"] } }, d); $$("span", { "innerHTML": j[e]["Age"] }, d); $$("div", { "className": "UF_SCT UTDF", "innerHTML": j[e]["Address"] }, b); $$("div", { "className": "UF_SMF", "innerHTML": j[e]["UserTotal"] }, b); } g = $$("div", { "className": "UF_SDTN" }, b); $$("div", { "className": "UF_SOS UF_SADTN", "onclick": j[e]["AF"] }, g); } c.appendChild(a); }; U.F.S.DGI = function (c) { var b, a = $("#GroupInfo_" + c.GroupManageID)[0]; if (a) { U.D.PopupWindow(a); } else { a = top.$("#UF_GI_ALL")[0].cloneNode(true); a.id = "GroupInfo_" + FIF.GroupManageID; b = $("div", a); b["UF_S_GroupPic"].style.backgroundImage = ""; b["UF_S_GroupName"].innerText = "群名称:" + c.GroupManageName; b["UF_S_Mgr"].innerText = "管理员:" + (c.UserNickName || c.UserName); b["UF_S_Mgr"].onclick = U.M.apply(this, [[U.M.StopBubble], [U.U.I.POUW, ([c.GroupManageCreateUserID])]]); b["UF_S_GroupSummary"].innerText = "群简介:" + "这群主有点懒,什么也没写"; b["UF_S_PeopleCount"].innerText = "成员数量:" + c.GroupUserCount + "人"; b["UF_S_CreateTime"].innerText = "创建时间:" + U.MT.GetDT(c.GroupManageCreateDate); b["UF_GI_JoinGroup"].onclick = U.M.apply(this, [[U.F.J.AFG, ([c.GroupManageID, c.GroupManageName])]]); } }; U.F.S.FFS = function (b) { var a, d = $("#UF_FC_FriendUserDiv").addAttrArray({ "innerHTML": "", "style": { "display": "none" } }), c = b.value.SubN(); if (c != "") { a = _$(US.Friend[1]).Like({ "FriendsDescript": c, "UserNickName": c, "UserName": c }); (a.length) && (U.F.S.DFFS(a, d[0]), d[0].style.display = "block"); } }; U.F.S.DFFS = function (a, b) { var d, f, e = $("input", b.parentNode)[0], c = document.createDocumentFragment(); for (var d = 0; d < a.length; d++) { f = $$("li", { "onclick": [[U.F.W.DMW, [a[d]]], [U.F.S.NFFS, ([e])]], "unselectable": "on" }, c); $$("img", { "alt": a[d].UserName, "src": U.M.GetImgU(a[d].UserThumbnailImageHead), "onerror": U.M.ImgError, "unselectable": "on" }, f); $$("a", { "innerHTML": a[d].FriendsDescript, "unselectable": "on" }, f); } b.appendChild(c); }; U.F.S.NFFS = function (a) { (a.value == "") && (a.value = "请输入关键字"); $("#UF_FC_FriendUserDiv").addAttrArray({ "style": { "display": "none" }, "innerHTML": "" }); }; U.F.S.DGGS = function (a) { var b, c = $("div", a.parentNode); for (b = 0; b < c.length; b++) { (c[b] != a) && (c[b].style.backgroundPositionY = "-61px"); } a.style.backgroundPositionY = "-2px"; }; U.F.S.JDS = function (c) { var d, a, e = $("div", c.parentNode), b = [165, 135]; for (d = 0; d < 2; d++) { if (e[d] != c) { a = d; } else { a = 1 - d; } e[d].style.backgroundPositionY = (-b[a]) + "px"; } }; Namespace.register("U.F.T"); U.F.T.FE = function (a) { this.UserIndividualitysignature = a[0]; this.UserId = a[1]; this.UserImageHead = a[2]; this.UserThumbnailImageHead = a[3]; this.UserNickName = a[4]; this.UserName = a[5]; this.FriendsID = a[6]; this.FriendsDescript = a[7]; this.FriendsGroupID = a[8]; this.IsLogin = a[9]; }; U.F.T.LFE = function (a) { this.UserId = a[0]; this.UserName = a[1]; this.UserImageHead = a[2]; this.UserNickName = a[3]; this.UserThumbnailImageHead = a[4]; this.maxMessageSendTime = a[5]; this.FriendsDescript = a[6]; this.UserIndividualitysignature = a[7]; this.IsLogin = a[8]; }; U.F.T.UFET = function (a) { this.FriendsGroupDescript = a[0]; this.FriendsGroupID = a[1]; this.FriendsGroupName = term[2]; }; U.F.T.GE = function (a) { this.GroupManageID = a[0]; this.GroupManageName = a[1]; this.GroupManageCreateDate = a[2]; this.GroupManageCreateUserID = a[3]; this.GroupManageUserID = a[4]; this.GroupManageDescript = a[5]; this.GroupManageRemark = a[6]; }; U.F.T.GFE = function (a) { this.UserId = a[0]; this.UserImageHead = a[1]; this.UserNickName = a[2]; this.UserName = a[3]; this.UserThumbnailImageHead = a[4]; this.GroupUsersDescript = a[5]; this.GroupManageID = a[6]; this.IsLogin = a[7]; }; U.F.T.RFF = function () { var d, c, f, e, a = [US.Friend[1], US.Friend[3], US.Friend[4]], b = US.Friend[5]; for (d = 0; d < a.length; d++) { e = a[d]; for (c = 0; c < e.length; c++) { (b.inArray(e[c].UserId) !== false) && (e[c].IsLogin = 1); f = e[c]["UserNickName"] || e[c]["UserName"]; if (d != 1) { _$(e[c]).Change({ "UserIndividualitysignature": e[c]["UserIndividualitysignature"] || "", "UserNickName": f, "FriendsDescript": e[c]["FriendsDescript"] || f }); } else { _$(e[c]).Change({ "UserNickName": f, "GroupUsersDescript": e[c]["GroupUsersDescript"] || f }); } } (d != 2) && (_$(e).Reset({ "IsLogin": 1 })); } }; Namespace.register("U.F.W"); U.F.W.WA = []; U.F.W.DMW = function (c) { if (!U.U.L.LARG() && c.UserId != US.userInfo.userid) { var b, a = U.F.T.IW(c.UserId); if (a) { U.F.W.CMW(a, a.parentNode); } else { a = U.F.T.FW(c.UserId); (!a) && (a = U.F.W.CBW(U.F.W.WA.length), b = true); U.F.W.CSMW(c, a); U.D.SetDTop(a); (b) && (U.D.Tb.WindowRestore(a, null, "1个会话", U.M.apply(this, ([[U.F.W.CWML, ([a])]])), "remove")); U.F.FM.SMT(c.UserId, "", ""); } } }; U.F.W.CBW = function (b) { var a = $("#usestudiomessagediv")[0].cloneNode(true); a.id = ""; a.ChildrenWindow = []; U.F.W.WA.push(a); document.body.appendChild(a); return a; }; U.F.W.CSMW = function (a, d) { var k, g, b, m, f, e, o, l, p, n, j, i, h = $("div#UF_FW_Content", d)[0], c = h.cloneNode(true); $(c).addAttrArray({ "id": "UF_FW_Content" + a.UserId, "style": { "display": "block" } }); k = $("div#UF_FW_windowfont", c)[0]; g = $$("div", { "id": "UF_FW_oneChating" + a.UserId, "className": "UF_FW_oneChating" }, k); b = $$("div", { "className": "UF_FW_os UF_FW_userHeadBack" }, g); $$("img", { "src": U.M.GetImgU(a.UserThumbnailImageHead), "alt": "", "onclick": [[U.M.StopBubble], [top.U.U.I.POUW, ([a.UserId])]], "onmousedown": [U.M.StopBubble], "onerror": [U.M.ImgError, (["this"])] }, b); m = $$("div", { "style": { "cssText": "width: 100%; padding-top: 10px;max-width: 345px; paddingtop: 10px; float: left;" } }, g); $$("div", { "style": { "float": "left", "color": "#efefef", "fontSize": "130%" }, "innerHTML": a.UserNickName }, m); $$("div", { "className": "UF_FW_os UF_FW_signIcon" }, m); $$("div", { "className": "UF_FW_sign", "innerHTML": a.UserIndividualitysignature || "" }, m); f = $("div#UF_FW_windowcontent", c)[0]; e = $$("div", { "style": { "width": "100%", "height": "100%" } }, f); $$("div", { "id": "Content" + a.UserId, "className": "", "style": { "height": (d.clientHeight == 0 ? 412 : d.clientHeight) - 229 + "px", "width": "100%", "backgroundColor": "White", "overflowY": "auto", "overflowX": "hidden" } }, e); o = $$("div", { "id": "ChattingRichEditorDiv" + a.UserId, "style": { "width": "100%", "height": "112px" } }, e); U.D.E.RichEditor(o, 430, 82, true); l = $("div@contenteditable=true", o).addAttrArray({ "onkeypress": [[U.M.returnkeylogin, ([null, (i = [[U.F.FM.SGM, ([e, a.UserId])], [U.F.FM.SEB, (["this"])]])])]] }); p = $("div#SendMessageImg", d).addAttrArray({ "onclick": i })[0]; $("div#messagenote", o)[0].onclick = U.M.apply(this, ([[U.F.W.CDC, ([a.UserId, c])]])); n = $("div#UF_FW_user", d)[0]; j = $$("div", { "id": "UF_ChattingUser" + a.UserId, "className": "UF_FW_os UF_FW_userState", "onmousedown": U.M.StopBubble, "onclick": [[U.M.StopBubble], [U.F.W.CMW, ([c, d])]] }, n); $$("div", { "className": "UF_FW_os " + a.IsLogin == 0 ? "UF_FW_StateBackG" : "UF_FW_LoginStateBackG" }, j); $$("div", { "className": "UF_FW_userName", "innerHTML": a.UserNickName }, j); $$("div", { "className": "UF_FW_os UF_FW_CloseButton", "onclick": [[U.M.StopBubble], [U.F.W.CML, ([a.UserId, d, j])]], "onmousedown": [U.M.StopBubble] }, j); h.parentNode.insertBefore(c, h); d.ChildrenWindow.push(c); U.D.Tb.changeRestoreName(a.UserId, d.ChildrenWindow.length + 1 + "个对话"); U.D.PopupWindow(d); U.F.W.CMW(c, d); }; U.F.W.CMW = function (c, e) { var d, b = c.id.substr(13), a = e.ChildrenWindow; for (d = 0; d < a.length; d++) { (a[d] != c) && (a[d].style.display = "none"); } c.style.display = "block"; c.scrollTop = c.scrollHeight - c.offsetHeight; $("div#SendMessageImg", e)[0].onclick = U.M.apply(this, ([[U.F.FM.SGM, ([$("div#ChattingRichEditorDiv" + b, e)[0].parentNode, b])]])); U.F.A.IframeAutoHight(e); $("div@contenteditable=true", c)[0].focus(); }; U.F.W.CML = function (b, d, a) { var f, g, e, c = d.ChildrenWindow; if (c.length == 1) { U.F.W.CWML(d); } else { for (f = 0; f < c.length; f++) { if ((g = c[f]) && g.id.indexOf(b) > -1) { g.parentNode.removeChild(g); a.parentNode.removeChild(a); c.splice(f, 1); g = c[f]; (!g) && (g = c[f - 1]); U.F.W.CMW(g, d); U.D.Tb.changeRestoreName(d.id, d.ChildrenWindow.length + "个对话"); return; } } } }; U.F.W.CWML = function (a) { U.F.T.DW(a); (a.parentNode) && (U.D.Tb.PopupWinClose(a, "remove")); }; U.F.T.DW = function (b) { var a = U.F.W.WA, c = a.inArray(b); (c !== false) && (a.splice(c, 1)); }; U.F.T.FW = function (a) { var c, b = U.F.W.WA; for (c = 0; c < b.length; c++) { if (b[c].ChildrenWindow.length < 3) { return b[c]; } } }; U.F.T.IW = function (b) { var d, a, c = U.F.W.WA; for (d = 0; d < c.length; d++) { if (a = _$(c[d].ChildrenWindow).Like({ "id": b })[0]) { return a; } } }; U.F.W.CDC = function (b, c, a) { var g, f, d = "none", e = $(c).GetElementInfo(); if (b) { g = $("div#UF_FW_C", c)[0]; if (g.style.display == "none") { d = "block"; } g.style.display = d; U.F.A.IframeAutoHight(c.parentNode); } else { g = $("div#UF_GW_C", c)[0]; d = g.style.display == "none" ? ["block", "none", 695] : ["none", "block", 527]; g.style.display = d[0]; $("div#GainFormation", c)[0].style.display = d[1]; c.style.minWidth = d[2] + "px"; U.F.A.GIframeAutoHight(c); } U.F.FM.GSH(b || a, g, 1, b ? false : true); }; U.F.W.GNF = []; U.F.W.DGMW = function (b) { var c, e, a, d = _$(U.F.W.GNF).Select({ "id": b.GroupManageID }, null, 1)[0]; if (d) { d.style.display = "block"; U.D.SetDTop(d); } else { d = $("#usestudioGroupmessagediv")[0].cloneNode(true); d.id = b.GroupManageID; c = $("div#GroupChattingRichEditor", d)[0]; U.D.E.RichEditor(c, 453, 94, true); a = $("div@contenteditable=true", c).addAttrArray({ "onkeypress": [[U.M.returnkeylogin, ([null, [[U.F.FM.SGM, ([d, b.GroupManageID, true])], [U.F.FM.SEB, (["this"])]]])]] })[0]; e = $("div#SendMessageImg", d).addAttrArray({ "onclick": [[U.F.FM.SGM, ([d, b.GroupManageID, true])]] })[0]; $("div#Content", d)[0].id = "Content" + b.GroupManageID; $("span#usestudiomessagedivtitle", d)[0].innerHTML = b.GroupManageName; $("div#UF_GW_DescInfodiv", d)[0].innerHTML = b.GroupManageDescript; $("div#messagenote", d)[0].onclick = U.M.apply(this, ([[U.F.W.CDC, (["", d, b.GroupManageID])]])); U.F.DisplayGroupMembers(b.GroupManageID, $("div#UF_GW_MembersDiv", d)[0]); U.F.FM.SEB(a, e); U.D.Tb.WindowRestore(d, null, b.GroupManageName + "[群]"); U.F.W.GNF.push(d); U.F.FM.SMT(b.GroupManageID, "", "", true); $("body")[0].appendChild(d); U.D.PopupWindow(d); a.focus(); } }; U.F.W.CDGMW = function (a) { U.D.Tb.PopupWinClose(a, "remove"); _$(U.F.W.GNF).Delete({ "id": a.id }); }; U.F.FM.SEB = function (a) { var b = event; if (b.ctrlKey && b.keyCode == 10) { U.D.E.GetSelectionRange(window, a, { "TF": "QL" }).CTHH(); } }; U.F.FM.SUIMG = function (a) { U.M.ImageZoom(a, { "height": "80" }); a.onload = null; }; Namespace.register("U.U.R"); U.U.R.SRW = function (a) { if (a.getAttribute("stat") == "block") { $("#UU_UR_Reg").animate({ "left": "0px" }, 100); $("#UU_UR_Win").animate({ "left": document.body.clientWidth / 2 - 597 / 2 + "px" }, 100); a.setAttribute("stat", "none"); } else { $("#UU_UR_Reg").animate({ "left": "-280px" }, 100); $("#UU_UR_Win").animate({ "left": document.body.clientWidth / 2 - 597 / 2 + 140 + "px" }, 100); a.setAttribute("stat", "block"); a.onclick = U.M.apply(this, [[U.U.R.SRW, ([a])]]); U.U.R.BTT(a.parentNode); } }; U.U.R.GVCI = function (a) { $("img", a.parentNode)[0].src = "http://disk.1473.cn/USupfile.ashx?iframename=Verification&n=" + Math.random(); }; U.U.R.LBC = function (c, a) { var b = true; if (a == "UPass") { if (!U.MS.PassWord.test(c.value)) { b = false; } } else { if (!U.MS.UserName.test(c.value)) { b = false; } } c.parentNode.style["border"] = b ? "1px solid #9d9d9d" : "1px solid #cc0000"; return b; }; U.U.R.C = function (a) { a.checked = a.checked ? false : true; U.U.R.RR(a); }; U.U.R.RR = function (b) { var a = $("a", b.parentNode)[0]; b.checked ? a.style.background = "none" : a.style.background = "#cc0000"; U.U.R.TBA[5] = b.checked; }; U.U.R.UR = function (e) { if (U.U.R.RC()) { e = e || e.parentNode.parentNode.parentNode; var b, a = $("input", e), g = $("i", e), f = a[0], d = a[1], c = a[3]; U.A.Request("UseStudioManage.userregisterAjax", ([f.value, d.value, c.value, US.NLInfo.LogAddr || "", 0, ""]), U.U.R.AsynUR, ([$("#UU_UR_Login")[0], US.NLInfo.LogAddr])); for (b = 0; b < a.length; b++) { g[b].style.display = "none"; a[b].value = ""; } U.U.R.TBA = [false, false, false, false, false, true]; U.U.R.BTT(e); } else { alert("请正确的填写信息"); } }; U.U.R.AsynUR = function (a, b) { U.U.L.AsynUlL(a, b); U.U.GZ.TGR(); }; U.U.R.TBA = [false, false, false, false, false, true]; U.U.R.RUN = function (a) { a.value = a.value.SubN(); U.U.R.TBA[0] = false; if (a.value == "") { $("i", a.parentNode)[0].style.display = "block"; } else { if (!U.MS.UserName.test(a.value)) { U.U.R.UET(a, "2-7汉字或4-14字符"); return false; } else { U.A.Request("UseStudioManage.CheckUserName", ([a.value]), U.U.R.IRUN, (["", a])); } } }; U.U.R.IRUN = function (b) { var a = b.context; b = b.value; if (b == "True") { U.U.R.UET(a[1], "已被注册!"); } else { U.U.R.UET(a[1], "success"); U.U.R.TBA[0] = true; } }; U.U.R.IRP = function (a) { a.value = a.value.SubN(); U.U.R.TBA[1] = false; if (a.value == "" || a.value.length < 6) { U.U.R.UET(a, "为空或者小于6位"); return; } if (!U.MS.PassWord.test(a.value)) { U.U.R.UET(a, "不支持特殊符号"); } else { U.U.R.UET(a, "pass"); U.U.R.TBA[1] = true; } }; U.U.R.RCFP = function (b, a) { U.U.R.TBA[2] = false; b.value = b.value.SubN(); if (b.value == "") { U.U.R.UET(b, "nullText"); } else { if (b.value != a.value) { U.U.R.UET(b, "密码不一致"); } else { U.U.R.UET(b, "success"); U.U.R.TBA[2] = true; } } }; U.U.R.CAC = function (b, a) { if (b.value != "") { U.Adisk.Request("UseStudioDisk.GetCheckCodeAjax", ([b.value]), U.U.R.AsynAC, (["", b, a])); } }; U.U.R.AsynAC = function (b) { var a = b.context; b = b.value; if (b == "True") { U.U.R.UET(a[1], "success"); U.U.R.TBA[4] = true; (a[2]) && (a[2]()); } else { U.U.R.UET(a[1], "×"); U.U.R.TBA[4] = false; U.Alert("验证码错误或者服务器繁忙"); a[1].parentNode.parentNode.getElementsByTagName("img")[0].src = "http://disk.1473.cn/USupfile.ashx?iframename=Verification&n=" + Math.random(); } }; U.U.R.DTT = function (b) { var a = $("input", b.parentNode)[0]; a.value = ""; a.focus(); $("i", b.parentNode)[0].style.display = "none"; }; U.U.R.BTT = function (c) { var b = $("i", c); for (var a = 0; a < b.length; a++) { b[a].style.display = "block"; } }; U.U.R.RUE = function (a) { a.value = a.value.SubN(); U.U.R.TBA[3] = false; if (a.value == "") { U.U.R.UET(a, "nullText"); } if (!U.MS.Email.test(a.value)) { U.U.R.UET(a, "邮箱格式错误"); U.Alert("格式错误"); } else { U.A.Request("UseStudioManage.CheckEmail", ([US.NU, a.value]), U.U.R.AsynRUE, (["", a])); } }; U.U.R.AsynRUE = function (b) { var a = b.context; b = b.value; if (b) { U.U.R.TBA[3] = true; U.U.R.UET(a[1], "success"); } else { U.U.R.UET(a[1], "已经有人有过该邮箱"); } }; U.U.R.RC = function () { var b = true; for (var a = 0; a < U.U.R.TBA.length; a++) { b = U.U.R.TBA[a]; if (!b) { return b; } } return b; }; U.U.R.UET = function (d, g) { var c, e, b = 0, a = d.value, f = $("i", d.parentNode); d.style.color = "#000"; if (g == "success") { f.addAttrArray({ "style": { "display": "none" }, "innerHTML": "" }, 0); d.parentNode.style.border = "1px solid green"; } else { if (g == "pass") { c = "("; (a.length > 10) && (b++, c += ">10位,"); (a.match(/[0-9]/ig)) && (b++, c += "含数字,"); (a.match(/[a-z]/ig)) && (b++, c += "含字符,"); c += ")"; if (b = 1) { c = "弱" + c; e = "#FF4545"; } else { if (b = 2) { c = "中" + c; e = "#FFD35E"; } else { c = "强" + c; e = "#95EB81"; } } f.addAttrArray({ "style": { "display": "block", "backgroundColor": e, "color": "#fff" }, "innerHTML": c }, 0); } else { f.addAttrArray({ "style": { "display": "block", "backgroundColor": "#c00", "color": "#fff" }, "innerHTML": g }, 0); } } }; Namespace.register("U.U.F"); U.U.R.Showbottom = function (a) { if (a.getAttribute("stat") == "block") { $("#UU_GP_ForgetPsw").animate({ "top": 123 + "px" }, 100); $("#UU_UR_Win").animate({ "top": document.body.clientHeight / 2 - 142 + "px" }, 100); a.setAttribute("stat", "none"); } else { $("#UU_GP_ForgetPsw")[0].style.display = "block"; $("#UU_GP_ForgetPsw").animate({ "top": 272 + "px" }, 100); $("#UU_UR_Win").animate({ "top": document.body.clientHeight / 2 - 214 + "px" }, 100); a.setAttribute("stat", "block"); } }; U.U.R.SCChangePassword = function () { var b = $("#UU_GP_FindPasswordName")[0]; var a = $("#UU_GP_FindPasswordSC")[0]; if (b.value.SubN() == "" || a.value.SubN() == "") { alert("请填写完整"); } else { U.A.Request("UseStudioManage.SecurityCodefindPassword", ([b.value, a.value]), U.U.R.SCAPassword, (["", b, a])); } }; U.U.R.SCAPassword = function (d) { var c = d.context; d = d.value; if (d) { var b = c[1].value, a = c[2].value; c[2].value = c[1].value = ""; $$("input", { "type": "password", "className": "UU_GP_Input", "id": "UU_GP_FindPasswordName" }, c[1].parentNode); c[1].parentNode.removeChild(c[1]); $("#UU_GP_NameDiv")[0].innerHTML = "新的密码:"; $("#UU_GP_SCDiv")[0].innerHTML = "确认密码:"; $("#UU_GP_POSTPassword").addAttrArray({ "value": "修改密码", "onclick": [U.U.R.POSTPassword, ([d, b, a])] }); alert("请输入新的密码,并确认!"); } else { alert("用户名或者密保码错误!"); } }; U.U.R.POSTPassword = function (b, c, a) { var e = $("#UU_GP_FindPasswordName")[0]; var d = $("#UU_GP_FindPasswordSC")[0]; if (e.length < 6 || e.length > 20) { alert("密码长度不正确,应为6-20位"); } else { if (!U.MS.PassWord.test(e.value)) { alert("密码格式不正确,不支持特殊符号"); } else { if (e.value != d.value) { alert("两次密码不相等,请核对"); } else { U.A.Request("UseStudioManage.ModifyUserPassword", ([d.value, b, c, a]), U.U.R.setAPassword, ([""])); U.Alert("修改中,请您稍等,成功提示"); e.value = d.value = ""; } } } }; U.U.R.setAPassword = function (b) { var a = b.context; b = b.value; if (b) { $("#UU_GP_NameDiv")[0].innerHTML = "用户名:"; $("#UU_GP_SCDiv")[0].innerHTML = "密保码:"; $("#UU_GP_POSTPassword").addAttrArray({ "value": "确认提交", "onclick": U.U.R.SCChangePassword }); alert("修改成功,请重新登录"); } else { U.Alert("服务器繁忙"); } }; U.U.R.STEmail = function (c) { var a = $("input#UU_GP_FPEB_UN", c)[0]; var b = $("span#UU_GP_FPEB_Error", c)[0]; if (!U.MS.UserName.test(a.value)) { b.innerHTML = " 格式不正确"; return; } else { U.A.Request("UseStudioManage.usestudiousergetpassword", ([a.value]), U.U.R.STAEmail, ([])); } }; U.U.R.STAEmail = function (b) { var a = b.context; b = b.value; if (b) { alert("请5分钟后到注册邮箱查收信息!"); } else { alert("用户名不存在,或者服务器失败"); } }; U.U.R.FPWT = function (a) { alert("此服务暂不开放 请见谅"); return; if (!U.MS.TelephoneNumber.test(a.value)) { alert("格式不正确"); return false; } }; U.U.R.CSET = function (d) { var a = []; var c = [$("#UU_GP_FPQB")[0], $("#UU_GP_FPPB")[0], $("#UU_GP_FPEB")[0]]; switch (d.id) { case c[0].id: a = ["block", "none", "none"]; break; case c[1].id: a = ["none", "block", "none"]; break; case c[2].id: a = ["none", "none", "block"]; break; } for (var b = 0; b < a.length; b++) { c[b].style.display = a[b]; } }; Namespace.register("U.U.GZ"); U.U.GZ.GN = { "2d9c5d2d-e6e5-4a40-8064-f93a98d0e647": { "Url": "http://pay.1473.cn/?f=hbt&=hbt", "TT": ["UP_TGXI UP_TGXIH", "", "好笔头", "云笔记产品", "好笔头业务云笔记专为企业团队量身打造,致力为企业团队提供最好、最适合的云笔记产品,记客户,记工作,记知识,重要工作备忘提醒,专为改善企业团队工作效率而生,同时团队围绕笔记交流协作,提高团队执行和分享效率。", "UP_TGXWCB UP_TGXWCBB"] }, "7bc6d08c-7db3-4ef4-8a39-595a4967a189": { "Url": "http://pay.1473.cn/?f=zh&zh=", "TT": ["UP_TGXI UP_TGXIZ", "", "中恒科技", "兼容生产CD", "深圳市中恒科技实业有限公司坐落于具有中国光盘生产基地之誉称的广东省深圳市,是一家兼容生产CD-R,DVD-R可录入式空白光盘的中外合资企业,总投资3千万美元。第一期拥有10条具有国际先进水平的生产线,年产量可达6千万元。", "UP_TGXWCB UP_TGXWCBD"] }, "ea0efe2e-9167-4698-b9b5-31c27ad5eb73": { "Url": "http://pay.1473.cn/?f=sp&sp=", "TT": ["UP_TGXI UP_TGXIB", "", "声博配音公司", "各个语种的深圳配音", "声博配音公司拥有全新数字专业录音棚,资深音频工程师、录音师、音乐制作人等。 成立以来,公司在一直致力于中文及各个语种的深圳配音业务、音乐制作等。 为国内外客户录制了大量影视动画、广告、专题等。在深圳配音行业内树立了良好的口碑。", "UP_TGXWCB UP_TGXWCBB"] }, "fd01dd1b-9c87-4e4f-a3fb-af1b91bf56f8": { "Url": "/#!/tg/", "TT": ["UP_TGXI UP_TGXIY", "", "云端桌面", "体验崭新的云服务", "云端桌面远离单机,基于互联网。提供免费存储,让你远离U盘,排除U盘丢失和携带的麻烦。云端的资源都是共享的,你可以随时获取好友共享的资源。", "UP_TGXWCB UP_TGXWCBY"] }, "ea0efe2e-9167-4698-b9b5-31c27ad5eb73": { "Url": "http://pay.1473.cn/?f=sp&sp=", "TT": ["UP_TGXI UP_TGXIB", "", "声博配音公司", "各个语种的深圳配音", "声博配音公司拥有全新数字专业录音棚,资深音频工程师、录音师、音乐制作人等。 成立以来,公司在一直致力于中文及各个语种的深圳配音业务、音乐制作等。 为国内外客户录制了大量影视动画、广告、专题等。在深圳配音行业内树立了良好的口碑。", "UP_TGXWCB UP_TGXWCBB"] }, "90f7c5ca-f7ab-4f31-8869-7275b8e8955c": { "Url": "http://pay.1473.cn/?f=bz&bz=", "TT": ["UP_TGXI UP_TGXID", "", "北京邮电大学", "高新技术产业发展", "北京邮电大学深圳研究院(简称深圳研究院)是依照国家有关法律、行政法规和深圳市人民政府深府办[2000]39号文件以及关于进一步扶持高新技术产业发展的若干规定成立的北京邮电大学全资事业法人机构。", "UP_TGXWCB UP_TGXWCBD"] } }; U.U.GZ.TF; U.U.GZ.DTG = function () { var a = $("#UP_TG")[0]; U.D.PopupWindow(a); U.D.Tb.WindowRestore(a, null, "推广"); }; U.U.GZ.DTGOD = function (a) { var e = $("#UP_TGXW")[0], c = $("div", e), d = U.U.GZ.GN[a]["TT"]; for (var b = 0; b < d.length; b++) { if (b == 1) { continue; } if (b > 0 && b < d.length - 1) { c[b].innerHTML = d[b]; } else { c[b].className = d[b] + " UP_TGI"; } } c[c.length - 2].onclick = U.M.apply(this, [[U.U.GZ.GTGURL, ([a])]]); }; U.U.GZ.NTG = function (a) { if (!U.U.L.LARG()) { if (US.userInfo.TGD && US.userInfo.TGD["NTG"] && a == null) { U.U.GZ.PLTG(US.userInfo.TGD["NTG"]); U.U.GZ.LTTG(US.userInfo.TGD["YXT"]); $("#UP_TGDPI")[0].innerText = ""; U.U.GZ.GTGFW(0); } else { U.PY.Request("UseStudioPay.GetUserAllTG", ([US.userInfo.userid]), U.U.GZ.AsynNTG, ([$("#UP_TGA")[0]])); $("#UP_TGA")[0].onscroll = U.M.SSCH({ "AF": U.U.GZ.GFWTG }).SCH(); } } }; U.U.GZ.AsynNTG = function (b) { var a = b.context; b = b.value; (US.userInfo.TGD == null) && (US.userInfo.TGD = {}); US.userInfo.TGD["NTG"] = b[0]; US.userInfo.TGD["YXT"] = U.U.GZ.DT(b[1]); US.userInfo.TGD["YXD"] = [b[2]]; U.U.GZ.NTG(); }; U.U.GZ.DT = function (d) { var c, b, a = []; for (c = 0; c < d.length; c++) { a[c] = []; a[c].push(d[c]); for (b = c + 1; b < d.length; b++) { if (d[b]["TGUserInfoID"] == d[c]["TGUserInfoID"]) { a[c].push(d[b]); d.splice(b, 1); } } } return a; }; U.U.GZ.PLTG = function (n) { var g, e, c, h = $("#UP_TGDTD")[0], m, b, l, a = document.createDocumentFragment(), d = [], f = ["disk", "photo", "music", "video", "blog"]; h.innerText = ""; if (n.length > 0) { $("#UP_TGDUN")[0].innerHTML = US.userInfo.TrueName || US.userInfo.UserNickName; for (g = 0; g < n.length; g++) { d.push(n[g]["TY"] + n[g]["TGUserInfoID"]); if (n[g]["TGID"] == "fd01dd1b-9c87-4e4f-a3fb-af1b91bf56f8") { for (e = 0; e < f.length; e++) { d.push(US.ms + "#!/" + f[e] + "/" + US.userInfo.username); } } m = $$("div", { "className": "UP_TGDTDD" }, a); $$("div", { "className": "UP_TGDTDDN", "innerHTML": U.U.GZ.GN[n[g]["TGID"]]["TT"][2] + ":" }, m); for (c = 0; c < d.length; c++) { b = $$("div", { "className": "UP_TGDTDDA" }, m); l = $$("input", { "className": "UP_TGDTDDS", "readOnly": "true", "value": d[c], "oncopy": [[U.M.StopBubble], [U.M.Copy, (["retElement.value"])]] }, b); $$("div", { "innerHTML": "复制", "className": "UP_TGDTDDF", "style": { "cssText": "float:right" }, "onclick": [[U.M.StopBubble], [U.M.Copy, ([l.value])]] }, b); } d.splice(0, d.length); } h.appendChild(a); } else { h.innerText = "没有推广分类文类"; } }; U.U.GZ.LTTG = function (e) { var b = $("#UP_TGDWP")[0], a, g, f, d = document.createDocumentFragment(); b.innerText = ""; for (var c = 0; c < e.length; c++) { a = $$("div", { "className": "UP_TGDWP" }, d); g = $$("div", { "className": "UP_TGDWY" }, a); $$("div", { "className": "UP_TGDWYN", "innerHTML": U.U.GZ.GN[e[c][0]["TGID"]]["TT"][2] + "点击次数" }, g); $$("div", { "className": "UP_TGDWYS", "innerHTML": e[c][0]["C"] }, g); f = $$("div", { "className": "UP_TGDWY" }, a); $$("div", { "className": "UP_TGDWYN", "innerHTML": U.U.GZ.GN[e[c][0]["TGID"]]["TT"][2] + "成功注册" }, f); $$("div", { "className": "UP_TGDWYS", "innerHTML": e[c][1] ? e[c][1]["C"] : "0" }, f); } b.appendChild(d); }; U.U.GZ.GFWTG = function () { if (U.U.GZ.GTGFW.call(this, (this.P + 1)).length == 0) { this.P -= 1; this.TF = false; return false; } }; U.U.GZ.GTGFW = function (b) { var a = U.U.GZ.GYXFW(b); if (a) { U.U.GZ.FWTG(a); } else { var c = Math.floor(b / 5); U.PY.Request("UseStudioPay.GetTGYXSL", ([US.userInfo.userid, c * 50, (c + 1) * 50 - 1]), U.U.GZ.AsynGTGFW, (["", b, this])); return []; } return a; }; U.U.GZ.AsynGTGFW = function (b) { var a = b.context; b = b.value; US.userInfo.TGD["YXD"].push(b); U.U.GZ.GTGFW(a[1]); a[2].TF = true; }; U.U.GZ.GYXFW = function (c) { if (US.userInfo.TGD) { var b = US.userInfo.TGD["YXD"], d = Math.floor(c / 5), a = (c - d * 5); if (b[d]) { return b[d].slice(a * 10, (a + 1) * 10); } } }; U.U.GZ.FWTG = function (UTL) { if (UTL.length > 0) { var _UDPD = $("#UP_TGDPI")[0], _UDOD, _UTD, _UDFD = document.createDocumentFragment(); for (var i = 0; i < UTL.length; i++) { eval("_UTD =" + UTL[i]["TGAdress"]); _UDOD = $$("div", { "className": "UP_TGDPH UP_TGDPIF", "style": { "backgroundColor": "White" } }, _UDPD); $$("div", { "className": "UTDF", "style": { "marginLeft": "0px" }, "innerHTML": UTL[i]["UserIp"] }, _UDOD); $$("div", { "className": "UTDF", "innerHTML": _UTD["province"] + " " + _UTD["city"] }, _UDOD); $$("div", { "className": "UTDF", "innerHTML": U.MT.getTimeStr(UTL[i]["Time"], "String") }, _UDOD); $$("div", { "className": "UTDF", "innerHTML": U.U.GZ.GN[UTL[i]["TGID"]]["TT"][2] }, _UDOD); $$("div", { "className": "UTDF", "innerHTML": UTL[i]["IsRegistration"] ? "成功" : "失败", "style": { "color": UTL[i]["IsRegistration"] ? "Red" : "" } }, _UDOD); } _UDPD.appendChild(_UDFD); } }; U.U.GZ.GPMTG = function (a) { if (US.userInfo.TGD && US.userInfo.TGD["TGP"] && a == null) { U.U.GZ.PMTG(US.userInfo.TGD["TGP"]); } else { U.PY.Request("UseStudioPay.GetTGPM", ([]), U.U.GZ.AsynGPMTG, ([$("#UP_TGA")[0]])); } }; U.U.GZ.AsynGPMTG = function (a) { a = a.value; (US.userInfo.TGD == null) && (US.userInfo.TGD = {}); US.userInfo.TGD["TGP"] = a; U.U.GZ.GPMTG(); }; U.U.GZ.PMTG = function (e) { var b = $("#UP_TGPG")[0], a, f, d = document.createDocumentFragment(); b.innerText = ""; for (var c = 0; c < e.length; c++) { a = $$("div", { "className": "UP_TGPH" + (c < 3 ? "" : " UP_TGPHV") }, d); $$("div", { "className": "UP_TGPHM", "innerHTML": (c + 1 < 10 ? "0" : "") + (c + 1) + ".", "style": { "color": c == 0 ? "#e06767" : "" } }, a); f = $$("div", { "className": (c < 3 ? "UP_TGPHH" : "UP_TGPHHM") }, a); $$("img", { "className": (c < 3 ? "UP_TGPHHI" : "UP_TGPHHIO"), "alt": e[c]["TrueName"] || e[c]["UserName"], "src": U.M.GetImgU(e[c].UserThumbnailImageHead), "onclick": [U.U.I.POUW, ([e[c]["UserID"]])] }, f); $$("div", { "className": "UP_TGPHHS UTDF" + (c < 3 ? "" : " UP_TGPHHSM"), "innerHTML": e[c]["TrueName"] || e[c]["UserName"] }, f); $$("div", { "className": "UP_TGPHHS UTDF" + (c < 3 ? "" : " UP_TGPHHSM"), "innerHTML": U.U.GZ.GN[e[c]["TGID"]]["TT"][2] }, f); } b.appendChild(d); }; U.U.GZ.AddUr = function (a) { U.PY.Request("UseStudioPay.SetYXTG", ([a, U.MS.SerializeJsonToStr(US.NLInfo)]), U.U.GZ.AsynAddUr, ([""])); }; U.U.GZ.AddUrID = function (a) { U.PY.Request("UseStudioPay.SetYXTGBYUID", ([a, U.MS.SerializeJsonToStr(US.NLInfo)]), U.U.GZ.AsynAddUr, ([""])); }; U.U.GZ.AsynAddUr = function (a) { a = a.value; U.U.GZ.TF = a; U.U.GZ.TGR(); }; U.U.GZ.GTGURL = function (a) { if (!U.U.L.LARG()) { if (US.userInfo.TGD && US.userInfo.TGD["NTG"] && U.U.GZ.GISTGURL(a)) { U.U.GZ.STG(1, $("#UP_TGA")[0]); return false; } U.Alert("正在获取中..."); U.PY.Request("UseStudioPay.SetUserTG", ([US.userInfo.userid, a]), U.U.GZ.AsynGTGURL, (["", a])); } }; U.U.GZ.AsynGTGURL = function (b) { context = b.context; b = b.value; if (b) { if (US.userInfo.TGD && US.userInfo.TGD["NTG"]) { b = b.toLocaleLowerCase(); var a = new U.U.GZ.TGE([context[1], b, U.U.GZ.GN[context[1]]["Url"]]); } US.userInfo.TGD["NTG"].push(a); } U.U.GZ.STG(1, $("#UP_TGA")[0]); }; U.U.GZ.GISTGURL = function (b) { var a = US.userInfo.TGD["NTG"]; for (var c = 0; c < a.length; c++) { if (a[c]["TGID"] == b) { return a[c]; } } return false; }; U.U.GZ.TGR = function () { if (U.U.GZ.TF && US.userInfo.userid) { U.PY.Request("UseStudioPay.UpAddR", ([U.U.GZ.TF]), U.M.apply(), ([])); U.U.GZ.TF = false; } }; U.U.GZ.STG = function (d, c) { d = d + 1; var b = U.M.GTCN(c.childNodes); for (var a = 1; a < b.length; a++) { if (d == 2 && US.userInfo.userid == null) { break; } if (d == a) { b[a].style.display = "block"; } else { b[a].style.display = "none"; } } if (d == 3) { U.U.GZ.GPMTG(); } else { if (d > 1) { if (!U.U.L.LARG()) { U.U.GZ.NTG(); } } } }; U.U.GZ.TGE = function (a) { this.TGID = a[0]; this.TGUserInfoID = a[1]; this.TY = a[2]; }; Namespace.register("U.U.I"); U.U.I.POUW = function (a) { var c = top.$("#newusers" + a)[0]; if (c) { c.style.display = "block"; U.D.SetDTop(c); } else { c = top.$("#UD_NU_UDDiv")[0].cloneNode(true); c.id = "newusers" + a; top.document.body.appendChild(c); U.D.PopupWindow(c); var b = $("div#UD_NU_OUInfo", c)[0]; U.U.I.AsynPOUW(a, b); U.M.StopBubble(); U.D.R.DesktopLeftClick(); } }; U.U.I.AsynPOUW = function (a, b) { U.A.Request("UseStudioManage.GetNewUserInfo", ([a]), U.U.I.SPIFW, ([b.parentNode])); }; U.U.I.SPIFW = function (e) { var a = e.context; e = e.value; if (e) { var g, f, d, c = e[0], b = e[1], m = e[2], o = e[3]; var l = U.M.JTPL(a[0], { "lastLoginDate": c.lastLoginDate, "UserRemarks": c.UserRemarks || "", "UserIndividualitysignature": c.UserIndividualitysignature || "", "RegisterDate": U.MT.GetDT(c.RegisterDate) || "", "UserTelephoneNumber": c.UserTelephoneNumber || "", "UserNickName": c.UserNickName || "", "UserEmail": c.UserEmail || "", "UserId": c.UserId || "", "UserNickName": c.UserNickName || "", "LoginIP": c.LoginIP || "", "lastLoginDate": U.MT.GetDT(c.lastLoginDate), "UserImageHead": U.M.GetImgU(c.UserImageHead), "LoginAddress": c.LoginAddress || "深圳" }); $("img", l)[0].src = U.M.GetImgU(c.UserThumbnailImageHead); var k = $("ul", l), n = k[k.length - 1], h = a[0].parentNode, b = [["还未发布过文章", "最近发表了文章"], ["还未发表过评论", "最近发表了评论"], ["还未发布过相片", "上传了照片"]], r = ["的文章", "的评论", "的相册"]; $("span", k[1])[3].onclick = U.M.apply(this, ([[U.M.StopBubble], [U.F.J.ANF, ([c, "add"])]])); for (g = 1; g < e.length; g++) { if (e[g].length == 0) { var q = $$("li", { "className": "UD_NU_BT_L_NR_Li" }, n); $$("span", { "innerHTML": c.UserNickName + r[g - 1], "className": "UD_NU_BT_L_NR_Li_Ni" }, q); $$("span", { "innerHTML": b[g - 1][0] + "...", "className": "UD_NU_BT_L_NR_Li_Nr" }, q); } else { var p = $$("li", { "className": "UD_NU_BT_L_TT_Li" }, n); $$("span", { "style": { "color": "#1c1c1c" }, "innerHTML": c.UserNickName + r[g - 1] }, p); $$("span", { "innerHTML": b[g - 1][1] }, p); if (g != 3) { for (f = 0; f < e[g].length; f++) { d = $$("li", {}, n); $$("span", { "innerHTML": e[g][f].ArticleTitle || e[g][f].ReplyContent, "className": "UD_NU_BT_L_NR_Li_Nr", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, (["UseStudioBlogSystemDiv", null, c.UserId, "", e[g][f].ArticleID])]] }, d); } } else { for (f = 0; f < e[g].length; f++) { $$("img", { "src": US.fs + e[g][f].UseFilesServerThumbnailName, "onclick": [[U.M.StopBubble], [U.Img.Create, ([{ "Thm": US.fs + e[g][f].UseFilesServerThumbnailName, "Img": US.fs + e[g][f].UserFilesServerName }])]], "title": "单击查看详细信息", "className": "UD_NU_BT_img", "onerror": [U.M.ImgError, (["this", 1])] }, n); } } } } h.removeChild(a[0]); $("img", l)[0].onerror = U.M.ImgError; h.appendChild(l); U.U.I.SUPN($("li", h)[0]); } }; U.U.I.SUPN = function (e) { var d = []; var c = $("div", e.parentNode.parentNode.parentNode); var a = [c["UD_NU_OUInfo"], c["UD_NU_BT_PR"], c["UD_NU_BT_L"]]; switch (e.id) { case "UD_NU_PerCloud": d = ["block", "none", "none"]; break; case "UD_NU_Recently": d = ["none", "none", "block"]; break; case "UD_NU_PerData": d = ["none", "block", "none"]; break; } for (var b = 0; b < d.length; b++) { a[b].style.display = d[b]; } }; Namespace.register("U.U"); U.U.UR = false; U.U.UPD = function () { if (!U.U.L.LARG()) { var c = 0; var b = $("#UU_N_UProDiv")[0]; U.D.PopupWindow(b); U.D.Tb.WindowRestore(b, "", "个人信息设置"); $("img", b)[0].src = U.M.GetImgU(US.userInfo.UserThumbnailImageHead); var a = { "UserIDCard": "UU_N_mypost", "UserNickName": "UU_N_myname", "UserEmail": "UU_N_email", "UserTelephoneNumber": "UU_N_phone", "TrueName": "UU_N_TNameInput", "UserRemarks": "UU_N_resume", "UserThumbnailImageHead": "UU_N_Image", "TrueCurrency": "UU_ND_TrueCurrency", "VirtualCurrency": "UU_ND_VirtualCurrency" }; for (var d in a) { if (a.hasOwnProperty(d)) { if (c > 6) { $("#" + a[d])[0].innerHTML = US.userInfo[d] || ""; } else { if (c > 5) { $("#" + a[d])[0].src = U.M.GetImgU(US.userInfo[d] || ""); } else { $("#" + a[d])[0].value = US.userInfo[d] || ""; } } c++; } } (US.userInfo.UserSex == false) ? $("#UU_N_FMSex")[0].checked = true : $("#UU_N_MSex")[0].checked = true; if (!US.userInfo.SecurityAnswer) { $("div", $("#ChangeSecurityCode")[0])[1].style.display = "none"; } U.U.CB(1); if (US.userInfo.IsAllowAccess != 0) { $("#UU_N_TNameInput")[0].disabled = $("#UU_N_mypost")[0].disabled = true; $("#UU_N_Identitycardimg")[0].className = "UU_N_Identitys UD_NUB UU_N_Idenbg2"; $("#UU_N_BDTNFile")[0].disabled = true; } U.U.LMBD(); if (!U.MD.DynamicLoad("/js/UU/U.U.C.js", "js", [[U.U.LCJ, ([])]])) { U.U.LCJ(); } } }; U.U.CB = function (b) { var d = [U.U.SIF, U.U.SMD, U.U.SPW, U.U.SSC, null]; var a = ["UU_N_rightDetail", "UU_N_moreDetail2", "UU_N_pwdblock", "UU_N_SecurityCodeblock", "UU_N_note"]; for (var c = 0; c < a.length; c++) { $("#" + a[c])[0].style.display = "none"; } $("#" + a[b - 1])[0].style.display = "block"; $("#UU_N_SB")[0].onclick = d[b - 1]; }; U.U.SIF = function () { if (U.U.UR) { var g = $("#UU_N_myname")[0].value; var c = $("#UU_N_FMSex")[0].checked ? 0 : 1; var f = $("#UU_N_email")[0].value; var a = $("#UU_N_phone")[0].value; var e = $("#UU_N_TNameInput")[0].value; var h = $("#UU_N_mypost")[0].value; var b = $("#UU_N_resume")[0].value; var d = { "TrueName": e, "UserNickName": g, "UserTelephoneNumber": a, "UserIDCard": h, "UserRemarks": b, "UserEmail": f, "UserIndividualitysignature": b, "UserThumbnailImageHead": $("#UU_N_Image")[0].src, "UserSex": c }; U.A.Request("UseStudioManage.ModifyUserInfo", ([US.userInfo.userid, e, g, a, h, b, f, b, c]), U.U.AsynSIF, (["", d, f])); U.Alert("修改中,请稍后。"); } else { if (!U.U.CUTN()) { U.Alert("资料未更改或者有未填写项目!"); } } }; U.U.AsynSIF = function (b) { var a = b.context; b = b.value; if (b != null) { if (b != 0) { a[1]["UserEmail"] = a[2]; $("#UU_N_email")[0].value = a[2]; } U.U.CUIF(US.userInfo, a[1]); U.U.CUTN(); U.U.CUD(); $("#UF_UP_Maruee")[0].innerHTML = US.userInfo.UserIndividualitysignature; U.U.UR = false; U.Alert("修改成功"); } }; U.U.CUTN = function () { var a = $("#UU_N_BDTNFile")[0]; if (US.userInfo.IsAllowAccess == 0) { if (a.value != "") { if ($("#UU_N_TNameInput")[0].value.Trim() != "" && $("#UU_N_mypost")[0].value.Trim() != "") { U.U.ICAF(a); $("#UU_N_TNameInput")[0].disabled = $("#UU_N_mypost")[0].disabled = true; return true; } else { alert("请填写正确的身份证和姓名"); } } } return false; }; U.U.ICC = function (d, b, a, c) { b.innerHTML = ""; if (a.test(d)) { U.U.UR = true; return true; } else { U.U.UR = false; if (c) { U.U.TE(c, b); } return false; } }; U.U.SEM = function (a) { if (US.userInfo.UserEmail != a.value) { U.A.Request("UseStudioManage.GetEmailValue", ([US.userInfo.userid, a]), U.U.IE, ([""])); } }; U.U.IE = function (b) { b = b.value; var a = $("#UU_N_ChangeEmailSpan")[0]; a.innerHTML = ""; if (!b) { U.U.TE("此邮箱已被注册", a); } }; U.U.SICM = function (a) { if (US.userInfo.useridCard != a) { U.A.Request("UseStudioManage.GetIDCardValue", ([US.userInfo.userid, a]), U.U.AsynSICM, ([""])); } }; U.U.AsynSICM = function (b) { b = b.value; var a = $("#UU_N_ChangeIdCardSpan")[0]; a.innerHTML = ""; if (!b) { U.U.TE("此身份证已被注册", a); } }; U.U.TE = function (b, a) { $$("div", { "className": "UU_N_cs UU_N_error" }, a); $$("div", { "className": "UU_N_float", "innerHTML": b }, a); }; U.U.SER = function (b, a) { if (b) { a.className = "UU_N_cs UU_N_error"; } else { a.className = "UU_N_cs UU_N_right"; } a.innerHTML = ""; return b; }; U.U.LMBD = function () { var a = U.MT.getTimeStr(null, "Array"); var b = U.MT.getTimeStr(US.userInfo.Birthday, "Array"); U.U.AOS(a[0] - 1939, b[0], $("#UU_ND_Birthday_year")[0], 1939); U.U.AOS(12, b[1], $("#UU_ND_Birthday_month")[0], 0); U.U.AOS(U.MT.getDateOfMonth(b[0], b[1]), b[2], $("#UU_ND_Birthday_day")[0], 0); }; U.U.AOS = function (a, c, e, d) { e.options.length = a; for (var b = 0; b < a; b++) { e.options[b].text = e.options[b].value = d + b + 1; } e.selectedIndex = c - d - 1; }; U.U.LCJ = function () { var a = U.U.NO($("#UU_ND_Country")[0], U.U.C.J["citylist"], "co", US.userInfo.Country || "其它"); var b = U.U.NO($("#UU_ND_Province")[0], U.U.C.J["citylist"][a]["cp"], "p", US.userInfo.Province || "其它"); U.U.NO($("#UU_ND_City")[0], U.U.C.J["citylist"][a]["cp"][b]["c"], "n", US.userInfo.City || "其它"); }; U.U.NO = function (e, d, a, c) { e.options.length = d.length; for (var b = 0; b < d.length; b++) { e.options[b].text = e.options[b].value = d[b][a]; if (c == d[b][a]) { e.selectedIndex = b; } } return e.selectedIndex; }; U.U.SMD = function () { var d = $("#UU_ND_Country")[0], e = $("#UU_ND_Province")[0], f = $("#UU_ND_City")[0], a = $("#UU_ND_Birthday_year")[0], c = $("#UU_ND_Birthday_month")[0], g = $("#UU_ND_Birthday_day")[0], b = a.value + "-" + c.value + "-" + g.value; if (U.MT.SetDT(b, "-") != US.userInfo.Birthday || d.value != US.userInfo.Country || e.value != US.userInfo.Province || f.value != US.userInfo.City) { U.A.Request("UseStudioManage.ModifyUserMoreDetail", ([US.userInfo.userid, d.value, e.value, f.value, b]), U.U.AsynSMD, (["", { "Country": d.value, "Province": e.value, "City": f.value, "Birthday": b }])); } U.U.CUD(); }; U.U.AsynSMD = function (b) { var a = b.context; b = b.value; if (b != null) { U.U.CUIF(US.userInfo, a[1]); U.Alert("详细信息保存成功"); return true; } }; U.U.CUIF = function (b, c) { for (var a in c) { b[a] = c[a]; } }; U.U.CNP = function (b) { if (b.id == "UU_N_NowIP") { if (b.value) { U.A.Request("UseStudioManage.ModifyCheckPassword", ([US.userInfo.userid, b.value]), U.U.AsynCNP, ([])); } else { $("#UU_N_Nowp")[0].innerHTML = ""; } } var a = U.A.Request("UseStudioManage.ModifyCheckSecurityCode", ([US.userInfo.userid, b.value])); }; U.U.AsynCNP = function (b) { b = b.value; var a = $("#UU_N_Nowp")[0]; a.innerHTML = ""; if (b == false) { U.U.TE("密码错误", a); } }; U.U.AsynNSC = function (b) { b = b.value; var a = $("#UU_N_NowSCSpan")[0]; a.innerHTML = ""; if (b == false) { U.U.TE("密保码错误", a); } }; U.U.SPW = function () { var a = $("#UU_N_AffirmP")[0]; if (!$("#UU_N_Nowp")[0].innerHTML && !$("#UU_N_Newp")[0].innerHTML && !$("#UU_N_ChangePassword")[0].innerHTML && $("#UU_N_NowIP")[0].value && $("#UU_N_NI")[0].value && $("#UU_N_AffirmP")[0].value) { U.A.Request("UseStudioManage.ModifyUserPassword", ([a.value, US.userInfo.userid, US.userInfo.username, US.userInfo.SecurityAnswer]), U.U.CPW, ([])); } else { U.Alert("请正确填写资料"); } }; U.U.CPW = function (a) { a = a.value; if (a) { US.userInfo.UserPassword = a; $("#UU_N_ChangePassword")[0].innerHTML = $("#UU_N_NI")[0].value = $("#UU_N_NowIP")[0].value = $("#UU_N_AffirmP")[0].value = ""; U.Alert("密码修改成功"); } else { U.Alert("密码修改失败,请重试"); } }; U.U.CCPW = function (f, b, e, a) { a.innerHTML = ""; var d = ""; var c = false; if (f.value && e.value) { if (f.value == e.value) { if (f.value.length < 6 || f.value.length > 20) { d = "长度应为6-20位"; } else { if (!U.MS.PassWord.test(f.value)) { d = "不支持特殊符号"; } else { if (f.value == b.value || e.value == b.value) { d = "新密码不得与旧密码相同"; } else { c = true; } } } } else { d = "两次输入的密码不一致 "; } } if (d) { U.U.TE(d, a); } return c; }; U.U.CNPW = function (b, a) { a.innerHTML = ""; if (b.value) { if (b.value.length < 6 || b.value.length > 20) { U.U.TE("长度应为6-20位", a); } else { if (!U.MS.PassWord.test(b.value)) { U.U.TE("不支持特殊符号", a); } } } }; U.U.SSC = function () { var a = $("#UU_N_AffirmSC")[0]; if (!US.userInfo.SecurityAnswer) { if (!$("#UU_N_NewSCSpan")[0].innerHTML && !$("#UU_N_ChangeSCSpan")[0].innerHTML && $("#UU_N_NewSC")[0].value && $("#UU_N_AffirmSC")[0].value) { U.A.Request("UseStudioManage.EditSecurityCode", ([US.userInfo.userid, a.value]), U.U.CS, ([])); $("div", $("#ChangeSecurityCode")[0])[1].style.display = "block"; } else { U.Alert("请正确填写资料"); } } else { if (!$("#UU_N_NowSCSpan")[0].innerHTML && !$("#UU_N_NewSCSpan")[0].innerHTML && !$("#UU_N_ChangeSCSpan")[0].innerHTML && $("#UU_N_NowSC")[0].value && $("#UU_N_NewSC")[0].value && $("#UU_N_AffirmSC")[0].value) { U.A.Request("UseStudioManage.EditSecurityCode", ([US.userInfo.userid, a.value]), U.U.CS, ([])); } else { U.Alert("请正确填写资料"); } } }; U.U.CS = function (a) { a = a.value; $("#UU_N_NowSC")[0].value = $("#UU_N_NewSC")[0].value = $("#UU_N_AffirmSC")[0].value = $("#UU_N_ChangeSCSpan")[0].innerHTML = ""; US.userInfo.SecurityAnswer = a; U.U.CUD(); U.Alert("密保码修改成功"); }; U.U.DP = function (b) { var a = $("#UU_N_CD")[0]; $("div", a)[7].innerHTML = US.userInfo.UserNickName; var c = $("img", a).addAttrArray({ "src": U.M.GetImgU(US.userInfo.UserThumbnailImageHead), "onerror": [U.M.ImgError, (["this"])] }); $("div", a)[6].onclick = U.M.apply(this, [[U.M.StopBubble], [U.Img.Create, [([{ "Thm": U.M.GetImgU(US.userInfo.UserThumbnailImageHead), "Img": US.fs + US.userInfo.UserImageHead }])]]]); U.U.LXP(b || 0); if (b == null) { U.D.PopupWindow(a); } }; U.U.LDP = function (c) { var b = $("#UU_N_IA")[0]; b.innerHTML = ""; for (var a = 0; a < c.length; a++) { if (a == 8) { break; } $$("img", { "onerror": U.M.ImgError, "className": "UU_N_FLL", "alt": "点击更换头像", "src": c[a][0], "onclick": [[U.U.CP, ([c[a]])]] }, b); } }; U.U.LXP = function (a) { var c = "/img/UserHead/", d = [[c + "nFacen.jpg"], [c + "nFaceArt.jpg"], [c + "212名.jpg"], [c + "w551.png"], [c + "w2.png"], [c + "w3.png"]]; if (a == 1) { d = []; for (var b = US.userInfo.DiskHeadImg.length - 1; b >= 0; b--) { d.push([US.userInfo.DiskHeadImg[b].UserDirectoryUrl, US.fs + US.userInfo.DiskHeadImg[b].UserFilesServerName]); } } U.U.LDP(d); }; U.U.CP = function (a) { var b = a[0] || this.src; var c = $("#UU_N_CD")[0]; $("img", c)[0].src = b; $("div", c)[6].onclick = U.M.apply(this, [[U.M.StopBubble], [U.Img.Create, [([{ "Thm": b, "Img": a[1] || b }])]]]); $("#UU_N_BTT")[0].onclick = U.M.apply(this, [[U.U.CUIMG, ([a, "this"])], [U.U.ULIMG, ([$("input", c)[0]])]]); }; U.U.CUIMG = function (b, a) { if (b[0] != US.fs + US.userInfo.UserThumbnailImageHead && b[0].indexOf("1473.cn") > -1) { U.U.TYMHimg(b[0]); U.Adisk.Request("UseStudioDisk.ModitfyUserHeadImage", ([US.userInfo.userid, (b[1] || b[0]).replace(US.fs, ""), b[0].replace(US.fs, "")]), U.M.apply(this, "U.Alert('修改用户头像成功')"), ([])); US.userInfo.UserThumbnailImageHead = b[0]; US.userInfo.UserImageHead = b[1]; } $("div", a.parentNode.parentNode)[1].onclick(); }; U.U.TYMHimg = function (a) { if (US.userInfo.userid) { $("img", $("#UD_UT")[0])[0].src = $("#UDK_LL_US_IM")[0].src = $("img", $("#UF_UP_UserBoard")[0])[0].src = $("img", $("#UU_N_CD")[0])[0].src = $("#UU_N_Image")[0].src = $("#U_U_L_HeadImg")[0].src = $("#UU_IC_Avatar")[0].src = $("img#UDK_LL_US_IM", $("#UseStudioUserDiskDiv" + US.userInfo.userid)[0])[0].src = a; } }; U.U.TYMIC = function (a) { $("div#UDK_LL_VirC", $("#UseStudioUserDiskDiv" + US.userInfo.userid))[0].innerHTML = "积分:" + a; $("#UU_IC_VCSum")[0].innerHTML = $(".UU_OverIC")[0].innerHTML = $(".UU_OverIC")[1].innerHTML = a; }; U.U.UIDC = function (b) { var a = b.parentNode; U.UP.uploading([b], U.U.DI, (["idcardimg"]), "http://disk.1473.cn/USupfile.ashx?iframename=UploadIdCard"); a.appendChild(b); U.U.UR = true; }; U.U.ICAF = function (b) { var a = b.parentNode; U.UP.uploading([b], U.U.UIAA, (2), "http://disk.1473.cn/USupfile.ashx?iframename=IDCardImage"); $("#UU_N_TNameInput")[0].disabled = $("#UU_N_mypost")[0].disabled = false; a.appendChild(b); }; U.U.UIAA = function (a) { US.userInfo.IsAllowAccess = a; $("#UU_N_TNameInput")[0].disabled = true; $("#UU_N_mypost")[0].disabled = true; $("#UU_N_BDTNFile")[0].disabled = true; $("#UU_N_Identitycardimg")[0].className = "UU_N_Identitys UD_NUB UU_N_Idenbg2"; $("#UU_N_Identitycardimg")[0].style.cursor = "default"; }; U.U.GLUI = function (b) { var a = b.parentNode; U.UP.uploading([b], U.U.DI, (["headimg"]), "http://disk.1473.cn/USupfile.ashx?iframename=Userprofile"); a.appendChild(b); }; U.U.ULIMG = function (b) { if (b.value && $("img", $("#UU_N_CD")[0])[0].src.indexOf("1473.cn") == -1) { var a = b.parentNode; U.UP.uploading([b], U.U.AsynULIMG, ([]), "http://disk.1473.cn/USupfile.ashx?iframename=UploadHeadImage"); a.appendChild(b); U.Alert("正在和服务器同步中..."); } }; U.U.AsynULIMG = function (a) { a = a.value; if (a != null) { US.userInfo.UserImageHead = a.UserFilesServerName; US.userInfo.UserThumbnailImageHead = a.UseFilesServerThumbnailName; U.U.TYMHimg(U.M.GetImgU(US.userInfo.UserThumbnailImageHead)); var b = new U.Dk.M.Entity([a.UserFilesID, a.UserFilesSize, a.UserDirectoryID, a.UserFilesName.length > 10 ? a.UserFilesName.substring(0, 10) + "..." : a.UserFilesName, a.UserFilesName, a.UserFilesExtendName, a.UserFilesServerName, U.MT.GetDT(a.UserFilesAddTime), US.fs + a.UseFilesServerThumbnailName, 99999, null, null, 1, ""]); U.Dk.M.ufinfoarray("add", b); US.userInfo.DiskHeadImg.push(b); U.U.DP(1); U.Alert("保存头像成功"); } }; U.U.DI = function (b) { var a = b.context; b = b.value; if (b != null && isNaN(b[0])) { if (a[0] == "headimg") { U.U.CP(b); } else { U.Img.Create({ "Thm": b[0], "Img": b[0] }); } } else { alert("你现在使用图片大小是:" + b[0] + "KB,已经超过50KB,请重新选择图片不超过50KB!"); } }; U.U.CUD = function () { if (US.userInfo.userid != null) { var a = [["UserNickName", "昵称", "1"], ["UserEmail", "邮箱", "1"], ["UserTelephoneNumber", "手机号码", "1"], ["TrueName", "真实姓名", "1"], ["UserIDCard", "身份证", "1"], ["Country", "国家", "2"], ["Province", "省份", "2"], ["City", "城市", "2"], ["Birthday", "生日", "2"], ["SecurityAnswer", "密保码", "4"]], c = a.length; for (var b = 0; b < a.length; b++) { if (US.userInfo[a[b][0]] == null || US.userInfo[a[b][0]] == "") { c--; } } c = Math.round(c / a.length * 100); return c; } }; Namespace.register("U.U.L"); U.U.L.LAR = function () { var a = $("#UU_LUName"); $("#UU_UR_Reg").animate({ "left": "0px" }, 100); $("#UU_GP_ForgetPsw").animate({ "top": "123px" }, 100); $("#UU_RStat")[0].setAttribute("stat", "none"); $("#UU_AshowStat")[0].setAttribute("stat", "none"); $("#UU_UR_Win").animate({ "left": document.body.clientWidth / 2 - 597 / 2 + "px", "top": document.body.clientHeight / 2 - 284 / 2 + "px", "display": "block" }, 100, U.U.L.LARTS); $("#UU_LUName")[0].focus(); if ($("#UU_UR_NUserCont")[0].getAttribute("hasface") == "no") { U.U.L.GNU($("#UU_UR_NUserCont")[0]); } U.D.SetDTop($("#UU_UR_Win")[0]); }; U.U.L.LARTS = function () { if (US.userInfo.userid == null) { var b = $("#UU_LUName"), a = b.GetElementInfo(); U.D.ZYBH([false, "注册账号,体验云服务", "Step1:注册云端用户或者用QQ、微博外链登录", [null, "注册", [[U.U.R.SRW, ([$("#UU_RStat")[0]])], [U.D.CloseWindow, ([$("#UD_ZY")[0]])]]], { "X": a["TX"], "Y": a["TY"], "L": a["TX"] - 300, "T": a["TY"] - 240 }], b[0]); } }; U.U.L.CLRW = function () { $("#UU_UR_Win").animate({ "left": "0px", "top": "0px" }, 100, U.M.apply(this, "$('#UU_UR_Win').css('display', 'none')")); var a = $("#UU_GP_NaemInputDiv")[0]; $("#UU_LUPass")[0].value = $("#UU_GP_FindPasswordName")[0].value = $("#UU_GP_FindPasswordSC")[0].value = a.innerHTML = ""; $("#UU_GP_NameDiv")[0].innerHTML = "用户名:"; $$("input", { "type": "text", "className": "UU_GP_Input", "id": "UU_GP_FindPasswordName" }, a); $("#UU_GP_SCDiv")[0].innerHTML = "密保码:"; $("#UU_GP_POSTPassword").addAttrArray({ "value": "确认提交", "onclick": U.U.R.SCChangePassword }); U.D.CloseWindow($("#UD_ZY")[0]); }; U.U.L.LARG = function () { if (US.userInfo.userid == null) { U.U.L.LAR(); return true; } else { return false; } }; U.U.L.CookieL = function () { var a = U.U.L.GLID(); if (a && a.userid && a.userid.length == 36) { U.A.Request("UseStudioManage.LoginByCookie", ([a.userid, a.username, U.MS.produceGuid(), US.NLInfo.LogAddr || "", 0]), U.U.L.AsynUlL, (["", US.NLInfo.LogAddr, true])); } else { U.D.G.UrlGuide(); } }; U.U.L.UInfo = function (a) { U.CI.GCUInfo(U.D.BC.GetMessage); }; U.U.L.UlL = function (UEL) { var _UDID = $("input", UEL.parentNode), _UDRD = $("#UU_RStat")[0], _UN = _UDID[0].value, _UP = _UDID[1].value; if (_UN.SubN() != "" && _UP.SubN() != "") { if (US.userInfo != null && eval("/" + US.userInfo.username + "/i").test(_UN) == true) { U.U.L.CLRW(); return; } U.A.Request("UseStudioManage.uploadUserinfo", ([_UN, _UP, US.NLInfo.LogAddr || "", 0]), U.U.L.AsynUlL, ([$("#UU_UR_Login")[0], US.NLInfo.LogAddr])); if (_UDRD.getAttribute("stat") == "block") { U.U.R.SRW(_UDRD); } U.Alert("正在登陆中......"); } else { alert("账号密码不得为空"); } }; U.U.L.AsynUlL = function (request, TF) { var context = request.context; request = request.value; if (request == null) { alert("系统繁忙!请重试"); } else { if (request == false || request == "false") { alert("用户名密码错误"); } else { if (request[0].IsShielding == 1) { alert("该用户已被屏蔽,无法访问"); } else { if (request[0].IsShielding == 2) { alert("该用户不允许被访问!"); } else { if (US.userInfo.userid !== request[0][0].UserId) { U.U.L.UL(); if (context[2]) { U.D.G.UrlGuide(); } US.userInfo = request[0][0]; US.userInfo.UIF = request[5][0]; US.userInfo.TJF = request[6]; US.userInfo["icon"] = request[1]; US.Friend = request[2]; US.Friend[5] = eval(request[0][1]); US.PB.News = [request[3], request[4]]; US.userInfo["OnUserId"] = U.U.L.GLID(US.userInfo.userid).Loginid; if (context[1] == null) { U.CI.GCUInfo(U.M.apply(this, [[U.A.Request, (["UseStudioManage.AddToLoginLog", [US.NLInfo.LogAddr]]), U.M.apply(), ([""])]])); } U.F.T.RFF(); if (!TF) { U.U.L.SLF(US.userInfo); } } } } } } }; U.U.L.GLID = function (UID) { var i, _AID, _L, _ULL = document.cookie.lastIndexOf("Loginid"); if (_ULL > -1) { _AID = eval('[{"' + document.cookie.substring((document.cookie.indexOf("usestudiosso") + 13), (document.cookie.lastIndexOf("Loginid") + 44)).replace(/=/gm, '":"').replace(/&/gm, '"},{"') + '"}]'), _L = (_AID.length / 3); if (UID) { for (i = 0; i < _AID.length; i++) { if (_AID[i]["userid"] == UID) { return { "userid": UID, "username": _AID[i + _L].username, "Loginid": _AID[i + (_L * 2)].Loginid }; } } } else { return { "userid": _AID[_L - 1].userid, "username": _AID[_L * 2 - 1].username, "Loginid": _AID[_L * 3 - 1].Loginid }; } } }; U.U.L.SLF = function (a) { U.Dk.Commonresource(US.userInfo.userid, "7aeaab56-485f-4150-b781-8ffd86d593ce", $("div#UDK", U.Dk.cloneDisk(US.userInfo.userid))[0]); U.U.L.ULS(); U.D.loginicArray(); U.D.loginic(US.userInfo.icon); U.F.LoadFriendsAjax(); U.D.MS.onesetInterval(1); U.D.B.SetLoginBGimg(); U.U.L.CLRW(); U.D.PB.CPBN(); U.D.UTLNews(); }; U.U.L.ULS = function () { var b = $("#UF_UP_UserBoard")[0]; var a = $("#UF_UP_UserFace")[0]; a.innerHTML = ""; $$("img", { "id": "U_U_L_HeadImg", "src": U.M.GetImgU(US.userInfo.UserThumbnailImageHead), "className": "UF_UP_Radius", "title": "单击可设置头像", "onclick": [[U.M.StopBubble], [U.U.UPD]], "onerror": U.M.ImgError }, a); $("#UD_GYW_About")[0].style.display = "none"; U.U.L.LE(); U.D.R.DesktopLeftClick(); }; U.U.L.LE = function () { var d = null; var e = $("#UF_UP_CUM")[0]; var c = $("#UF_UP_UserFace")[0]; var a = function () { clearTimeout(d); e.style.display = "block"; }; var b = function () { if (!U.M.onmouseout(this)) { d = setTimeout(function () { e.style.display = "none"; }, 1300); } }; e.onmouseover = c.onmouseover = a; c.onmouseout = e.onmouseout = b; }; U.U.L.GNU = function (a, b) { U.A.Request("UseStudioManage.NetAdditionData", "", U.U.L.AsynGNU, ([a, b])); }; U.U.L.AsynGNU = function (d) { var c = d.context; d = d.value; if (d) { if (c[1]) { c[1](d, c); } else { var b = document.createDocumentFragment(); c[0].innerHTML = ""; for (var a = 0; a < d.length; a++) { $$("img", { "src": U.M.GetImgU(d[a].UserThumbnailImageHead), "title": d[a].UserNickName, "onerror": U.M.ImgError, "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([d[a].UserID])]] }, b); } c[0].setAttribute("hasface", "yes"); c[0].appendChild(b); } } }; U.U.L.TCUL = function () { if (US.userInfo.userid) { U.A.Request("UseStudioManage.DUser", ([US.userInfo.userid, US.userInfo["OnUserId"]]), U.M.apply(), ([])); U.U.L.UL(); } }; U.U.L.UL = function () { U.F.N.YCSM(); U.D.Tb.AllClear(); U.U.TYMHimg(US.ms + "img/UserHead/UseHead.jpg"); U.D.MS.onesetInterval(0); var a = $("#UF_UP_UserContent")[0]; a.style.display = "none"; $("#UU_LUPass")[0].value = US.Disk.diskfileTree = $("div#UF_UP_FriendBoard", a)[0].innerText = $("div#UF_UP_GroupBoard", a)[0].innerText = $("div#UF_UP_ChatRecord", a)[0].innerText = ""; US.userInfo = US.Friend = {}; U.F.fgd = []; U.D.loginicArray(); $("#BigBackGroundImg")[0].src = "/img/usestudiobackgroudnimage/beta1/bg14.jpg"; U.D.BgShowWay("Stretch"); U.D.UTLNews(); if (window["QC"] && window["WB2"]) { QC.Login.signOut(); WB2.logout(); } }; Namespace.register("U.U.Money"); U.U.Money.GQY = function () { var a = $("#U_MYContent")[0]; (a == null) && (a = $("div#U_MYContent", U.M.Window_Create([1, "0", "0", "85%", "85%", "U_MY", "购物", "", "", "no", false, true, false, ""]))[0]) && (U.D.Tb.WindowRestore(a.parentNode.parentNode, null, "云购中心")); return a; }; U.U.Money.ET = function () { var b, a = ["BuyMoney", "BuyNum", "BuyTime", "BuyUser", "CargoID", "CargoName", "IFExist", "ShopID", "CargoImg"]; for (b = 0; b < arguments.length; b++) { this[a[b]] = arguments[b]; } }; U.U.Money.CSCT = function () { var a = U.U.Money.GQY(), b = US.userInfo.GWC; (b == null) && (b = US.userInfo.GWC = { "ET": null }); b = b["ET"]; if (b) { a.innerHTML = ""; U.U.Money.PCSCT(a, b); } else { U.MA.Request("Money.SelectShopCartInfo", (["SelectShopCartInfo", US.userInfo.userid]), U.U.Money.AsynCSCT, ([""])); U.D.PopupWindow(a.parentNode.parentNode); } }; U.U.Money.AsynCSCT = function (a) { US.userInfo.GWC["ET"] = a.value[0]; U.U.Money.CSCT(); }; U.U.Money.PCSCT = function (d, n) { if (n.length != 0) { var g, l, o, c, a, h, b, f, m, j, k = 0, e = n[0]["Inventory"] != null; l = $$("div", { "className": "U_MY_A" }); o = $$("div", { "className": "U_MY_AT" }, l); $$("div", { "className": "U_MY_ATO", "innerHTML": "商品" }, o); $$("div", { "className": "U_MY_ATT", "innerHTML": "单价(元)" }, o); $$("div", { "className": "U_MY_ATS", "innerHTML": e ? "库存" : "数量" }, o); $$("div", { "className": "U_MY_ATS", "innerHTML": e ? "上架时间" : "统计(元)" }, o); $$("div", { "className": "U_MY_ATS", "innerHTML": "操作" }, o); c = $$("div", { "className": "U_MY_AC" }, l); for (g = 0; g < n.length; g++) { a = $$("div", { "className": "U_MY_ACA" }, c); b = $$("div", { "className": "U_MY_ATO U_MY_ACAO" }, a); h = $$("div", { "className": "U_MY_ACI", "title": "查看详情", "onclick": [[U.U.Money.MGC, ([n[g]["CargoID"] || n[g]["CargoId"]])]] }, b); $$("img", { "src": n[g]["CargoImg"], "onerror": [[U.M.ImgError, (["this", 1])]] }, h); $$("div", { "className": "U_MY_ACW", "innerHTML": (n[g]["CargoDescribe"] || n[g]["CargoName"]) }, b); $$("div", { "className": "U_MY_ATT", "innerHTML": n[g]["BuyMoney"] || n[g]["SingleMoney"], "style": { "marginLeft": "0px" } }, a); $$("div", { "className": "U_MY_ATS", "innerHTML": n[g]["BuyNum"] || n[g]["Inventory"] }, a); $$("div", { "className": "U_MY_ATS", "style": { "color": e ? "" : "red" }, "innerHTML": e ? n[g]["Time"].split("T")[0] : (n[g]["BuyMoney"] * n[g]["BuyNum"]) }, a); k += n[g]["BuyMoney"] * n[g]["BuyNum"]; $$("div", { "title": e ? "加入购物车" : "移除", "className": "U_MY_ATS", "innerHTML": e ? "添加" : "移除", "style": { "color": "#7e7e7e" }, "onclick": e ? [[U.U.Money.AddGC, ([n[g], 1])]] : [[U.U.Money.SCGC, ([n[g]["ShopID"], a])]] }, a); } if (!e) { m = $$("div", { "className": "U_MY_AD" }, l); j = $$("div", { "className": "U_MY_ADT" }, m); $$("div", { "className": "U_MY_ADTL", "innerHTML": "合计(不含运费):" }, j); $$("div", { "id": "MoneyUM", "className": "U_MY_ADTR", "innerHTML": "¥" + k }, j); $$("div", { "className": "U_MY_ADD UD_Radius", "innerHTML": "提交订单", "onclick": U.M.apply(null, "alert('服务暂不开放');") }, m); } } else { l = $$("div", { "className": "U_MY_AO", "innerHTML": "暂无物品在购物车" }); } d.appendChild(l); }; U.U.Money.AddGC = function (a, b) { b = b.innerHTML || b; if (U.MS.Number.test(b) && b > 0 && a["Inventory"] > 0 && a["Inventory"] - b > 0) { U.MA.Request("Money.InsertShopCart", (["InsertShopCart", a["CargoId"], US.userInfo.userid, "0", b]), U.U.Money.AsynAddGC, (["", a, b])); } else { U.Alert("库存不足或输入的非法数据"); } }; U.U.Money.AsynAddGC = function (c) { var b = c.context, a = b[1]; c = c.value; if (c) { if (US.userInfo.GWC) { a = U.U.Money.GetGC(a["CargoId"]) || new U.U.Money.ET(a["SingleMoney"], b[2], U.MT.getTimeStr(null, "String"), US.userInfo.userid, a["CargoId"], a["CargoName"], 0, c[0][0]["SID"], a["CargoImg"]); US.userInfo.GWC["ET"].push(a); } U.Alert("已添加到购物车"); } }; U.U.Money.SCGC = function (b, a) { U.MA.Request("Money.DeleteShopCartInfo", (["DeleteShopCartInfo", b]), U.U.Money.AsynSCGC, (["", b, a])); U.Alert("正在移除商品"); }; U.U.Money.AsynSCGC = function (c) { var a, b = c.context; c = c.value; if (c) { a = U.U.Money.GetGC(b[1], "D"); U.U.Money.SetMoneyUM(a["BuyNum"] * a["BuyMoney"]); b[2].parentNode.removeChild(b[2]); U.Alert("商品移除成功"); } }; U.U.Money.GetGC = function (d, e) { var c, a, b = US.userInfo.GWC["ET"]; for (c = 0; c < b.length; c++) { if (b[c]["ShopID"] == d) { a = b[c]; (e == "D") && (a = b.splice(c, 1)[0]); return a; } } }; U.U.Money.SetMoneyUM = function (c) { var a = $("#MoneyUM")[0], b = a.innerHTML.replace("¥", ""); a.innerHTML = b - c; }; U.U.Money.CP = { "ET": null, "P": 0, "MS": {} }; U.U.Money.GC = function (c) { var a = U.U.Money.GQY(), b = U.U.Money.GPGC(c); if (b[0]) { a.innerHTML = ""; U.U.Money.PGC(a, b[0], c); } else { U.MA.Request("Money.SelectCargoInfo", (["SelectCargoInfo", (b[1]) * 60, (b[1] + 1) * 60 - 1]), U.U.Money.AsynGC, ([a, c, b[1]])); } if (b) { U.D.PopupWindow(a.parentNode.parentNode); } }; U.U.Money.AsynGC = function (b) { var a = b.context; b = b.value; (U.U.Money.CP["ET"] == null) && (U.U.Money.CP["ET"] = []); U.U.Money.CP["ET"][a[2]] = b[0]; U.U.Money.CP["P"] = b[1][0]["AC"]; U.U.Money.GC(a[1]); }; U.U.Money.PGC = function (b, a, c) { if (a.length > 0) { U.U.Money.PCSCT(b, a); U.PG.PPage(b, U.U.Money.CP["P"], c, 20, { "fun": [[U.U.Money.GC, ([c])]], "page": [0] }); } }; U.U.Money.GPGC = function (e) { var a = U.U.Money.CP["ET"], b = parseInt(e / 3), c, d; e = e % 3; d = e * 20; c = d - 20; if (a && (a = a[b])) { a = a.slice(c, d); } return [a, b]; }; U.U.Money.MGC = function (c) { var a = U.U.Money.GQY(), b = U.U.Money.CP["MS"][c]; if (b) { a.innerHTML = ""; U.U.Money.PMGC(a, b); } else { U.MA.Request("Money.SelectOCargoInfo", (["SelectOCargoInfo", c]), U.U.Money.AsynMGC, ([a, c])); } if (b) { U.D.PopupWindow(a.parentNode.parentNode); } }; U.U.Money.AsynMGC = function (b) { var a = b.context; U.U.Money.CP["MS"][a[1]] = b.value[0][0]; U.U.Money.MGC(a[1]); }; U.U.Money.PMGC = function (b, j) { var l, a, e, i, c, h, f, g, d, k; l = $$("div", { "className": "U_MY_S" }, b); a = $$("div", { "className": "U_MY_SM" }, l); e = $$("div", { "className": "U_MY_SML" }, a); i = $$("div", { "className": "U_MY_SMLI" }, e); $$("img", { "src": j["CargoImg"] }, i); c = $$("div", { "className": "U_MY_SMR" }, a); $$("div", { "className": "U_MY_SMRT", "innerHTML": j["CargoName"] }, c); $$("div", { "className": "U_MY_SMRC", "innerHTML": j["CargoDescribe"] }, c); h = $$("div", { "className": "U_MY_SMRB U_MY_R" }, c); $$("div", { "className": "U_MY_SMRBS", "innerHTML": "零售价" }, h); $$("div", { "className": "U_MY_SMRBL", "innerHTML": "¥" + j["SingleMoney"] }, h); $$("div", {}); f = $$("div", { "className": "U_MY_SMRS" }, c); $$("div", { "className": "U_MY_SMRSS", "innerHTML": "数量" }, f); g = $$("div", { "className": "U_MY_SMRSI", "contentEditable": "true", "innerHTML": 1 }, f); d = $$("div", { "className": "U_MY_SMRSZ" }, f); $$("div", { "className": "U_MY_SMRSZS", "onclick": [[U.U.Money.APSL, ([g, true])]] }, d); $$("div", { "className": "U_MY_SMRSZX", "onclick": [[U.U.Money.APSL, ([g])]] }, d); $$("div", { "className": "U_MY_SMRSC", "innerHTML": "库存" + j["Inventory"] + "件" }, f); k = $$("div", { "className": "U_MY_SMRD" }, c); $$("div", { "className": "U_MY_ADD", "innerHTML": "立刻购买", "onclick": [[U.U.Money.AddGC, ([j, g])]] }, k); $$("div", { "className": "U_MY_ADD U_MY_SMRDR", "innerHTML": "加入购物车", "onclick": [[U.U.Money.AddGC, ([j, g])]] }, k); $$("div", { "className": "U_MY_SW", "innerHTML": "商品描述" }, l); }; U.U.Money.APSL = function (a, c) { var b = (U.MS.Number.test(a.innerHTML) && a.innerHTML > 0 && UDE["Inventory"] > 0 && UDE["Inventory"] - a.innerHTML > 0) ? a.innerHTML : 0; if (c) { b++; } else { b--; } a.innerHTML = b; }; Namespace.register("U.U.P"); U.U.P.TF = { "Contribute": "找出漏洞", "Introduce": "推广本网站", "Upload": "上传文件", "PostArticle": "发表文章", "Online": "在线时间", "Reply": "回复文章", "SignIn": "登陆签到", "Download": "下载文件", "DiskAddition": "硬盘增加", "IllegalImage": "发布违规图片" }; U.U.P.FTF = { "Upload": "UseStudioUserDiskDiv", "Download": "UseStudioUserDiskDiv", "PostArticle": "UseStudioStudyControlDiv", "Reply": "UseStudioStudyControlDiv" }; U.U.P.E = {}; U.U.P.LoginIC = function () { var a = $("#UU_IC")[0], b = $("#UU_ICBG_GG")[0]; U.D.PopupWindow(a); U.U.P.GetIC($("div#UU_IC_Pay", a)[0]); U.D.Tb.WindowRestore(a, "", "积分中心"); }; U.U.P.SIC = function (a) { U.U.P.YXICD(["none", "block"]); if (a == 1) { U.U.P.GetIC($("#UU_IC_Pay")[0]); } else { U.U.P.ICSS(1); } }; U.U.P.YXICD = function (a) { $("#UU_IC_HB")[0].style.display = a[0]; $("#UU_IC_Info")[0].style.display = a[1]; }; U.U.P.SUIC = function (b) { var c, e = 0, d = $("#UU_IC_Avatar", b)[0], a = U.U.P.E[US.userInfo.userid]["ICCSV"][0]; d.innerHTML = ""; for (c = 0; c < a.length; c++) { e += a[c].VCSumValue; } $$("img", { "id": "UU_IC_Avatar_img", "onerror": [[U.M.ImgError, (["this"])]], "src": U.M.GetImgU(US.userInfo.UserThumbnailImageHead) }, d); $("#UU_IC_VCSum", b)[0].innerHTML = e; }; U.U.P.ICSS = function (e) { var f = Math.ceil(e * 7 / 70), g = f * 70, d = g - 69, a = U.U.P.E[US.userInfo.userid]; if (a && (a = a["Page"]) && (a = a[f])) { var c = e % 10; c = c == 0 ? 10 : c; g = c * 7; d = g - 7; var b = a.slice(d, g); U.U.P.SetICSS(b, e); } else { U.PY.Request("UseStudioPay.UserGetSomeVC", ([d, g]), U.U.P.AsynICSS, (["", e, f, US.userInfo.userid])); } }; U.U.P.AsynICSS = function (b) { var a = b.context; b = b.value; if (U.U.P.E[a[3]] == null) { U.U.P.E[a[3]] = { "Page": [] }; } else { if (U.U.P.E[a[3]]["Page"] == null) { U.U.P.E[a[3]]["Page"] = []; } } U.U.P.E[a[3]]["Page"][a[2]] = b[0]; U.U.P.ICTT(b[1], $("#UU_ICM_UU_IC_Heroes")[0]); U.U.P.ICSS(a[1]); }; U.U.P.SetICSS = function (a, b) { if (a.length > 0) { U.U.P.ICPL(a, ["时间", "来源", "来源", "积分"], $("#UU_IC_Info")[0]); U.PG.PPage($("#UU_IC_Pag")[0], a[0].AllCount, b, 7, { "fun": [[U.U.P.ICSS, ([b])]], "page": [0] }); } }; U.U.P.GetIC = function (a) { if (U.U.P.E[US.userInfo.userid] && U.U.P.E[US.userInfo.userid]["ICCSV"]) { U.U.P.SetIC(U.U.P.E[US.userInfo.userid]["ICCSV"], a); } else { U.PY.Request("UseStudioPay.UserCountVC", ([]), U.U.P.AsynGetIC, ([a, 1, US.userInfo.userid])); } }; U.U.P.AsynGetIC = function (b) { var a = b.context; b = b.value; if (U.U.P.E[a[2]] == null) { U.U.P.E[a[2]] = {}; } U.U.P.E[a[2]]["ICCSV"] = b; U.U.P.GetIC(a[0], b); }; U.U.P.SetIC = function (b, a) { U.U.P.ICTT(b[1], $("div#UU_ICM_UU_IC_Heroes", a)[0]); U.U.P.ICPL(b[0], ["时间", "来源", "积分", "次数"], $("div#UU_IC_Info", a)[0]); U.U.P.SUIC(a); }; U.U.P.ICTT = function (f, b) { var e, d, a, g, c = document.createDocumentFragment(); b.innerText = ""; for (e = 0; e < f.length; e++) { d = f[e]; a = $$("div", { "style": { "marginTop": "8px" }, "onclick": [[U.M.StopBubble], [U.U.I.POUW, ([d.UserId])]] }, c); $$("img", { "src": U.M.GetImgU(d.UserThumbnailImageHead), "className": "UU_IC_Heroes_img", "onerror": U.M.ImgError }, a); $$("div", { "className": "UU_IC_HSOne", "innerHTML": d.UserNickName }, a); g = $$("div", { "className": "UU_IC_HSTwo" }, a); $$("span", { "innerHTML": "积分:" }, g); $$("span", { "style": { "color": "#3081fe" }, "innerHTML": d.VCSumValue }, g); } b.appendChild(c); }; U.U.P.ICPL = function (b, e, a) { a.innerText = $("#UU_IC_Pag")[0].innerText = ""; var g, f, d, h, k = $$("div", { "className": "UU_IC_Values" }), c = $$("div", { "className": "UU_IC_VP" }); for (g = 0; g < e.length; g++) { $$("div", { "innerHTML": e[g], "style": { "width": (g == 3 ? "50px " : (g == 1 ? "100px" : g == 2 ? "200px" : "")) } }, k); } for (f = 0; f < b.length; f++) { d = b[f]; h = $$("div", { "className": "UU_IC_SG" }, c); $$("div", { "innerHTML": U.MT.getTDInterval(d.VCDateTime) }, h); $$("div", { "innerHTML": U.U.P.TF[d.VCType], "style": { "width": "100px" } }, h); $$("div", { "onclick": d.VCCountValue ? "" : U.U.P.FTF[d.VCType] ? [[U.M.StopBubble], [U.M.divdoubleClick, ([U.U.P.FTF[d.VCType], d.VCDetailsDataID, null, null, "ART" + d.VCDetailsDataID])]] : "", "className": ("UTDF" + (d.VCCountValue ? "" : " UU_IC_FS")), "style": { "color": d.VCCountValue ? "" : "#3081fe", "width": "200px" }, "innerHTML": d.VCCountValue ? d.VCSumValue : d.VCDetailsDataValue }, h); $$("div", { "innerHTML": d.VCCountValue || d.VCValue, "style": { "width": "50px" } }, h); } a.appendChild(k); a.appendChild(c); }; U.U.P.ICEXC = function (b) { var a = $("#UU_IC_EXC")[0]; if (b == "block") { U.D.SetDTop(a); } a.style.display = b; }; U.U.P.ICGK = function (a) { var c, b = 0, d = U.U.P.E[US.userInfo.userid]["ICCSV"][0]; UICV = a.value; for (c = 0; c < d.length; c++) { b += d[c].VCSumValue; } if (parseFloat(UICV) < 0) { U.Alert("请输入正整数"); } else { if (!U.MS.Number.test(UICV)) { U.Alert("您的输入有误,请输入数字!"); } else { if (UICV > b) { U.Alert("您的积分不足"); } else { if (confirm("确定确定要兑换" + UICV + "M的空间吗?")) { U.A.Request("UseStudioManage.UserDiskAddition", ([UICV]), U.U.P.AsynICGK, (["", a, UICV])); a.parentNode.parentNode.parentNode.style.display = "none"; a.value = ""; } } } } }; U.U.P.AsynICGK = function (e) { var d = e.context; e = e.value; if (e) { var c, a = true, f = U.U.P.E[US.userInfo.userid]["ICCSV"][0]; for (c = 0; c < f.length; c++) { if (f[c]["VCType"] == "DiskAddition") { a = false; f[c].VCSumValue -= d[2]; f[c].VCCountValue += 1; } } if (a) { var h = new U.U.P.ICE(1, new Date(), -d[2], "DiskAddition"), g = U.U.P.E[US.userInfo.userid]["Page"]; f.push(h); if (g && g.length > 0) { var b = U.U.P.ICE(g[1][0].AllCount, "0", US.userInfo.userid, new Date(), U.MS.produceGuid(), "硬盘增加", U.MS.produceGuid(), "DiskAddition", -d[2]); g[1].unshift(b); } } U.U.P.SUIC(); U.U.P.ICPL(f, ["时间", "来源", "积分", "次数"], $("#UU_IC_Info")[0]); US.userInfo.UserDiskSpace += 1; } }; U.U.P.ICE = function (a) { this.AllCount = a[0]; this.PageNum = a[1]; this.UserID = a[2]; this.VCDateTime = a[3]; this.VCDetailsDataID = a[4]; this.VCDetailsDataValue = a[5]; this.VCID = a[6]; this.VCType = a[7]; this.VCValue = a[8]; };
|