NotFun.js 208 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589
  1. US.Disk.DiskDaren = {}; //网盘达人
  2. US.Disk.Disks = {}; //用户看过所有用户的树包括自己
  3. US.Disk.UserDisk; //当前操作用户的disk树
  4. US.Disk.Layer = { "step": 20, "LI": null }; //Disk位置变化
  5. // U.Dk.LE.OpenFileDirectory(_UGE[0].slice(0, 100), null, { "UserallDirectoryName": "最近访问区域" }, _UGE[1][2], true)
  6. // var _UDE, _UGE = U.Dk.DiskOperatingSwitch(userid) || US.Disk.UserDisk; (UDE && UDE.length) ? (_UDE = UDE) : (_UDE = _$(_UGE[0]).Where({ "UserDirectoryModifyTime": { "$ne": null} }), U.M.Sequence(_UGE[0], "UserDirectoryModifyTime", U.MT.SizeComparison)); //
  7. // (UDE !== true) && (U.Dk.LE.OpenFileDirectory(_UDE.slice(0, 100), null, { "UserallDirectoryName": "最近访问区域" }, _UGE[1][2], true)); return _UDE;
  8. // if (!_UAE.length) { _UAE = [UDE]; while ((UDE = UDE.Parent)) { _UAE.push(UDE); } } // _UAE = UDE.length ? UDE : UDE["UserDirectoryID"] ? _$(_UGE).RecurD(UDE, { "UserDirectoryID": "" }, "UserDirectoryParentID") : [UDE]; //导航树
  9. // if (UTF || (_UMT && _UTP.indexOf(_UMT) > -1)) { } //office打开 //window.open("http://disk.1473.cn?ID=" + UFID + "&TP=" + (UTF || ""));
  10. // else { U.Alert("等待文件的打开"); U.A.Request(US.Auth,"UseStudioDisk.IsTxt", [USN], U.Dk.LE.AsynOFT, ["", USN, UN, userid, UFID, _UDOD]); } //其余的文件用户下载
  11. // var _UGE = U.Dk.DiskOperatingSwitch(US.userInfo.userid), _UKE = (UAE) ? UAE.concat(UDE) : UDE; _UGE[1][1] = "";
  12. // U.Dk.LL.SCDXWPDH([{ "UserallDirectoryName": "关键字\"" + UPW + "\"搜索结果"}], $("#UD_SYWRYB")[0]); //打印导航
  13. // if (UDE.length) {
  14. // (!UDOD.onscroll) && (UDOD.innerText = ""); U.Dk.VW.XWPDY((_UGE[1][5] = UDOD.onscroll ? UDE : _UKE), UDOD, null, UAE ? UAE.length : 0); //打印网盘资料
  15. // UDOD.onscroll = (U.M.SSCH({ 'AF': U.M.apply(null, [[U.Dk.S.SSWPBDWGD, [UDKN, UTF, _UKE]]]) }).SCH()); //设置滚动加载
  16. // }
  17. // if ($$("a").download !== undefined && USN.indexOf(",") < 0) { _UIE = USN.lastIndexOf("."); if (_UIE == USN.length - 1) { USN = USN.substr(0, _UIE) } _UDOD = $$("a", { "download": UFN, "href": US.fs + USN }, doc.body); U.M.IEVENT(_UDOD, "click"); $(_UDOD).remove(); } //HTML下载
  18. // else { U.UP.uploading([$$("input", { "type": "text", "value": UFN, "name": "filename" }), $$("input", { "type": "text", "value": USN, "name": "filepath" })], null, null, "http://disk.1473.cn/USupfile.ashx?iframename=" + (UTF || "UploadFile"), false); }
  19. // var i, _UTP = "ue,uw", USN = "", _UPN = "";
  20. // for (i = 0; i < UDE.length; i++) { if (_UTP.indexOf(UDE[i]["UserDirectoryExtendType"].toLowerCase()) == -1) { USN += ((UDE[i]["UserFilesServerName"].length > 10 ? UDE[i]["UserFilesServerName"] : "") + (i != UDE.length - 1 ? "," : "")); _UPN += ((UDE[i].filetype ? UDE[i]["UserallDirectoryName"] : UDE[i]["UserDirectoryID"]) + (i != UDE.length - 1 ? "," : "")); } }
  21. // U.Dk.RE.WPXZWJZJO(_UPN, ""); //多文件下载
  22. U.Dk.RightAuthority; //右键的权限判断,只有我的电脑可以新建TXT,Word等,拿来记录点击。
  23. ////添加文件或者文件夹右边 右
  24. //U.Dk.RE.ARFO = function (UDE) {
  25. // var _UDOD, _UDTD, _UGE = US.Disk.UserDisk[1];
  26. // if (UDE.UserDirectoryParentID == _UGE[1]) {
  27. // _UDOD = $("div#UDK_LR_directoryListArea", _UGE[3])[0]; _UDTD = $("div", _UDOD)[1];
  28. // if (_UDTD && _UDTD.className == "UDK_L_DiskGE UDK_RT_NFF") { _UDOD.innerText = ""; } //删除没有文件的提示
  29. // (_UGE[4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)([UDE], _UDOD); //打印试图
  30. // }
  31. //}
  32. // for (i = 0; i < _UME.length; i++) {
  33. // if (_UAE && _UAE.length) { _UME[i].splice(0, 1); _UME[i].splice(1, 1); } //多选的权限
  34. // else { if (UDE["filetype"]) { _UME[i].splice(1, 2); _UME[i].splice(2, 1); } else { _UME[i].splice(1, 3); _UME[i].splice(2, 2); } } //单选权限
  35. // }
  36. // if (!_UQE[0] || !_UQE[4]) {//没有添加 删除权限的功能
  37. // for (i = 0; i < _UME.length; i++) {
  38. // if (_UAE && _UAE.length) { _UME[i].splice(0, 1); _UME[i].splice(1, 1); } //多选的权限
  39. // else { if (UDE["filetype"]) { _UME[i].splice(1, 2); _UME[i].splice(2, 1); } else { _UME[i].splice(1, 3); _UME[i].splice(2, 2); } } //单选权限
  40. // }
  41. // }
  42. // else if (!_UQE[1]) { _UME[0].splice(1, 2); _UME[1].splice(1, 2); } //没有赋值下载功能 && UDE["filetype"]
  43. // if (!(_UAE && _UAE.length) && _UDID == US.FG && !UDE["filetype"]) { _UME[0].splice(5, 1); _UME[1].splice(5, 1) } //没有加密解密
  44. // (!US.userInfo.IsUseStudioMember && UDE.filetype) && (_UME[0].splice(_UME[0].length - 1, 1), _UME[1].splice(_UME[1].length - 1, 2)); //置顶功能
  45. ////点击消息回调
  46. //U.D.SY.DJHD = function (UDE, UDOD) {
  47. // var _TF = UDE.MessageIsVerify, _UDE = ["", "", "", "AD"];
  48. // if (_TF != null) { U.F.FM.AsynReceiveMessages(_UDE[_TF]); }
  49. // $(UDOD).remove(); //移除元素
  50. //}
  51. // var i, _UDKD, _UDOD, _UDCD, _UDPD, _UDTD, _UDSD, _ITF = 0, _UDQ = UDE[0], _UZJ = UDE[1], _UDFD = $$("frag");
  52. // _UDKD = $$("div", { "className": "UD_SYMMLCA" }, (UDOD || _UDFD));
  53. // _UDOD = $$("div", { "className": "UD_SYMMLCT", "onclick": [[U.MPlayer.SYYOP, [_UDKD]]] }, _UDKD);
  54. // _UDCD = $$("div", { "className": "UD_SYMMLCTI UD_SYI UD_SYMMLCTIO", "innerHTML": "" }, _UDOD);
  55. // $$("div", { "className": "UD_SYMMLCTM", "innerHTML": _UDQ[0].UserallDirectoryName }, _UDOD);
  56. // if (_UDQ[1].length || (UDE[1] && UDE[1].length)) {//音乐列表打印
  57. // _ITF = U.MPlayer.MYYOP(_UDKD, _UDQ[1]); //打印音乐
  58. // for (i = 0; (_UZJ && i < _UZJ.length); i++) { _ITF += U.MPlayer.YYOP(_UZJ[i], (UDOD || _UDFD)); } //目录下的文件夹
  59. // }
  60. // else {//空音乐提示
  61. // _UDKD = $$("div", { "className": "UD_SYMMLCV" }, _UDFD);
  62. // $$("div", { "className": "UD_SYMMLCVL UD_SYI" }, _UDKD);
  63. // _UDCD = $$("div", { "className": "UD_SYMMLCVR" }, _UDKD);
  64. // $$("div", { "className": "UD_SYMMLCVRS", "innerHTML": "这里当前还没有任何歌曲!!" }, _UDCD);
  65. // _UDPD = $$("div", { "className": "UD_SYMMLCVRX", "innerHTML": "你可以:" }, _UDCD);
  66. // $$("span", { "innerHTML": "云分享添加", "onclick": [[U.D.DT.YYDK, ["Disk", [US.userInfo.userid, US.MG]]]] }, _UDPD);
  67. // }
  68. // (UDVD) && (UDVD.appendChild(_UDFD)); return _ITF; //所有的歌曲
  69. // var i, j, _UAE, _UKE = [], _UGE = US.Disk.UserDisk[0];
  70. // (!UDE.UserDirectoryID) && (UDE = _$(_UGE).Select({ "UserDirectoryID": UDE })[0]); //转化指定的文件夹
  71. // _UAE = _$(_UGE).Select({ "UserDirectoryParentID": UDE.UserDirectoryID }); //获取当前文件夹下所有的文件和文件夹
  72. // _UKE[0] = [UDE, _$(_UAE).Select({ "filetype": 1 })]; _UAE = _$(_UAE).Select({ "filetype": 0 }); _UKE[1] = []; //生成
  73. // for (j = 0; j < _UAE.length; j++) { _UKE[1].push(U.Dk.LE.GM(_UAE[j])); } //函数式的递归 改成成循环递归最好
  74. // return _UKE;
  75. ////异步加载网盘
  76. //U.Dk.AsynCSHYY = function (r) {
  77. // var context = r.context, _userid = context[1], _UDID = context[2]; r = r.value;
  78. // //Disk加载
  79. // U.Dk.GUserBL(_userid, _UDID, null, r); //设置全局变量值
  80. // U.Dk.M.refreshfile(); //更新里面文件的头像和文件名
  81. // U.Dk.CSHYY(r[1], context[2]); //回调音乐 onpaste
  82. //}
  83. ////--------------------------------------------------------------------------------------搜索起点-----------------------------------------------------------------------
  84. //U.Dk.S.P; //总数
  85. ////切换
  86. //U.Dk.S.SDSD = function (UDOD, UTF) {
  87. // if (UDOD.style.color != "#5e85bb") {
  88. // var _UDPD = UDOD.parentNode, _UDAD = $("div", _UDPD), _UDTD = $("div#UDK_SSD_C", $(UDOD).Parent("UDK_SSD"))[0], _UDSD = $("input", _UDPD.parentNode)[0], _UDKD = $("div", _UDSD.parentNode.parentNode)[1]; U.Dk.S.P = null; _UDTD.innerText = "";
  89. // _UDAD.addAttrArray({ "style": { "color": "" }, "className": "" }); $(UDOD).addAttrArray({ "style": { "color": "#5e85bb" }, "className": "" }); //切换样式变化
  90. // $(_UDTD).Child()[1].innerText = ""; (_UDKD.onclick = U.M.apply(_UDKD, [[U.Dk.S.SetSCH, [_UDSD, 1, UTF, _UDTD]]]))(); //搜索点击
  91. // }
  92. //}
  93. ////设置滚动搜索
  94. //U.Dk.S.SetSCH = function (UDOD, UP, UTF, UDTD) {
  95. // var _UDCD = $(UDTD).Child(); _UDCD[1].innerText = "";
  96. // _UDCD[0].style.display = "block"; $("div", _UDCD[0])[0].innerText = UDOD.value;
  97. // UDTD.parentNode.parentNode.onscroll = U.M.SSCH({ 'AF': U.M.apply(null, [[U.Dk.S.SFND, [UDOD, UTF, UDTD]]]) }).SCH(); //滚动加载
  98. // U.Dk.S.DSD(UDOD, UP, UTF, UDTD); //云搜索
  99. //}
  100. ////滚动加载
  101. //U.Dk.S.SFND = function (UDOD, UTF, UDTD) {
  102. // U.Dk.S.DSD(UDOD, this.P + 2, UTF, UDTD); //云搜索滚动加载
  103. //}
  104. ////网盘首页触发云搜索
  105. //U.Dk.S.STFND = function (UDOD) {
  106. // var _UDID = $("input", $(UDOD).Parent("UDK_S"))[1];
  107. // U.Dk.NologinDiskDown(US.NU, ''); //切换到搜素页
  108. // _UDID.value = UDOD.value; //赋值
  109. // $("div", $(_UDID).Parent(2))[1].onclick(); //直接搜索
  110. //}
  111. ////云搜索
  112. //U.Dk.S.DSD = function (UDOD, UP, UTF, UDTD) {
  113. // var i, _UE = UP * 100, _UDE = [["img", "block"], ["div", "none"]]; UTF = U.UP.SFT(UTF); //获取搜索的类型
  114. // if (UDOD.value.isStrNull() && UDOD.value != UDOD.defaultValue) { if (!U.Dk.S.P || U.Dk.S.P > (_UE - 99)) { U.A.Request(US.Auth,"UseStudioDisk.Managequery", [UDOD.value, UTF, _UE - 99, _UE]), U.Dk.S.AsynDSD, ["", UDTD, UDOD]; } }
  115. // else { while ((i = _UDE.length--)) { $(_UDE[i][0], UDTD).style.display = _UDE[1] } } //无搜索的显示
  116. //}
  117. ////云搜索异步
  118. //U.Dk.S.AsynDSD = function (r) {
  119. // var context = r.context, _UDOD = context[1], _UDAD = $(_UDOD).Child(); r = r.value;
  120. // _UDAD[2].style.display = "none";
  121. // if (r.length) { U.Dk.S.P = r[0]["AllF"]; U.Dk.S.SetDSD(_UDAD[1], r); } //打印搜索
  122. // else { U.Dk.S.P = null; }
  123. //}
  124. ////打印云搜索
  125. //U.Dk.S.SetDSD = function (UDOD, UDE) {
  126. // var i, _UTF, _UDTD, _UDSD, _UDFD = $$("frag");
  127. // for (i = 0; i < UDE.length; i++) {
  128. // _UTF = U.UP.IsDF(UDE[i].UserFilesExtendName)[0];
  129. // _UDTD = $$("div", { "className": "UDK_RT_application", "title": UDE[i].UserFilesName }, _UDFD);
  130. // _UDSD = $$("div", { "className": "UDK_RT_UDD Radius5", "style": { "position": "static" }, "onclick": [[U.M.StopBubble], [U.Dk.NologinDiskDown, [UDE[i].UserID, UDE[i].UserDirectoryID, true]]] }, _UDTD);
  131. // if (_UTF == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "className": "UDK_RT_UDD_DV", "src": US.fs + UDE[i].UseFilesServerThumbnailName }, _UDSD); }
  132. // else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_UDD_DV", "style": { "cssText": U.UP.FFT(UDE[i].UserFilesExtendName)[1]} }, _UDSD); }
  133. // $$("span", { "innerHTML": UDE[i].UserFilesName.length > 10 ? UDE[i].UserFilesName.substr(0, 10) + "..." : UDE[i].UserFilesName }, _UDSD);
  134. // }
  135. // UDOD.appendChild(_UDFD);
  136. //}
  137. //------------------------------------------------------------------------普通视图和详细视图的转变-------------------------------------------------------------------
  138. //普通视图和列表视图切换。
  139. U.Dk.VW.NOD = function (UTF, UDID) {
  140. var i, _UGE = US.Disk.UserDisk[1], _UAE = ["UDK_N_PX_TB", "UDK_N_PX_LB"], _UTP = UTF == "Details" ? ["-483px -11px", "-540px -12px"] : ["-602px -11px", "-659px -12px"];
  141. for (i = 0; i < _UAE.length; i++) { $("div#" + _UAE[i], _UGE[3])[0].style.backgroundPosition = _UTP[i]; };
  142. U.Dk.VW.DT((_UGE[1] = UDID || _UGE[1]));
  143. }
  144. //选择视图
  145. U.Dk.VW.DT = function (UDID) {
  146. var _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Select({ "UserDirectoryParentID": UDID }), _UDOD = $("div#UDK_LR_directoryListArea", _UGE[1][3])[0];
  147. _UDOD.innerText = ""; (_UGE[1][4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)(_UDE, _UDOD); //打印数据
  148. }
  149. //------------------------------------------------------------------------------普通视图------------------------------------------------------------------------------
  150. //普通视图文件打印
  151. U.Dk.VW.PD = function (UDE, UDOD, UFID) {
  152. var i, _UDTD, _UDSD, _UTF, _UFT, _UGE = US.Disk.UserDisk[1][0], _UDFD = $$("frag");
  153. if (UDE.length) {
  154. for (i = 0; i < UDE.length; i++) {
  155. if (US.userInfo.userid == _UGE.UserId || !UDE[i].UserDirectoryEncrypt) {
  156. _UTF = U.UP.IsDF(UDE[i].UserDirectoryExtendType)[0]; (!_UFT) && (_UFT = UFID == UDE[i].UserDirectoryID);
  157. _UDTD = $$("div", { "id": "disk" + UDE[i].UserDirectoryID, "className": "UDK_RT_application" + (_UFT ? " UDK_RT_hover" : ""), "onclick": [[U.Dk.HP.DKDS, ["this"]], [U.Dk.LL.UDKURL, [UDE[i].UserDirectoryID]], [U.Dk.LE.DBC, [UDE[i].UserDirectoryID, _UGE.UserId]]], "onmousedown": [[U.M.StopBubble], [U.Dk.RM.DRC, ["this", UDE[i].UserDirectoryID, _UGE.UserId]]] }, _UDFD);
  158. _UDSD = $$("div", { "className": "UDK_RT_UDD Radius5", "onmouseout": [[U.Dk.HP.DKDS, ["this"]]], "onmouseover": [U.Dk.HP.DKDS, ["this", UDE[i].Descript || UDE[i].UserallDirectoryName]] }, _UDTD); // [U.Dk.VW.CH, [_UDTD.childNodes]]
  159. if (_UTF == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "className": "UDK_RT_UDD_DV", "src": UDE[i].UserDirectoryUrl }, _UDSD); }
  160. else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_UDD_DV", "style": { "cssText": UDE[i].UserDirectoryUrl } }, _UDSD); }
  161. $$("span", { "id": "resDataList_name_" + UDE[i].UserDirectoryID, "innerHTML": UDE[i].UserDirectoryName }, _UDSD); _UFT && (_UFT = _UDTD);
  162. }
  163. }
  164. }
  165. else { _UDTD = $$("div", { "style": { "position": "relative" } }, _UDFD); $$("div", { "className": "UDK_L_DiskGE UDK_RT_NFF" }, _UDTD); }
  166. UDOD.appendChild(_UDFD); (_UTF) && (UDOD.scrollTop = _UFT.offsetTop);
  167. }
  168. //----------------------------------------------------------------------------列表视图--------------------------------------------------------------------------------
  169. //列表视图文件打印
  170. U.Dk.VW.PTD = function (UDE, UDOD) {
  171. var i, _UTF, _UDTD, _UDSD, _UDID, _UPID, _UGE = US.Disk.UserDisk[1], _UDFD = $$("frag");
  172. if (UDE.length) {
  173. _UPID = UDE[0].UserDirectoryParentID; _UDTD = $$("div", { "className": "UDK_RT_DL_AT" }, _UDFD);
  174. $$("div", { "className": "UDK_RS_listspan UDK_RT_DL_ATO", "onclick": [[U.Dk.VW.AS, [UDOD, true]]], "innerHTML": "全选" }, _UDTD);
  175. $$("div", { "className": "UDK_RS_listspan UDK_RT_DL_ATT", "onclick": [[U.Dk.VW.NOD, [_UGE[4], _UPID]]], "innerHTML": "文件名" }, _UDTD);
  176. $$("div", { "className": "UDK_RS_listspan", "style": { "width": "10%" }, "innerHTML": "文件大小", "onclick": [[U.Dk.HP.AtSTimeS, [_UPID, true]]] }, _UDTD);
  177. $$("div", { "className": "UDK_RS_listspan", "style": { "textIndent": "1%", "width": "50px" }, "onclick": [[U.Dk.VW.NOD, [_UGE[4], _UPID]]], "innerHTML": "类型" }, _UDTD);
  178. for (i = 0; i < UDE.length; i++) {
  179. _UDID = UDE[i].UserDirectoryID; _UTF = U.UP.FFT(UDE[i].UserDirectoryExtendType);
  180. _UDTD = $$("div", { "className": "UDK_RT_Details", "id": "disk" + _UDID, "onmousedown": [[U.M.StopBubble], [U.Dk.RM.DRC, ["this", _UDID, _UGE[0].UserId]]], "onclick": [[U.Dk.HP.DKDS, ["this"]], [U.Dk.LL.UDKURL, [_UDID]], [U.Dk.LE.DBC, [_UDID, _UGE[0].UserId]]] }, _UDFD);
  181. $$("input", { "type": "checkbox", "check": i, "className": "UDK_RT_DL_CK" }, _UDTD);
  182. _UDSD = $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FN", "id": "resDataList_name_" + UDE[i].UserDirectoryID }, _UDTD);
  183. $$("i", { "className": "UDK_L_DiskGE UDK_RT_DL_IMG", "style": { "cssText": _UTF[2] } }, _UDSD);
  184. $$("div", { "title": UDE[i].UserallDirectoryName, "innerHTML": UDE[i].UserallDirectoryName }, _UDTD);
  185. $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_DT", "innerHTML": U.MT.formatDateToArray(UDE[i].UserDirectoryAddTime) }, _UDTD);
  186. $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FZ", "innerHTML": U.UP.FileSize(UDE[i].UserDirectorySize) }, _UDTD);
  187. $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FT", "id": "reDataList_type_" + UDE[i].UserDirectoryID, "innerHTML": _UTF[0] }, _UDTD);
  188. }
  189. }
  190. else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_NFF" }, _UDFD); }
  191. UDOD.appendChild(_UDFD);
  192. }
  193. ////-----------------------------------------------------------------页面点击时候执行的函数(包括左键)-----------------------------------------------------------------
  194. ////打开文件夹或者文件
  195. //U.Dk.LE.DBC = function (UDID, userid) {//点击右边目录或者是文件的时候
  196. // U.Dk.DiskOperatingSwitch(userid); var _UTF, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Select({ "UserDirectoryID": UDID }, null, 1)[0], _UTP = _UDE.UserDirectoryExtendType.toLowerCase(); //操作用户切换
  197. // U.Dk.SBDD(_UGE[1][3], ["block", "none"]); //查看切换
  198. // if (_UTP == "folder") { (US.userInfo.userid == userid && (U.AFB.GoList["disk" + userid]["OL"] == 1)) && (U.D.ZYXB(0, false, "WZ")); U.AFB.AddEvent([[U.Dk.LE.OFO, [_UDE, UDID, userid]]], "disk" + userid); }
  199. // else {
  200. // U.M.StopBubble(); _UTF = U.UP.IsDF(_UTP)[0]; //阻止冒泡
  201. // if (_UTF == "P") { U.Dk.LE.OIMG(UDID, _UDE); } //图片预览器
  202. // else if (_UTF == "M") { U.Dk.LE.OM(_UDE); } //音乐播放器
  203. // else if (_UTP == "video") { U.Dk.LE.OV(_UDE); } //视频处理
  204. // else {
  205. // if (!U.U.L.isLogin()) {//执行下载文件或者打开office文档和txt文本文件.文件需要用全名
  206. // if (_UTP == "ue" || _UTP == "uw") { U.M.divdoubleClick(_UTF == "ue" ? "US_Excel" : "US_Word", UDID, userid); } //网页Excel打开
  207. // else { U.Dk.LE.OFT(_UDE.UserFilesServerName, _UDE.UserallDirectoryName, userid, UDE.UserDirectoryID); } //其余的Office文件打开
  208. // }
  209. // }
  210. // U.Dk.RM.DRC(); //执行右键菜单
  211. // }
  212. //}
  213. //U.Dk.UP.TF = true;
  214. //U.Dk.UP.UP = { "7aeaab56-485f-4150-b781-8ffd86d593ce": [], "93553847-e299-464c-a0e2-c15872efb6ae": [], "8a2135ff-746a-43a8-97b8-552d228a00bb": [], "bf21bf7a-1e95-4194-8e4a-e9334d7d998d": [] };
  215. ////----------------------------------------------------------------------------------disk上传的接口
  216. ////判断上传窗口是否显示 显示就更换上传事件
  217. //U.Dk.UP.SFUW = function (UDOD, UPID, userid, UDID) {
  218. // var _UDTD = $("#UDK_UP")[0], _UTF = U.Dk.M.PDQX(DID);
  219. // if (_UTF) {//判断是否有权限
  220. // UDOD.onclick = U.M.apply(this, [[U.M.StopBubble], [U.Dk.UP.FUW, [UPID, userid, UDID, { "FCP": U.Dk.UP.SCGUP, "ID": "UDK_FUPB"}])]]; //上传点击
  221. // if (_UDTD.style.display == "block") { U.D.PopupWindow(_UDTD); } //弹出上传框
  222. // }
  223. //}
  224. ////上传的接口
  225. //U.Dk.UP.FUW = function (UPID, userid, UDID, UGS) {
  226. // if (!U.U.L.isLogin()) {
  227. // if (UPID == US.VG) { U.Dk.RE.AUPV(UDID); } //上传视频处理
  228. // else {
  229. // var _UDOD, _UYX, _UGE = U.Dk.UP.UP, _UTF = U.Dk.UP.UPF(UPID), _UDTD = $("#UDK_FUPI"), _UTP = U.CI.IsHF();
  230. // if (_UTP == "HTML5") { } //HTML5的上传
  231. // else if (_UTP == "Flash") { _UDOD = U.Dk.UP.FUP(UPID, UDID, _UTF, UGS); } //Flash上传
  232. // else { _UDOD = U.Dk.UP.HUP(UPID, UDID, _UTF); } //HTML上传
  233. // _UDOD = U.Dk.UP.HUP(UPID, UDID, _UTF);
  234. // if (U.Dk.UP.TF) { _UGE = U.Dk.UP.UP = {}; _UGE[US.DG] = []; _UGE[US.PG] = []; _UGE[US.MG] = []; _UGE[US.VG] = []; } //设置上传的值
  235. // if (_UTF[0] == "") { _UGE[UDID] = []; } //群上传设置 _UGE = {};
  236. // $("div", _UDOD)[0].style.display = "block"; U.D.PopupWindow(_UDOD); _UYX = _UDTD.GetElementInfo(); //弹窗
  237. // U.D.Tb.WindowRestore($("div", _UDOD)[0], null, "上传"); //创建任务栏
  238. // if (US.Disk.UserDisk[0].length < 7) { U.D.ZYBH([false, "云端在线,体验云服务", "setp3:点击上传文件按钮,上传您的一个文件吧", null, { "X": _UYX["TX"], "Y": _UYX["TY"], "L": _UYX["TX"] + 80, "T": _UYX["TY"] - 350 }, "UD_ZY_CDIF", [-18, 3, "UD_ZYQT"]], _UDTD[0]); }
  239. // }
  240. // }
  241. //}
  242. ////HTML上传 设置
  243. //U.Dk.UP.HUP = function (UPID, UDID, UTF) {
  244. // var _UDOD = $("#UDK_UP")[0], _UDTD = $("#UDK_UP_CC")[0], _UDAD = $("div", _UDOD), _UDID = $("input", _UDOD)[0];
  245. // $("span", _UDOD)[0].innerHTML = "文件普通上传" + "(" + UTF[1] + "目前最大支持" + UTF[2] + ")"; //上传提示
  246. // if (U.Dk.UP.TF) { _UDAD[8].innerHTML = ""; } //清空值
  247. // _UDID.onchange = U.M.apply(_UDID, [[U.Dk.UP.UPLUP, [_UDID, _UDTD, UDID]]]); //上传事件选择
  248. // _UDAD[_UDAD.length - 1].onclick = U.M.apply(_UDID, [[U.Dk.UP.SOUP, [UPID, UDID]]]); //上传到服务器处理
  249. // return _UDOD;
  250. //}
  251. ////Flsh上传
  252. //U.Dk.UP.FUP = function (UPID, UDID, UTF, UGS) {
  253. // var i, _USZ, _UWH = { "height": 30, "width": 88 }, _UDOD = $("#UDK_FUP")[0], _UDAD = $("div", _UDOD);
  254. // for (i in _UWH) { _UWH[i] = UGS[i] || _UWH[i]; delete UGS[i]; }; _USZ = U.Dk.UP.FTF["FUN"] = UGS || {};
  255. // _UDAD[2].innerHTML = "文件普通上传" + "(" + UTF[1] + "目前最大支持" + UTF[2] + ")"; //上传提示
  256. // U.UP.FAFZ(_USZ, {}, UGS ? UGS["GS"] : null); U.Dk.UP.FTF["URL"] = UGS ? UGS["URL"] : ""; //添加访问
  257. // U.UP.AddFAN(_UDAD["UDK_FUPI"], (UGS ? UGS["ID"] : "UDK_FUPB"), _UWH); //添加Flash上传按钮
  258. // (U.Dk.UP.TF) && (_UDAD["UDK_FUPCC"].innerHTML = ""); //清空值
  259. // return _UDOD;
  260. //}
  261. ////通过目录ID获取格式
  262. //U.Dk.UP.UPF = function (UDID) {
  263. // var i, _UDE = [[US.DG, [U.UP.SFT("A"), "文件", "100MB", "disk"]], [US.PG, [U.UP.SFT("P"), "图片", "100MB", "photo"]], [US.MG, [U.UP.SFT("M"), "音乐", "100MB", "music"]], [US.VG, [[U.UP.SFT("V"), "视频", "100MB", "vedio"]]]];
  264. // for (i = 0; i < _UDE.length; i++) {
  265. // if (_UDE[i][0] == UDID) { return _UDE[i][1]; }
  266. // }
  267. // return ["", "友群", "250MB"]; ;
  268. //}
  269. ////----------------------------------------------------------------------------from表单上传------------------------------------------------------------------
  270. ////点击添加按钮 显示文件名在页面上并创建新的inputk
  271. //U.Dk.UP.UPLUP = function (UDI, UDOD, UDID) {
  272. // var _UGE = US.Disk.UserDisk;
  273. // if (_UGE[1][0].FileSize <= U.UP.GetSfileS(US.userInfo.UserDiskSpace + "M")) { //是否有足够的空间上传
  274. // var _UDTD, _UDSD, _UDGD, _UDID, _UN = U.UP.GetUpName(UDI), _UTF = U.UP.SFT("B");
  275. // if (!(U.UP.UploadFileType(UDI, _UTF))) {//过滤病毒类型
  276. // _UTF = U.UP.IsDF(_UN[1])[1]; //上传文件的类型 我的电脑(US.DG) 我的音乐(US.PG) 我的视频(US.SG) 我的图片(US.MG)
  277. // _UDTD = $$("div", { "className": "UDK_UP_FILEZL" });
  278. // $$("div", { "className": "UDK_UP_FILEZLT", "innerHTML": "正在上传中..." }, _UDTD);
  279. // $$("div", { "className": "UDK_L_DiskGE UDK_UP_DELETE", "onclick": U.M.apply(this, [[U.Dk.UP.DE, [UDI, _UTF]]]) }, _UDTD); //删除按钮
  280. // $$("div", { "className": "UDK_UP_FILEName", "innerHTML": _UN[0] }, _UDTD);
  281. // _UDSD = $$("div", { "className": "UDK_UP_MXLTdiv" }, _UDTD); _UDGD = $$("div", { "className": "UDK_UP_LTFrame" }, _UDSD); _UDID = $$("div", {}, _UDGD);
  282. // $$("input", { "className": "UDK_UP_LTFTextarea", "name": "UDK_UP_LTF", "onblur": [U.MR.InputTip, (["this", ["", '可输入文件描述...']])], "onfocus": [U.MR.InputTip, (["this", ['可输入文件描述...', '']])], "value": "可输入文件描述..." }, _UDID);
  283. // UDI.style.display = "none"; _UDID.appendChild(UDI);
  284. // $$("input", { "name": "UDK_UP_ic", "className": "UD_filePrew UDK_UP_Add", "type": "file", "onchange": [[U.Dk.UP.UPLUP, ["this", UDOD, UDID]]] }, $("#UDK_UP_AU")[0]); //上传按钮复原
  285. // U.Dk.UP.UP[_UTF] ? U.Dk.UP.UP[_UTF].push[UDI, _UDTD] : U.Dk.UP.UP[DID].push[UDI, _UDTD]; //添加input
  286. // UDOD.appendChild(_UDTD); UDOD.scrollTop = UDOD.scrollHeight - UDOD.offsetHeight; //位置定位
  287. // }
  288. // else { U.Alert("该类型不允许上传"); }
  289. // }
  290. // else { U.Alert("你的网盘已满,请用积分兑换网盘空间"); }
  291. //}
  292. ////上传处理
  293. //U.Dk.UP.SOUP = function (UPID, UDID) {
  294. // var i, _UGE = U.Dk.UP.UP;
  295. // for (i in _UGE) {
  296. // if (_UGE.hasOwnProperty(i)) {
  297. // if (_UGE[i].length > 0) { if (UPID != i) { UDID = i; }; U.Dk.UP.SUP(i, UDID); return; }
  298. // }
  299. // }
  300. //}
  301. ////上传到服务器
  302. //U.Dk.UP.SUP = function (UPID, UDID) {
  303. // var i, _UDTD, _UDSD, _UAE, _UGE = [], _UFD = US.Disk.UserDisk[0], _UDE = U.Dk.UP.UP[UPID];
  304. // if (_UDE.length) {
  305. // for (i = 0; i < _UDE.length; i++) { _UDSD = $("input", _UDE[i][1])[0]; $("div", _UDE[i][1])[0].style.display = "block"; _UDTD = $$("div", {}); _UDSD.value = _UDSD.value == _UDSD.defaultValue ? "" : _UDSD.value; _UDTD.appendChild(_UDE[i][0]); _UDTD.appendChild(_UDSD); _UGE.push(_UDTD); }
  306. // U.Alert(_UGE.length ? "正在上传,请稍后查看" : "上传文件为空,无法上传");
  307. // if (_UFD.length) { _UAE = _$(_UFD).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID"); U.Dk.UP.TF = false; U.UP.uploading(_UGE, U.Dk.UP.AsnySUP, [UPID, UDID, _UAE[0]], "http://disk.1473.cn/USupfile.ashx?iframename=UploadFlashfile&DirectoryId=" + UDID + "&GroupID=" + (_UAE[_UAE.length - 1].GroupID || "") + ("&Encrypt=" + (_UAE[_UAE.length - 1].UserDirectoryID == US.SG ? "Yes" : "")), true); } //执行上传
  308. // return true;
  309. // }
  310. // return false;
  311. //}
  312. ////上传删除
  313. //U.Dk.UP.DE = function (UDI, UDID) {
  314. // var _UGE = U.Dk.UP.UP[UDID], i;
  315. // for (i = 0; i < _UGE.length; i++) { if (_UGE[i][0]) { _UGE[i][1].parentNode.removeChild(_UGE[i][1]); _UGE.splice(i, 1); return; } } //删除元素
  316. //}
  317. ////上传完后的回调
  318. //U.Dk.UP.AsnySUP = function (r) {
  319. // var _UN, context = r.context, _UDOD = r.UpObj, _UDID = $("input", _UDOD)[0]; r = r.value;
  320. // U.Dk.UP.DE(_UDID, context[0]); //删除上传
  321. // if (r == "flase" || r == undefined) { U.Alert("上传文件超过限制"); } //上传超过限制
  322. // else {
  323. // _UN = U.UP.GetUpName(_UDID); //获取input上传名和 上传的格式
  324. // U.Dk.UP.SCGUP(r, { "type": _UN[1], "name": _UN[0], "size": r[3], "ID": context[1] }, context[2]); //添加文件到网盘
  325. // if (U.Dk.UP.UP[context[0]].length == 0) { U.Dk.UP.SOUP(); } //新的上传
  326. // }
  327. //}
  328. ////------------------------------------------------------------------------------flash上传-----------------------------------------------------------------------------
  329. //U.Dk.UP.FTF = { "FL": [], "DID": "", "ID": "", "JD": [], "F": [], "ITF": [], "FUN": { "URL": "", "EX": "", "ADD": "", "ACP": "", "CP": "", "JDT": "", "FCP": "", "AFCP": ""} }; //这个是Flash上传的全局变量
  330. ////添加上传文件 上传文件的显示
  331. //U.Dk.UP.FLAdd = function (UDE) {
  332. // var i, _UDTD, _UDSD, _UGE = U.Dk.UP.FTF, _UDFL = _UGE["FL"], _UADF = _UGE["FUN"]["ADD"], _UMID = US.Disk.UserDisk[1][1], UDOD = $("#UDK_FUPCC")[0], _UDFD = $$("frag");
  333. // _$(UDE).Add({ "ID": U.Dk.UP.FTF["ID"], "FUN": _UGE["FUN"], "URL": _UGE["FUN"]["URL"] }); //生成文件上传的属性
  334. // for (i = 0; i < UDE.length; i++) {
  335. // UDE[i].FID = U.MS.produceGuid(); //唯一的识别
  336. // _UDTD = $$("div", { "className": "UDK_FUPCH UDK_FUPCCC" }, _UDFD);
  337. // _UDSD = $$("div", { "className": "UDK_FUPCHL UTDF" }, _UDTD);
  338. // $$("div", { "className": "UDK_L_DiskGE UDK_RT_DL_IMG", "style": { "cssText": U.UP.FFT(UDE[i].type.substr(1))[2]} }, _UDSD);
  339. // $$("div", { "className": "UDK_FUPCHLT UTDF", "innerHTML": UDE[i].name }, _UDSD);
  340. // $$("div", { "className": "UDK_FUPCHD UDK_FUPCHLN UTDF", "style": { "textIndent": "8px" }, "innerHTML": U.UP.FileSize(UDE[i].size) }, _UDSD);
  341. // _UDSD = $$("div", { "className": "UDK_FUPCHLV UDK_FUPCCJ", "title": "(0%)" }, _UDTD);
  342. // $$("div", { "className": "UDK_FUPCCJO" }, _UDSD);
  343. // UDE[i]["JD"] = ($$("div", { "className": "UDK_FUPCCJT" }, _UDSD));
  344. // $$("div", { "innerHTML": "(0%)", "className": "UDK_FUPCCJS", "style": { "height": "25px"} }, _UDSD);
  345. // _UDSD = $$("div", { "className": "UDK_FUPCHD" }, _UDTD);
  346. // $$("div", { "className": "UDK_L_DiskGE UDK_FUPCCS", "title": "关闭", "onclick": [U.Dk.UP.DFF, [UDE[i], _UDTD, _UDFL.length - 1]] }, _UDSD);
  347. // }
  348. // UDOD.appendChild(_UDFD); _UDFL.push(UDE); (_UADF) && (_UADF(UDE)); (_UDFL.length == 1) && (U.Dk.UP.FLUP(0, 0, UDE[0])); //直接执行上传
  349. //}
  350. ////点击上传
  351. //U.Dk.UP.FLUP = function (ITF, UTF, UDE) {
  352. // var i, _UAE, _UKE, _UJM, _UGID, _UFRE = U.Dk.UP.FTF["FL"], _UGE = US.Disk.UserDisk; UDE.DID = U.UP.IsDF(UDE.type.substr(1))[1];
  353. // if (U.Dk.UP.ISFLUP(UDE)) {//允许上传
  354. // UDE.LO = "yes"; _UAE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": UDE.ID }, "UserDirectoryParentID"); _UKE = _UAE[_UAE.length - 1]; //获取指定的文件夹
  355. // if (!UDE["URL"]) { (_UKE.UserDirectoryID != UDE.DID && _UKE.GroupID == null) && (UDE.ID = UDE.DID); UDE.URL = "http://disk.1473.cn/USupfile.ashx?iframename=UploadFlashfile&DirectoryId=" + UDE.ID + "&GroupID=" + (_UKE.GroupID || ""); } //没有指定的上传地址就使用默认的
  356. // UDE["URL"] + "&Encrypt=" + (_UAE[_UAE.length - 1].UserDirectoryID == US.SG ? "Yes" : ""); //设置加密上传
  357. // U.UP.FTF["EL"].UpLoad(ITF, UTF, UDE.FID); U.Alert("正在上传" + UDE["name"] + "文件,请等待"); //获取文件的hash码
  358. // }
  359. //}
  360. ////上传文件判断是否存在
  361. //U.Dk.UP.IsFUp = function (UWJL, FID) {
  362. // var _UGE = US.Disk.UserDisk, _UDL = U.Dk.UP.GetFWZ(FID), _UFL = _UDL[2], _UDE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": _UDL[2].ID }, "UserDirectoryParentID");
  363. // U.A.Request(US.Auth,"UseStudioDisk.IsFUp", [_UFL.ID || "", _UDE[_UDE.length - 1].GroupID || "", _UFL.size, UWJL, _UFL.type.substr(1), ""]), U.Dk.UP.AsynIsFUp, ["", _UFL, _UDE]; //判断服务器是否有相同的文件
  364. //}
  365. ////异步获取文件是否存在
  366. //U.Dk.UP.AsynIsFUp = function (r) {
  367. // var context = r.context, _UFL = context[1], _UDE = context[2], _UDT = U.Dk.UP.GetFWZ(_UFL.FID); r = r.value; try { r = eval(r)[0]; } catch (e) { }
  368. // if (r) { U.Dk.UP.SUPF([r.UserFilesServerName, r.UserFilesID, r.UseFilesServerThumbnailName, _UFL.size], _UDE, _UFL); } //已有的文件自己拷贝
  369. // else { U.UP.FTF["EL"].URRUP(_UFL["URL"] + "&UserId=" + US.userInfo.userid + "&IsF=true", _UFL.FID, _UDT[0], _UDT[1]); } //上传到服务器
  370. //}
  371. ////上传的进度条
  372. //U.Dk.UP.FLJD = function (UDE, FID) {
  373. // var _UBL = Math.floor((UDE["Loaded"] / UDE["Total"]) * 100), _UDL = U.Dk.UP.GetFWZ(FID), _UDJD = _UDL[2]["JD"];
  374. // _UDJD.style.width = (_UBL * 1.20) + "%"; _UDJD.parentNode.title = $("div", _UDJD.parentNode)[2].innerText = "(" + _UBL + "%)";
  375. //}
  376. ////上传单个文件完毕
  377. //U.Dk.UP.FLCP = function (UDTA) {
  378. // U.Alert("等待服务器的响应...");
  379. //}
  380. ////上传文件成功同时服务端返回了数据
  381. //U.Dk.UP.FSLCP = function (UDAT, FID) {
  382. // var _URE = UDAT.data, UFL = U.Dk.UP.GetFWZ(FID)[2];
  383. // try { _URE = eval(_URE); } catch (e) { } //返回的值
  384. // (_URE) && (U.Dk.UP.SUPF(_URE, null, UFL)); //文件成功的上传到服务器
  385. //}
  386. ////上传文件成功
  387. //U.Dk.UP.SUPF = function (URE, UDE, UFL) {
  388. // var _UAF = UFL["FUN"]["FCP"];
  389. // if (_UAF) { _UAF(URE, { "type": UFL.type.substr(1), "name": UFL.name, "size": UFL.size, "ID": UFL["ID"], "DID": UFL["DID"] }, UDE); } //上传文件回调
  390. // U.Dk.UP.DFF(UFL); U.Alert("上传文件成功"); //继续上传
  391. //}
  392. ////删除单个上传文件
  393. //U.Dk.UP.DFF = function (UFL) {
  394. // var i, j, _UTF = false, _UAFL = U.Dk.UP.FTF["FL"], _UDT = U.Dk.UP.GetFWZ(UFL.FID), _UDOD = UFL["JD"].parentNode.parentNode;
  395. // _UDOD.parentNode.removeChild(_UDOD); _UAFL[_UDT[1]].splice(_UDT[0], 1); (!_UAFL[_UDT[1]].length) && (_UAFL.splice(_UDT[1], 1))
  396. // if (_UAFL.length) { for (i = 0; i < _UAFL.length; i++) { for (j = 0; j < _UAFL[i].length; j++) { if (!_UAFL[i][j].LO) { U.Dk.UP.FLUP(j, i, _UAFL[i][j]); _UTF = !_UTF; break; } } if (_UTF) { break; } } }
  397. // else { U.Dk.UP.FLACP(); U.Alert("所有文件上传完毕"); }
  398. //}
  399. //上传文件成功回调
  400. U.Dk.UP.SCGUP = function (URE, UFE, UTE, TF) {
  401. // var _UKE, _UGE = US.Disk.UserDisk, _UIF = US.userInfo, _UCE = UTE || _$(_UGE[0]).Select({ "UserDirectoryID": UFE["ID"] });
  402. // URE[2] = (URE[2] == null ? U.UP.FFT(UFE["type"])[1] : US.fs + URE[2]); //文件缩略图
  403. // _UKE = new U.Dk.M.Entity(([URE[1], URE[3], UFE["ID"], (UFE["name"].length > 10 ? UFE["name"].substr(0, 10) + "..." : UFE["name"]), UFE["name"], UFE["type"].toLowerCase(), URE[0], new Date(), URE[2], 9999.0000, null, UTE["GroupID"], 1, UFE["name"]])); //添加目录
  404. // (_UGE[2] || US.userInfo.userid != _UGE[1][2]) && (_$(_UKE).Add({ "UserId": _UIF.UserId, "UserNickName": _UIF.UserNickName, "UserName": _UIF.UserName, "UserThumbnailImageHead": _UIF.UserThumbnailImageHead })); _UGE[0].push(_UKE); //修改文件目录
  405. // if (_UGE[2]) { _UIF.FileSize = U.UP.FileSize((U.UP.GetSfileS(_UIF.FileSize) + UFE["size"])); U.Dk.M.AddUserHBImage(UFE["ID"], _UKE); } //上传头像或者背景图
  406. // if (!TF) { U.Dk.RE.ARFO(_UKE); U.Dk.LE.DBC(UFE["ID"], US.userInfo.userid); U.Dk.onloadLeft(); } //添加文件
  407. // if (!UTE.GroupID) { U.D.BC.SetNews[new U.D.T.CII([URE[1], US.userInfo.userid, US.userInfo.UserNickName, US.userInfo.UserThumbnailImageHead, "UD_DiskCon", UFE["ID"], UFE["name"], new Date(), _UKE]], true); } //公共信息提示
  408. // return _UKE;
  409. }
  410. ////文件判断是否允许上传
  411. //U.Dk.UP.ISFLUP = function (UDE) {
  412. // var _UGE = US.Disk.UserDisk, _UTF = false;
  413. // if (UDE["size"] > U.UP.GetSfileS("100M")) { U.Alert("最大上传文件不可以超过100M"); } //上传的文件不能超过100M
  414. // else if ((U.UP.GetSfileS(_UGE[1][0].FileSize + "M") + UDE.size) >= U.UP.GetSfileS(US.userInfo.UserDiskSpace + "M")) { U.Alert("你的网盘已满,请用积分兑换网盘空间"); return; } //超过网盘大小
  415. // else { _UTF = !_UTF; }; return _UTF;
  416. //}
  417. ////获取文件所在的位置
  418. //U.Dk.UP.GetFWZ = function (FID) {
  419. // var i, j, UGE = U.Dk.UP.FTF["FL"];
  420. // for (i = 0; i < UGE.length; i++) { j = UGE[i].indexOf(FID, "FID"); return [j, i, UGE[i][j]]; }
  421. //}
  422. ////上传所有文件完毕
  423. //U.Dk.UP.FLACP = function (UFL) {
  424. // var _UAF = UFL["FUN"]["AFCP"];
  425. // U.Dk.UP.FTF["FL"] = []; U.Dk.UP.TF = true; //清除上传容器//允许从新上传
  426. // (_UAF) && (_UAF()); //所有文件上传成功回调
  427. //}
  428. ////上传的错误提示
  429. //U.Dk.UP.FLEX = function (UDTA) {
  430. // U.Alert(UDTA); U.M.Console(UDTA);
  431. //}
  432. ////关闭按钮同时结束文件上传
  433. //U.Dk.UP.DAF = function () {
  434. // U.UP.FTF["EL"].DAF();
  435. //}
  436. //-------------------------------------------------------------disk导航条变化---------------------------------------------------------------------
  437. //树形框点击事件:导航条清空递归重写
  438. U.Dk.LL.Nav = function (UDID, userid) {
  439. var i, _UDAD, _UDPD, _UTF, UMID, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID"), _UDOD = $("div#UDK_N_ArticleNav", _UGE[1][3])[0], _UDTD = $("div#UDK_HP_UpFile", _UGE[1][3])[0], _UDFD = $$("frag"), _UL = _UDE.length;
  440. (_UDPD = _UDOD.parentNode).style.width = _UDPD.parentNode.offsetWidth - 400 + "px"; _UDOD.innerText = ""; U.Dk.DiskOperatingSwitch(userid); //操作用户切换
  441. while ((i = _UL--)) { _UTF = i == _UDE.length; $$(_UTF ? "div" : "span", { "className": _UTF ? "UDK_L_DiskGE UDK_N_HOME" : "", "title": _UDE[i - 1]["UserallDirectoryName"], "onclick": [[U.Dk.LL.UDKURL, [_UDE[i - 1].UserDirectoryID])], [U.Dk.LE.DBC, ([_UDE[i - 1].UserDirectoryID, userid]]], "innerHTML": _UTF ? "" : "> " + _UDE[i - 1].UserDirectoryName }, _UDFD);
  442. } _UDOD.appendChild(_UDFD); //导航打印
  443. _UDAD = $(_UDOD).Child(); i = _UDE.length; _UL = 0; while (i--) { _UL += _UDAD[i].clientWidth + 10; } _UDOD.style.width = _UL + "px"; _UDOD.parentNode.scrollLeft = _UL;
  444. U.Dk.HP.CPT(_UDE[_UDE.length - 1].UserDirectoryID); (_UDTD) && (U.Dk.UP.SFUW(_UDTD, _UDE[_UDE.length - 1].UserDirectoryID, userid, _UDE[0].UserDirectoryID)); //文件夹的权限 //上传区域赋值
  445. }
  446. //----------------------------------------------------------------左边栏JS-----------------------------------------------------------**
  447. //判断是否伸缩 伸展菜单
  448. U.Dk.LL.SM = function (UDOD, userid, UDID) {//obj就是单击的那张变化的图
  449. var _UDE, _UDPD = UDOD.parentNode, _UDTD = $("div", UDOD)[0], _UL = $("div", _UDPD).length - 1;
  450. U.Dk.DiskOperatingSwitch(userid); //操作用户切换
  451. if (_UL > 1) { _UDPD.removeChild(_UDPD.lastChild); } //伸展取消
  452. else {
  453. _UDE = _$(US.Disk.UserDisk[0]).Select({ "UserDirectoryParentID": UDID, "filetype": 0 });
  454. U.Dk.VW.LV(_UDE, _UDPD);
  455. }
  456. _UDTD.className = "UDK_L_DiskGE UDK_L_USTreesign " + (_UL > 1 ? "UR_I_D_E" : "UR_I_D_S");
  457. U.Dk.LL.VM(UDOD); //改变单击的样式
  458. }
  459. //单击菜单时的效果 伸缩时候的点击元素效果
  460. U.Dk.LL.VM = function (UDOD) {
  461. var _UGE = US.Disk.UserDisk[1];
  462. (_UGE[5]) && ($(_UGE[5]).addAttrArray({ "style": { "border": 0, "backgroundColor": "" } }));
  463. UDOD.style.backgroundColor = "#dee6ef"; _UGE[5] = UDOD;
  464. }
  465. //Disk导航点击变化链接
  466. U.Dk.LL.UDKURL = function (UDID) {
  467. var _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID")[0], _UTF = U.Dk.HP.UPF(_UDE.UserDirectoryID)[3];
  468. (_UTF) && (U.D.G.UrlWrite(_UTF + "/" + _UGE[1][0].UserName, _UGE[1][0].UserNickName + "的硬盘")); //url重写
  469. }
  470. //顶部导航函数,多个地方用到,合成一个函数
  471. U.Dk.LL.TD = function (UDOD) {
  472. U.UI.Confirm("将切换到硬盘首页,确认吗?", [U.Dk.LL.TDQH, [UDOD]], "");
  473. }
  474. //切换到网盘首页
  475. U.Dk.LL.TDQH = function (UDOD) {
  476. U.Dk.NologinDiskDown(US.userInfo.userid || US.NU, US.DG);
  477. U.M.StopBubble();
  478. }
  479. ////-----------------------------------------------------------------------打开文件处理-------------------------------------------------------------------------
  480. ////点击文件夹的处理
  481. //U.Dk.LE.OFO = function (UDE, UDID, userid) {
  482. // var _UGE = US.Disk.UserDisk[1]; U.Dk.DiskOperatingSwitch(userid); _UGE[1] = UDID; //记录所在的文件夹
  483. // $("div#UDK_N_PX_PX", _UGE[3])[0].onclick = U.M.apply(this, [[U.Dk.HP.AtSTimeS, [UDID]]]); //按时间排序的
  484. // U.Dk.VW.NOD(_UGE[4], UDID); U.Dk.LL.Nav(UDID, userid); //打印视图和导航
  485. //}
  486. ////------------------------------------------------------------------------普通文件处理------------------------------------------------------------------------
  487. ////---------------------------------------------------------------------------------文件处理------------------------------------------------------------------
  488. ////点击图片处理
  489. //U.Dk.LE.OIMG = function (UDID, UDE, UTF) {
  490. // var i, k, _UAE, _UKE = [], _UGE = US.Disk.UserDisk;
  491. // if (_UGE[1][1]) { _UAE = _$(_UGE[0]).Select({ "UserDirectoryParentID": UDE.UserDirectoryParentID, "filetype": 1 }); }
  492. // else { _UAE = []; for (i = 0; i < 3; i++) { _UAE = _UAE.concat(_$(_UGE[0]).Select({ "UserDirectoryParentID": _UGE[0][i == 2 ? 3 : i].UserDirectoryID, "filetype": 1 })); } }
  493. // for (i = 0; i < _UAE.length; i++) { (_UAE[i]["UserDirectoryID"] == UDE["UserDirectoryID"]) && (k = i); _UKE.push({ "Time": _UAE[i]["UserDirectoryModifyTime"], "Thm": _UAE[i].UserDirectoryUrl, "Img": US.fs + _UAE[i].UserFilesServerName }); } ///^abcd(.+?)fghj$/
  494. // (!UTF) && (U.Img.Create(_UKE, k, { "TF": 2 })); return [_UKE, k]; //打印图片
  495. //}
  496. ////-----------------------------------------------------------------------音乐的处理---------------------------------------------------------------------------
  497. ////打开音乐处理
  498. //U.Dk.LE.OM = function (UDE) {
  499. // var _UAE = U.Dk.LE.GM(UDE.UserDirectoryParentID); //获取当前所有的音乐和目录
  500. // U.MPlayer.Open(_UAE[0], _UAE[1], UDE.UserDirectoryID); //打开音乐播放器
  501. //}
  502. ////----------------------------------------------音乐辅助函数
  503. ////获取音乐文件和目录
  504. //U.Dk.LE.GM = function (UDE) {
  505. // var i, j, _UAE, _UKE = [], _UGE = US.Disk.UserDisk[0];
  506. // (!UDE.UserDirectoryID) && (UDE = _$(_UGE).Select({ "UserDirectoryID": UDE })[0]); //转化指定的文件夹
  507. // _UAE = _$(_UGE).Select({ "UserDirectoryParentID": UDE.UserDirectoryID }); //获取当前文件夹下所有的文件和文件夹
  508. // _UKE[0] = [UDE, _$(_UAE).Select({ "filetype": 1 })]; _UAE = _$(_UAE).Select({ "filetype": 0 }); _UKE[1] = []; //生成
  509. // for (j = 0; j < _UAE.length; j++) { _UKE[1].push(U.Dk.LE.GM(_UAE[j])); } //函数式的递归 改成成循环递归最好
  510. // return _UKE;
  511. //}
  512. ////-----------------------------------------------------------------------------视频处理-----------------------------------------------------------------------
  513. ////打开实现链接的视频
  514. //U.Dk.LE.OV = function (UDE) {
  515. // U.M.divdoubleClick("UseStudioBrowserDiv", UDE.UserFilesServerName, null);
  516. //}
  517. //全选功能
  518. U.Dk.VW.AS = function (UDOD, UTF) {
  519. $("input", UDOD.parentNode.parentNode).addAttrArray({ "checked": UTF });
  520. UDOD.onclick = U.M.apply(UDOD, [[U.Dk.VW.AS, ([UDOD, !UTF])]]);
  521. }
  522. //判断用户权限
  523. //U.Dk.M.PDQX = function (UDID) {
  524. // var i, _UDE = _$(US.Disk.UserDisk[0]).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID");
  525. // for (i = 0; i < _UDE.length; i++) { if (_UDE[i].UserDirectoryEncrypt == "true" && _UDE[i].GroupID != null) { return false; } }
  526. // return _UDE;
  527. //}
  528. //---------------------------------------------------------------------左边树形的视图------------------------------------------------------------------------
  529. //这里是说明左边的树形栏视图
  530. U.Dk.VW.LV = function (UDE, UDOD) {
  531. U.Dk.VW.CLV(UDE, $$("div", { "style": { "marginLeft": "10px" } }, UDOD));
  532. }
  533. //左边子元素
  534. U.Dk.VW.CLV = function (UDE, UDOD) {
  535. var i, _UDID, _UDTD, _UDSD, _UDMD, _UKE = ["UDK_L_USTreeFolderIcon", ""], userid = US.Disk.UserDisk[1][0].UserId, _UDFD = $$("frag");
  536. for (i = 0; i < UDE.length; i++) {
  537. if (US.userInfo.userid == userid || !UDE[i].UserDirectoryEncrypt) {
  538. _UDID = UDE[i].UserDirectoryID; (UDE[i].UserDirectoryEncrypt) && (_UKE[0] = "UDK_L_USTreeFolderEncryptIcon", _UKE[1] = "(已加密)");
  539. _UDTD = $$("div", { "classNmae": "UDK_L_USTreecontainA", "onclick": [[U.M.StopBubble], [U.Dk.LL.UDKURL, [_UDID]], [U.Dk.LE.DBC, [_UDID, userid]]] }, _UDFD);
  540. _UDSD = $$("div", { "className": "UDK_L_USTTitle", "onclick": [U.Dk.LL.SM, ["retElement", userid, _UDID]] }, _UDTD);
  541. $$("div", { "id": _UDID + 'img', "className": "UDK_L_DiskGE UR_I_D_E UDK_L_USTreesign" }, _UDSD);
  542. _UDMD = $$("a", { "className": "UDK_L_USdisktreeA", "id": 'd' + _UDID, "onmousedown": [U.Dk.RM.DRC, ["this", _UDID, userid]] }, _UDSD);
  543. $$("i", { "className": "UDK_L_DiskGE " + _UKE[0] }, _UDMD);
  544. $$("span", { "innerHTML": UDE[i].UserDirectoryName + _UKE[1] }, _UDMD);
  545. }
  546. }
  547. UDOD.appendChild(_UDFD);
  548. }
  549. ////-------------------------------------------------------------------------------------disk本地搜索----------------------------------------------------------
  550. ////本地搜索
  551. //U.Dk.S.LSearch = function (UDOD) {
  552. // if (UDOD.value.isStrNull() && UDOD.value != UDOD.defaultValue) {
  553. // var _UDV = UDOD.value, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Like({ "UserallDirectoryName": _UDV, "Descript": _UDV }), _UDTD = $("div#UDK_LR_directoryListArea", _UGE[1][3])[0];
  554. // _UDTD.innerText = ""; (_UGE[1][4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)(_UDE, _UDTD);
  555. // }
  556. // else { U.Alert("请输入想要搜索的内容!"); }
  557. //}
  558. //------------------------------------------------------------------------------------权限设置-----------------------------------------------------------------------
  559. ////用户权限 是否给点击右键一下新建文件夹啊等等的一些功能
  560. //U.Dk.HP.CPT = function (UDID) {
  561. // return (U.Dk.RightAuthority = UDID == US.DG);
  562. //}
  563. ////是否具有上传权限
  564. //U.Dk.HP.AUD = function () {
  565. // var _UGE = US.Disk.UserDisk[1], _UDOD = $("div#UDK_RS_directoryCommandArea", _UGE[3])[0]; _UDOD.innerText = "";
  566. // if (US.userInfo.userid == _UGE[0].UserId) {
  567. // $$("div", { "className": "UDK_L_DiskGE UDK_B_C UDK_B_CreateDirButton", "onclick": [[U.M.StopBubble], [U.Dk.RE.CMB, ["folder"]]] }, _UDOD);
  568. // $$("div", { "id": "UDK_HP_UpFile", "className": "UDK_L_DiskGE UDK_B_C UDK_B_UpFileButton", "onclick": [[U.M.StopBubble], [U.Dk.UP.FUW, ["UDK_UpFlie", _UGE[0].UserId]]] }, _UDOD);
  569. // }
  570. //}
  571. ////用户右键的权限
  572. //U.Dk.HP.EBB = function () {
  573. // var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("p", _UGE[1][3]), _UDE = ["UDK_R_addFolderButton", "UDK_R_addWordButton", "UDK_R_addXlsButton", "UDK_R_addPPTButton", "UDK_R_encryptwindow", "UDK_R_divDeleteButton", "UDK_R_divModifyButton", "UDK_LR_S", "UDK_LR_Cut"];
  574. // _UGE[3].onmousedown = U.Dk.RM.DRC; _UGE[3].onclick = $("div#UDK_LR_directorycontentarea", _UGE[3])[0].onmousedown = U.M.apply(this, [[U.Dk.RM.DRC, ["this", "add", _UGE[0].UserId]]]);
  575. // for (i = 0; i < _UDE.length; i++) { _UDAD[_UDE[i]].parentNode.style.display = "none"; }
  576. //}
  577. ////----------------------------------------------------------------------------disk定位-------------------------------------------------------------------------------
  578. ////拖动效果..文件与目录之间的拖动效果.
  579. //U.Dk.HP.CD = function (UDOD) {
  580. // var _UGE = US.Disk.UserDisk, UDPD = UDOD.parentNode, _UDAD = $(UDPD).Child();
  581. // _UDAD[1].setCapture(); //聚焦
  582. // document.onmousemove = U.M.apply(this, [[U.Dk.HP.XCD, [_UDAD, UDPD.clientWidth]]]);
  583. // document.onmouseup = U.M.apply(this, [[U.Dk.HP.DCD, [UDOD]]]);
  584. //}
  585. ////拖拉效果
  586. //U.Dk.HP.XCD = function (UDAD, UW) {
  587. // var _UX = event.clientX, _UTW = Math.max(Math.min(_UX - UDAD[1].getBoundingClientRect().left, 600), 208);
  588. // UDAD[0].style.width = _UTW + "px"; _UDCD[2].style.width = (UW - _UTW - 6) + "px";
  589. //}
  590. ////拖动结束
  591. //U.Dk.HP.DCD = function (UDOD) {
  592. // UDOD.releaseCapture(); //释放焦点
  593. // document.onmousemove = document.onmousemove = null;
  594. //}
  595. ////首页位置调整
  596. //U.Dk.HP.NCW = function (UDOD) {
  597. // var _UWH = U.M.GetElementInfo(UDOD), _UDAD = $("div", UDOD), _UDLD = _UDAD["UDK_RS_leftContent"], _UDRD = _UDAD["UDK_RS_rightContent"];
  598. // if (_UWH["CW"]) {
  599. // $(UDOD).addAttrArray({ "style": { "width": _UWH["OW"] + "px", "height": _UWH["OH"] + "px"} });
  600. // _UDAD["UDK"].style.height = _UWH["OH"] - 37 + "px"; _UDAD[1].style.width = _UWH["OW"] - 30 + "px";
  601. // _UDRD.style.width = Math.max((_UWH["OW"] - _UDLD.offsetWidth - 6), 0) + "px";
  602. // }
  603. //}
  604. ////登录调整位置格式
  605. //U.Dk.HP.CW = function (UDOD) {
  606. // var _UW, _UH, _UDPD, _UDAD, _UDLD, _UDRD, _UDTD, _UDFD, _UGE = US.Disk.UserDisk; UDOD = UDOD || (_UGE ? _UGE[1][3] : null);
  607. // if (UDOD) {
  608. // _UDPD = UDOD.parentNode; _UW = _UDPD.clientWidth; _UH = _UDPD.clientHeight - 35;
  609. // if (_UW && _UH) {
  610. // _UDAD = $("div", _UDPD); _UDRD = _UDAD["UDK_RS_rightContent"], _UDLD = _UDAD["UDK_RS_leftContent"]; _UDTD = _UDAD["UDK_L_USTreeTreeNode"]; _UDFD = _UDAD["UDK_LL_F"];
  611. // UDOD.style.height = _UH - 2 + "px"; _UDAD[1].style.width = _UW - 30 + "px";
  612. // if (_UDLD.clientHeight) {
  613. // _UDFD.style.maxHeight = (_UDLD.clientHeight - 190) + "px"; _UDTD.style.maxHeight = (_UDLD.clientHeight - 223) + "px";
  614. // _UDRD.style.width = Math.max((_UW - _UDLD.clientWidth - 6), 0) + "px";
  615. // _UDAD["UDK_LL_USTreeMainNodeDiv"].style.height = _UH - _UDAD["UDK_LL_US"].clientHeight - 20 + "px";
  616. // }
  617. // _UDAD["UDK_LR_directorycontentarea"].style.height = Math.max(_UH - 175, 0) + "px";
  618. // _UDPD.style.width = _UW + "px"; _UDPD.style.height = _UH + 35 + "px";
  619. // }
  620. // }
  621. //}
  622. ////右键正确定位
  623. //U.Dk.HP.RM = function (UDOD) {
  624. // var _UDPD = $(UDOD).Parent("UDK_M_alreadylogin"), _UXY = U.M.GetMousep(_UDPD);
  625. // $("div#UDK_R_rightMouseClickDiv", _UDPD).addAttrArray({ "style": { "visibility": "visible", "display": "block", "left": _UXY["X"] + "px", "top": _UXY["Y"] + "px"} }); // "visibility": "visible", "display": "inline-block",}
  626. //}
  627. ////Disk弹出位置变化
  628. //U.Dk.HP.DLO = function (UDOD) {
  629. // var _UWH, _UT, _UL, _UDTD, _UGE = US.Disk.Layer, UDOD = UDOD || US.Disk.UserDisk[1][3].parentNode;
  630. // if (!_UGE["LI"]) { _UGE["LI"] = UDOD; }
  631. // else {
  632. // _UWH = U.M.GetElementInfo(UDOD); _UDTD = _UGE["LI"] || UDOD; _UT = _UWH["OT"] + _UWH["OH"]; _UL = _UWH["OL"] + _UWH["OW"];
  633. // _UT = _UT > US.Height ? 0 : _UWH["OT"] + _UGE["step"]; _UL = _UL > US.Width ? 0 : _UWH["OL"] + _UGE["step"];
  634. // $(UDOD).addAttrArray({ "style": { "top": _UT + "px", "left": _UL + "px"} }); _UGE["LI"] = UDOD;
  635. // }
  636. //}
  637. ////文件描述位置
  638. //U.Dk.HP.DKDS = function (UDOD, UMS) {
  639. // if (UDOD && !(U.M.onmouseout(UDOD))) {
  640. // var _UE = U.M.GetElementInfo(UDOD), _UDPD = $(UDOD).Parent("UDK").parentNode, _UDTD = $("div#UDK_DS", _UDPD)[0];
  641. // if (typeof UMS != "string") { _UDTD.style.display = "none"; }
  642. // else {
  643. // $("div", _UDTD)[1].innerHTML = UMS; //文件描述
  644. // $(_UDTD).addAttrArray({ "style": { "display": "block", "left": (_UE["TX"] - _UDPD.offsetLeft + (_UE["CW"] / 2)) + "px", "top": (_UE["TY"] - _UDPD.offsetTop + (_UE["CH"] / 2)) + "px"} }); //定位
  645. // }
  646. // }
  647. //}
  648. ////--------------------------------------------------------------------------------disk排序--------------------------------------------------------------------------
  649. ////打印排序
  650. //U.Dk.HP.AtSTimeS = function (UDID, TF) {
  651. // var _UGE = US.Disk.UserDisk, _UDOD = $("div#UDK_LR_directoryListArea", _UGE[1][3])[0];
  652. // U.M.Sequence(_$(_UGE[0]).Select({ "UserDirectoryParentID": UDID }), TF ? "UserDirectorySize" : "UserDirectoryAddTime", TF ? U.UP.IsSizeS : U.MT.SizeComparison); //用冒泡排序
  653. // _UDOD.innerText = ""; (_UGE[1][4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)(_UDE, _UDOD); //打印文件
  654. //}
  655. ////------------------------------------------------------------------网盘搜索和网盘动态------------------------------------------------------------------------
  656. ////网盘动态 网盘首页切换
  657. //U.Dk.DI.SCMSD = function (UDOD, TF) {
  658. // var _UDAD = $("div", UDOD), _UDE = ["none", "block"]; (TF) && (_UDE.reverse()); //云搜索
  659. // _UDAD["UDK_SDP"].style.display = _UDE[0]; _UDAD["UDK_SSD"].style.display = _UDE[1];
  660. //}
  661. ////--------------------------------------------------------------------------查看云网盘-------------------------------------------------------------------------
  662. ////--------------------------------------------------------------------网盘初始化
  663. ////网盘动态
  664. //U.Dk.DI.CM = function (UDID, UDOD, userid) {
  665. // var _UGE = US.Disk.DiskDaren, _UDAD = $("div", UDOD);
  666. // if (_UGE["HF"]) { U.Dk.DI.SetHP(_UGE["HF"], _UDAD["UDK_RPHost"]); U.Dk.DI.GetTP(UDID, UDOD); U.Dk.DI.SDFN(UDID, _UDAD["UDK_SDP"], 1, userid); }
  667. // else {
  668. // if ($("iframe", _UDAD["UDK_RPGG"])[0] == null) { $$("iframe", { "frameBorder": 0, "marginheight": "0", "marginwidth": "0", "style": { "width": "100%", "height": "100%", "overflow": "hidden" }, "src": "/usercontrols/pages/UD_GG.htm?ID=tanx-a-mm_32325420_3265865_14580172&SID=tanx-s-mm_32325420_3265865_14580172&SRC=http://p.tanx.com/ex?i=mm_32325420_3265865_14580172" }, _UDAD["UDK_RPGG"]); }
  669. // U.A.Request(US.Auth,"UseStudioDisk.GetDaren", [userid, UDID, US.NU], U.Dk.DI.AsynCM, [UDOD, UDID, UDOD, userid]);
  670. // }
  671. //}
  672. ////网盘首页异步
  673. //U.Dk.DI.AsynCM = function (r) {
  674. // var _UDE, _UGE = US.Disk.DiskDaren, context = r.context, _UDOD = context[0], _UDID = context[1], _userid = context[3], _UFN = context[5]; r = r.value;
  675. // if (r.length) {
  676. // _$(_UGE).Add({ "HF": r[0], "TF": r[2] }); //添加热门和最新网盘数据
  677. // U.Dk.M.AddPND[_userid, _UDID, 1, r[1]]; //网盘滚动数据
  678. // if (_UFN) { _UFN(); } //有回调的执行回调
  679. // else { U.Dk.DI.CM(_UDID, _UDOD, _userid); } //网盘动态
  680. // }
  681. //}
  682. ////------------------------------------------------------------------热门云盘
  683. ////热门云盘
  684. //U.Dk.DI.SetHP = function (UDE, UDOD) {
  685. // var i, _UDTD, _UDSD, _UDHD;
  686. // _UDTD = $$("div", { "className": "UDK_L_DiskGE UDK_RPtext" });
  687. // _UDSD = $$("div", { "className": "UDK_RPHotDS" });
  688. // for (i = 0; (i < UDE.length && i < 10); i++) {
  689. // _UDHD = $$("div", { "className": "UDK_RPHotDiv", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", US.DG, UDE[i].UserID, null]]] }, _UDSD);
  690. // $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead), "className": "UDK_RPHotImg"}, _UDHD);
  691. // $$("div", { "className": "UDK_RPHotName", "innerHTML": UDE[i].UserName }, _UDHD);
  692. // $$("span", { "className": "UDK_RPHotVoluTXT", "innerHTML": "文件个数:" }, _UDHD);
  693. // $$("a", { "className": "UDK_RPHotVolume", "innerHTML": UDE[i].CN }, _UDHD);
  694. // }
  695. // UDOD.appendChild(_UDTD); UDOD.appendChild(_UDSD);
  696. //}
  697. ////------------------------------------------------------------------排行榜
  698. ////排行榜切换
  699. //U.Dk.DI.GetTP = function (UDID, UDOD) {
  700. // var UDE = _$(US.Disk.DiskDaren["TF"]).Select({ "T": UDID }, null, 10); //获取指定的排行榜文件
  701. // U.Dk.DI.SetTP(UDE, $("div#UDK_RPTop", UDOD)[0]); //打印排行榜文件
  702. //}
  703. ////排行榜文件打印
  704. //U.Dk.DI.SetTP = function (UDE, UDOD) {
  705. // var i, _UDTD, _UDSD, _UDHD;
  706. // _UDTD = $$("div", { "className": "UDK_RPTopOneDiv" });
  707. // $$("div", { "className": "UDK_RPTopOne", "innerHTML": "01." }, _UDTD);
  708. // $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[0].UserThumbnailImageHead), "className": "UDK_RPTopImg", "onclick": [[U.M.StopBubble], [U.U.I.POUW, [UDE[0].UserID]]] }, _UDTD);
  709. // $$("span", { "className": "UDK_RPTopFilesName", "innerHTML": UDE[0].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", UDE[0].UserDirectoryID, UDE[0].UserID, null]]] }, _UDTD);
  710. // $$("a", { "className": "UDK_RPTopNickName", "innerHTML": UDE[0].UserNickName }, _UDTD);
  711. // _UDSD = $$("div", { "className": "UDK_RPTopNAMDiv" });
  712. // for (i = 1; i < UDE.length; i++) {
  713. // _UDHD = $$("div", { "className": "UDK_RPTopUNDiv" }, _UDSD);
  714. // $$("div", { "className": "UDK_RPTopImgNUM", "innerHTML": "0" + (i + 1) }, _UDHD);
  715. // $$("div", { "className": "UDK_RPTopNAM", "innerHTML": UDE[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", UDE[i].UserDirectoryID, UDE[i].UserID, null]]] }, _UDHD);
  716. // $$("div", { "className": "UDK_RPTopUN", "innerHTML": UDE[i].UserNickName, "onclick": [[U.M.StopBubble], [U.U.I.POUW, [UDE[i].UserID]]] }, _UDHD);
  717. // }
  718. // UDOD.appendChild(_UDTD); UDOD.appendChild(_UDSD);
  719. //}
  720. ////-----------------------------------------------------------------最新动态
  721. //U.Dk.DI.UDSD; U.Dk.DI.DTE = [];
  722. ////最新动态切换
  723. //U.Dk.DI.SDFN = function (UDID, UDOD, UP, userid) {
  724. // userid = userid || US.NU; UDID = UDID || US.NU; var _UDTD = U.Dk.DI.UDSD = $("div#UDK_LPINew", UDOD)[0], _UDPD = _UDTD.parentNode, _UDSD = $("span", _UDPD)[0], _UDMD = $("div", _UDPD)[0];
  725. // _UDTD.innerText = ""; _UDSD.onclick = U.M.apply(_UDSD, [[U.Dk.NologinDiskDown, (['', UDID, ''])]]); _UDMD.onclick = U.M.apply(this, [[U.Dk.NologinDiskDown, ([US.userInfo.userid || US.NU, UDID, ''])]]); //按钮事件赋值
  726. // U.Dk.DI.DFN(UDID, UP, userid, _UDTD, UDOD); UDOD.onscroll = U.M.SSCH({ 'AF': U.M.apply(null, [[U.Dk.DI.SFND, [UDID, userid, _UDTD, UDOD]]]) }).SCH(); //设置数据加载
  727. //}
  728. ////滚动变化
  729. //U.Dk.DI.SFND = function (DID, userid, UDSD, UDOD) {
  730. // U.Dk.DI.DFN(DID, this.P + 2, userid, UDSD, UDOD);
  731. //}
  732. ////网盘最新动态
  733. //U.Dk.DI.DFN = function (UDID, UP, userid, UDSD, UDOD, UFUN) {
  734. // var _UDE = U.Dk.M.GetPND[userid, UDID, UP, 30, 300], _UTP = _UDE[1], _UE = _UTP * 300;
  735. // if (_UDE[0]) { U.Dk.DI.SetDFN(_UDE[0], UDSD, userid, UP); } //打印网盘数据
  736. // else { U.A.Request(US.Auth,"UseStudioDisk.GetUserFNew", [userid, UDID, _UE - 300, _UE, US.NU]), U.Dk.DI.AsynDFN, [UDOD, UDID, UP, userid, _UTP, UDSD, UFUN]; } //获取网盘数据
  737. //}
  738. ////最新动态异步,硬盘首页图片ajax
  739. //U.Dk.DI.AsynDFN = function (r) {
  740. // var context = r.context, _UDOD = context[0], _UDID = context[1], _UP = context[2], _userid = context[3], _UTP = context[4], _UDTD = context[5]; r = r.value;
  741. // if (r.length) {
  742. // U.Dk.M.AddPND[_userid, _UDID, _UTP, r]; //网盘滚动数据
  743. // U.Dk.DI.DFN(_UDID, _UP, _userid, _UDTD); //打印最新动态
  744. // }
  745. // else { _UDOD.onscroll = null; }
  746. //}
  747. ////添加网盘动态数据
  748. //U.Dk.DI.DTSJ = function (UDE) {
  749. // var i, _UAE = [], userid = US.userInfo.userid || US.NU;
  750. // for (i = 0; i < UDE.length; i++) { if (UDE[i].NEWTYPE == "UD_DiskCon") { _UAE.push(UDE[i]); } }
  751. // U.Dk.M.AddPND[userid, "", 1, _UAE];
  752. //}
  753. ////打印最新动态
  754. //U.Dk.DI.SetDFN = function (UDE, UDOD, userid, UP) {
  755. // var i, _UAE, _UTF, userid, _UDTD, _UDSD, _UDMD, _UDFD = $$("frag");
  756. // if (UDE.length) {
  757. // for (i = 0; i < UDE.length; i++) {
  758. // _UAE = UDE[i].ET ? (UDE[i].ET = eval(UDE[i].ET)) : UDE[i]; _UTF = U.UP.IsDF(_UAE.UserDirectoryExtendType || _UAE.UserFilesExtendName)[0]; userid = UDE[i].UserID || UDE[i].UserId;
  759. // _UDTD = $$("div", { "className": "UDK_LPINewDiv" }, _UDFD);
  760. // _UDSD = $$("div", { "className": "UDK_LPINewFYDiv" }, _UDTD);
  761. // $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(_UAE.UserThumbnailImageHead), "className": "UDK_LPINewIMG","onclick": [[U.M.StopBubble], [U.U.I.POUW, [userid]]] }, _UDSD);
  762. // $$("div", { "className": "UDK_LPINewFYName", "onclick": [[U.M.StopBubble], [U.U.I.POUW, [userid]]], "innerHTML": _UAE.UserName }, _UDSD);
  763. // $$("span", { "className": "UDK_LPINewFYWZ", "innerHTML": "上传了文件" }, _UDSD);
  764. // _UDMD = $$("div", { "className": "UDK_LPINewLR" }, _UDSD);
  765. // $$("div", { "className": "UDK_LPINewLTframe", "innerHTML": (_UAE.UserFilesDescript || _UAE.Descript) || "没有描述此文件..." }, _UDMD);
  766. // $$("div", { "className": "UDK_L_DiskGE UDK_LPINewLTFH" }, _UDMD);
  767. // if (_UTF == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "className": "UDK_LPINewLTicon", "src": US.fs + ((_UAE.UseFilesServerThumbnailName || _UAE.UserDirectoryUrl || _UAE.UserFilesServerName)).replace(US.fs, ""), "onclick": [[U.M.StopBubble], [U.Img.Create, ([[{ "Thm": US.fs + (_UAE["UseFilesServerThumbnailName"] || _UAE.UserDirectoryUrl), "Img": US.fs + _UAE["UserFilesServerName"]}]])]] }, _UDTD); }
  768. // else { $$("div", { "className": "UDK_LPINewLTicon UDK_L_DiskGE", "style": { "cssText": U.UP.FFT(_UAE.UserDirectoryExtendType || _UAE.UserFilesExtendName)[1] }, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", _UAE.UserDirectoryID, _UAE.UserID, null]]] }, _UDTD); }
  769. // $$("div", { "className": "UDK_LPINewFilesName", "innerHTML": _UAE.UserFilesName || _UAE.UserDirectoryName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", _UAE.UserDirectoryParentID || _UAE.UserDirectoryID, userid, null]]] }, _UDTD);
  770. // $$("div", { "className": "UDK_LPINewFBTime", "innerHTML": U.MT.formatDateToArray(_UAE.UserFilesAddTime) }, _UDTD);
  771. // $$("div", { "className": "UDK_LPINewLYcloud", "innerHTML": "来自有思云分享" }, _UDTD);
  772. // }
  773. // UDOD.appendChild(_UDFD);
  774. // }
  775. // else { if (userid != US.NU && UP == 1) { UDOD.innerText = ""; $$("div", { "className": "UDK_L_DiskGE UDK_LPIT" }, UDOD); } }
  776. //}
  777. ////----------------------------------------------------------------------------音乐播放器功能--------------------------------------------------------------------------
  778. ////他人的专辑
  779. //U.Dk.DI.HZJ = function () {
  780. //}
  781. ////---------------------------------------------------------------------------disk右键功能全--------------------------------------------------------------------
  782. ////-----------------------------------------------------------------------------添加文件夹----------------------------------------------------------------------
  783. ////新添加视频文件
  784. //U.Dk.RE.AUPV = function (DID) {
  785. // var _UDT = $$("div", {}), _UDOD, _SW = ["视频名称:", "分享地址:"];
  786. // for (var i = 0; i < _SW.length; i++) {//打印新添加视频弹框
  787. // _UDOD = $$("div", { "style": { "cssText": "float:left; margin:20px 0 0 20px;line-height:20px;clear:both;" }, "innerHTML": _SW[i] }, _UDT);
  788. // $$("input", { "type": "text", "style": { "cssText": "width:220px;height:18px;"} }, _UDOD);
  789. // }
  790. // var _UCM = U.Dk.RE.Prompt("分享视频", 180, 350, _UDT, U.M.apply(_UDT, [[U.Dk.RE.UPV, [DID]]]), US.Disk.UserDisk[1][3]);
  791. // _UCM.Create();
  792. //}
  793. ////Ajax上传到后台
  794. //U.Dk.RE.UPV = function (DID) {
  795. // var _UDI = $("input", this), _T = "video";
  796. // if (U.Dk.RE.MBC(DID, _UDI[0].value, _T, "Create") && U.MS.Website(_UDI[1].value.trim())) {//判断文件是否及格
  797. // var _FSN = _UDI[0].value.length > 15 ? _UDI[0].value.substring(0, 10) + "..." : _UDI[0].value; //文件简写名
  798. // var _DKE = new U.Dk.M.Entity[U.MS.produceGuid(), 0, DID, _UDI[0].value, _FSN, _T, _UDI[1].value, new Date(), U.UP.FFT(_T)[1], 9999.000, null, null, 1];
  799. // U.A.Request(US.Auth,"UseStudioDisk.addDirectoryOrFile", [US.userInfo.userid, DID, _DKE["UserDirectoryID"], _DKE["UserFilesServerName"], _UDI[0].value, _T, 9999, "", ""], U.Dk.RE.AsynAF, ["", _DKE]);
  800. // }
  801. //}
  802. ////-----------------------------------------------------------------------------------删除文件-------------------------------------------------------------------------
  803. ////------------------------------------------------------------------------------修改文件名----------------------------------------------------------------------
  804. ////修改文件名
  805. //U.Dk.RE.MRNT = function (UDOD, UDID) {
  806. // var _UDOD, _UDTD, _UDID, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Select({ "UserDirectoryID": UDID })[0], _UTF = U.Dk.M.PDQX(_UDE.UserDirectoryID);
  807. // if (_UTF) {
  808. // _UDOD = $$("div", { "className": "UDL U_UI_dlnoSR" }); _UDTD = $$("div", {}, _UDOD); _UDID = $$("input", { "type": "text", "className": "UDK_XG", "value": _UDE.UserallDirectoryName.split("." + _UDE.UserDirectoryExtendType)[0], "onkeypress": [[U.M.returnkeylogin, [null, [[U.Dk.RE.MRN, [_UDE, _UDOD]]]]]] }, _UDTD);
  809. // U.Dk.RE.Prompt("修改文件", 140, 350, _UDOD, U.M.apply(_UDOD, [[U.Dk.RE.MRN, [_UDE, _UDOD]]]), US.Disk.UserDisk[1][3]).Create(); _UDID.select(); //创建对话框
  810. // }
  811. //}
  812. ////修改函数名接口
  813. //U.Dk.RE.MRN = function (UDE, UDOD) {
  814. // U.Dk.RE.MFN(UDE, $("input", UDOD)[0].value);
  815. //}
  816. ////-------------------------------------------------------------------------加密解密开始----------------------------------------------------------------------
  817. ////------------------------------------------------------------------------------------文件文件夹赋值粘贴
  818. ////------------------------------------------------------------------------刷新文件------------------------------------------------------------------------------------
  819. ////刷新
  820. //U.Dk.RE.CN = function () {
  821. // U.Dk.onloadAjax(US.Disk.UserDisk[1][1], US.Disk.UserDisk[1][2]); //基本资料更新
  822. // U.Dk.LE.DBC(US.Disk.UserDisk[1][1], US.Disk.UserDisk[1][0].UserId); //导航条
  823. // U.Dk.LL.UDKURL(US.Disk.UserDisk[1][1]); //url变化
  824. //}
  825. ////--------------------------------------------------------------------------------文件下载---------------------------------------------------------------------
  826. ////文件下载
  827. //U.Dk.RE.ODL = function (USN, UN, UDID) {
  828. // var _UTF = U.UP.GetUpName(USN)[1];
  829. // if (!U.U.L.isLogin()) {
  830. // if (_UTF == null && USN.indexOf("http") > 0) { window.open(USN); } //如果是外网的连接直接连接
  831. // else {
  832. // if (_UTF == "ue" || _UTF == "uw") { //下载web word excel
  833. // U.Alert("云office暂不提供下载");
  834. // //if (browser.msie) { parent.U.A.Request(US.Auth,"UseStudioDisk.GetFileContent", [UDID], U.Dk.RE.AsynXZ, ["", UN]); U.Alert("正在加载下载页"); } //IE的下载方式
  835. // //else { U.UP.uploading([$$("input", { "type": "text", "value": USN, "name": "filename" }), $$("input", { "type": "text", "value": UN + ".htm", "name": "filepath" }), $$("input", { "type": "text", "value": US.userInfo.userid, "name": "UserId" })], null, null, "http://disk.1473.cn/UseStudiodisk.ashx?functionname=UseStudioDisk.UploadFile", false); } //调用上传的接口实现下载
  836. // }
  837. // else { window.open("/userpages/UD_XZ.aspx?fileservername=" + USN + "&filename=" + UN + "&UserId=" + US.userInfo.userid + "&usrd=" + Math.random()); }
  838. // }
  839. // }
  840. //}
  841. ////IE异步下载
  842. //U.Dk.RE.AsynXZ = function (r) {
  843. // var _W, _DO, _UDN = r.context[1];
  844. // r = r.value;
  845. // if (r != false) {
  846. // _W = window.open("javascript:void((function(){document.open();document.domain='1473.cn';document.close()})())"); //
  847. // try {
  848. // _DO = _W.document.open(); //打开空文件生成下载页
  849. // _DO.write('<link charset="utf-8" href="/css/UC23.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="/uform.js"></script><script type="text/javascript" charset="utf-8" src="/Office/U_OFD.js"></script>' + r);
  850. // _DO.execCommand("SaveAs", true, _UDN);
  851. // _DO.close(); _W.close();
  852. // } catch (e) { }
  853. // }
  854. // else { U.Alert("文件损坏"); }
  855. //}
  856. ////文件下载
  857. //U.D.SY.WPXZWJ = function (UDE) {
  858. // if (!U.U.L.isLogin(3)) {
  859. // if (UDE.filetype) { U.Dk.RE.ODL(UDE.UserFilesServerName, UDE.UserallDirectoryName, UDE.UserDirectoryID); } //文件下载
  860. // else { U.Alert("文件夹暂时不提供下载"); } //文件夹下载
  861. // }
  862. //}
  863. ////剪切的异步
  864. //U.Dk.RE.AysnUFCut = function (r) {
  865. // var context = r.context, _UDE = context[2], _UAF = context[4], _UPID = _UDE[0].UserDirectoryParentID, _UGE = US.Disk.UserDisk; r = r.value;
  866. // _$(_UDE).Change({ "UserDirectoryParentID": context[1] }); //更改父层ID
  867. // (_UGE[1][1] == context[1] && _UGE[1][1] == _UPID) && (U.Dk.VW.DT(_UGE[1][1])); (_UAF) && (_UAF(_UDE, r, _UPID)); //剪切答应
  868. //}
  869. ////单击到目录item时候,执行右键菜单
  870. //U.Dk.RM.DRC = function (UDOD, UDID, userid) {
  871. // if (event && event.button == 2 && UDID != null) {//右键操作
  872. // var _UTF, _UDV, _UAE, _UDAD, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE).Select({ "UserDirectoryID": UDID == "add" ? _UGE[1][1] : UDID })[0];
  873. // U.Dk.DiskOperatingSwitch(userid); //操作用户切换
  874. // if (UDID == "add") {
  875. // _UAE = U.Dk.M.PDQX(_UDE.UserDirectoryID);
  876. // if (_UAE && (U.Dk.RightAuthority || _UDE[0].GroupID)) { _UDV = ["none", "none", "none", "block", "none", "block", "block", "none", "none", "none", "none", "block", "block", "block", "block", "block", "none"]; } //有权限的操作
  877. // else { _UDV = ["none", "none", "none", "block", "none", "block", "block", "none", "none", "none", "none", "block", "none", "none", "none", "block", "none", "none"]; if (_UGE[1][0].UserDiskND.indexOf(_UGE[1][1]) > -1 || _UAE === false) { _UDV[11] = _UDV[16] = "none"; } } //无权限的操作
  878. // if (U.Dk.RE.CE.length > 0) { $("p#UDK_LR_S", _UGE[1][3])[0].className = "UR_P"; } //粘贴样式改变
  879. // }
  880. // else {
  881. // if ((_UAE = U.D.DragE) && !_UAE.Event()) { //多选右键功能
  882. // _UAE = _UDE = U.Dk.RM.MFDRC(_UAE.TC, _UGE[0]);
  883. // if (_UAE.length) { _UDV = ["block", "none", "none", "none", "none", "none", "none", "none", "none", "block", "none", "none", "none", "none", "none", "none", "block"]; if (_UGE[1][0].UserDiskND.indexOf(_UGE[1][1]) > -1) { _UDV[17] = _UDV[9] = "none"; } }
  884. // else { U.D.DragE.SetHover(); U.Alert("文件夹不支持多选功能"); return; }
  885. // }
  886. // else {
  887. // if ("folderencrypt,folder".indexOf(_UDE.UserDirectoryExtendType) > -1) {
  888. // if (_UGE[1][0].UserDiskND.indexOf(_UDE.UserDirectoryParentID) > -1) { _UDV = ["block", "block", "block", "none", "block", "none", "none", "block", "none", "none", "none", "none", "none", "none", "none", "none", "block"]; } //文件夹权限
  889. // else { _UDV = ["block", "block", "block", "none", "block", "none", "none", "block", "block", "block", "none", "none", "none", "none", "none", "none", "block"]; }
  890. // }
  891. // else {//文件操作
  892. // $("span", $("p#UDK_R_encryptwindow", _UGE[1][3])[0]).addAttrArray({ "innerHTML": _UDE.UserDirectoryEncrypt ? "解密" : "加密" });
  893. // if (_UDE.UserFilesServerName == "请不要删除") { _UDV = ["none", "block", "none", "none", "block", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none"]; } //不允许删除的
  894. // else { _UDV = ["none", "block", "none", "none", "block", "none", "none", "none", "block", "block", "block", "none", "none", "none", "none", "none", "none"]; }
  895. // }
  896. // }
  897. // U.Dk.RM.SLM[[UDOD.onclick], [U.Dk.RE.UFCopy, [_UDE, "Copy"]], [U.Dk.RE.AB, ["this", UDID]], [U.Dk.RE.ODL, [_UDE.UserFilesServerName, _UDE.UserallDirectoryName, _UDE.UserDirectoryID]], [U.D.CM.CMSS, [UDID, 1]], [U.Dk.RE.SHEW, ["this.innerText", UDID]], [U.Dk.RE.MRNT, ["this", UDID]], [U.Dk.RE.DMB, [_UDE]], [U.Dk.RE.UFCopy, [_UDE, "Cut"]]]; //右键赋值
  898. // }
  899. // U.Dk.RM.VHIDDEN(_UDV); U.Dk.HP.RM(UDOD); U.M.StopBubble(); //正确显示 //右键定位 // 阻止冒泡
  900. // }
  901. // else {
  902. // var _UGE = US.Disk.UserDisk[1][3]; (UDID) && (U.M.StopBubble());
  903. // $("div#UDK_R_rightMouseClickDiv", _UGE)[0].style.visibility = "hidden";
  904. // }
  905. //}
  906. ////右键菜单的显示
  907. //U.Dk.RM.VHIDDEN = function (UAE) {
  908. // var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("p", _UGE[3]), _UDE = ["UDK_LR_CP", "UDK_R_openfolder", "UDK_R_openanddownload", "UDK_R_refreshDirectoryButton", "UDK_R_attribute", "UDK_LR_Normal", "UDK_LR_Details", "UDK_LR_TL", "UDK_R_divModifyButton", "UDK_R_divDeleteButton", "UDK_R_encryptwindow", "UDK_R_addFolderButton", "UDK_R_addWordButton", "UDK_R_addXlsButton", "UDK_R_addPPTButton", "UDK_LR_S", "UDK_LR_Cut"];
  909. // for (i = 0; i < _UDE.length; i++) { if (US.userInfo.userid == _UGE[0].UserId || i < 8) { _UDAD[_UDE[i]].parentNode.style.display = UAE[i]; } }
  910. //}
  911. ////右键查单赋予事件
  912. //U.Dk.RM.SLM = function (UAE) {
  913. // var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("p", _UGE[3]), _UDE = ["UDK_R_openfolder", "UDK_LR_CP", "UDK_R_attribute", "UDK_R_openanddownload", "UDK_LR_TL", "UDK_R_encryptwindow", "UDK_R_divModifyButton", "UDK_R_divDeleteButton", "UDK_LR_Cut"];
  914. // for (i = 0; i < _UDE.length; i++) { if (US.userInfo.userid == _UGE[0].UserId || i < 5) { _UDAD[_UDE[i]].onclick = U.M.apply(this, [UAE[i]]); } }
  915. //}
  916. //_$(U.Dk).Add({ "Ism": false, "CSH": [] });
  917. ////--------------------------------------------------------------------------本地硬盘网络硬盘共同区域----------------------------------------------------
  918. ////首页和本地硬盘切换
  919. //U.Dk.NologinDiskDown = function (userid, UDID, TF) {
  920. // var _UDOD;
  921. // if (TF) { //显示本地硬盘
  922. // if (UDID) { _UDOD = U.Dk.DiskDown(userid, UDID, TF); } //获取资料
  923. // else { if (!U.U.L.isLogin()) { _UDOD = U.Dk.cloneDisk(userid); U.Dk.SBDD(_UDOD, ["block", "none"]); } else { return; } } //切换到网盘查看的页面
  924. // }
  925. // else {//显示首页
  926. // if (UDID) { _UDOD = U.Dk.DiskTC(UDID, (userid || US.NU)); } //好友数据共享
  927. // else { _UDOD = U.Dk.cloneDisk((userid || US.NU)); _UDOD.style.display = "block"; U.D.SetDTop(_UDOD); U.Dk.DI.SCMSD(_UDOD); U.Dk.SBDD(_UDOD, ["none", "block"]); } //云搜索
  928. // }
  929. // return _UDOD;
  930. //}
  931. ////首页和网盘查看
  932. //U.Dk.SBDD = function (UDOD, UTF) {
  933. // var i, _UDE = ["UDK_RS_UserDiskMain", "UDK_S"];
  934. // for (i = 0; i < _UDE.length; i++) { $("div#" + _UDE[i], UDOD)[0].style.display = UTF[i]; }
  935. //}
  936. ////克隆disk窗口 同时判断是否需要克隆
  937. //U.Dk.cloneDisk = function (userid) {
  938. // var _UDOD, _UDTD, _UDE = US.Disk.Disks[userid]; //获取用户Disk资料
  939. // if (_UDE && _UDE[1]) { _UDOD = _UDE[1][3].parentNode; }
  940. // else {
  941. // if (userid == US.NU) { if ((_UDTD = $("#UseStudioUserDiskDiv" + (userid = (US.userInfo.userid || US.NU)))[0])) { _UDOD = _UDTD; } } //首页的克隆方式
  942. // if (!_UDOD) {
  943. // _UDOD = $("#UseStudioUserDiskDiv").addAttrArray({ "style": { "width": "95%", "height": "75%"} })[0]; //获取克隆的实体
  944. // _UDOD = _UDOD.cloneNode(true); parent.$("body", document)[0].appendChild(_UDOD); //添加到桌面
  945. // }
  946. // _UDOD.id = "UseStudioUserDiskDiv" + userid; //克隆Disk窗体
  947. // }
  948. // return _UDOD;
  949. //}
  950. ////disk添加多个窗口
  951. //U.Dk.DiskDown = function (userid, UDID, TF) {
  952. // var _UDOD = U.Dk.cloneDisk(userid); //克隆窗体
  953. // if (_UDOD) {
  954. // U.Dk.SBDD(_UDOD, (TF ? ["block", "none"] : ["none", "block"])); //首页和硬盘显示
  955. // if (_UDOD.style.display == "block") { U.D.SetDTop(_UDOD); } else { U.D.PopupWindow(_UDOD, U.M.apply(this, [[U.Dk.HP.DLO, [_UDOD]]])); } //弹出最上层窗口
  956. // U.D.Tb.WindowRestore(_UDOD, $$("div", { "style": { "width": "61px", "height": "60px", "margin": "11px 0 0 5px", "className": "UD_DI_iconimg UD_NUB"} }).outerHTML, "硬盘"); //创建任务栏链接
  957. // if (UDID && userid) { U.Dk.Commonresource(userid, UDID, $("div#UDK", _UDOD)[0]); } //查看用户的切换
  958. // return _UDOD;
  959. // }
  960. //}
  961. //-----------------------------------------------------------------------共享网络硬盘区域--------------------------------------------------------------
  962. ////网络硬盘数据共享区域
  963. //U.Dk.DiskTC = function (UDID, userid, TF) {
  964. // var _UDOD = U.Dk.DiskDown(US.userInfo.userid || US.NU, "", TF), _UDAD = $("div", _UDOD), _UDSD = $("span", _UDAD["UDK_LPIcon"].parentNode)[0];
  965. // _UDSD.style.display = US.userInfo.userid ? "block" : "none"; //是否显示陌生人查看
  966. // U.Dk.HP.NCW(_UDOD); //位置调整
  967. // U.Dk.DI.CM(UDID, _UDAD["UDK"], userid); //根据DID选择页面
  968. // U.D.G.UrlWrite("disk", "有思硬盘"); //Url重写
  969. // U.Dk.DI.SCMSD(_UDOD, true); //网盘动态
  970. // return _UDOD;
  971. //}
  972. //------------------------------------------------------------------------------登录用户本地硬盘和查看他人硬盘操作----------------------------------------------------------------------
  973. ////根据用户文件得到用户Disk
  974. //U.Dk.GetDsikFID = function (UFID) {
  975. // U.A.Request(US.Auth,"UseStudioDisk.GetDsikFID", [UFID], U.Dk.AsynGetDsikFID, ["", UFID]);
  976. //}
  977. ////异步获取用户Disk通过文件ID
  978. //U.Dk.AsynGetDsikFID = function (r) {
  979. // var _URE = r.value, _userid = _URE[0][1].UserId, _DID = _URE[1], _USOD = U.Dk.cloneDisk(_userid), _UDK = $("div#UDK", _USOD)[0]; //克隆disk
  980. // r.context = [_UDK, _userid, _DID]; r.value = _URE[0]; U.Dk.onloadup(r); //添加值
  981. // U.Dk.NologinDiskDown(_userid, _DID, true); //查看对应用户的硬盘
  982. //}
  983. ////判断用户是否需要获取数据
  984. //U.Dk.Commonresource = function (userid, UDID, UDOD) {
  985. // var _UDE = US.Disk.Disks[userid];
  986. // if (_UDE) {//正在获取或者存在数据
  987. // if (_UDE.length) {//存在数据
  988. // US.Disk.UserDisk = _UDE; _UDE[1][1] = UDID; U.Dk.HP.CW(); U.Dk.onloadfunction(); //生成Disk
  989. // if (US.userInfo.userid == _UDE[1][2]) { _UDE[1][0] = US.userInfo; U.Dk.M.refreshfile(); } //刷新网盘
  990. // }
  991. // }
  992. // else { U.Dk.HP.CW(UDOD); US.Disk.Disks[userid] = []; U.A.Request(US.Auth,"UseStudioDisk.Commonresource", [US.userInfo.userid || US.NU, userid]), U.Dk.onloadup, [UDOD, userid, UDID]; } //获取用户资料
  993. //}
  994. ////加载音乐文件
  995. //U.Dk.Om = function (userid) {
  996. // U.Alert("正在加载音乐文件..."); U.Dk.Ism = true; U.Dk.Commonresource(userid || US.NU, US.MG, $("div#UDK", U.Dk.cloneDisk(userid))[0]); //打开音乐
  997. //}
  998. ////生成disk对应的树
  999. //U.Dk.onloadup = function (r) {
  1000. // var i, _UGE, context = r.context, _UDOD = context[0], _userid = context[1], _UDID = context[2]; r = r.value;
  1001. // if (r.length) {
  1002. // _UGE = U.Dk.GUserBL(_userid, _UDID, _UDOD, r); //设置用户Disk变量
  1003. // U.Dk.HP.EBB(); //设置用户右键权限
  1004. // U.Dk.GALAF(r[1].UserId); //disk前进后退
  1005. // U.Dk.M.refreshfile(); //更新资料
  1006. // U.Dk.onloadAjax(_UGE[1][1], _userid); //装载网络硬盘。
  1007. // U.Dk.onloadfunction(); //加载显示的文件
  1008. // if (US.userInfo.userid == _UGE[1][0].UserId) { U.D.ZYXB(0); } //用户指引
  1009. // for (i = 0; i < U.Dk.CSH.length; i++) { U.Dk.CSH[i](_userid, _UDID); } //初始化
  1010. // }
  1011. //}
  1012. ////disk前进后退辅助
  1013. //U.Dk.GALAF = function (UserId) {
  1014. // var _UDAD = $("div", US.Disk.UserDisk[1][3]);
  1015. // U.AFB.RGoL("disk" + UserId); //注册前进后退事件
  1016. // _UDAD["UDK_LR_navback"].onclick = U.M.apply(this, [[U.AFB.DrawBack, ["disk" + UserId])]];
  1017. // _UDAD["UDK_N_next"].onclick = U.M.apply(this, [[U.AFB.GoForward, ["disk" + UserId])]];
  1018. //}
  1019. ////当用户登录后执行的函数
  1020. //U.Dk.onloadfunction = function () {
  1021. // var _UDE, _UDOD;
  1022. // if (U.Dk.Ism) { _UDE = U.Dk.LE.GM(US.MG); U.MPlayer.Open(_UDE[0], _UDE[1]); U.Dk.Ism = false; } //音乐播放器
  1023. // else if ((_UDE = US.Disk.UserDisk[1])[1]) {
  1024. // if ((_UDOD = $("a#d" + _UDE[1], _UDE[3])[0])) { U.Dk.LL.SM(_UDOD.parentNode, _UDE[0].UserId, _UDE[1]); } //展开用户点击是什么
  1025. // U.Dk.HP.AUD(); //设置硬盘上传权限
  1026. // U.Dk.LE.DBC(_UDE[1], _UDE[0].UserId)//导航条
  1027. // U.Dk.LL.UDKURL(_UDE[1]); //Url重写
  1028. // }
  1029. //}
  1030. ////---------------------------------------------------------------------------------用户disk左边显示--------------------------------------------------------------
  1031. ////用户登录视图
  1032. //U.Dk.onloadAjax = function (UDID, userid) {
  1033. // var _UDAD, _UGE = US.Disk.UserDisk[1]; U.Dk.onloadLeft(_UGE[1]); //用户视图展示
  1034. // if (US.userInfo.userid == _UGE[2]) {
  1035. // _UDAD = $("div", _UGE[3]);
  1036. // U.Dk.SetDF(US.Friend[1], _UDAD["UDK_LL_F"]); //用户好友
  1037. // U.Dk.SetDF(US.Friend[2], _UDAD["UDK_LL_Group"]); //群
  1038. // }
  1039. // U.Dk.directoryAjax(_UGE[0].UserId, UDID); //装载左边文件区域数据
  1040. //}
  1041. ////用户视图显示
  1042. //U.Dk.onloadLeft = function () {
  1043. // var _UGE = US.Disk.UserDisk, _UDAD = $("div", $("div#UDK_LL_US", _UGE[1][3])[0]), _UDCD = $("div", _UDAD["UDKLLNR"]), _UDE = ["UDK_LL_US_SP", "UDK_LL_VirC", "UDK_LL_Fcount"], _UKE = [_UGE[1][0].UserNickName, "积分:" + (_UGE[1][0].VirtualCurrency || 0) + "分", "文件:" + _UGE[1][0].FilesCount + "个"];
  1044. // $("img", _UDAD[0]).addAttrArray({ "onerror": U.M.ImgError, "src": U.M.GetImgU(_UGE[1][0].UserThumbnailImageHead) }, 0); //用户头像
  1045. // //信息打印
  1046. // for (i = 0; i < _UDE.length; i++) { _UDAD[_UDE[i]].innerHTML = _UKE[i]; }
  1047. // _UDE = [2, 5]; _UKE = [U.UP.FileSize(U.UP.GetSfileS(_UGE[1][0].UserDiskSpace + "G")), _UGE[1][0].FileSize];
  1048. // for (i = 0; i < _UDE.length; i++) { _UDCD[_UDE[i]].innerHTML = _UKE[i]; }
  1049. // _UDAD["UDK_LL_US_TX"].onclick = U.M.apply(this, [[U.M.StopBubble], [U.U.I.POUW, [_UGE[1][0].UserId]]]); //新增用户
  1050. // (_UGE[1][3]) && ($("span#UDK_Title", _UGE[1][3].parentNode)[0].innerHTML = "<span style='color:#4d8bcc;'>" + _UGE[1][0].UserNickName + "</span>" + "的网盘");
  1051. //}
  1052. ////用户好友和群
  1053. //U.Dk.SetDF = function (UDE, UDOD) {
  1054. // var i, _UDTD, _UDFD = $$("frag"); UDOD.innerHTML = "";
  1055. // for (i = 0; i < UDE.length; i++) {
  1056. // _UDTD = $$("div", { "className": "UDK_LL_HYXZ", "onclick": UDE[i].GroupManageID ? [[U.Dk.LE.DBC, [UDE[i].GroupManageID, US.userInfo.userid]]] : [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", US.DG, UDE[i].UserId, null]]] }, _UDFD);
  1057. // if (UDE[i].GroupManageID) { _UDTD.appendChild(U.Dk.PGroup(UDE[i])); }
  1058. // else { $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead), "title": "聊天", "className": "UDK_LL_HYImg", "onclick": [[U.M.StopBubble], [U.F.W.DMW, [UDE[i]]]] }, _UDTD); }
  1059. // $$("span", { "className": "UDK_LL_HYName", "innerHTML": UDE[i].FriendsDescript || UDE[i].GroupManageName, "title": "查看网盘" }, _UDTD);
  1060. // }
  1061. // UDOD.appendChild(_UDFD);
  1062. //}
  1063. ////用户群
  1064. //U.Dk.PGroup = function (UDE) {
  1065. // var i, j, k = 0, _UDOD, _UDTD, _UAE = _$(US.Friend[3]).Select({ "GroupManageID": UDE.GroupManageID }, null, 9), _UIF = _UAE.length == 1 ? 1 : _UAE.length < 5 ? 2 : 3;
  1066. // US.Disk.UserDisk[0].splice(6, 0, new U.Dk.M.Entity[UDE.GroupManageID, 0, US.userInfo.userid, UDE.GroupManageName, UDE.GroupManageName, "folder", null, U.MT.formatDateToArray(new Date()), U.UP.FFT("folder")[1], 1, null, null, 0, "", UDE.GroupManageID]); //新建实体
  1067. // _UDOD = $$("div", { "className": "UDK_LL_HYImg", "onclick": [[U.M.StopBubble], [U.F.W.DGMW, [UDE]]] }); //打开群
  1068. // for (i = 0; i < _UIF; i++) { _UDTD = $$("div", { "style": { "width": "100%", "height": Math.floor(40 / _UIF) + "px"} }, _UDOD); for (j = 0; j < _UIF; j++) { if (_UAE[k]) { $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(_UAE[k].UserThumbnailImageHead), "style": { "width": Math.floor(40 / _UIF) + "px", "height": Math.floor(40 / _UIF) + "px"} }, _UDTD); k++; } else { break; } } } //生成群头像
  1069. // return _UDOD;
  1070. //}
  1071. ////音乐好友
  1072. //U.Dk.SetMDF = function (UDE, UDOD) {
  1073. // var _UDTD, UDFD = $$("frag");
  1074. // for (i = 0; i < UDE.length; i++) {//在音乐里打印用户好友
  1075. // _UDTD = $$("div", { "className": "U_MPFZL", "onclick": [[U.M.StopBubble], [U.Dk.Om, [UDE[i].UserId]]] }, _UDFD);
  1076. // $$("img", { "onerror": U.M.ImgError, "style": { "width": "30px", "height": "30px" }, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead) }, _UDTD);
  1077. // $$("span", { "style": { "cursor": "pointer" }, "innerHTML": UDE[i].FriendsDescript }, _UDTD);
  1078. // }
  1079. // UDOD.appendChild(_UDFD);
  1080. //}
  1081. ////用户提示
  1082. //U.Dk.UTS = function (UTS, UDOD) {
  1083. // if (US.Disk.UserDisk[1][0].UserId == US.userInfo.userid || U.M.GTPN("UseStudioUserDiskDiv" + US.userInfo.userid, UDOD)) { U.Dk.DiskOperatingSwitch(US.userInfo.userid); if (UTS[2]) { U.F.M.FAW("fg"); U.Alert(UTS[0]); return false; } return true; }
  1084. // else { U.Alert(UTS[1]); return false; }
  1085. //}
  1086. ////好友导航的隐藏和查看
  1087. //U.Dk.DSDFD = function (UDOD) {
  1088. // UDOD.style.display = UDOD.style.display == "block" ? "none" : "block";
  1089. //}
  1090. ////初始化网盘左边的树
  1091. //U.Dk.directoryAjax = function (userid) {
  1092. // var i, _UDTD, _UDSD, _UDGD, _UGE = US.Disk.UserDisk, _UDOD = $("div#UDK_L_USTreeTreeNode", _UGE[1][3])[0], _UDE = _UGE[0].slice(2, 6), _UDFD = $$("frag"), _UAE = ["UDK_L_USTreeComputerIcon", "UDK_L_USTreeAlbumIcon", "UDK_L_USTreeMusicIcon", "UDK_L_USTreeVideoIcon", "UDK_L_USTreeRecycleBin"]; _UDOD.innerText = "";
  1093. // for (i = 0; i < _UDE.length; i++) {
  1094. // _UDTD = $$("div", { "className": "UDK_L_USTreecontainA" }, _UDFD);
  1095. // _UDSD = $$("div", { "className": "UDK_L_USTTitle", "onclick": [[U.M.StopBubble], [U.Dk.LL.UDKURL, [_UDE[i].UserDirectoryID]], [U.Dk.LL.SM, ["retElement", userid, _UDE[i].UserDirectoryID]], [U.Dk.LE.DBC, [_UDE[i].UserDirectoryID, userid]]] }, _UDTD);
  1096. // $$("div", { "className": "UDK_L_DiskGE UR_I_D_E UDK_L_USTreesign" }, _UDSD);
  1097. // _UDGD = $$("a", { "className": "UDK_L_USTreeusestudiodisktreeA", "id": "d" + _UDE[i].UserDirectoryID }, _UDSD);
  1098. // $$("i", { "className": "UDK_L_DiskGE " + _UAE[i] }, _UDGD);
  1099. // $$("span", { "innerHTML": _UDE[i].UserDirectoryName }, _UDGD);
  1100. // }
  1101. // U.Dk.DSDFD(_UDOD); _UDOD.appendChild(_UDFD);
  1102. //}
  1103. //---------------------------------------------------------------------------添加网盘达人-----------------------------------------------------------------------------
  1104. ////添加最新动态
  1105. //U.Dk.M.AddPND = function (UDE) {
  1106. // var _UGE = US.Disk.DiskDaren[UDE[0]];
  1107. // if (!_UGE) { _UGE = US.Disk.DiskDaren[UDE[0]] = []; }
  1108. // _UGE = _UGE[UDE[1]] = _UGE[UDE[1]] || [];
  1109. // _UGE[UDE[2]] = UDE[3].concat((_UGE[UDE[2]] || []));
  1110. //}
  1111. ////分页获取最新动态
  1112. //U.Dk.M.GetPND = function (UAE) {
  1113. // var _UKE, _UDE = US.Disk.DiskDaren[UAE[0]], _UP = UAE[2], _UTP = Math.ceil(_UP * UAE[3] / UAE[4]), _UIP = _UP % UAE[3], _UE = _UIP * UAE[3], _US = _UE - UAE[3];
  1114. // _UDE && (_UDE = _UDE[UAE[1]]) && (_UDE = _UDE[_UTP]) && (_UKE = _UDE.slice(_US, _UE)); return [_UKE, _UTP];
  1115. //}
  1116. //没有使用。。。先放着
  1117. //U.Dk.SelectRectangle = function (obj) {
  1118. // var FirstX = event.clientX;
  1119. // var FirstY = event.clientY;
  1120. // var SecondX = 0;
  1121. // var SecondY = 0;
  1122. // var isShare = true;
  1123. // var div = document.getElementById("UDK_LL_ShareBox");
  1124. // div.style.left = FirstX + "px";
  1125. // div.style.top = FirstY + "px";
  1126. // div.style.width = "0px";
  1127. // div.style.height = "0px";
  1128. // div.style.display = "block";
  1129. // window.onmousemove = function () {
  1130. // if (isShare == true) {
  1131. // window.scrollTo(0, 0)
  1132. // SecondX = event.clientX;
  1133. // SecondY = event.clientY;
  1134. // if (SecondX > FirstX) {
  1135. // div.style.left = FirstX + "px";
  1136. // div.style.width = SecondX - FirstX + "px";
  1137. // }
  1138. // if (SecondY > FirstY) {
  1139. // div.style.top = FirstY + "px";
  1140. // div.style.height = SecondY - FirstY + "px";
  1141. // }
  1142. // if (SecondY < FirstY) {
  1143. // div.style.top = SecondY + "px";
  1144. // div.style.height = FirstY - SecondY + "px";
  1145. // }
  1146. // if (SecondX < FirstX) {
  1147. // div.style.left = SecondX + "px";
  1148. // div.style.width = FirstX - SecondX + "px";
  1149. // }
  1150. // }
  1151. // }
  1152. // window.onmouseup = function () {
  1153. // isShare = false;
  1154. // div.style.display = "none";
  1155. // }
  1156. // window.onblur = function () {
  1157. // isShare = false;
  1158. // div.style.display = "none";
  1159. // }
  1160. //}
  1161. //设置权限
  1162. U.Dk.RE.SZQX = function () {
  1163. var _ITF, _UGE = US.Disk.UserDisk, _UDID = _UGE[1][1], _UDRD = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": _UDID }, "UserDirectoryParentID");
  1164. if (_UDRD.length > 1 && _UDRD[0].UserDirectoryEncrypt != "true" && _UDRD[_UDRD.length - 1].GroupID != null) { _ITF = ["是否<span style='color:red;'>设置</span>文件夹权限", "encrypt", "true"]; } //设置文件夹权限
  1165. else {
  1166. if (_UDRD[0].UserDirectoryEncrypt == "true") { _ITF = ["是否<sapn style='color:red;'>解除</sapn>文件夹权限", "unencrypted", null]; } //解除文件夹权限
  1167. else if (_UGE[1][2] == US.userInfo.userid && _UDRD.length > 1) { //用户设置权限
  1168. if (_UDRD[0].GroupID != US.NU) { _ITF = ["是否<span style='color:red;'>设置</span>文件夹共享", US.NU]; } //设置文件夹共享
  1169. else { _ITF = ["是否<span style='color:red;'>解除</span>文件夹共享", US.NU]; } //取消文件共享
  1170. }
  1171. else { U.Alert("无法设置他人权限"); }
  1172. }
  1173. if (_ITF) { U.UI.Confirm(_ITF[0], [U.Dk.RE.SQX, [_UDID, _ITF[1], _ITF[2]]], null); }
  1174. }
  1175. ////***********************************************************加密解密开始*********************************************************************
  1176. //U.Dk.RE.SHEW = function (obj) {
  1177. // //判断加密/解密
  1178. // var EncryptWindow = new U.UI.Dialog();
  1179. // EncryptWindow.title = U.M.textCompatible(obj) == "" ? "暂时解密" : U.M.textCompatible(obj);
  1180. // EncryptWindow.width = 280;
  1181. // EncryptWindow.model = 'OKCancel';
  1182. // // var _directoryid = document.getElementById("selectLabel").value;
  1183. // var _directoryid = U.D.P.selectLabel;
  1184. // var key = U.D.P.FileKey;
  1185. // // var key = document.getElementById("FileKey").value;
  1186. // switch (U.M.textCompatible(obj)) {
  1187. // case "加密":
  1188. // EncryptWindow.height = 180;
  1189. // EncryptWindow.content = '<div style="margin:auto; padding-top:15px; width:230px; height:100px;"><span style="display:block; margin:auto; width:230px; height:30px; line-height:30px;">输入密码 &nbsp;<input type="password" id="encryptdecryptpassword1" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span><span style="display:block; margin:5px auto; width:230px; height:30px; line-height:30px;">确认密码 &nbsp;<input type="password" id="encryptdecryptpassword2" style="width:140px; height:20px;" class="OS inputBox"/></span></div>';
  1190. // EncryptWindow.confirmYesClose = function () {
  1191. // var _pass1 = document.getElementById("encryptdecryptpassword1").value; //取第一次密码
  1192. // var _pass2 = document.getElementById("encryptdecryptpassword2").value; //取第二次密码
  1193. // if (_pass1 != _pass2 || _pass1 == "") {
  1194. // //document.getElementById("encryptdecryptalertdiv").innerHTML = "密码不一致";
  1195. // alert("密码不一致");
  1196. // return;
  1197. // }
  1198. // // var response = U.A.Request(US.Auth,"UseStudioDisk.encryptwindowButtonClick", _directoryid + ',' + _pass1 + ',' + "加密").value;
  1199. // var response = U.A.Request(US.Auth,"UseStudioDisk.encryptwindowButtonClick", [_directoryid, _pass1]).value.toString();
  1200. // //var response = UseStudioDiskManage.encryptwindowButtonClick(_directoryid, _pass1, "加密").value;
  1201. // if (response == "false") {
  1202. // alert("密码输入错误");
  1203. // } else {
  1204. // //动态修改Directory文件名图片及方法
  1205. // // var aa = null;
  1206. // // if (key == "") {
  1207. // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
  1208. // // // var ktext = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1209. // // //text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1210. // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
  1211. // // // aa = text;
  1212. // // // aa = eval('(' + text + ')');
  1213. // // }
  1214. // // else {
  1215. // // text = US.Disk.UserDisk[0][key];
  1216. // // }
  1217. // text = U.Dk.M.ufinfoarray("onefind", key);
  1218. // text.UserDirectoryEncrypt = response;
  1219. // text.UserDirectoryUrl = "background-position:-120px -42px;";
  1220. // if (document.getElementById("disk" + _directoryid) != null) {
  1221. // var _div = document.getElementById("disk" + _directoryid);
  1222. // if (U.Dk.DirectoryView == "Details") {
  1223. // _div.getElementsByTagName("i")[0].style.backgroundPosition = "-241px -96px";
  1224. // }
  1225. // else if (U.Dk.DirectoryView == "Noraml") {
  1226. // _div.getElementsByTagName("i")[0].style.backgroundPosition = "-120px -42px";
  1227. // }
  1228. // }
  1229. // if (document.getElementById(_directoryid) != null) {
  1230. // var div = document.getElementById(_directoryid);
  1231. // if (div.getElementsByTagName("span")[0].innerHTML == null || div.getElementsByTagName("span")[0].innerHTML == "") {
  1232. // div.getElementsByTagName("i")[0].className = "UDK_L_Disk UDK_L_USTreeFolderEncryptIcon";
  1233. // div.getElementsByTagName("span")[0].innerHTML = "(已加密)";
  1234. // div.onclick = null;
  1235. // div.href = "";
  1236. // div.onmousedown = function () { U.Dk.rightClickA(text); }
  1237. // }
  1238. // }
  1239. // //这个地方没写详细的文件..图片改变?.....暂时放着
  1240. // }
  1241. // }
  1242. // break;
  1243. // case "解密":
  1244. // EncryptWindow.height = 140;
  1245. // EncryptWindow.content = '<div style="margin:auto; padding-top:15px; width:230px; height:100px;"><span style="display:block; margin:auto; width:230px; height:30px; line-height:30px;">输入密码 &nbsp;<input type="password" id="decripttextinput" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
  1246. // EncryptWindow.confirmYesClose = function () {
  1247. // var decrypttext = document.getElementById("decripttextinput").value;
  1248. // // var response = U.A.Request(US.Auth,"UseStudioDisk.GetUserDecrptData", _directoryid + ',' + decrypttext).value;
  1249. // var response = U.A.Request(US.Auth,"UseStudioDisk.DeciphermentFile", [_directoryid, decrypttext]).value.toString();
  1250. // // var response = UseStudioDiskManage.GetUserDecrptData(_directoryid, decrypttext).value;
  1251. // if (response == "false") {
  1252. // alert("密码错误");
  1253. // return;
  1254. // }
  1255. // else {
  1256. // //置文件夹密码为空
  1257. // // U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", response).value;
  1258. // //这个地方直接修改..........放到后台执行..不需要返回值...判断密码是否正确....由前台的树....获取到的密码直接判断
  1259. // //这个让密码为空....的代码....还要在进入一次后台.....有必要么
  1260. // //U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", [response]).value.toString();
  1261. // //UseStudioDiskManage.DecryptDirectory(response);
  1262. // //动态修改Directory图片文字及方法
  1263. // // var aa = null;
  1264. // // if (key == "") {
  1265. // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
  1266. // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1267. // // text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1268. // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
  1269. // // //aa = text;
  1270. // // // aa = eval('(' + text + ')');
  1271. // // }
  1272. // // else {
  1273. // // text = US.Disk.UserDisk[0][key];
  1274. // // }
  1275. // text = U.Dk.M.ufinfoarray("onefind", key);
  1276. // text.UserDirectoryEncrypt = null;
  1277. // //text.UserDirectoryUrl = "background-position:-120px -42px;";
  1278. // //未加密文件的拼图
  1279. // text.UserDirectoryUrl = "background-position:-78px -175px;";
  1280. // if (document.getElementById("disk" + _directoryid) != null) {
  1281. // if (U.Dk.DirectoryView == "Details") {
  1282. // _div.getElementsByTagName("i")[0].style.backgroundPosition = "-217px -173px";
  1283. // }
  1284. // else if (U.Dk.DirectoryView == "Noraml") {
  1285. // _div.getElementsByTagName("i")[0].style.backgroundPosition = "-78px -175px";
  1286. // }
  1287. // }
  1288. // if (document.getElementById(_directoryid) != null) {
  1289. // var div = document.getElementById(_directoryid);
  1290. // if (div.getElementsByTagName("span")[0].innerHTML == "(已加密)") {
  1291. // div.getElementsByTagName("i")[0].className = "UDK_L_Disk UDK_L_USTreeFolderIcon";
  1292. // div.getElementsByTagName("span")[0].innerHTML = "";
  1293. // div.onclick = "U.Dk.LL.VM(this);javascript:U.Dk.RE.CN('" + _directoryid + "'); javascript:U.Dk.LL.Nav(document.getElementById('" + text.UserDirectoryID + "')," + text.UserDirectoryDeep + ");";
  1294. // div.href = "";
  1295. // }
  1296. // }
  1297. // }
  1298. // }
  1299. // break;
  1300. // // case "": //这个为空。。。到底什么情况才会有?
  1301. // // EncryptWindow.height = 140;
  1302. // // EncryptWindow.content = '<div style="margin:auto; padding-top:15px; width:230px; height:100px;"><span style="display:block; margin:auto; width:230px; height:30px; line-height:30px;">输入密码 &nbsp;<input type="password" id="decripttextinput" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
  1303. // // EncryptWindow.confirmYesClose = function () {
  1304. // // var decrypttext = document.getElementById("decripttextinput").value;
  1305. // // //var response = U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", _directoryid + ',' + decrypttext).value;
  1306. // // //这里有点蛋疼........实际上就传入一个ID......而且判断的返回值一直为空..............到底这个..密码错误根本不可能触发
  1307. // // //var response = U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", [_directoryid, decrypttext]).value;
  1308. // // var response = "true";
  1309. // // //var response = UseStudioDiskManage.GetUserDecrptData(_directoryid, decrypttext).value;
  1310. // // if (response == "false") {
  1311. // // alert("密码错误"); return;
  1312. // // }
  1313. // // else {
  1314. // // //动态修改Directory图片文字及方法
  1315. // // // var aa = null;
  1316. // // // if (key == "") {
  1317. // // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
  1318. // // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1319. // // // text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1320. // // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
  1321. // // // // aa = text;
  1322. // // // // aa = eval('(' + text + ')');
  1323. // // // }
  1324. // // // else {
  1325. // // // text = US.Disk.UserDisk[0][key];
  1326. // // // }
  1327. // // text = U.Dk.M.ufinfoarray("onefind", key);
  1328. // // //记录下父亲ID,同时也给全局变量赋值
  1329. // // U.Dk.ParentID = text.UserDirectoryID;
  1330. // // document.getElementById("ParentID").innerHTML = text.UserDirectoryID;
  1331. // // //更新Json数据
  1332. // // //US.Disk.directoryContenTable = U.Dk.directoryAjax(U.Dk.UserGuid, text.UserDirectoryID);
  1333. // // //传入视图类型的全局变量,判断是哪个视图后再重新刷新目录
  1334. // // U.Dk.VW.NOD(U.Dk.DirectoryView);
  1335. // // U.Dk.ArticleNav(text.UserDirectoryName, text.UserDirectoryID, text.UserDirectoryDeep);
  1336. // // }
  1337. // // }
  1338. // // break;
  1339. // }
  1340. // EncryptWindow.Create();
  1341. //}
  1342. ////上传文件使用的动态添加
  1343. //Namespace.register("U.UL");
  1344. ////普通视图
  1345. //U.UL.UpTable = function (UserDirectoryID, filetype, UserDirectoryName, FilesID, FilesServerName, UserDirectoryUrl, UserFileSize) {
  1346. // var myDate = new Date();
  1347. // var directoryListAreaDiv = parent.window.document.getElementById("UDK_LR_directoryListArea");
  1348. // //UserDirectoryUrl = parent.window.U.Dk.FileTypeImg(filetype);
  1349. // var createDiv = document.createElement("div");
  1350. // createDiv.id = "disk" + FilesID;
  1351. // createDiv.className = "UDK_RT_application";
  1352. // createDiv.style.cssText = "width:80px; margin-left:10px; text-align:center; float:left; height:80px; ";
  1353. // fileAddTime = parent.window.U.MT.getDate(myDate);
  1354. // //这里对地址进行判断.....以免前台的树的内容不同
  1355. // if (UserDirectoryUrl == null || UserDirectoryUrl == "") {
  1356. // UserDirectoryUrl = parent.window.U.Dk.FileTypeImg(filetype);
  1357. // }
  1358. // else {
  1359. // UserDirectoryUrl = "background-image:url(" + parent.window.US.Disk.UserDisk[1][0] + UserDirectoryUrl + ");";
  1360. // }
  1361. // //创建图标内div的内容
  1362. // strCode = "<div onmouseout='this.style.cssText=\"text-overflow:ellipsis; overflow:hidden; white-space:nowrap;-webkit-box-shadow: inset 0 0 1px white; background-color: white;padding:3px 0px 3px 0px;\"' onmouseover='this.style.cssText=\" text-overflow:ellipsis; overflow:hidden; white-space:nowrap; -webkit-box-shadow: inset 0 0 1px #fff; background-color: #ecf3fd; border:1px solid #BBd6fb;\"' style=\"padding:3px 0px 3px 0px;text-overflow:ellipsis; overflow:hidden; white-space:nowrap;\" onmousedown=\"U.M.StopBubble();U.Dk.RM.DRC(this,'" + FilesID + "')\" onclick=\"U.Dk.divdoubleClick('" + FilesID + "')\">";
  1363. // strCode += "<i class='UDK_L_Disk' style='width:65px; height:61px; display:inline-block; " + UserDirectoryUrl + ";'></i><br/>";
  1364. // strCode += "<span style='width:80px;' id=resDataList_name_" + FilesID + ">" + UserDirectoryName + "</span>";
  1365. // strCode += "</div>";
  1366. // createDiv.innerHTML = strCode;
  1367. // directoryListAreaDiv.appendChild(createDiv);
  1368. // //为了防止一开时加载...U.Dk.ParentID为空的情况
  1369. // var dd;
  1370. // if (parent.window.U.Dk.ParentID == "") {
  1371. // dd = "7aeaab56-485f-4150-b781-8ffd86d593ce"
  1372. // }
  1373. // else
  1374. // dd = parent.window.U.Dk.ParentID;
  1375. // //拼凑链接地址
  1376. // if (FilesServerName.lastIndexOf(".", FilesServerName.length - 1) == -1) {
  1377. // FilesServerName = FilesServerName + "." + filetype;
  1378. // }
  1379. // else {
  1380. // FilesServerName = FilesServerName + filetype;
  1381. // }
  1382. // var str = { "UserDirectoryID": FilesID, "UserDirectoryParentID": dd, "UserDirectoryName": UserDirectoryName, "UserDirectoryExtendType": filetype, "UserDirectoryAddTime": fileAddTime, "UserDirectoryUrl": UserDirectoryUrl, "UserFilesServerName": FilesServerName, "UserDirectoryModifyTime": null, "UserDirectoryEncrpt": null, "filetype": 1, "UserDirectoryDeep": 999, "UserDirectorySize": UserFileSize };
  1383. // //写入前台的树
  1384. // parent.window.US.Disk.UserDisk[0].push(str);
  1385. //}
  1386. ////详细视图
  1387. //U.UL.UpDetailsTable = function (UserDirectoryID, filetype, UserDirectoryName, FilesID, FilesServerName, UserDirectoryUrl, UserFileSize) {
  1388. // var myDate = new Date();
  1389. // var directoryListAreaDiv = parent.window.document.getElementById("UDK_LR_directoryListArea");
  1390. // if (UserDirectoryUrl == null || UserDirectoryUrl == "") {
  1391. // UserDirectoryUrl = parent.window.U.Dk.FileTypeImg(filetype);
  1392. // }
  1393. // else {
  1394. // UserDirectoryUrl = "background-image:url(" + parent.window.US.Disk.UserDisk[1][0] + UserDirectoryUrl + ");";
  1395. // }
  1396. // //UserDirectoryUrl = parent.window.U.Dk.FileTypeImg(filetype);
  1397. // var createDiv = document.createElement("div");
  1398. // createDiv.className = "UDK_RT_Details";
  1399. // //createDiv.style.cssText = "width:100%; min-width:500px; border-bottom:dashed 1px #ccc; height:32px;";
  1400. // createDiv.id = "disk" + FilesID;
  1401. // fileAddTime = parent.window.U.MT.getDate(myDate);
  1402. // //把文件类型转换成中文名称
  1403. // var tmp = parent.window.U.Dk.findFileType(filetype).split("|");
  1404. // var filetypename = tmp[0];
  1405. // var fileIcon = tmp[1];
  1406. // var key = directoryListAreaDiv.children.length - 2;
  1407. // strCode = "<input type=\"checkbox\" check=\"" + key + "\" class=\"UDK_RT_DL_CK\" id=\"js_datalist_check_" + key + "\"/>";
  1408. // strCode += "<a onmousedown=\"U.M.StopBubble();U.Dk.RM.DRC(this,'" + FilesID + "')\" onclick=\"U.Dk.divdoubleClick('" + FilesID + "')\" ondblclick=\"this.click()\" >";
  1409. // strCode += "<i class='UDK_L_Disk UDK_RT_DL_IMG' style='" + fileIcon + "'></i>";
  1410. // strCode += "<span class=\"UDK_RT_DT_Span UDK_RT_DT_SP_FN\" id=resDataList_name_" + FilesID + " >" + UserDirectoryName + "</span>";
  1411. // strCode += "<span class=\"UDK_RT_DT_Span UDK_RT_DT_SP_DT\">" + fileAddTime + "</span>";
  1412. // strCode += "<span class=\"UDK_RT_DT_Span UDK_RT_DT_SP_FZ\">" + "0KB" + "</span>"; //文件大小还没算出来,需要算出。
  1413. // strCode += "<span class=\"UDK_RT_DT_Span UDK_RT_DT_SP_FT\" id=\"reDataList_type_" + FilesID + "\">" + filetypename + "</span>"
  1414. // strCode += '</a>'
  1415. // createDiv.innerHTML = strCode;
  1416. // directoryListAreaDiv.appendChild(createDiv);
  1417. // var dd;
  1418. // if (parent.window.U.Dk.ParentID == "") {
  1419. // dd = "7aeaab56-485f-4150-b781-8ffd86d593ce"
  1420. // }
  1421. // else
  1422. // dd = parent.window.U.Dk.ParentID;
  1423. // //拼凑链接地址
  1424. // if (FilesServerName.lastIndexOf(".", FilesServerName.length - 1) == -1) {
  1425. // FilesServerName = FilesServerName + "." + filetype;
  1426. // }
  1427. // else {
  1428. // FilesServerName = FilesServerName + filetype;
  1429. // }
  1430. // var str = { "UserDirectoryID": FilesID, "UserDirectoryParentID": dd, "UserDirectoryName": UserDirectoryName, "UserDirectoryExtendType": filetype, "UserDirectoryAddTime": fileAddTime, "UserDirectoryUrl": UserDirectoryUrl, "UserFilesServerName": FilesServerName, "UserDirectoryModifyTime": null, "UserDirectoryEncrpt": null, "filetype": 1, "UserDirectoryDeep": 999, "UserDirectorySize": UserFileSize };
  1431. // parent.window.US.Disk.UserDisk[0].push(str);
  1432. //}
  1433. //Namespace.register("U.MP");
  1434. //Namespace.register("U.Dk"); // 音乐播放的HTML 打印
  1435. ////音乐的函数.............要=======PG 回来......................................没人做
  1436. //U.MP.up = function () {
  1437. // var _allPath, i; //文件路径
  1438. // var MusicPlayList = document.getElementById("MusicPlayList"); //文件的展示的DIv
  1439. // MusicPlayList.innerHTML = "";
  1440. // if (parent.U.Dk.ParentID == null) return;
  1441. // var MusicValue = eval(parent.U.Dk.M.ufinfoarray("find", [parent.U.Dk.ParentID, 1])); //你点击的音乐文件
  1442. // for (i = 0; i < MusicValue.length; i++) {
  1443. // _allPath = parent.US.Disk.UserDisk[1][0] + MusicValue[i].UserFilesServerName;
  1444. // var _musicName = MusicValue[i].UserDirectoryName;
  1445. // if (_musicName.length > 20) _musicName = _musicName.substring(0, 20) + "...";
  1446. // MusicPlayList.innerHTML += "<li id='s" + i + "' class='player' jplayer='" + _allPath + "' songer='有思工作室' ablum='有思工作室' songimg='skin/default/images/songer/1.jpg'>" +
  1447. // "<a href='javascript:void(0);' class='controllink'></a>" +
  1448. // "<p>'" + _musicName + "'</p>" +
  1449. // "</li>";
  1450. // }
  1451. //}
  1452. ////文件下载
  1453. //U.Dk.RE.ODL = function () {
  1454. // var key = U.D.P.FileKey;
  1455. // //通过ID找一条记录
  1456. // text = U.Dk.M.ufinfoarray("onefind", key);
  1457. // var filetype = text.UserDirectoryExtendType.toLowerCase();
  1458. // //由于没有解决txt xls 图片格式的下载..暂时使用在另一个页面打开这个方法
  1459. // if (filetype == "txt" || filetype == "xls" || filetype == "jpg" || filetype == "bmp" || filetype == "png" || filetype == "gif") {
  1460. // var openanddownloadA = document.createElement("div");
  1461. // window.open("http://fs.1473.cn/" + text.UserFilesServerName);
  1462. //// openanddownloadA.href = "http://fs.1473.cn/" + text.UserFilesServerName + ".rar";
  1463. //// openanddownloadA.onclick = function () {
  1464. //// location.href = "http://fs.1473.cn/" + text.UserFilesServerName + ".rar";
  1465. //// //SaveAs(openanddownloadA.href, openanddownloadA.href);
  1466. //// }
  1467. // document.body.appendChild(openanddownloadA);
  1468. // openanddownloadA.click();
  1469. // }
  1470. // else {
  1471. // var openanddownloadA = document.createElement("div");
  1472. // openanddownloadA.href = "http://fs.1473.cn/" + text.UserFilesServerName;
  1473. //// openanddownloadA.onclick = function () {
  1474. //// location.href = "http://fs.1473.cn/" + text.UserFilesServerName ;
  1475. //// //SaveAs(openanddownloadA.href, openanddownloadA.href);
  1476. //// }
  1477. // document.body.appendChild(openanddownloadA);
  1478. // openanddownloadA.click();
  1479. // }
  1480. // // var a;
  1481. // // a =window.open("http://fs.1473.cn/" + text.UserFilesServerName,"_blank", "width=0, height=0");
  1482. // // a.document.execCommand("SaveAs");
  1483. // // a.close();
  1484. // //无窗口弹出
  1485. // // var str = "http://fs.1473.cn/" + text.UserFilesServerName;
  1486. // // parent.window.frames["hrong"].location.href = str;
  1487. // // sa();
  1488. //}
  1489. ////文件下载
  1490. //U.Dk.RE.ODL = function () {
  1491. // var key = parent.U.D.P.FileKey;
  1492. // //通过ID找一条记录
  1493. // text = parent.U.Dk.M.ufinfoarray("onefind", key);
  1494. // // var openanddownloadA = document.createElement("div");
  1495. // // openanddownloadA.href = "http://fs.1473.cn/" + text.UserFilesServerName;
  1496. // // openanddownloadA.onclick = function () {
  1497. // // alert("1");
  1498. // //
  1499. // // location.href = "http://fs.1473.cn/" + text.UserFilesServerName;
  1500. // // SaveAs(openanddownloadA.href, openanddownloadA.href);
  1501. // // }
  1502. // // document.body.appendChild(openanddownloadA);
  1503. // // openanddownloadA.click();
  1504. // // var a;
  1505. // // a =window.open("http://fs.1473.cn/" + text.UserFilesServerName,"_blank", "width=0, height=0");
  1506. // // a.document.execCommand("SaveAs");
  1507. // // a.close();
  1508. // //无窗口弹出
  1509. // var str = "http://fs.1473.cn/" + text.UserFilesServerName;
  1510. // parent.window.frames["hrong"].location.href = str;
  1511. // sa();
  1512. //}
  1513. //function sa() {
  1514. // if (parent.window.frames["hrong"].document.readyState != "complete")
  1515. // setTimeout("sa()", 100);
  1516. // else
  1517. // parent.window.frames["hrong"].document.execCommand('SaveAs');
  1518. //}
  1519. //function SaveAs(href,name) {
  1520. // alert("123");
  1521. // var a = window.open(href)
  1522. // a.document.execCommand('Saveas ', true, href)
  1523. // a.window.close()
  1524. // return false
  1525. //}
  1526. ///----------------------------本地搜索..........有关于搜索都在此
  1527. ////--模糊收索,通过queryname的这进行第一次收索,childqueryname进行只子收索--徐嘉伟
  1528. //U.LD.return_query = function (obj) {
  1529. // var hardpan = "<div style='width:100%;clear: both;'><div class='UDK_RT_application'><img src='/img/UD.Disk/Extend.jpg' id='UDK_N_queryhardpan' onclick='U.LD.displayfile(this)' style=' float:left;margin-top:1px;' /><a ><span style='width:100%;margin-left: 2px;'>硬盘文件 > ></span></a><br /></div>";
  1530. // var photo_album = "<div style='width:100%;clear: both;'><div class='UDK_RT_application'><img src='/img/UD.Disk/Extend.jpg' id='UDK_N_queryphoto_album' onclick='U.LD.displayfile(this)' style=' float:left;margin-top:1px;' /><a ><span style='width:100%;margin-left: 2px;'>相片文件 > ></span></a><br /></div>";
  1531. // var video = "<div style='width:100%;clear: both;'><div class='UDK_RT_application'><img src='/img/UD.Disk/Extend.jpg' id='UDK_N_video' onclick='U.LD.displayfile(this)' style=' float:left;margin-top:1px;' /><a><span style='width:100%;margin-left: 2px;'>视频文件 > ></span></a><br /></div>";
  1532. // var music = "<div style='width:100%;clear: both;'><div class='UDK_RT_application'><img src='/img/UD.Disk/Extend.jpg' id='UDK_N_music' onclick='U.LD.displayfile(this)' style=' float:left;margin-top:1px;' /><a><span style='width:100%;margin-left: 2px;'>音乐文件 > ></span></a><br /></div>";
  1533. // //父亲搜索框的值
  1534. // var queryname = document.getElementById("UDK_N_queryBox").value;
  1535. // var childqueryid = "";
  1536. // var allfile = "";
  1537. // // 对点击传过来的值经行判断。如果是查询。那么就进行赋值
  1538. // if (obj.value == "查询") {
  1539. // childqueryid = document.getElementById("UDK_N_minutetext").value;
  1540. // if (U.Dk.obj_id == undefined) { ; }
  1541. // else {
  1542. // obj.id = U.Dk.obj_id;
  1543. // }
  1544. // }
  1545. // else {
  1546. // childqueryid = "";
  1547. // }
  1548. // if (queryname == "" || queryname == "请输入你要查找的文件") {
  1549. // return;
  1550. // }
  1551. // // var all = U.A.Request(US.Auth,"UseStudioDisk.Managequery", queryname).value;
  1552. // var all = U.A.Request(US.Auth,"UseStudioDisk.Managequery", [queryname]).value;
  1553. // //var all = eval(UseStudioDiskManage.query(queryname).value);
  1554. // document.getElementById("UDK_N_logoquerydiv").style.display = "none";
  1555. // // 遍历整个json经行赋值。。
  1556. // for (var query_result in all) {
  1557. // var allresult = all[query_result];
  1558. // var filecoordinate = U.LD.coordinate(allresult.UserFilesExtendName);
  1559. // var file_ename = allresult.UserFilesExtendName;
  1560. // if (file_ename == "jpg" || file_ename == "gif" || file_ename == "png" || file_ename == "bmp") {
  1561. // if (allresult.UserFilesName.indexOf(childqueryid) != -1) {
  1562. // photo_album += "<div id='" + allresult.UserFilesID + "' class='UDK_RT_application' style='width:80px;height:80px;float:left;text-align:center; max-width:100px;max-height:100px;' onclick='U.Dk.Openfile(\"" + allresult.UserFilesServerName + "\")'><a><center><div class='UDK_N_load_picture' style='" + filecoordinate + ";width:40px;height:40px;'></div></center><span>" + allresult.UserFilesName + "</span></a></div>";
  1563. // allresult.UserFilesName = "" + allresult.UserFilesName;
  1564. // var photoImage = US.Disk.UserDisk[1][0] + allresult.UseFilesServerThumbnailName;
  1565. // photo_album += "<div id='" + allresult.UserFilesID + "' style='width:80px;height:80px;float:left;text-align:center; max-width:100px;max-height:100px;padding:3px 0px 3px 0px;text-overflow:ellipsis; overflow:hidden; white-space:nowrap;' onclick='U.Dk.Openfile(\"" + allresult.UserFilesServerName + "\")'><a><center><img src='" + photoImage + "'; style='width:40px;height:40px;'></img></center><span style='text-overflow:ellipsis; overflow:hidden; white-space:nowrap; width:80px;'>" + allresult.UserFilesName + "</span></a></div>";
  1566. // }
  1567. // }
  1568. // else if (file_ename.indexOf("mp") != -1) {
  1569. // if (allresult.UserFilesName.indexOf(childqueryid) != -1) {
  1570. // music += "<div id='" + allresult.UserFilesID + "' class='UDK_RT_application' style='width:80px;height:80px;float:left;text-align:center; max-width:100px;max-height:100px;' onclick='U.Dk.Openfile(\"" + allresult.UserFilesServerName + "\")'><a><center><div class='UDK_N_load_picture' style='" + filecoordinate + ";width:40px;height:40px;'></div></center><span>" + allresult.UserFilesName + "</span></a></div>";
  1571. // music += "<div id='" + allresult.UserFilesID + "' style='width:80px;height:80px;float:left;text-align:center; max-width:100px;max-height:100px;padding:3px 0px 3px 0px;text-overflow:ellipsis; overflow:hidden; white-space:nowrap;' onclick='U.Dk.Openfile(\"" + allresult.UserFilesServerName + "\")'><a><center><div class='UDK_N_load_picture' style='" + filecoordinate + ";width:40px;height:40px;'></div></center><span style='text-overflow:ellipsis; overflow:hidden; white-space:nowrap; width:80px;'>" + allresult.UserFilesName + "</span></a></div>";
  1572. // }
  1573. // }
  1574. // else if (file_ename.indexOf("mv") != -1 || file_ename == "wma") {
  1575. // if (allresult.UserFilesName.indexOf(childqueryid) != -1) {
  1576. // video += "<div id='" + allresult.UserFilesID + "' class='UDK_RT_application' style='width:80px;height:80px;float:left;text-align:center; max-width:100px;max-height:100px;' onclick='U.Dk.Openfile(\"" + allresult.UserFilesServerName + "\")'><a><center><div class='UDK_N_load_picture' style='" + filecoordinate + ";width:40px;height:40px;'></div></center><span>" + allresult.UserFilesName + "</span></a></div>";
  1577. // video += "<div id='" + allresult.UserFilesID + "' style='width:80px;height:80px;float:left;text-align:center; max-width:100px;max-height:100px;padding:3px 0px 3px 0px;text-overflow:ellipsis; overflow:hidden; white-space:nowrap;' onclick='U.Dk.Openfile(\"" + allresult.UserFilesServerName + "\")'><a><center><div class='UDK_N_load_picture' style='" + filecoordinate + ";width:40px;height:40px;'></div></center><span style='text-overflow:ellipsis; overflow:hidden; white-space:nowrap; width:80px;'>" + allresult.UserFilesName + "</span></a></div>";
  1578. // }
  1579. // }
  1580. // else {
  1581. // if (allresult.UserFilesName.indexOf(childqueryid) != -1) {
  1582. // hardpan += "<div id='" + allresult.UserFilesID + "' class='UDK_RT_application' style='width:80px;height:80px;float:left;text-align:center; max-width:100px;max-height:100px;' onclick='U.Dk.Openfile(\"" + allresult.UserFilesServerName + "\")'><a><center><div class='UDK_N_load_picture' style='" + filecoordinate + ";width:40px;height:40px;'></div></center><span>" + allresult.UserFilesName + "</span></a></div>";
  1583. // hardpan += "<div id='" + allresult.UserFilesID + "'style='width:80px;height:80px;float:left;text-align:center; max-width:100px;max-height:100px;padding:3px 0px 3px 0px;text-overflow:ellipsis; overflow:hidden; white-space:nowrap;' onclick='U.Dk.Openfile(\"" + allresult.UserFilesServerName + "\")'><a><center><div class='UDK_N_load_picture' style='" + filecoordinate + ";width:40px;height:40px;'></div></center><span style='text-overflow:ellipsis; overflow:hidden; white-space:nowrap; width:80px;'>" + allresult.UserFilesName + "</span></a></div>";
  1584. // }
  1585. // }
  1586. // }
  1587. // hardpan = hardpan + "</div><br />";
  1588. // photo_album = photo_album + "</div><br />";
  1589. // video = video + "</div><br />";
  1590. // music = music + "</div>";
  1591. // //查看硬盘相册。。的类容防止样式错误
  1592. // if (hardpan == "<div style='width:100%;clear: both;'><div class='UDK_RT_application'><img src='/img/UD.Disk/Extend.jpg' id='queryhardpan' onclick='U.LD.displayfile(this)' style=' float:left;margin-top:1px;' /><a><span style='width:100%;margin-left: 2px;'>硬盘文件 > ></span></a><br /></div></div><br />") {
  1593. // hardpan = "";
  1594. // }
  1595. // if (photo_album == "<div style='width:100%;clear: both;'><div class='UDK_RT_application'><img src='/img/UD.Disk/Extend.jpg' id='queryphoto_album' onclick='U.LD.displayfile(this)' style=' float:left;margin-top:1px;' /><a><span style='width:100%;margin-left: 2px;'>相片文件 > ></span></a><br /></div></div><br />") {
  1596. // photo_album = "";
  1597. // }
  1598. // if (music == "<div style='width:100%;clear: both;'><div class='UDK_RT_application'><img src='/img/UD.Disk/Extend.jpg' id='music' onclick='U.LD.displayfile(this)' style=' float:left;margin-top:1px;' /><a><span style='width:100%;margin-left: 2px;'>音乐文件 > ></span></a><br /></div></div>") {
  1599. // music = "";
  1600. // }
  1601. // if (video == "<div style='width:100%;clear: both;'><div class='UDK_RT_application'><img src='/img/UD.Disk/Extend.jpg' id='video' onclick='U.LD.displayfile(this)' style=' float:left;margin-top:1px;' /><a><span style='width:100%;margin-left: 2px;'>视频文件 > ></span></a><br /></div></div><br />") {
  1602. // video = "";
  1603. // }
  1604. // // 这里是看用户点击想查看是什么部分。。
  1605. // if (obj.id == "UDK_N_hardpan") {
  1606. // allfile = hardpan;
  1607. // }
  1608. // else if (obj.id == "UDK_N_music") {
  1609. // allfile = music;
  1610. // }
  1611. // else if (obj.id == "UDK_N_video") {
  1612. // allfile = video;
  1613. // }
  1614. // else if (obj.id == "UDK_N_photo_album") {
  1615. // allfile = photo_album;
  1616. // }
  1617. // else {
  1618. // allfile = hardpan + photo_album + video + music;
  1619. // }
  1620. // if (allfile == "<br /><br /><br />") {
  1621. // allfile = "";
  1622. // }
  1623. // // 把json值打印出来
  1624. // document.getElementById("UDK_N_disksearchResultdiv").innerHTML = allfile;
  1625. // if (allfile != "") {
  1626. // document.getElementById("UDK_N_childquerydiv").style.display = "block"; //如果查询有值。我们就让子查询条出来。
  1627. // document.getElementById("UDK_N_minutetext").focus(); //这里是子查询聚焦..
  1628. // }
  1629. // U.Dk.obj_id = obj.id; //为了防止数据打印的变化变回初值防止查询错误
  1630. //}
  1631. //// 当用户点击enter键时进行搜索--徐嘉伟
  1632. //U.LD.returnkeylogin = function (obj) {
  1633. // var cilckbutton = document.getElementById("" + obj.id + "").children[1];
  1634. // if (event.keyCode == 13) {
  1635. // cilckbutton.click();
  1636. // U.M.StopDefault(obj.event); //阻止事件冒泡。
  1637. // }
  1638. //}
  1639. ////点击返回后收索出现--徐嘉伟
  1640. //U.LD.return_search = function () {
  1641. // document.getElementById("UDK_N_disksearchResultdiv").innerHTML = ""; //把上一次搜索的json值变回""
  1642. // document.getElementById("UDK_N_childquerydiv").style.display = "none"; //隐藏子搜索条
  1643. // document.getElementById("UDK_N_logoquerydiv").style.display = "block"; //把总搜索条显示回来
  1644. // document.getElementById("UDK_N_queryBox").focus(); //querybox触礁
  1645. // document.getElementById("UDK_N_queryBox").value = ""; //清空上次查询的值
  1646. // document.getElementById("UDK_N_minutetext").value = ""; //把子查询条的值清空
  1647. //}
  1648. ////伸展文件--徐嘉伟
  1649. //U.LD.displayfile = function (obj) {
  1650. // var allresult = "";
  1651. // var gainnonediv = obj.parentNode.parentNode.getElementsByTagName("div"); //找到所有的穿过来的div经行下面的伸展
  1652. // var _extendimg = "/img/UD.Disk/Extend.jpg";
  1653. // var _shrinkimg = "http://disk.1473.cn/img/Shrink.jpg";
  1654. // obj.src == _extendimg ? obj.src = _shrinkimg : obj.src = _extendimg; //伸展图标的改变
  1655. // if (gainnonediv[1].style.display == "none") {
  1656. // for (var i = 0; i < gainnonediv.length; i++) {
  1657. // // allresult = gainnonediv[i];
  1658. // gainnonediv[i].style.display = "block";
  1659. // }
  1660. // }
  1661. // else {
  1662. // for (var i = 0; i < gainnonediv.length; i++) {
  1663. // // allresult = gainnonediv[i];
  1664. // if (i != 0) {//除了第一div下面的进行隐藏收缩
  1665. // gainnonediv[i].style.display = "none";
  1666. // }
  1667. // }
  1668. // }
  1669. //}
  1670. //U.Dk.popFileUplaodWindow = function (obj) {
  1671. // //如果用户未登录,跳转到登录页面这个地方已经没有用了
  1672. //// if (US.userInfo.username == undefined) {
  1673. //// // window.location.href = "smallRegister.aspx";
  1674. //// return;
  1675. //// }
  1676. // filewindow = document.getElementById("uploadFileDiv");
  1677. // if (filewindow.style.display == "none" || filewindow.style.display == "") {
  1678. // filewindow.style.display = "block";
  1679. // var _type = document.getElementById("ArticleNav").firstChild.innerHTML;
  1680. // var tmp = _type.split(" ");
  1681. // _type = tmp[0];
  1682. // //将连接地址赋给相应的选项;蔡城辉:根据选项,在上传窗口左上角显示相应的文字
  1683. // switch (_type) {
  1684. // case "我的电脑": document.getElementById("uploadFileFrame").src = "utilitypages/FilesUpload/plupload/UseStudioUpload.aspx"; document.getElementById("filetypelabel").innerHTML = "上传文件"; break;
  1685. // case "相册": document.getElementById("uploadFileFrame").src = "utilitypages/FilesUpload/plupload/UseStudioUploadImage.aspx"; document.getElementById("filetypelabel").innerHTML = "上传图片"; break;
  1686. // case "音乐": document.getElementById("uploadFileFrame").src = "utilitypages/FilesUpload/plupload/UseStudioUploadMusic.aspx"; document.getElementById("filetypelabel").innerHTML = "上传音乐"; break;
  1687. // case "视频": document.getElementById("uploadFileFrame").src = "utilitypages/FilesUpload/plupload/UseStudioUploadVideo.aspx"; document.getElementById("filetypelabel").innerHTML = "上传视频"; break;
  1688. // }
  1689. // }
  1690. // else {
  1691. // filewindow.style.display = "none";
  1692. // }
  1693. // filewindow.style.left = obj.offsetLeft - 70;
  1694. // filewindow.style.top = obj.getBoundingClientRect().top - 40 - 350;
  1695. //}
  1696. //调整目录和文件区域的宽度
  1697. //U.Dk.adjust = function (diskbody) {
  1698. // // var leftContent = document.getElementById("UDK_RS_leftContent");
  1699. // // var rightConent = document.getElementById("UDK_RS_rightContent");
  1700. // //var leftwidth = leftContent.style.width.substring(0, leftContent.style.width.indexOf("p"));
  1701. // //U.Dk.ScreenWidth = document.body.clientWidth; UDK_RS_rightContent
  1702. // //var bw = diskbody.clientWidth;
  1703. // var bh = diskbody.parentNode.clientHeight - 30;
  1704. // diskbody.style.height = bh + "px";
  1705. // // diskbody.width = bw + "px";
  1706. // // diskbody.height = bh + "px";
  1707. // //var ScreenWidth = diskbody.clientWidth;
  1708. // //var width = bw - leftwidth - 5 + "px";
  1709. // //rightConent.style.width = width;
  1710. //}
  1711. //----------------------参数------------
  1712. //判断是否已安装控件
  1713. //U.Dk.ContentDarg = function () {
  1714. // var isdarg = true;
  1715. // document.onmousemove = function () {
  1716. // if (document.getElementById("leftContent") != null || document.getElementById("rightContent") != null) {
  1717. // if (isdarg == true) {
  1718. // var leftContent = document.getElementById("leftContent");
  1719. // var rightConent = document.getElementById("rightContent");
  1720. // var directoryCommandArea = document.getElementById("directoryCommandArea");
  1721. // var width = event.clientX - leftContent.getBoundingClientRect().left;
  1722. // width = Math.max(Math.min(width, 600), 220);
  1723. // leftContent.style.width = width + "px";
  1724. // rightConent.style.width = (ScreenWidth - width - 5) + "px";
  1725. // directoryCommandArea.style.left = width + 20 + "px";
  1726. // }
  1727. // }
  1728. // }
  1729. // document.onmouseup = function () { isdarg = false; }
  1730. //}
  1731. //调整左右两边的width的样式使用户达到最佳效果。。
  1732. //////////////////////////////////////////////////////////////////////////////////待修改
  1733. ////单击目录或者文件事件,记录目录或者文件id
  1734. //U.Dk.divsingleClick = function (url) {
  1735. // document.getElementById("selectLabel").value = url;
  1736. //}
  1737. //////////////////////////////////////////////////////////////////////////////////待修改
  1738. ////文件视图
  1739. //U.Dk.FileTable = function (Json,Type) {
  1740. // var directoryListAreaDiv = document.getElementById("directoryListArea");
  1741. // directoryListAreaDiv.innerHTML = "";
  1742. // for (var key in Json) {
  1743. // //遍历Json数据,赋给_directory,创建table表格
  1744. // var _directory = Json[key];
  1745. // var createDiv = document.createElement("div");
  1746. // createDiv.style.cssText = "width:80px; text-align:center; float:left; height:100px; ";
  1747. // //创建图标内div的内容
  1748. // strCode = "<div class=\"application\" oncontextmenu=\"U.Dk.RM.DRC('" + key + "')\" onclick=\"U.Dk.divdoubleClick('" + key + "')\" ondblclick=\"javascript:this.click()\">";
  1749. // strCode += "<a href=# onclick=\"return false;\" style=\"padding:3px 0px 3px 0px;\">";
  1750. // strCode += "<img width=\"50\" height=\"50\" src=" + _directory.UseFilesServerThumbnailName + " alt=\"www.1473.cn\"><br/>";
  1751. // strCode += "<span style='width:80px;' id=resDataList_folder_" + key + ">" + _directory.UserFilesName + "</span>";
  1752. // strCode += "</a>";
  1753. // strCode += "</div>";s
  1754. // createDiv.innerHTML = strCode;
  1755. // directoryListAreaDiv.appendChild(createDiv);
  1756. // }
  1757. // var TypeEng='';
  1758. // switch(Type){
  1759. // case "声音文件":TypeEng="Music";break;
  1760. // case "视频文件":TypeEng="Video";break;
  1761. // case "Office文档":TypeEng="Office";break;
  1762. // case "图像文件":TypeEng="Photos";break;
  1763. // }
  1764. // var ArticleNav = document.getElementById("ArticleNav");
  1765. // ArticleNav.innerHTML = "<span onclick=\"U.Dk.VW.NOD(" + TypeEng + ")\" onmouseout=\"this.style.border='1px solid #fff';this.style.background='none';\" onmouseover=\"this.style.border='1px solid #BBd6fb';this.style.backgroundColor='#ecf3fd';\" >" + Type + "? </span>";
  1766. //}
  1767. //***********************************************************加密解密开始************************************************;*********************
  1768. //U.Dk.RE.SHEW = function (obj) {
  1769. // //判断加密/解密
  1770. // var EncryptWindow = new U.UI.Dialog();
  1771. // EncryptWindow.title = U.M.textCompatible(obj) == "" ? "暂时解密" : U.M.textCompatible(obj);
  1772. // EncryptWindow.width = 280;
  1773. // EncryptWindow.model = 'OKCancel';
  1774. // // var _directoryid = document.getElementById("selectLabel").value;
  1775. // //var _directoryid = U.D.P.selectLabel;
  1776. // var key = U.D.P.FileKey;
  1777. // // var key = document.getElementById("FileKey").value;
  1778. // switch (U.M.textCompatible(obj)) {
  1779. // case "加密":
  1780. // EncryptWindow.height = 180;
  1781. // EncryptWindow.content = '<div style="margin:auto; padding-top:15px; width:230px; height:100px;"><span style="display:block; margin:auto; width:230px; height:30px; line-height:30px;">输入密码 &nbsp;<input type="password" id="encryptdecryptpassword1" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span><span style="display:block; margin:5px auto; width:230px; height:30px; line-height:30px;">确认密码 &nbsp;<input type="password" id="encryptdecryptpassword2" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
  1782. // EncryptWindow.confirmYesClose = function () {
  1783. // var _pass1 = document.getElementById("encryptdecryptpassword1").value; //取第一次密码
  1784. // var _pass2 = document.getElementById("encryptdecryptpassword2").value; //取第二次密码
  1785. // if (_pass1 != _pass2 || _pass1 == "") {
  1786. // //document.getElementById("encryptdecryptalertdiv").innerHTML = "密码不一致";
  1787. // alert("密码不一致");
  1788. // return;
  1789. // }
  1790. // // var response = U.A.Request(US.Auth,"UseStudioDisk.encryptwindowButtonClick", _directoryid + ',' + _pass1 + ',' + "加密").value;
  1791. // var response = U.A.Request(US.Auth,"UseStudioDisk.encryptwindowButtonClick", [_directoryid, _pass1]).value.toString();
  1792. // //var response = UseStudioDiskManage.encryptwindowButtonClick(_directoryid, _pass1, "加密").value;
  1793. // if (response == "false") {
  1794. // alert("密码输入错误");
  1795. // }
  1796. // else {
  1797. // //动态修改Directory文件名图片及方法
  1798. // // var aa = null;
  1799. // // if (key == "") {
  1800. // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
  1801. // // // var ktext = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1802. // // //text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1803. // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
  1804. // // // aa = text;
  1805. // // // aa = eval('(' + text + ')');
  1806. // // }
  1807. // // else {
  1808. // // text = US.Disk.UserDisk[0][key];
  1809. // // }
  1810. // text = U.Dk.M.ufinfoarray("onefind", key);
  1811. // text.UserDirectoryEncrypt = response;
  1812. // //修改文件图标样式
  1813. // text.UserDirectoryUrl = "background-position:79px -263px;";
  1814. // //判断能否找到点击文件div
  1815. // var RightTreediv = document.getElementById("disk" + _directoryid);
  1816. // //找到后进行视图类型判断--修改文件图标
  1817. // if (RightTreediv != null) {
  1818. // if (U.Dk.DirectoryView == "Details") {
  1819. // RightTreediv.getElementsByTagName("i")[0].style.backgroundPosition = "-241px -96px";
  1820. // }
  1821. // else if (U.Dk.DirectoryView == "Normal") {
  1822. // RightTreediv.getElementsByTagName("i")[0].style.backgroundPosition = "79px -263px";
  1823. // }
  1824. // }
  1825. // //左边树的div
  1826. // var LeftTreeDiv = document.getElementById(_directoryid);
  1827. // //左边的目录设计
  1828. // if (LeftTreeDiv != null) {
  1829. // if (LeftTreeDiv.getElementsByTagName("span")[0].innerHTML == null || LeftTreeDiv.getElementsByTagName("span")[0].innerHTML == "") {
  1830. // LeftTreeDiv.getElementsByTagName("i")[0].className = "UDK_L_Disk UDK_L_USTreeFolderEncryptIcon";
  1831. // LeftTreeDiv.getElementsByTagName("span")[0].innerHTML = "(已加密)";
  1832. // LeftTreeDiv.onclick = function () { U.Dk.LL.VM(LeftTreeDiv); U.Dk.RE.CN(_directoryid); U.Dk.LL.Nav(document.getElementById(text.UserDirectoryID), text.UserDirectoryDeep); U.Dk.RM.DRC(this, text); };
  1833. // }
  1834. // }
  1835. // }
  1836. // }
  1837. // break;
  1838. // case "解密":
  1839. // EncryptWindow.height = 140;
  1840. // EncryptWindow.content = '<div style="margin:auto; padding-top:15px; width:230px; height:100px;"><span style="display:block; margin:auto; width:230px; height:30px; line-height:30px;">输入密码 &nbsp;<input type="password" id="decripttextinput" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
  1841. // EncryptWindow.confirmYesClose = function () {
  1842. // //获取密码
  1843. // var decrypttext = document.getElementById("decripttextinput").value;
  1844. // // var response = U.A.Request(US.Auth,"UseStudioDisk.GetUserDecrptData", _directoryid + ',' + decrypttext).value;
  1845. // //通过后台进行解密以及是否密码正确的判断
  1846. // var response = U.A.Request(US.Auth,"UseStudioDisk.DeciphermentFile", [_directoryid, decrypttext]).value.toString();
  1847. // // var response = UseStudioDiskManage.GetUserDecrptData(_directoryid, decrypttext).value;
  1848. // if (response == "false") {
  1849. // alert("密码错误");
  1850. // return;
  1851. // }
  1852. // else {
  1853. // //置文件夹密码为空
  1854. // // U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", response).value;
  1855. // //这个地方直接修改..........放到后台执行..不需要返回值...判断密码是否正确....由前台的树....获取到的密码直接判断
  1856. // //这个让密码为空....的代码....还要在进入一次后台.....有必要么
  1857. // //U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", [response]).value.toString();
  1858. // //UseStudioDiskManage.DecryptDirectory(response);
  1859. // //动态修改Directory图片文字及方法
  1860. // // var aa = null;
  1861. // // if (key == "") {
  1862. // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
  1863. // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1864. // // text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1865. // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
  1866. // // //aa = text;
  1867. // // // aa = eval('(' + text + ')');
  1868. // // }
  1869. // // else {
  1870. // // text = US.Disk.UserDisk[0][key];
  1871. // // }
  1872. // //修改了后台数据.....前台树这边没有在从后台执行取树的过程
  1873. // text = U.Dk.M.ufinfoarray("onefind", key);
  1874. // text.UserDirectoryEncrypt = null;
  1875. // //text.UserDirectoryUrl = "background-position:-120px -42px;";
  1876. // //未加密文件的拼图
  1877. // text.UserDirectoryUrl = "background-position:-171px -256px;";
  1878. // var RightTreediv = document.getElementById("disk" + _directoryid);
  1879. // if (RightTreediv != null) {
  1880. // if (U.Dk.DirectoryView == "Details") {
  1881. // RightTreediv.getElementsByTagName("i")[0].style.backgroundPosition = "-217px -173px";
  1882. // }
  1883. // else if (U.Dk.DirectoryView == "Normal") {
  1884. // RightTreediv.getElementsByTagName("i")[0].style.backgroundPosition = "-171px -256px";
  1885. // }
  1886. // }
  1887. // var LeftTreeDiv = document.getElementById(_directoryid);
  1888. // if (LeftTreeDiv != null) {
  1889. // if (LeftTreeDiv.getElementsByTagName("span")[0].innerHTML == "(已加密)") {
  1890. // LeftTreeDiv.getElementsByTagName("i")[0].className = "UDK_L_Disk UDK_L_USTreeFolderIcon";
  1891. // LeftTreeDiv.getElementsByTagName("span")[0].innerHTML = "";
  1892. // LeftTreeDiv.onclick = function () { U.Dk.LL.VM(LeftTreeDiv); U.Dk.RE.CN(_directoryid); U.Dk.LL.Nav(document.getElementById(text.UserDirectoryID), text.UserDirectoryDeep) };
  1893. // //LeftTreeDiv.href = "";
  1894. // }
  1895. // }
  1896. // }
  1897. // }
  1898. // break;
  1899. // // case "": //这个为空。。。到底什么情况才会有?
  1900. // // EncryptWindow.height = 140;
  1901. // // EncryptWindow.content = '<div style="margin:auto; padding-top:15px; width:230px; height:100px;"><span style="display:block; margin:auto; width:230px; height:30px; line-height:30px;">输入密码 &nbsp;<input type="password" id="decripttextinput" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
  1902. // // EncryptWindow.confirmYesClose = function () {
  1903. // // var decrypttext = document.getElementById("decripttextinput").value;
  1904. // // //var response = U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", _directoryid + ',' + decrypttext).value;
  1905. // // //这里有点蛋疼........实际上就传入一个ID......而且判断的返回值一直为空..............到底这个..密码错误根本不可能触发
  1906. // // //var response = U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", [_directoryid, decrypttext]).value;
  1907. // // var response = "true";
  1908. // // //var response = UseStudioDiskManage.GetUserDecrptData(_directoryid, decrypttext).value;
  1909. // // if (response == "false") {
  1910. // // alert("密码错误"); return;
  1911. // // }
  1912. // // else {
  1913. // // //动态修改Directory图片文字及方法
  1914. // // // var aa = null;
  1915. // // // if (key == "") {
  1916. // // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
  1917. // // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1918. // // // text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
  1919. // // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
  1920. // // // // aa = text;
  1921. // // // // aa = eval('(' + text + ')');
  1922. // // // }
  1923. // // // else {
  1924. // // // text = US.Disk.UserDisk[0][key];
  1925. // // // }
  1926. // // text = U.Dk.M.ufinfoarray("onefind", key);
  1927. // // //记录下父亲ID,同时也给全局变量赋值
  1928. // // U.Dk.ParentID = text.UserDirectoryID;
  1929. // // document.getElementById("ParentID").innerHTML = text.UserDirectoryID;
  1930. // // //更新Json数据
  1931. // // //US.Disk.directoryContenTable = U.Dk.directoryAjax(U.Dk.UserGuid, text.UserDirectoryID);
  1932. // // //传入视图类型的全局变量,判断是哪个视图后再重新刷新目录
  1933. // // U.Dk.VW.NOD(U.Dk.DirectoryView);
  1934. // // U.Dk.ArticleNav(text.UserDirectoryName, text.UserDirectoryID, text.UserDirectoryDeep);
  1935. // // }
  1936. // // }
  1937. // // break;
  1938. // }
  1939. //// EncryptWindow.Create();
  1940. //}
  1941. //获取图片文件
  1942. //U.Dk.GetImage = function (_diskfileTree, UserDirectoryID) {
  1943. // var i, ImgJson = "["; //将其拼凑成JSON 形式
  1944. // for (i = 0; i < _diskfileTree.length; i++) {//这里要改成根据id搜索当前的图片
  1945. // var directorykey = _diskfileTree[i];
  1946. // var filetype = directorykey.UserDirectoryExtendType.toLowerCase();
  1947. // if (filetype == "jpg" || filetype == "bmp" || filetype == "png" || filetype == "gif") {
  1948. // var ThumbnailsImg = directorykey.UserDirectoryUrl;
  1949. // ThumbnailsImg = ThumbnailsImg.substring(ThumbnailsImg.indexOf("(") + 1, ThumbnailsImg.length - 2);
  1950. // ImgJson += '{"imgid": "' + directorykey.UserDirectoryID + '", "imgurl": "' + "http://fs.1473.cn/" + directorykey.UserFilesServerName + '", "imgThumbnails": "' + ThumbnailsImg + '"}, ';
  1951. // if (directorykey.UserDirectoryID == UserDirectoryID) { window.parent.U.Imges.CreatePhotoCase(directorykey.UserDirectoryID, "http://fs.1473.cn/" + directorykey.UserFilesServerName, i); }
  1952. // }
  1953. // }
  1954. // ImgJson = ImgJson.substring(0, ImgJson.length - 2);
  1955. // ImgJson += "]";
  1956. // window.parent.U.Imges.ThumbnailsCase(ImgJson);
  1957. //}
  1958. //----------------------------------------------------------------------没有用的函数
  1959. //点击返回友思搜索栏
  1960. //U.LD.return_search = function () {
  1961. // document.getElementById("UDK_N_logoquerydiv").style.display = "block"; //友思搜索条显示出来
  1962. // document.getElementById("UDK_N_queryBox").value = ""; //搜索条里面的值为空
  1963. // document.getElementById("UDK_N_childquerydiv").style.display = "none"; //子搜索条隐藏
  1964. // document.getElementById("UDK_N_minutetext").value = ""; //子搜索条显示为空
  1965. // document.getElementById("UDK_N_Wensearch").style.display = "none"; //上面查询的按钮隐藏
  1966. // document.getElementById("UDK_N_alldiv").style.display = "none"; //文件分类的div隐藏
  1967. // document.getElementById("UDK_unlogincontainer").style.display = "block";
  1968. // document.getElementById("UDK_N_divstyle").style.display = "none";
  1969. //}
  1970. //Enter快捷键设置
  1971. //U.LD.returnkeylogin = function (obj) {
  1972. // if (event.keyCode != 13) return; //如果不是回车键,返回
  1973. // var Anniu = document.getElementById("" + obj.id + "").children[1];
  1974. // if (event.keyCode == 13) {
  1975. // Anniu.click();
  1976. // }
  1977. //}
  1978. //搜索的时候视图切换
  1979. //U.LD.FildSwitch = function () {
  1980. // var _p = US.Disk.UserDisk[1][3].parentNode;
  1981. // _p.getElementsByTagName("div")["UDK_N_logoquerydiv"].style.display = "none"; //隐藏最大的友思导航条
  1982. // _p.getElementsByTagName("div")["UDK_unlogincontainer"].style.display = "none";
  1983. // _p.getElementsByTagName("div")["UDK_N_Wensearch"].style.display = "block"; //上面查询的按钮显示
  1984. // _p.getElementsByTagName("div")["UDK_N_alldiv"].style.display = "block";
  1985. // _p.getElementsByTagName("input")["UDK_N_childquerydiv"].style.display = "block"; //如果查询有值。我们就让子查询条出来。
  1986. // _p.getElementsByTagName("input")["UDK_N_minutetext"].focus(); //这里是子查询聚焦..
  1987. //}
  1988. //用户查询文件
  1989. //U.LD.return_query = function (obj) {
  1990. // var queryname;
  1991. // var UDK_N = US.Disk.UserDisk[1][3].parentNode.getElementsByTagName("div")["UDK_N_divstyle"];
  1992. // UDK_N.style.display = "block"; //显示搜索div
  1993. // if (obj.value == "查询") queryname = US.Disk.UserDisk[1][3].parentNode.getElementsByTagName("input")["UDK_N_queryBox"].value; //判断用户是点击那里的搜索的
  1994. // else if (obj.value == "搜索") queryname = US.Disk.UserDisk[1][3].parentNode.getElementsByTagName("input")["UDK_N_minutetext"].value;
  1995. // if (queryname == "" || queryname == "请输入你要查找的文件") return; //如果用户没有搜索类容
  1996. // U.LD.FildSwitch(); //视图切换
  1997. // U.A.Request(US.Auth,"UseStudioDisk.Managequery", [queryname], U.LD.FindFAsyn, [UDK_N]); //搜索文件的异步
  1998. //}
  1999. //切换搜索样式的视图
  2000. //U.LD.return_querd = function (obj) {
  2001. // var _p = US.Disk.UserDisk[1][3].parentNode;
  2002. // var udh = _p.getElementsByTagName("span")["UDK_RT_Hardpan"];
  2003. // var udp = _p.getElementsByTagName("span")["UDK_RT_Photo_album"];
  2004. // var udv = _p.getElementsByTagName("span")["UDK_RT_Video"];
  2005. // var udm = _p.getElementsByTagName("span")["UDK_RT_Music"];
  2006. // if (obj.id == "UDK_N_hardpan") {
  2007. // udh.style.display = "block";
  2008. // udp.style.display = "none";
  2009. // udv.style.display = "none";
  2010. // udm.style.display = "none";
  2011. // }
  2012. // else if (obj.id == "UDK_N_photo_album") {
  2013. // udp.style.display = "block";
  2014. // udv.style.display = "none";
  2015. // udm.style.display = "none";
  2016. // udh.style.display = "none";
  2017. // }
  2018. // else if (obj.id == "UDK_N_video") {
  2019. // udv.style.display = "block";
  2020. // udm.style.display = "none";
  2021. // udh.style.display = "none";
  2022. // udp.style.display = "none";
  2023. // }
  2024. // else if (obj.id == "UDK_N_music") {
  2025. // udv.style.display = "none";
  2026. // udm.style.display = "block";
  2027. // udh.style.display = "none";
  2028. // udp.style.display = "none";
  2029. // }
  2030. // else if (obj.id == "UDK_N_alldiv") {
  2031. // if (_p.getElementsByTagName("span")["UDK_RT_Music"] == null) { return; }
  2032. // udv.style.display = "block";
  2033. // udm.style.display = "block";
  2034. // udh.style.display = "block";
  2035. // udp.style.display = "block";
  2036. // }
  2037. //}
  2038. //获取到该用户端额同类型文件,传入用户ID,和要显示的类型,比如‘图像文件’、‘视频文件’,以数据库的UseStudioFileType表为标准
  2039. //U.Dk.directorySameTypeAjax = function (userId, sort) {
  2040. // if (US.userInfo.userid != U.Dk.UserGuid) return;
  2041. // var json = U.A.Request('UseStudioDisk.directorySameTypeTable', [userId, sort]).value;
  2042. // if (json != "" && json != null && json != undefined) return eval(json);
  2043. // return;
  2044. //}
  2045. //返回上一级(通过判断导航条子节点数量)
  2046. //U.Dk.NavBack = function () {
  2047. // var nav = US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_N_ArticleNav"]; //获取导航的div
  2048. // _nc = nav.getElementsByTagName("span"); //获取导航条上所有的导航
  2049. // deep = _nc.length - 2; //后退到上级导航
  2050. // if (deep < 0) deep = 0;
  2051. // U.M.invokeClick(_nc[deep]);
  2052. //}
  2053. //获取文件名字,ID,级数更新导航条
  2054. //U.Dk.ArticleNav = function (directoryName, directoryId, directoryDeep) {
  2055. // var ArticleNav = US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_N_ArticleNav"]; //获取导航的div
  2056. // var ArticleNavChlid = ArticleNav.getElementsByTagName("span");
  2057. // U.Dk.M.navchange(directoryDeep); //执行检查导航框内此级数(DEEP)是否存在两个,如果是将此级删除
  2058. // var _s = $$("span", { "id": directoryDeep, "onclick": [["U.Dk.VW.NOD", [US.Disk.UserDisk[1][4], directoryId]], [U.Dk.M.Nav, ["change", directoryDeep]], [U.Dk.M.Nav, (['islength'])]], "onmouseout": U.Dk.ArticleNavstyle, "onmouseover": U.Dk.ArticleNavstyle, "innerHTML": directoryName + " >> " }, ArticleNav);
  2059. // U.Dk.M.Nav("islength"); //修改导航条超过的问题
  2060. //}
  2061. //单击到视图图片,执行单击新建草单
  2062. //U.Dk.ViewF = function (obj) {
  2063. // US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_R_rightMouseClickDiv"].style.visibility = "hidden";
  2064. // _object = US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_LR_ViewF"];
  2065. // _object.style.display = "block";
  2066. // _object.style.left = '0px';
  2067. // _object.style.top = '0px';
  2068. // var _d = U.Dk.rightcorrect(obj);
  2069. // _object.style.left = _d["x"] - 5 + 'px';
  2070. // _object.style.top = _d["y"] - 5 + 'px';
  2071. // _object.style.visibility = "visible";
  2072. //}
  2073. ////将文件搜索div以及....本地硬盘的div隐藏
  2074. //U.LD.objhidden = function (obj) {
  2075. // var obj = document.getElementById(obj);
  2076. // obj.style.visibility = 'hidden';
  2077. //}
  2078. //-------------------------------------------------------------用户通过flash上传文件------------------------------------------------------------
  2079. //上传
  2080. U.Dk.popFileUplaodWindow = function (_type) {
  2081. var filewindow = $("#UDK_RS_uploadFileDiv")[0];
  2082. var loadFile = $("iframe", filewindow)[0]; //获取上传的iframe
  2083. var _address = "http://disk.1473.cn/USupfile.ashx?UserId=" + parent.US.userInfo.userid + "&iframename="; //上传地址,统一定义,下面拼凑。
  2084. switch (_type) {
  2085. case US.DG:
  2086. var _url = _address + "UploadFlashfile&DirectoryId=" + US.Disk.UserDisk[1][1];
  2087. loadFile.contentWindow.upload(US.Disk.UserDisk[1][1], { "title": "所有文件(不包括图片)", "extensions": "rar,zip,txt,doc,docx,ppt,xls,mht,iso,chm,gz,msi,dll,html,htm,pdf", "max_file_size": "200mb", "url": _url });
  2088. break;
  2089. case US.PG:
  2090. var _url = _address + "UploadImage&DirectoryId=" + US.Disk.UserDisk[1][1];
  2091. loadFile.contentWindow.upload(US.Disk.UserDisk[1][1], { "title": "图片文件类型", "extensions": "jpg,gif,png,bmp,jpeg", "max_file_size": "5mb", "url": _url });
  2092. break;
  2093. case US.MG:
  2094. var _url = _address + "UploadFlashfile&DirectoryId=" + US.Disk.UserDisk[1][1];
  2095. loadFile.contentWindow.upload(US.Disk.UserDisk[1][1], { "title": "暂时只支持mp3格式", "extensions": "mp3", "max_file_size": "20mb", "url": _url });
  2096. break;
  2097. case US.VG:
  2098. var _url = _address + "UploadFlashfile&DirectoryId=" + US.Disk.UserDisk[1][1];
  2099. loadFile.contentWindow.upload(US.Disk.UserDisk[1][1], { "title": "只支持wmv格式影片", "extensions": "wmv", "max_file_size": "50mb", "url": _url });
  2100. break;
  2101. }
  2102. }
  2103. // 上传统一回调函数
  2104. U.Dk.FileUploaded = function (up, file, info, DirectoryParentId) {
  2105. info.response = info.response.replace("<script type='text/javascript'>document.domain = '1473.cn';</script>", "");
  2106. var _response = eval(info.response);
  2107. var _fid = eval(info.response)[2]; //缩略图id也是路径
  2108. var _T = U.Dk.IsType(file.name);
  2109. _fid = _fid || U.Dk.FileTypeImg(_T); //图标的位置
  2110. var newDF = new U.Dk.M.Entity[_response[1], file.size, DirectoryParentId, file.name, file.name.substr(0, 10), _T, _response[0], U.MT.getDate(new Date()), _fid, 9999.0000, null, null, 1]; //新建实体
  2111. U.Dk.M.ufinfoarray("add", newDF);
  2112. U.Dk.RE.ARFO(newDF); //直接添加到文件夹下
  2113. }
  2114. //------------------------------------------------------------------------------------辅助函数--------------------------------------------------------------
  2115. U.Dk.sgsearch = function (obj) {
  2116. if (obj.getAttribute("stat") == "none") {
  2117. $("#UDK_M_MoreAndNew_Version").animate({ "left": "317px" }, 100);
  2118. obj.setAttribute("stat", "display");
  2119. } else if (obj.getAttribute("stat") == "display") {
  2120. $("#UDK_M_MoreAndNew_Version").animate({ "left": "415px" }, 100);
  2121. obj.setAttribute("stat", "none");
  2122. }
  2123. }
  2124. // 更多条缩放,根据搜狗搜索栏改写
  2125. U.Dk.sgsearchSH = function (obj) {
  2126. if (obj.getAttribute("stat") == "none") {
  2127. $("#UDK_UP_MoreAndOld_Version").animate({ "left": "317px" }, 100);
  2128. obj.setAttribute("stat", "display");
  2129. } else if (obj.getAttribute("stat") == "display") {
  2130. $("#UDK_UP_MoreAndOld_Version").animate({ "left": "415px" }, 100);
  2131. obj.setAttribute("stat", "none");
  2132. }
  2133. }
  2134. U.Dk.NewFlieUpWindow = function () {
  2135. $("#UDK_RS_uploadFileDiv")[0].style.display = "none";
  2136. $("#UDK_UP_upFileDiv")[0].style.display = "block";
  2137. }
  2138. //使用事件传递委托机制实现所有A元素的href属性,以避免屏幕移位
  2139. U.Dk.TransAHrefClick = function () {
  2140. var target = event.srcElement || window.event.targe;
  2141. if (target.tagName.toLowerCase() == "input") { target.parentNode.href = "javascript:void(0);"; }
  2142. }
  2143. //导航样式
  2144. U.Dk.ArticleNavstyle = function () {
  2145. if (window.event.type == "mouseover") { this.style.border = '1px solid #BBd6fb'; this.style.backgroundColor = '#ecf3fd'; }
  2146. else { this.style.border = '1px solid #fff'; this.style.background = 'none'; }
  2147. }
  2148. //删除上次搜索的文件
  2149. U.LD.DeleteLf = function (_Result) {
  2150. var _sa = _Result.getElementsByTagName("span");
  2151. var i;
  2152. for (i = 0; i < _sa.length; i++) {
  2153. _sa[i].innerHTML = "";
  2154. }
  2155. }
  2156. //判断用户要选择的面板
  2157. U.Dk.DI.SPanel = function (directoryID) {
  2158. var type;
  2159. switch (directoryID) { //判断点击哪个窗口以便弹出相应的显示页面
  2160. case US.DG: type = "disk";
  2161. break;
  2162. case US.PG:
  2163. type = "photo";
  2164. break;
  2165. case US.MG:
  2166. type = "music";
  2167. break;
  2168. case US.VG:
  2169. type = "video";
  2170. break;
  2171. default:
  2172. type = "disk"; //默认
  2173. break;
  2174. }
  2175. return type;
  2176. }
  2177. //点击更多函数
  2178. U.Dk.MostDiskDoyen = function (folder, obj, type, this_obj) {
  2179. // var start = $(".UDK_DI_RT_ZT", $("#" + obj)[0]).context.childNodes.length + 1; //获取当前的排行榜数量并加一作为查询起始数
  2180. // var end = start + 30; //想改“更多”输出数量的话改这即可。
  2181. // U.A.Request(US.Auth,"UseStudioDisk.GetMostUserFiles", [folder, start, end], U.Dk.DiskDoyenAnsy, [$("#" + obj)[0], type, this_obj]);
  2182. }
  2183. //点击更多函数
  2184. U.Dk.MoreNewFiles = function (_type, id) {
  2185. var obj = $("#" + id)[0]; //获取需要添加更多内容的div
  2186. var length = $(".UDK_DI_LT_NR", obj).context.childNodes.length; //获取目前div内已加载的用户数量
  2187. U.Dk.NewFileAdd(US.Disk.NewestFiles[_type], obj, length); //加载内容
  2188. }
  2189. //------------------------------------
  2190. //对于style.top等字符串对象执行加减操作
  2191. //第一个参数为object.style.top等字符串对象,第二个参数为加减的大小,减去传递负数进来
  2192. U.Dk.StrAS = function (obj, type, number) {
  2193. var _t = U.M.GetElementInfo(obj)
  2194. switch (type) {
  2195. case "top": obj.style.top = _t["TX"] + number + "px"; break;
  2196. case "left": obj.style.left = _t["TY"] + number + "px"; break;
  2197. case "All":
  2198. obj.style.left = _t["TX"] + number[1] + "px";
  2199. obj.style.top = _t["TY"] + number[0] + "px";
  2200. break;
  2201. default: break;
  2202. }
  2203. }
  2204. //判断文件的类型
  2205. U.Dk.IsType = function (name) {
  2206. var TypeArrary = ["jpg", "gif", "png", "bmp", "jpeg", "mp3", "rar", "zip", "txt", "doc", "docx", "ppt", "xls", "mht", "iso", "chm", "gz", "msi", "dll", "htm", "html"]; //上传的格式
  2207. for (i = 0; i < TypeArrary.length; i++) { //判断所有文件上传成功。
  2208. if (name.lastIndexOf(TypeArrary[i]) != -1) {
  2209. return TypeArrary[i];
  2210. }
  2211. }
  2212. }
  2213. //登录和没有登录的切换
  2214. U.Dk.locality_search = function (obj) {
  2215. //显示硬盘首页
  2216. if (obj.id == "UDK_LL_nologinsearch") {
  2217. document.getElementById("UDK_M_alreadylogin").style.display = "none";
  2218. document.getElementById("UDK_N_nologin").style.display = "block";
  2219. document.getElementById("UDK_N_return_disk").style.display = "block";
  2220. }
  2221. //否则,显示硬盘
  2222. else {
  2223. document.getElementById("UDK_M_alreadylogin").style.display = "block";
  2224. document.getElementById("UDK_N_nologin").style.display = "none";
  2225. document.getElementById("UDK_N_return_disk").style.display = "none";
  2226. }
  2227. }
  2228. //搜索disk最大的父亲
  2229. U.Dk.FindDiskP = function (obj) {
  2230. if (obj.id.indexOf("UD_Nl") > -1) { return obj; }
  2231. for (var i = 0; ;) {
  2232. obj = obj.parentNode;
  2233. if (obj.id.indexOf("UD_Nl") > -1) { return obj; }
  2234. }
  2235. }
  2236. //右键菜单和目录菜单区域
  2237. U.Dk.leftMouseClick = function () {
  2238. US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_R_rightMouseClickDiv"].style.visibility = "hidden";
  2239. }
  2240. //添加下级音乐
  2241. U.Dk.AddNextM = function (ML, DK) {
  2242. ML = ML || (window.event.srcElement || window.event.targe);
  2243. var _F = U.Dk.GetM(DK.UserDirectoryID); //获取本级下的音乐和音乐文件夹
  2244. for (var i in _F[1]) { if (_F[1].hasOwnProperty(i)) { var _I = U.MPlayer.AddM(_F[1][i], _F[0], ML.parentNode); } } //循环打印列表
  2245. ML.firstChild.nodeValue = DK.UserDirectoryName + "[" + _I + "]"; //主要是为了ie7innerhtml的bug
  2246. U.MPlayer.ListShrink(ML.parentNode); //缩展
  2247. ML.onclick = U.M.apply(this, [[U.MPlayer.ListShrink, [ML.parentNode]]]); //点击获取下级音乐
  2248. }
  2249. ////硬盘,相册,音乐,视频切换菜单
  2250. //U.Dk.DI.CM = function (DID, SO, ST) {
  2251. // var _UDKR, _UDKL, _UDSW, T;
  2252. // var _UDK = $("#UD_Nl")[0];
  2253. // switch (DID) {
  2254. // case US.DG: //disk文件
  2255. // T = 1;
  2256. // _UDKR = _UDK.getElementsByTagName("div")["UDK_DI_RT_NR0"];
  2257. // _UDKL = _UDK.getElementsByTagName("div")["UDK_DI_LT0"];
  2258. // _UDSW = ["block", "block", "block", "none", "none", "block", "block", "none", "none", "block", "block", "none", "none", "block", "none", "none", "none", "UDK_DI UDK_DI_TB_DI", "硬盘排行榜", "我的硬盘", DID];
  2259. // break;
  2260. // case US.PG: //相册文件
  2261. // T = 2;
  2262. // _UDKR = _UDK.getElementsByTagName("div")["UDK_DI_RT_NR1"];
  2263. // _UDKL = _UDK.getElementsByTagName("div")["UDK_DI_LT1"];
  2264. // _UDSW = ["block", "block", "none", "block", "none", "block", "none", "block", "none", "block", "none", "block", "none", "none", "block", "none", "none", "UDK_DI UDK_DI_TB_PT", "相册排行榜", "我的相册", DID];
  2265. // break;
  2266. // case US.MG: //音乐文件
  2267. // T = 3;
  2268. // _UDKR = _UDK.getElementsByTagName("div")["UDK_DI_RT_NR2"];
  2269. // _UDKL = _UDK.getElementsByTagName("div")["UDK_DI_LT2"];
  2270. // _UDSW = ["block", "block", "none", "none", "block", "block", "none", "none", "block", "block", "none", "none", "block", "none", "none", "block", "none", "UDK_DI UDK_DI_TB_MU", "音乐排行榜", "我的音乐", DID];
  2271. // break;
  2272. // case US.VG: //视频文件
  2273. // alert("努力实现中......"); return;
  2274. // break;
  2275. // default: //搜索
  2276. // DID = US.DG;
  2277. // _UDSW = ["block", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "block", "UDK_DI UDK_DI_TB_SC", "搜索内容", "我的硬盘", DID];
  2278. // break;
  2279. // }
  2280. // U.Dk.DI.UDK_DIDisplay(_UDSW, _UDK); //切换
  2281. // if (US.Disk.DiskDaren[DID] == null) { U.A.Request(US.Auth,"UseStudioDisk.GetMostUserFiles", [T, ST, ST + 30]), U.Dk.DiskDoyenAnsy, [_UDKR, DID, SO]; } //如果没有值
  2282. // else { if (US.Disk.DiskDaren[DID].length - 1 < ST) { U.A.Request(US.Auth,"UseStudioDisk.GetMostUserFiles", [T, ST, ST + 30]), U.Dk.DiskDoyenAnsy, [_UDKR, DID, SO]; } } //如果还需要加载
  2283. // if (US.Disk.NewestFiles[DID] == null) { U.A.Request(US.Auth,"UseStudioDisk.GetNewUserFiles", [T], U.Dk.GetNewDiskFile, [_UDKL, DID]); } //如果没有最新
  2284. //}
  2285. ////切换实体,包含了很多可显示和不可显示的内容切换
  2286. //U.Dk.DI.UDK_DIDisplay = function (UDSW, UDK) {
  2287. // var _AGDK = UDK.getElementsByTagName("div");
  2288. // var _AUDK = ["UDK_DI_RT_MY", "UDK_DI_LT", "UDK_DI_LT0", "UDK_DI_LT1", "UDK_DI_LT2", "UDK_DI_RT_NR", "UDK_DI_RT_NR0", "UDK_DI_RT_NR1", "UDK_DI_RT_NR2", "UDK_DI_RT_IC", "UDK_DI_LT_GD0", "UDK_DI_LT_GD1", "UDK_DI_LT_GD2", "UDK_DI_LT_GD_N0", "UDK_DI_LT_GD_N1", "UDK_DI_LT_GD_N2", "UDK_N_Search", "UDK_DI_TB", "UDK_DI_MY_PT"]; //需要切换的元素
  2289. // for (var i = 1; i < 16; i++) { _AGDK[_AUDK[i]].style.display = UDSW[i]; }
  2290. // _AGDK[_AUDK[0]].innerHTML = UDSW[18];
  2291. // _AGDK[_AUDK[18]].innerHTML = UDSW[19];
  2292. // _AGDK[_AUDK[18]].onclick = U.M.apply(this, [[U.M.StopBubble], [U.Dk.DI.MyDisk, [UDSW[20]]]]);
  2293. // _AGDK[_AUDK[0]].parentNode.parentNode.style.display = UDSW[0];
  2294. //}
  2295. ////返回到我的首页
  2296. //U.Dk.DI.MyDisk = function (T) {
  2297. // if (U.U.L.isLogin() == false) { U.M.divdoubleClick("UseStudioUserDiskDiv", T, US.userInfo.userid); } //未登录弹出登录框,登录则返回到我的首页。
  2298. //}
  2299. ////--------------------------------------------------------------------------网盘数据---------------------------------------------------------------------------
  2300. ////获取网盘排行榜数据
  2301. //U.Dk.DiskDoyenAnsy = function (r) {
  2302. // var context = r.context; //异步传值
  2303. // r = r.value; //服务器传值
  2304. // if (r) {
  2305. // if (r.length == 0) { alert("已经是最后一页了"); if (context[2]) { context[2].onclick = U.M.apply(this, "alert('已经是最后一页了')"); } } //没有数据就修改onclick事件
  2306. // U.Dk.M.ufinfoarray("AddCS", [context[1], r]); //添加云查看值
  2307. // U.Dk.DiskDoyen(r, context[0], context[1]); //打印值
  2308. // }
  2309. //}
  2310. ////加载内容
  2311. //U.Dk.DiskDoyen = function (UDS, UDLR, DID) {
  2312. // var _UDXK, _UDNR, _UDNP;
  2313. // switch (DID) {
  2314. // case US.DG: _UDXK = ["UDK_DI_RT_DI", "UDK_DI_RT_DI_IMG"]; break;
  2315. // case US.PG: _UDXK = ["UDK_DI_RT_PT", "UDK_DI_RT_PT_IMG"]; break;
  2316. // case US.MG: _UDXK = ["UDK_DI_RT_MU", "UDK_DI_RT_MU_IMG"]; break;
  2317. // case US.VG: _UDXK = ["UDK_DI_RT_PT", "UDK_DI_RT_PT_IMG"]; break;
  2318. // default: break;
  2319. // }
  2320. // for (var i = 0; i < UDS.length; i++) {
  2321. // _UDNR = $$("div", { "className": "UDK_DI_RT_ZT", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", DID, UDS[i].UserID]]] }, UDLR);
  2322. // _UDNP = $$("div", { "className": _UDXK[0] }, _UDNR);
  2323. // $$("img", { "className": _UDXK[1], "src": US.fs + UDS[i].UserImageHead, "alt": "点击", "onerror": U.M.ImgError }, _UDNP); //此处有问题,怎么是全图,不是缩略图。追查发现有些头像没有缩略图,这个问题要解决。
  2324. // $$("div", { "className": "UDK_DI_RT_WB", "innerHTML": UDS[i].UserName }, _UDNR);
  2325. // }
  2326. // UDLR.scrollTop = UDLR.scrollHeight - UDLR.scrollHeight; //将滚动条置到最底部
  2327. //}
  2328. ////-------------------------------------------------------------------------最新上传----------------------------------------------------------------------------
  2329. ////获取最新文件数据
  2330. //U.Dk.GetNewDiskFile = function (r) {
  2331. // var context = r.context;
  2332. // r = r.value;
  2333. // if (r) {
  2334. // U.Dk.M.ufinfoarray("AddNCS", [context[1], r]); //添加云查看值
  2335. // U.Dk.NewFileAdd(r, context[0], context[1], 0); //打印数据
  2336. // }
  2337. //}
  2338. ////加载内容 (Json数据,添加内容的标签,循环起始长度)
  2339. //U.Dk.NewFileAdd = function (UDS, UDLR, DID, L) {
  2340. // var _LN, _UDOD, _UDUL, _UDOL, _UDTL;
  2341. // if (L >= UDS.length) { alert("最后一页"); return; }
  2342. // switch (DID) {
  2343. // case US.DG: _LN = [20, "文件"]; break;
  2344. // case US.PG: _LN = [20, "图片"]; break;
  2345. // case US.MG: _LN = [20, "音乐"]; break;
  2346. // case US.VG: break;
  2347. // default: break;
  2348. // }
  2349. // for (var i = L; i < L + _LN[0]; i++) {
  2350. // if (!UDS[i]) { break; }
  2351. // _UDOD = $$("div", { "className": "UDK_DI_LT_NR" }, UDLR);
  2352. // _UDUL = $$("ul", {}, _UDOD);
  2353. // _UDOL = $$("li", { "title": UDS[i].UserName + " 上传了 " + UDS[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", DID, UDS[i].UserID]]] }, _UDUL);
  2354. // $$("p", { "className": "UDK_DI_LT_NR_a UDK_DI_LT_NR_Div", "innerHTML": UDS[i].UserName }, _UDOL);
  2355. // $$("p", { "innerHTML": "上传了" + _LN[1], "className": "UDK_DI_LT_NR_Div" }, _UDOL);
  2356. // $$("i", { "innerHTML": "(" + U.MT.formatDateToArray(UDS[i].UserFilesAddTime) + ")" }, _UDOL);
  2357. // switch (DID) {
  2358. // case US.DG:
  2359. // _UDTL = $$("li", { "title": "点击下载 " + UDS[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.Dk.RE.ODL, [UDS[i].UserFilesServerName, UDS[i].UserFilesName]]] }, _UDUL);
  2360. // $$("div", { "className": "UDK_DI UDK_DI_LT_TB_FL" }, _UDTL);
  2361. // $$("span", { "innerHTML": UDS[i].UserFilesName }, _UDTL);
  2362. // break;
  2363. // case US.PG:
  2364. // _UDTL = $$("li", { "title": "点击查看 " + UDS[i].UserFilesName, "style": { "height": "75px", "width": "75px" }, "className": "UDK_DI_LT_NR_Info" }, _UDUL);
  2365. // $$("img", { "src": US.fs + UDS[i].UseFilesServerThumbnailName, "alt": UDS[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.Img.Create, ([{ 'Img': US.fs + UDS[i].UserFilesServerName, 'Thm': US.fs + UDS[i].UseFilesServerThumbnailName}])]], "onerror": U.M.apply(this, [["U.M.ImgError", ["this", 1]]]) }, _UDTL);
  2366. // break;
  2367. // case US.MG:
  2368. // UDS[i].UserallDirectoryName = UDS[i].UserFilesName;
  2369. // var _MF = U.Dk.M.ufinfoarray("spliceMusic", [[UDS[i]], "最新歌曲"]); //拼接音乐目录
  2370. // var _UDTL = $$("li", { "title": "点击试听 " + UDS[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.Dk.S.LM, [_MF]]] }, _UDUL);
  2371. // $$("div", { "className": "UDK_DI UDK_DI_LT_TB_MU" }, _UDTL);
  2372. // $$("span", { "innerHTML": UDS[i].UserFilesName }, _UDTL);
  2373. // break;
  2374. // case US.VG: break;
  2375. // default: break;
  2376. // }
  2377. // }
  2378. // UDLR.length = i; //显示的数量
  2379. // UDLR.scrollTop = UDLR.scrollHeight - UDLR.scrollHeight; //将滚动条置到最底部
  2380. //}
  2381. //
  2382. //云查询添加数据
  2383. //U.Dk.M.AddCS = function (term) {
  2384. // if (US.Disk.DiskDaren[term[0]] == null) { US.Disk.DiskDaren[term[0]] = []; }
  2385. // US.Disk.DiskDaren[term[0]] = US.Disk.DiskDaren[term[0]].concat(term[1]);
  2386. //}
  2387. //云查询最新添加数据
  2388. //U.Dk.M.AddNCS = function (term) {
  2389. // if (US.Disk.NewestFiles[term[0]] == null) { US.Disk.NewestFiles[term[0]] = []; }
  2390. // US.Disk.NewestFiles[term[0]] = US.Disk.NewestFiles[term[0]].concat(term[1]);
  2391. //}
  2392. //--------------------------------------------------------------------------------------辅助型函数-------------------------------------------------------------
  2393. //显示搜索隐藏其他
  2394. U.Dk.DSFNF = function (SO) {
  2395. for (var i = 0; i < SO.parentNode.childNodes.length; i++) { if (SO.parentNode.childNodes[i].nodeType != 3) { SO.parentNode.childNodes[i].style.display = "none"; } }
  2396. SO.style.display = "block";
  2397. }
  2398. //控制文件的伸展和收缩
  2399. U.Dk.displayfile = function (SO) {
  2400. var _OD = $("div", SO)[0]; //伸张div
  2401. _OD.className = _OD.className == "UDK_P_OS UR_I_D_E UDK_N_D_Icon" ? "UDK_P_OS UR_I_D_S UDK_N_D_Icon" : "UDK_P_OS UR_I_D_E UDK_N_D_Icon"; //伸张样式
  2402. var _OS = $("span", SO.parentNode)[0]; //子元素的
  2403. if (_OS.style.display == "none") { _OS.style.display = "block"; }
  2404. else { _OS.style.display = "none"; }
  2405. }
  2406. //用户右键的权限
  2407. U.Dk.HP.EBB = function () {
  2408. var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("P", _UGE[3]), _UDE = ["UDK_R_addFolderButton", "UDK_R_addTxtButton", "UDK_R_addWordButton", "UDK_R_addXlsButton", "UDK_R_addPPTButton", "UDK_R_encryptwindow", "UDK_R_divDeleteButton", "UDK_R_divModifyButton", "UDK_LR_S"];
  2409. _UGE[3].onclick = _UGE[3].onmousedown = U.M.apply(this, [[U.Dk.RM.DRC, (["this", 'add', _UGE[0].UserId])]]);
  2410. for (i = 0; i < _UDE.length; i++) { _UDP[_TF[i]].parentNode.style.display = "none"; }
  2411. // var i, _UDP = US.Disk.UserDisk[1][3].getElementsByTagName("p"), _TF = ["UDK_R_addFolderButton", "UDK_R_addTxtButton", "UDK_R_addWordButton", "UDK_R_addXlsButton", "UDK_R_addPPTButton", "UDK_R_encryptwindow", "UDK_R_divDeleteButton", "UDK_R_divModifyButton", "UDK_LR_S"];
  2412. // US.Disk.UserDisk[1][3].onclick = US.Disk.UserDisk[1][3].onmousedown = U.M.apply(this, [[U.Dk.RM.DRC, (["this", 'add', US.Disk.UserDisk[1][0].UserId])]]);
  2413. // for (i = 0; i < _TF.length; i++) { _UDP[_TF[i]].parentNode.style.display = "none"; }
  2414. }
  2415. //判断文件类型(看用那些图片)
  2416. U.Dk.HP.FTI = function (FT) {
  2417. switch (FT) {
  2418. case "doc": return "background-position:-155px -41px";
  2419. case "ppt": return "background-position:-227px -41px";
  2420. case "folderencrypt": return "background-position:-660px -40px;";
  2421. case "wmv": return "background-position:314px -162px";
  2422. case "video": return "background-position:-503px -41px";
  2423. case "xls": return "background-position:-297px -41px";
  2424. case "mp3": return "background-position:-438px -41px";
  2425. case "rar": return "background-position:-368px -41px";
  2426. case "zip": return "background-position:-368px -41px";
  2427. case "txt": return "background-position:-84px -41px";
  2428. case "folder": return "background-position:-6px -41px;";
  2429. default: return "background-position:-578px -41px; ";
  2430. }
  2431. }
  2432. ////文件文件夹功能展示
  2433. //U.Dk.HP.FunD = function (SO) {
  2434. // var i, _UDK = U.M.GTPN(SO, "UDK_M_alreadylogin"), _UDKF = $("div#UDK_FF", _UDK)[0], _UDAD = $("div", _UDKF), _AT = [[0, 48], [-5, 0], [-33, 94], [-18, 2], [-47, 95]], _E = U.M.GetElementInfo(SO), _SE = U.M.pageXY(_UDK);
  2435. // U.Dk.HP.FunDN(_UDKF); //展示的消失
  2436. // $(_UDKF).addAttrArray({ "style": { "display": "block", "left": (_E["TX"] - _SE[1] - _UDK.scrollLeft - 82) + "px", "top": (_E["TY"] - _SE[0] - _UDK.scrollTop - 27) + "px"} });
  2437. // for (i = 0; i < _UDAD.length; i++) { $(_UDAD[i]).animate({ "top": _AT[i][0] + "px", "left": _AT[i][1] + "px" }, 100) } //变化
  2438. //}
  2439. ////功能展示消失
  2440. //U.Dk.HP.FunDN = function (UDKF) {
  2441. // UDKF.style.display = "none";
  2442. // $("div", UDKF).addAttrArray({ "style": { "left": "", "top": ""} });
  2443. //}
  2444. //U.Dk.M.Daren = function (name, term) {
  2445. // switch (name) {
  2446. // // case "AddDaren": //添加云盘数据
  2447. // // U.Dk.M.AddDaren(term);
  2448. // // break;
  2449. // case "AddPND": //添加好友最新动态
  2450. // U.Dk.M.AddPND(term);
  2451. // break;
  2452. // case "STopD": //排行榜的切换
  2453. // return U.Dk.M.STopD(term);
  2454. // break;
  2455. // case "GetPND": //获取最新动态
  2456. // return U.Dk.M.GetPND(term);
  2457. // break;
  2458. // }
  2459. //}
  2460. ////初始化网盘首页数据
  2461. //U.Dk.M.AddDaren = function (term) {
  2462. // US.Disk.DiskDaren["HF"] = term[0];
  2463. // US.Disk.DiskDaren["TF"] = term[2];
  2464. //}
  2465. ////排行榜切换
  2466. //U.Dk.M.STopD = function (term) {
  2467. // var i, TP = [], _UDD = US.Disk.DiskDaren["TF"];
  2468. // for (i = 0; i < _UDD.length; i++) {
  2469. // if (_UDD[i]["T"] == term) { TP.push(_UDD[i]); }
  2470. // if (TP.length == 10) { break; }
  2471. // }
  2472. // return TP;
  2473. //}
  2474. //--------------------------------------------------------disk导航条的增删查该-----------------------------------------------------------
  2475. //U.Dk.M.Nav = function (name, term) {//term这个最终传过来是个集合
  2476. // switch (name) {
  2477. // case "add": //添加
  2478. // U.Dk.M.AddNav();
  2479. // break;
  2480. // case "islength": //导航长度变化导航
  2481. // U.Dk.M.IsNav();
  2482. // break;
  2483. // case "change": //修改导航
  2484. // U.Dk.M.navchange(term);
  2485. // break;
  2486. // }
  2487. //}
  2488. ////添加导航
  2489. //U.Dk.M.AddNav = function (term) {
  2490. //}
  2491. ////判断添加的长度是否太长
  2492. //U.Dk.M.IsNav = function () {
  2493. // var i, _a, j, _ArNa = $("div#UDK_N_ArticleNav", US.Disk.UserDisk[1][3])[0], _p = Math.round(_ArNa.parentNode.parentNode.parentNode.offsetWidth / 9), _s = _ArNa.getElementsByTagName("span"), _l = _ArNa.offsetWidth;
  2494. // i = j = 0; _a = 10;
  2495. // for (i = j; i < _s.length; i++) {
  2496. // _s[i].style.display = "block"; //先让每个现实
  2497. // _a += _s[i].innerText.length + 5;
  2498. // if (_a > _p) {//大于了之后才冲第一个开始隐藏;
  2499. // _s[j].style.display = "none";
  2500. // _a -= (_s[j].innerText.length + 5);
  2501. // j++;
  2502. // }
  2503. // }
  2504. //}
  2505. ////传入级数检查是否有比此级数小的SPAN,如果有,将其删除
  2506. //U.Dk.M.navchange = function (Deep) {
  2507. // var i;
  2508. // var _ArNa = $("div#UDK_N_ArticleNav", US.Disk.UserDisk[1][3])[0];
  2509. // var ANavC = $("span", _ArNa)[0];
  2510. // for (i = Deep; i <= ANavC.length; ) {
  2511. // Deepid = ANavC[i];
  2512. // if (Deepid != null) {
  2513. // _ArNa.removeChild(Deepid);
  2514. // }
  2515. // else
  2516. // return;
  2517. // }
  2518. //}
  2519. //--------------------------------------------------------------disk目录和文件的增删查该---------------------------------------------------------
  2520. //Disk文件和文件夹的操作
  2521. U.Dk.M.ufinfoarray = function (name, term) {//term这个最终传过来是个集合
  2522. // switch (name) {
  2523. // // case "onefind": //查找一个
  2524. // // return U.Dk.M.onefindfile(term);
  2525. // // break;
  2526. // // case "Distinguish": //传进目录里的文件区分文件和文件夹
  2527. // // return U.Dk.M.Distinguish(term);
  2528. // // break;
  2529. // // case "RecurD": //递归获取导航
  2530. // // return U.Dk.M.RecurD(term);
  2531. // // break;
  2532. // // case "SFF": //关键之搜索
  2533. // // return U.Dk.M.SFF(term);
  2534. // // break;
  2535. // // case "AddCS": //获取云查看的数据
  2536. // // U.Dk.M.AddCS(term);
  2537. // // break;
  2538. // // case "AddNCS": //添加云查看数据
  2539. // // U.Dk.M.AddNCS(term);
  2540. // // break;
  2541. // // case "spliceMusic": //拼接音乐json
  2542. // // return U.Dk.M.MusicJson(term);
  2543. // // break;
  2544. // // case "spliceimg": //拼接音乐json
  2545. // // return U.Dk.M.ImgJson(term);
  2546. // // break;
  2547. // // case "AllMusic": //获取所有的音乐
  2548. // // return U.Dk.M.AllMusic();
  2549. // // case "GetMusic": //获取音乐实体
  2550. // // return U.Dk.M.GetMusic(term);
  2551. // // break;
  2552. // // case "TFFM":
  2553. // // return U.Dk.M.TFFM(term);
  2554. // // break;
  2555. // // case "GetFBT": //获取指定的类型文件
  2556. // // return U.Dk.M.GetFBT(term);
  2557. // // break;
  2558. // // case "GDBFM": //获取最近打开的文件
  2559. // // return U.Dk.M.GDBFM(term);
  2560. // // break;
  2561. // case "PDQX": //获取是否有权限
  2562. // return U.Dk.M.PDQX(term);
  2563. // break;
  2564. // }
  2565. // if (US.userInfo.userid == null) { return; } //无权限操作下面的
  2566. // U.Dk.DiskOperatingSwitch(US.userInfo.userid); //修改的是用户本人的资料 这个换回自己的资料
  2567. // switch (name) {
  2568. // case "add": //添加文件或者文件夹
  2569. // U.Dk.M.addfindfile(term);
  2570. // break;
  2571. // case "delete": //删除文件或者文件夹
  2572. // U.Dk.M.deletefriend(term);
  2573. // break;
  2574. // case "IsSName": //判断该文件夹下是否有修改或者创建的该文件
  2575. // return U.Dk.M.IsSName(term);
  2576. // break;
  2577. // }
  2578. }
  2579. ////这个是搜索目录文件
  2580. //U.Dk.M.findfile = function (term) {
  2581. // term[0] = term[0].toLowerCase();
  2582. // var _diskfileTree = US.Disk.UserDisk[0];
  2583. // var i, str = [];
  2584. // if (term[1] == null) {//因为js判断是否是空的时候
  2585. // for (i = 0, j = 0; i < _diskfileTree.length; i++) {
  2586. // if (_diskfileTree[i].UserDirectoryParentID == term[0]) //获取目录的父亲ID与传入的ID相同的目录信息
  2587. // str.push(_diskfileTree[i]);
  2588. // }
  2589. // }
  2590. // else {
  2591. // for (i = 0; i < _diskfileTree.length; i++) {
  2592. // if (_diskfileTree[i].UserDirectoryParentID == term[0]) { //获取目录的父亲ID与传入的ID相同的目录信息
  2593. // if (_diskfileTree[i].filetype == term[1])//0是目录文件 1是文件文件
  2594. // str.push(_diskfileTree[i]);
  2595. // }
  2596. // }
  2597. // }
  2598. // return str;
  2599. //}
  2600. //查找一个
  2601. //U.Dk.M.onefindfile = function (term) {//这里是搜索一个 文件目录单一的搜索
  2602. // var _diskfileTree = US.Disk.UserDisk[0]; //这个是用户文件目录树
  2603. // for (var i = 0, j = 0; i < _diskfileTree.length; i++) {
  2604. // if (_diskfileTree[i].UserDirectoryID == term) {//获取目录的父亲ID与传入的ID相同的目录信息
  2605. // return _diskfileTree[i];
  2606. // }
  2607. // }
  2608. //}
  2609. //根据类型获取
  2610. //U.Dk.M.GetFBT = function (term) {
  2611. // var i, _UEL = [], _UDE = US.Disk.UserDisk; (typeof term != "object") && (term = [term, null]);
  2612. // if (_UDE && (_UDE = _UDE[0])) {
  2613. // for (i = 0; i < _UDE.length; i++) {
  2614. // if (_UDE[i].UserDirectoryExtendType.toLocaleLowerCase() == (term[0] || term) && (term[1] == null || _UDE[i].UserDirectoryParentID == term[1])) {
  2615. // _UEL.push(_UDE[i]);
  2616. // }
  2617. // }
  2618. // }
  2619. // return _UEL;
  2620. //}
  2621. //判断文件夹下是否要同名的
  2622. //U.Dk.M.IsSName = function (term) {
  2623. // var i, _dirjson = term[0];
  2624. // for (i = 0; i < _dirjson.length; i++) {
  2625. // if (_dirjson[i].UserallDirectoryName == term[1] && _dirjson[i].UserDirectoryExtendType == term[2]) return false;
  2626. // }
  2627. // return true;
  2628. //}
  2629. //递归的查找
  2630. //U.Dk.M.RecurD = function (term) {
  2631. // var _A = [], _At = [];
  2632. // var _L = US.Disk.UserDisk[0];
  2633. // for (var i = 0; i < _L.length; i++) {
  2634. // if (_L[i].UserDirectoryID == term) {
  2635. // _A.push(_L[i]);
  2636. // if (_L[i].UserDirectoryDeep == 1) return _A;
  2637. // _At = U.Dk.M.RecurD(_L[i].UserDirectoryParentID);
  2638. // return _A.concat(_At);
  2639. // }
  2640. // }
  2641. // return [];
  2642. //}
  2643. //添加目录
  2644. //U.Dk.M.addfindfile = function (term) {//这里添加文件或者目录 term传进来是一个数据
  2645. // var _T = term.length != null ? term : [term];
  2646. // for (var i = 0; i < _T.length; i++) { U.Dk.M.RUS(_T[i]); }
  2647. // US.Disk.UserDisk[0] = US.Disk.UserDisk[0].concat(_T);
  2648. //}
  2649. ////删除文件
  2650. //U.Dk.M.deletefindfile = function (term) {//这里删除文件或者目录 term是UserDirectoryID这个id文件唯一的id
  2651. // var _diskfileTree = US.Disk.UserDisk[0];
  2652. // for (var i = 0; i < _diskfileTree.length; i++) {
  2653. // if (_diskfileTree[i].UserDirectoryID == term) {
  2654. // return (_diskfileTree.splice(i, 1));
  2655. // }
  2656. // }
  2657. //}
  2658. //模糊搜索disk文件或者文件夹
  2659. //U.Dk.M.SFF = function (term) {
  2660. // var _A = [];
  2661. // var _L = US.Disk.UserDisk[0];
  2662. // for (var i = 0; i < _L.length; i++) {
  2663. // if ((_L[i].UserallDirectoryName.indexOf(term) > -1 || (_L[i].Descript != null && _L[i].Descript.indexOf(term) > -1)) && (_L[i].Descript != "" && _L[i].UserallDirectoryName != "")) {
  2664. // _A.push(_L[i]);
  2665. // }
  2666. // }
  2667. // return _A;
  2668. //}
  2669. //传进一个文件夹的数据 分成文件类和文件夹类
  2670. //U.Dk.M.Distinguish = function (term) {
  2671. // var i, _l = [], _s = [], _g = [];
  2672. // for (i = 0; i < term.length; i++) {
  2673. // if (term[i].filetype == 0) { _s.push(term[i]); }
  2674. // else { if (term[i].UserDirectoryExtendType == "mp3") { _g.push(term[i]); } }
  2675. // }
  2676. // _l.push(_s);
  2677. // _l.push(_g);
  2678. // return _l; //返回的数据 0是目录文件 1是文件文件
  2679. //}
  2680. //// 获取用户所有的音乐文件
  2681. //U.Dk.M.AllMusic = function () {
  2682. // return U.Dk.M.GetFBT("mp3");
  2683. //}
  2684. ////递归获取所有的文件
  2685. //U.Dk.M.GetMusic = function (term) {
  2686. // var _UAM, _F, _SW = [];
  2687. // _SW[0] = [], _SW[1] = [];
  2688. // _UAM = U.Dk.M.ufinfoarray("find", [term.UserDirectoryID]);
  2689. // _F = U.Dk.M.ufinfoarray("Distinguish", _UAM); //分类 0是目录文件夹 1是目录文件
  2690. // _SW[0] = [term, _F[1]];
  2691. // for (var i = 0; i < _F[0].length; i++) { _SW[1][i] = []; _SW[1][i] = U.Dk.M.GetMusic(_F[0][i]); }
  2692. // return _SW;
  2693. //}
  2694. //拼接图片
  2695. //U.Dk.M.ImgJson = function (UDE) {
  2696. // var i;
  2697. // for (i = 0; i < UDE.length; i++) {
  2698. // }
  2699. // // var _t = [], _l = {};
  2700. // // var k;
  2701. // // for (var i = 0; i < term[0].length; i++) {
  2702. // // if (term[0][i].UserDirectoryID == term[1]) k = i;
  2703. // // _l["Thm"] = term[0][i].UserDirectoryUrl.replace("background-image:url(", "").replace(");", "");
  2704. // // _l["Img"] = US.fs + term[0][i].UserFilesServerName;
  2705. // // _l["FilesID"] = term[1];
  2706. // // _t.push(_l);
  2707. // // _l = {};
  2708. // // }
  2709. // // return [_t, k];
  2710. //}
  2711. //UserDirectoryAddTime
  2712. //使用排序法(冒泡排序法)进行时间排序
  2713. //U.Dk.M.seqencing = function (Json) {
  2714. // U.M.Sequence(Json, "UserDirectoryAddTime", U.MT.SizeComparison); //冒泡排序法
  2715. // return Json;
  2716. //}
  2717. //判断文件或者文件夹是否有删除的权限
  2718. //U.Dk.M.TFFM = function (term) {
  2719. // var i, _UDND = US.Disk.UserDisk[1][0].UserDiskND;
  2720. // for (i = 0; i < _UDND.length; i++) {
  2721. // if (term == _UDND[i]) { return true; }
  2722. // }
  2723. // return false;
  2724. //}
  2725. //#region
  2726. // var i, _UAE, _UCE, _UME = [], _UGE = US.Disk.UserDisk[0]; (!UDE.UserDirectoryID) && (UDE = _$(_UGE).Select({ "UserDirectoryID": UDE })[0]); UDE = [UDE] //选取制定的
  2727. // for (i = 0; i < UDE.length; i++) {
  2728. // _UCE = _$(_UGE).Select({ "UserDirectoryParentID": UDE[i]["UserDirectoryID"] }); //获取所有的文件和文件夹
  2729. // _UAE = [_$(_UCE).Select({ "filetype": 0 }), _$(_UCE).Select({ "filetype": 1 })]; UDE = UDE.concat(_UAE[0]);
  2730. // _UME.push[UDE[i], _UAE[0], _UAE[1]]
  2731. // }
  2732. // return _UME;
  2733. //#endregion
  2734. ////网盘资料异步
  2735. //U.Dk.AsynGF = function (r) {
  2736. // var context = r.context,
  2737. // _UDE = context[1],
  2738. // _UDID = context[2],
  2739. // _userid = context[3],
  2740. // _UAF = context[4],
  2741. // _UGE = context[5];
  2742. // _UGE[1].uid = _userid;
  2743. // r = r.value;
  2744. // U.Dk.SGBL(_userid, _UGE);
  2745. // _UGE[0] = _UGE[0].concat(r);
  2746. // U.Dk.M.refreshfile(_UDID, r, _UGE);
  2747. // U.Dk.DiskLoad(_userid, _UDID, _UDE, _UAF); //生成群变量
  2748. //}
  2749. //#region 登录用户网盘查看
  2750. //首页网盘切换
  2751. U.Dk.DI.SYWPQH = function (UDOD, ITF) {
  2752. return U.U.L.SYDLHD(U.M.apply(this, [[U.D.DT.YYDK, (["Disk", { "userid": US.userInfo.userid, "directoryid": ITF == 1 ? 1 : 2 }])]]));
  2753. }
  2754. //个人网盘内容分页查看
  2755. U.Dk.DI.GRWPQHJ = function (UDOD, UP) {
  2756. var _UDE,
  2757. _userid = US.userInfo.userid,
  2758. _UGE = U.Dk.DiskOperatingSwitch(_userid);
  2759. (UP == 1) && (UDOD.innerText = "");
  2760. if (_UGE) {//打印资料
  2761. U.Dk.DiskLoad(_userid);
  2762. _UDE = _UGE[3]["file"];
  2763. _UDE = _UDE.length ? U.D.T.FYGBL([null, _UDE], UP, [60, _UDE.length > 60 ? _UDE.length : 60]) : null; //获取数据
  2764. if (_UDE) {
  2765. if (_UDE[0].length) {
  2766. setTimeout(U.M.apply(this, [[U.Dk.DI.DiskSYN, [UDOD, _UDE[0]]]])); return;
  2767. }
  2768. }
  2769. else if (UP == 1) {
  2770. U.Dk.VW.XWPDYXK(UDOD, { "className": "UD_SYWRZFO", "onclick": [[U.D.DT.YYDK, ["Disk", { "userid": US.userInfo.userid, "directoryid": US.FG }]], [U.Dk.UP.XWPOP, [US.userInfo.userid]]] });
  2771. }; //打印数据
  2772. }
  2773. else {
  2774. U.Dk.DiskLoad(_userid, "", null, U.M.apply(this, [[U.Dk.DI.GRWPQHJ, [UDOD, UP]]]), [UDOD, true]);
  2775. } //获取查看用户网盘的数据
  2776. }
  2777. //#endregion
  2778. U.Dk.LTWP = function (UDID, UDE) {
  2779. //U.Dk.DiskLoad(UDE["UserDirectoryID"], UDID, UDE); //初始化网盘资料
  2780. //如果用户id不等于guid同时userid又存在的话,那么通过用户名去获取用户的id
  2781. // if (userid && userid.length != 36) {
  2782. // userid = U.Dk.getUserDiskByName(userid)["UserId"] || userid;
  2783. // }
  2784. //变量定义
  2785. var _fileinfo, //文件信息
  2786. _diskcontentdiv, //disk操作内容区域的元素
  2787. _diskdiv, //disk整体元素
  2788. _dirid = dirid, //目录id
  2789. _loginuserid = US.userInfo.userid || US.NU, //当前使用用户id
  2790. _diskinfo = U.Dk.DiskOperatingSwitch(userid); //获取网盘信息
  2791. //获取网盘弹框
  2792. if (_diskinfo && _diskinfo.pdiv) {
  2793. _diskdiv = _diskinfo.pdiv;
  2794. }
  2795. else {
  2796. _diskdiv = $((obj ? "#UD_SYWO_" : "#UD_SYW_") + userid)[0];
  2797. if (_diskinfo) {
  2798. _diskinfo.pdiv = _diskdiv
  2799. }
  2800. }
  2801. //获取网盘右边的内容区域
  2802. _diskcontentdiv = $("#" + (obj ? "UD_SYWOCRC" : "UD_SYWT"), _diskdiv)[0]; //获取元素内容区域
  2803. /*
  2804. //获取目录id
  2805. if (dirid == null || dirid.toString().length != 32) { //如果传入的目录id不为guid
  2806. if (_diskinfo && _diskinfo[1] && _diskinfo[1][1]) { //判断是否已经加载成功网盘数据了,如果成功就获取当前网盘打开的目录
  2807. _dirid = _diskinfo[1][1];
  2808. }
  2809. else {
  2810. _dirid = US.FG;
  2811. }
  2812. }
  2813. else {
  2814. _dirid = dirid;
  2815. }
  2816. dirid = _dirid;
  2817. */
  2818. if (userid || (!U.U.L.isLogin(3))) { //查看他人的文件,如果是在本地想打开自己的网盘必须先登录
  2819. // 网盘数据为空的时候获取网盘的数据
  2820. if (_diskinfo == null) { //网盘信息不存在,则加载网盘资料
  2821. U.Dk.GetUserDisk(userid, dirid, _diskdiv, _diskcontentdiv, obj); //加载网盘
  2822. }
  2823. //如果 不为空的话加载显示该网盘
  2824. else if (_diskinfo[0] && _diskinfo.pdiv) { //判断数据是否存在 && (!_selectElement || _selectElement == userid)
  2825. (obj ? U.Dk.PbSize : U.Dk.Size)(_diskdiv); //大小设置
  2826. if (obj) { //初始化pb网盘 不理
  2827. _diskinfo[2] = obj;
  2828. U.Dk.LTWPDH(obj, _diskinfo);
  2829. U.Dk.SYWPBJYH(_diskinfo[0].slice(5), $("#UD_SYWOCLDU", _diskinfo.pdiv)[0]);
  2830. }
  2831. else { //初始化个人网盘
  2832. _diskcontentdiv = $("#UD_SYWLTX", _diskinfo.pdiv)[0]; //清空头部导航栏
  2833. _diskcontentdiv.innerText = "";
  2834. U.Dk.LL.XWPDH(_diskinfo[0].slice(0, 6), null, ["UD_SYWLCS", "UD_SYWLCF", "UD_SYWLCB", "UD_SYWLCT", "UD_SYWLCY", "UD_SYWLCP"], _diskcontentdiv, userid)
  2835. // .style.display = "block";
  2836. U.Dk.CSHYHWP(_diskinfo);
  2837. _diskcontentdiv = $("#UD_SYWRZ", _diskinfo.pdiv)[0];
  2838. }
  2839. (dirid.length == 36) && (dirid = _diskinfo[0].indexOf(dirid, "UserDirectoryID"));
  2840. dirid = dirid < 0 ? _dirid : dirid;
  2841. if (U.Ut.isString(_dirid) && (dirid == -1 || dirid > 5)) { //指定目录到达
  2842. _fileinfo = _diskinfo[4][_dirid];
  2843. //如果为文件使用出发处理
  2844. if (_fileinfo.filetype) {
  2845. U.Dk.LE.RecordNav([[U.Dk.LE.OpenFileDirectory, [_diskinfo[4][_fileinfo.UserDirectoryParentID], _diskcontentdiv, null, userid]]], null, userid); //目录指引到指定的位置
  2846. U.Dk.LE.OpenFileDirectory(_diskinfo[4][_dirid], _diskcontentdiv, null, userid); //文件查看处理
  2847. }
  2848. //文件夹处理
  2849. else {
  2850. U.Dk.LE.RecordNav([[U.Dk.LE.OpenFileDirectory, [_diskinfo[4][_dirid], _diskcontentdiv, null, userid]]], null, userid);
  2851. }
  2852. }
  2853. else if (Guid.isGuid(dirid) || Guid.isGuid(_dirid)) { //指引到达网盘信息
  2854. U.Dk.LE.RecordNav[[U.Dk.LE.OpenFileDirectory, ([_$(_diskinfo[0].Select({ "UserDirectoryParentID": _dirid }), _diskcontentdiv, { UserDirectoryID: _dirid }, userid])]]);
  2855. }
  2856. else { //导航目录点击
  2857. _fileinfo = _diskinfo[2] ? ["UD_SYWOC", dirid < 0 ? 0 : dirid - 1] : ["UD_SYWLTXO", dirid < 0 ? 1 : dirid];
  2858. if (_fileinfo[0] == "UD_SYWOC") {
  2859. _fileinfo[0] = $("#" + _fileinfo[0], _diskinfo.pdiv).Child()[_fileinfo[1]].onclick();
  2860. }
  2861. else {
  2862. _fileinfo[0] = $("#" + _fileinfo[0], _diskinfo.pdiv).childg()[_fileinfo[1]];
  2863. _fileinfo[0] = $(_fileinfo[0]).Child()[0].onclick();
  2864. }
  2865. }
  2866. }
  2867. }
  2868. }
  2869. //最新图片
  2870. U.Dk.DI.ZMWPZXYH = function (UDE, UDOD) {
  2871. UDOD = $(UDOD); var i, _UTF, _UDAD, _UDOD, _UDTD, _UDSD, _USE,
  2872. j = 0,
  2873. _UDFD = $$("frag"),
  2874. _UTP = U.UP.SFT("P"),
  2875. _UDPD = UDOD.Parent(),
  2876. _UW = _UDPD.offsetWidth,
  2877. _UH = _UDPD.offsetHeight,
  2878. _UAE = [_UH * 0.03, _UH * 0.12];
  2879. for (i = 0; i < _UAE.length; i++) {
  2880. _UAE[i] = Math.ceil(_UAE[i]);
  2881. }
  2882. for (i = 0; (i < UDE.length && j < 15); i++) {
  2883. if (_UTP.indexOf(UDE[i]["UserFilesExtendName"]) > -1) {
  2884. j++; _UDOD = $$("div", { "onclick": [[U.Dk.DI.ZMWPZXYHOC, ["this", UDE[i]]]] }, _UDFD);
  2885. _UDTD = $$("div", { "className": "UD_HCDPLOS" }, _UDOD);
  2886. _UDSD = $$("div", { "onclick": U.M.apply() }, _UDTD); U.D.SY.JZTPJS(U.M.GetImgU(UDE[i].UseFilesServerThumbnailName), _UDSD, UDE[i]);
  2887. _UDTD = $$("div", { "className": "UD_HCDPLOX" }, _UDOD);
  2888. _UDSD = $$("div", { "className": "UD_HCDPLOXL" }, _UDTD);
  2889. $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead), "alt": UDE[i].UserName, "title": UDE[i].UserName, "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [UDE[i].UserID]]] }, _UDSD);
  2890. _UDTD = $$("div", { "className": "UD_HCDPLOXR" }, _UDTD);
  2891. _UDSD = $$("div", { "className": "UD_HCDPLOXRS", "innerHTML": "来自 " }, _UDTD);
  2892. $$("span", { "innerHTML": UDE[i].UserName, "onclick": [[U.M.StopBubble], [U.U.L.SYDLHD, [U.M.apply(this, [[U.D.DT.YYDK, ["Disk", { "userid": UDE[i].UserID, "directoryid": UDE[i].UserDirectoryID }])]]]]] }, _UDSD);
  2893. $$("text", { "data": " 的分享" }, _UDSD);
  2894. }
  2895. }
  2896. if (j) {
  2897. _UDAD = $(_UDFD).Child(); UDOD.addAttrArray({ "style": { "width": ((j / 3) * 100).toFixed(2) + "%" } }).append(_UDFD); _UAE[2] = (108 / j).toFixed(2); _UAE[3] = (84 / j).toFixed(2); _UAE[4] = (6 / j).toFixed(2); for (i = 0; i < _UDAD.length; i++) { _UTF = i == 1; $(_UDAD[i]).addAttrArray({ "className": "UTransition UD_HCDPLO" + (_UTF ? " UD_HCDPLOO" : ""), "style": { "width": _UAE[_UTF ? 2 : 3] + "%", "paddingTop": _UAE[_UTF ? 0 : 1] + "px", "paddingLeft": _UAE[4] + "%" } }); }
  2898. _USE = U.ME.LBTP({ "e": UDOD[0], "i": 1, "af": U.Dk.DI.BHZX, "s": { "className": _UDAD[1].className, "style": { "cssText": _UDAD[1].style.cssText } }, "h": { "className": "UTransition UD_HCDPLO", "style": { "cssText": _UDAD[0].style.cssText } } });
  2899. _UDAD = $(_UDPD).parentg().childg()[0];
  2900. _UDAD = $(_UDAD).Child();
  2901. for (i = 0; i < _UDAD.length; i++) {
  2902. _UDAD[i].onclick = U.M.apply(_USE, [[_USE.click, [i * 2 - 1])]];
  2903. }
  2904. } else {
  2905. $(_UDPD).parentg().css("display", "none");
  2906. }
  2907. }
  2908. //disk的刷新树 就是把树里的文件固定好值
  2909. U.Dk.M.refreshfile = function () {
  2910. var i, _UMN, _UPID, _UDID,
  2911. _UWJ = 0,
  2912. _UCZ = 0,
  2913. _UGE = US.Disk.UserDisk, //当前用户网盘数据集合
  2914. _UDE = _UGE[0], //获取的网盘的数据
  2915. _UAE = {
  2916. "LID": [], //临时图片的数据
  2917. "BE": [], //用户头像
  2918. "UE": [] //背景图片
  2919. };
  2920. _UGE[3] = {
  2921. file: [],
  2922. folder: []
  2923. };
  2924. _UGE[4] = {};
  2925. for (i = 0; i < _UDE.length; i++) { //循环看有没有特殊文件
  2926. U.Dk.M.RUS(_UDE[i]);
  2927. _UPID = _UDE[i].UserDirectoryParentID;
  2928. _UWJ += _UDE[i].filetype;
  2929. _UCZ += _UDE[i].UserDirectorySize;
  2930. _UMN = _UDE[i].UserallDirectoryName;
  2931. _UDID = _UDE[i].UserDirectoryID; _UTP = "";
  2932. if (_UPID == US.PG) { //图片文件夹特殊处理
  2933. switch (_UMN) {
  2934. case "用户头像": _UTP = "HID";
  2935. break;
  2936. case "背景图片": _UTP = "BID";
  2937. break;
  2938. case "临时图片": _UTP = "LID";
  2939. break;
  2940. }
  2941. if (_UTP) { if (_UTP == "LID") { _UAE[_UTP].push(_UDID); } else { _UAE[_UTP] = _UDID; } }
  2942. } //临时文件夹
  2943. else if (_UPID == US.DG && _UMN == "临时目录") { _UAE["LID"].push(_UDID); } //临时目录文件夹ID
  2944. _UGE[4][_UDE[i].UserDirectoryID] = _UDE[i];
  2945. }
  2946. for (i = 0; i < _UDE.length; i++) {
  2947. switch (_UDE[i].UserDirectoryParentID) {
  2948. case _UAE["HID"]: _UAE["BE"].push(_UDE[i]);
  2949. break;
  2950. case _UAE["BID"]: _UAE["UE"].push(_UDE[i]);
  2951. break;
  2952. }
  2953. _UDE[i].Parent = _UGE[4][_UDE[i].UserDirectoryParentID]; _UGE[3][_UDE[i].filetype ? "file" : "folder"].push(_UDE[i]);
  2954. }
  2955. _$(_UGE[1][0]).Change({ "FileSize": _UCZ, "FilesCount": _UWJ, "DHID": _UAE["HID"], "BHID": _UAE["BID"], "UserDiskND": _UAE["LID"], "DiskHeadImg": _UAE["BE"], "UserBImage": _UAE["UE"] });
  2956. (US.userInfo.userid == _UGE[1][2]) && (US.userInfo.DHID = _UAE["HID"], US.userInfo.BHID = _UAE["BID"], US.userInfo.DiskHeadImg = _UAE["BE"], US.userInfo.UserBImage = _UAE["UE"]);
  2957. }
  2958. //#region 网盘桌面
  2959. //初始化网盘桌面
  2960. U.Dk.DI.ZMCSHWP = function (UDE) {
  2961. var i,
  2962. _UDAD = $("#UD_HCDT").Child(),
  2963. _UAE = [["YH", "UD_HCDPN"], ["YY", "UD_HCDYC"], ["W", "UD_HCDFC"]];
  2964. for (i = 0; i < _UAE.length; i++) {
  2965. U.D.SY["ZMWPZX" + _UAE[i][0]](UDE, $("#" + _UAE[i][1])[0]);
  2966. } //查看
  2967. _UDAD[1].onclick = U.M.apply(_UDAD[1], [[U.U.L.SYDLHD, [U.M.apply(_UDAD[1], [[U.Dk.UP.SCXWPOP, [_UDAD[1], { "ID": "UD_SYWRTSO", "DS": true }, US.userInfo.userid])]])]]];
  2968. _UDAD = $(_UDAD[0]).Child();
  2969. for (i = 0; i < _UDAD.length; i++) {
  2970. _UDAD[i].onclick = U.M.apply(_UDAD[i], [[U.M.StopBubble], [U.U.L.SYDLHD, [U.M.apply(_UDAD[i], [[U.D.DT.YYDK, ["Disk", { "userid": US.userInfo.userid, "directoryid": i }])]])]]];
  2971. } //添加点击事件
  2972. }
  2973. //图片点击事件
  2974. U.Dk.DI.ZMWPZXYHOC = function (UDOD, UDE) {
  2975. if (UDOD.className.indexOf("UD_HCDPLOO") > -1) { U.D.Img.Img(UDE, UDE); }
  2976. }
  2977. //变化
  2978. U.Dk.DI.BHZX = function (UDE) {
  2979. var i,
  2980. _UDOD = $(this.e),
  2981. _UDAD = this.a,
  2982. _UDPD = this.p,
  2983. _UL = UDE.a.length,
  2984. _UDFD = $$("frag");
  2985. if (this.i == _UL - 1) {
  2986. i = _UL - 2;
  2987. while (i--) {
  2988. _UDFD.appendChild(_UDAD[i]);
  2989. }
  2990. this.a = _UDOD.append(_UDFD).Child();
  2991. _UDPD.scrollLeft = 0;
  2992. this.i = 1;
  2993. }
  2994. else if (!this.i) {
  2995. this.a = _UDOD.append(this.a[this.a.length - 1], null, this.a[0]).Child(); this.i = 1;
  2996. }
  2997. else {
  2998. $(_UDPD).animate({ "scrollLeft": this.a[this.i - 1].offsetLeft - _UDPD.offsetLeft - _UDPD.clientLeft }, 100);
  2999. }
  3000. }
  3001. //最新音乐
  3002. U.Dk.DI.ZMWPZXYY = function (UDE, UDOD) {
  3003. var i, j = 0, _UDTD, _UDSD, _UDCD,
  3004. _UDFD = $$("frag"),
  3005. _UTP = U.UP.SFT("M");
  3006. for (i = 0; (i < UDE.length && j < 8); i++) {
  3007. if (_UTP.indexOf(UDE[i]["UserFilesExtendName"]) > -1) {
  3008. j++; _UDTD = $$("div", { "className": "UD_HCDYCO" }, _UDFD);
  3009. _UDSD = $$("div", { "className": "UD_HCDYCOL" }, _UDTD);
  3010. $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead), "alt": UDE[i].UserName, "title": UDE[i].UserName, "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [UDE[i].UserID]]] }, _UDSD);
  3011. $$("div", { "className": "UD_HCDYCOI UD_SYI", "onclick": [[U.Dk.DI.ZMWPZXYYBF, ["retElement", UDE[i]]]] }, _UDTD);
  3012. _UDSD = $$("div", { "className": "UD_HCDYCOR" }, _UDTD);
  3013. _UDSD = $$("div", { "className": "UD_HCDYCORO" }, _UDSD)
  3014. $$("div", { "className": "UD_HCDYCORS UTDF", "innerHTML": UDE[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.U.L.SYDLHD, [U.M.apply(this, [[U.D.DT.YYDK, ["Disk", { "userid": UDE[i].UserID, "directoryid": UDE[i].UserDirectoryID }])]]]]] }, _UDSD);
  3015. $$("div", { "className": "UD_HCDYCORX UTDF", "innerHTML": UDE[i].UserName, "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [UDE[i].UserID]]] }, _UDSD);
  3016. }
  3017. }
  3018. if (!j) { $(UDOD).parentg().hide(); }
  3019. else { UDOD.appendChild(_UDFD); }
  3020. }
  3021. //点击播放音乐
  3022. U.Dk.DI.ZMWPZXYYBF = function (UDOD, UDE) {
  3023. var i, _UIE, _UDCD, _UDTD,
  3024. _UDAD = $(UDOD).parentg(2).Child();
  3025. for (i = 0; i < _UDAD.length; i++) {
  3026. _UDCD = $($(_UDAD[i]).childg()[1]);
  3027. (_UIE != null) && (_UDTD = _UDCD[0], _UIE = null);
  3028. _UDCD[_UDCD[0] == UDOD ? (_UIE = i, "addClass") : "removeClass"]("UD_HCDYCOIO");
  3029. }
  3030. //U.MPlayer.NBF({ UserFilesName: UDE.UserFilesName, UserFilesServerName: UDE.UserFilesServerName, bs: _UDTD ? _UDTD.onclick : null }, UDE);
  3031. }
  3032. //最新文件
  3033. U.Dk.DI.ZMWPZXW = function (UDE, UDOD) {
  3034. var i, j = 0, _UDTD, _UDSD,
  3035. _UDFD = $$("frag"),
  3036. _UTP = U.UP.SFT("CA");
  3037. for (i = 0; (i < UDE.length && j < 8); i++) {
  3038. if (_UTP.indexOf(UDE[i]["UserFilesExtendName"]) == -1) {
  3039. j++; _UDTD = $$("div", { "className": "UD_HCDFCO" }, _UDFD);
  3040. $$("div", { "className": "UD_HCDFCOL", "innerHTML": j }, _UDTD);
  3041. _UDSD = $$("div", { "className": "UD_HCDFCOR" }, _UDTD);
  3042. _UDSD = $$("div", { "className": "UD_HCDFCORO" }, _UDSD)
  3043. $$("div", { "className": "UD_HCDFCORS UTDF", "innerHTML": UDE[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.U.L.SYDLHD, [U.M.apply(this, [[U.D.DT.YYDK, ["Disk", { "userid": UDE[i].UserID, "directoryid": UDE[i].UserDirectoryID }])]]]]] }, _UDSD);
  3044. $$("div", { "className": "UD_HCDFCORX UTDF", "innerHTML": UDE[i].UserName, "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [UDE[i].UserID]]] }, _UDSD);
  3045. }
  3046. }
  3047. if (!j) { $(UDOD).parentg().hide(); }
  3048. else { UDOD.appendChild(_UDFD); }
  3049. }
  3050. //#endregion
  3051. //#region 网盘应用查看区域
  3052. //网盘新窗体
  3053. U.Dk.DI.SPCK = function (UTP) {
  3054. var i, _UAE, _UDTD, _UDSD, _UDMD, _UDKD, _UDE,
  3055. _USE = {
  3056. Poto: [US.PG, "图片"],
  3057. Video: [US.VG, "视频"],
  3058. Music: [US.MG, "音乐"],
  3059. File: [US.DG, "文件"]
  3060. }[UTP],
  3061. _UDOD = $$("frag");
  3062. _UDTD = $$("div", { className: "UD_SYSXZBJS" }, _UDOD); _UDSD = $$("div", { className: "UD_SYSXSZCVL" }, _UDTD);
  3063. _UDMD = $$("div", { className: "UD_SYSXSZCVLO UD_SYSXSZCVLOS", title: _USE[1] + "分享", style: "margin-left: 0" }, _UDSD);
  3064. $$("div", { className: "UD_SYSXSZCVLOI UD_SYI UD_SYSXSZCVLOIT" }, _UDMD); $$("div", { className: "UD_SYSXSZCVLON", "innerHTML": _USE[1] + "分享" }, _UDMD);
  3065. _UDSD = $$("div", { className: "UD_SYSXZBJO UD_SYSXZBJ", "id": "UD_SY" + UTP }, _UDOD); $$("div", { className: "UD_SYSXZBMLD" }, _UDOD);
  3066. _UDE = U.UI.Form({
  3067. resize: U.M.apply(this, [[U.Dk.DI.DiskSYN, [$("#UD_SY" + UTP)[0] || _UDSD, null])]],
  3068. style: { width: "90%", height: "85%" }, id: "UD_" + UTP, content: _UDOD, title: "<div class='UD_SYF_STI'>云端版块</div>",
  3069. hst: { style: { padding: "0" } }, bst: { style: { textAlign: "center", overflowX: "hidden" } }
  3070. });
  3071. U.Dk.DI.SYWPQHJ((_UDTD = $(_UDE.body).Child()[1]), 1, 2, _USE[0], false);
  3072. _UDE.body.onscroll = U.M.SSCH({ "AF": function () { U.Dk.DI.SYWPQHFY(this.P + 2, _UDTD); } }).SCH(); return _UDE.be;
  3073. }
  3074. //查看网盘窗体切换
  3075. U.Dk.DI.QHSPCK = function (UTF, UDOD) {
  3076. if (!UTF || !U.U.L.isLogin(3)) {
  3077. var i, _UTF, _UDCD,
  3078. _UDAD = $(this).parentg().childg(0);
  3079. for (i = 0; i < _UDAD.length; i++) {
  3080. _UTF = _UDAD[i] == this ? "addClass" : "removeClass";
  3081. _UDCD = $(_UDAD).childg(i)[0];
  3082. _UDCD = $(_UDCD);
  3083. _UDAD[_UTF]("UD_SYSXSZCVLOS", i);
  3084. _UDCD[_UTF]("UD_SYSXSZCVLOI" + (i ? "O" : "") + "T");
  3085. }
  3086. U.D.SY.ET["UL"]["WS"][5] = UTF ? US.userInfo.userid : "";
  3087. U.Dk.DI.SYWPQHFY(1, UDOD); //网盘滚动分页
  3088. }
  3089. }
  3090. //#region
  3091. //图片查看区域
  3092. U.Dk.DI.TPCK = function () {
  3093. }
  3094. //音乐查看区域
  3095. U.Dk.DI.YYCK = function () {
  3096. }
  3097. //文件查看区域
  3098. U.Dk.DI.WJCK = function () {
  3099. }
  3100. //#endregion
  3101. //通过目录ID获取格式
  3102. U.Dk.HP.UPF = function (UDID) {
  3103. var i,
  3104. _UDE = [[US.DG, [U.UP.SFT("A"), "文件", "100MB", "disk"]],
  3105. [US.PG, [U.UP.SFT("P"), "图片", "100MB", "photo"]],
  3106. [US.MG, [U.UP.SFT("M"), "音乐", "100MB", "music"]],
  3107. [US.VG, [[U.UP.SFT("V"), "视频", "100MB", "vedio"]]]];
  3108. for (i = 0; i < _UDE.length; i++) {
  3109. if (_UDE[i][0] == UDID) {
  3110. return _UDE[i][1];
  3111. }
  3112. }
  3113. return ["", "友群", "250MB"];;
  3114. }
  3115. //获取网盘信息
  3116. U.Dk.GetWPXX = function (UDE) {
  3117. var i, _UCE,
  3118. _userid = UDE[1][2],
  3119. _UGE = UDE[0],
  3120. _UIF = UDE[1][0],
  3121. _UAE = [0, -1, _UIF.FilesCount, 0, 0, 0, 0],
  3122. _UPT = U.UP.SFT("P"), _UVP = U.UP.SFT("V");
  3123. for (i = 0; i < _UGE.length; i++) {
  3124. _UCE = _UGE[i];
  3125. if (_UCE.UserDirectoryEncrypt == "true") { _UAE[0]++; }
  3126. else if (_UCE.UserDirectoryEncrypt == _userid || _UCE.GroupID == _userid) { _UAE[1]++; }
  3127. else if (_UCE.UserDirectoryExtendType == "mp3") { _UAE[4]++; }
  3128. else if (_UPT.indexOf(_UCE.UserDirectoryExtendType) > -1) { _UAE[5]++; }
  3129. else if (_UVP.indexOf(_UCE.UserDirectoryExtendType) > -1) { _UAE[6]++; }
  3130. }
  3131. _UAE[3] = _UAE[2] - _UAE[4] - _UAE[5] - _UAE[6];
  3132. return _UAE;
  3133. }
  3134. //多文件打开
  3135. U.Dk.LE.DXWPDYA = function (UDAD) {
  3136. var i,
  3137. _UME = U.D.DragE.TC;
  3138. for (i = 0; i < _UME.length; i++) {
  3139. _UME[i].onclick();
  3140. }
  3141. }
  3142. //添加
  3143. U.Dk.VW.DBCK = function (UDOD, UTF) {
  3144. if (UTF) { delete UDOD.KID; }
  3145. else { UDOD.KID = 1; setTimeout(function () { if (UDOD.KID) { } }, 200); }
  3146. //$(UDOD).Parent(3).click();
  3147. }
  3148. ////分流初始化文件
  3149. //U.Dk.M.refreshfile = function (filesinfo, UAE, diskinfo) {
  3150. // diskinfo = diskinfo || US.Disk.UserDisk;
  3151. // var i, _UTP, _UDID, _UPID, _UMN, _UCE, _UTP,
  3152. // _UIF = US.userInfo.userid == diskinfo[1][2] ? (diskinfo[1][0] = US.userInfo) : null, _UIE = diskinfo[1][0];
  3153. // if ((_UIE.DHID == null || (UAE[0] && UAE[0].length)) && UAE[2]) {
  3154. // _UCE = { FileSize: UAE[2].FileSize, FilesCount: UAE[2].FileCount, DHID: "", BHID: "", LID: [], UserDiskND: [], DiskHeadImg: [], UserBImage: [] }; U.Ut.AddObj(_UIE, _UCE); UAE = UAE[0];
  3155. // } //(_UIF) && (_$(_UIF).Add(_UCE));
  3156. // if (U.Ut.isString(filesinfo) && filesinfo.length == 36) { filesinfo = diskinfo[4][filesinfo]; }
  3157. // if (U.Ut.isObject(filesinfo) && !filesinfo.filetype) { //处理文件夹
  3158. // if (!(_UTP = "") && (_UDID = filesinfo.UserDirectoryID) && (_UMN = filesinfo.UserallDirectoryName) && (_UPID = filesinfo.UserDirectoryParentID) == US.PG) {
  3159. // switch (_UMN) {
  3160. // case "用户头像": _UTP = "HID"; break;
  3161. // case "背景图片": _UTP = "BID"; break;
  3162. // case "临时图片": _UTP = "LID"; break;
  3163. // }
  3164. // } //图片文件夹特殊处理
  3165. // else if (_UPID == US.DG && _UMN == "临时目录") {
  3166. // _UTP = "LID";
  3167. // } //临时目录文件夹ID
  3168. // filesinfo.Child = [];
  3169. // if (_UTP == "LID") {
  3170. // _UIE[_UTP].push(_UDID);
  3171. // _UIE["UserDiskND"].push(_UDID);
  3172. // } else if (_UTP) { _UIE[_UTP] = _UDID; } //添加目录信息
  3173. // }
  3174. // for (i = 0; i < UAE.length; i++) {
  3175. // _UTP = "";
  3176. // UAE[i] = U.Dk.M.RUS(UAE[i]); diskinfo[4][UAE[i].UserDirectoryID] = UAE[i];
  3177. // diskinfo[0].push(UAE[i]); UAE[i].Parent = diskinfo[4][(_UDID = UAE[i].UserDirectoryParentID)];
  3178. // if (filesinfo) { filesinfo.Child.push(UAE[i]); } if (_UDID == _UIE.DHID) { _UTP = "DiskHeadImg"; }
  3179. // else if (_UDID == _UIE.BHID) { _UTP = "UserBImage"; }
  3180. // (_UTP) && (_UIE[_UTP].push(UAE[i]));
  3181. // }
  3182. // return diskinfo;
  3183. //}
  3184. //添加上传图片或者头像
  3185. //U.Dk.M.AddUserHBImage = function (UDID, filesinfo) {
  3186. // var i, _UTP,
  3187. // _UGE = US.userInfo,
  3188. // _UDE = { "DHID": "DiskHeadImg", "BHID": "UserBImage" };
  3189. // for (i in _UDE) {
  3190. // if (_UGE[i] == UDID) { _UTP = _UDE[i]; break; }
  3191. // };
  3192. // (_UTP) && (_UGE[_UTP].push(filesinfo));
  3193. //}
  3194. ////获取最近打开的指定文件
  3195. //U.Dk.M.GDBFM = function (UTF) {
  3196. // var _UDE, _UGE = US.Disk.UserDisk;
  3197. // if (_UGE && (_UGE = _UGE[0])) {
  3198. // _UDE = _$(_UGE).Select({ "UserDirectoryExtendType": UTF }); U.M.Sequence(_UDE, "UserDirectoryModifyTime", U.MT.SizeComparison); //冒泡排序法
  3199. // return _UDE;
  3200. // }
  3201. //}