1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589 |
- US.Disk.DiskDaren = {}; //网盘达人
- US.Disk.Disks = {}; //用户看过所有用户的树包括自己
- US.Disk.UserDisk; //当前操作用户的disk树
- US.Disk.Layer = { "step": 20, "LI": null }; //Disk位置变化
- // U.Dk.LE.OpenFileDirectory(_UGE[0].slice(0, 100), null, { "UserallDirectoryName": "最近访问区域" }, _UGE[1][2], true)
- // var _UDE, _UGE = U.Dk.DiskOperatingSwitch(userid) || US.Disk.UserDisk; (UDE && UDE.length) ? (_UDE = UDE) : (_UDE = _$(_UGE[0]).Where({ "UserDirectoryModifyTime": { "$ne": null} }), U.M.Sequence(_UGE[0], "UserDirectoryModifyTime", U.MT.SizeComparison)); //
- // (UDE !== true) && (U.Dk.LE.OpenFileDirectory(_UDE.slice(0, 100), null, { "UserallDirectoryName": "最近访问区域" }, _UGE[1][2], true)); return _UDE;
- // if (!_UAE.length) { _UAE = [UDE]; while ((UDE = UDE.Parent)) { _UAE.push(UDE); } } // _UAE = UDE.length ? UDE : UDE["UserDirectoryID"] ? _$(_UGE).RecurD(UDE, { "UserDirectoryID": "" }, "UserDirectoryParentID") : [UDE]; //导航树
- // if (UTF || (_UMT && _UTP.indexOf(_UMT) > -1)) { } //office打开 //window.open("http://disk.1473.cn?ID=" + UFID + "&TP=" + (UTF || ""));
- // else { U.Alert("等待文件的打开"); U.A.Request(US.Auth,"UseStudioDisk.IsTxt", [USN], U.Dk.LE.AsynOFT, ["", USN, UN, userid, UFID, _UDOD]); } //其余的文件用户下载
- // var _UGE = U.Dk.DiskOperatingSwitch(US.userInfo.userid), _UKE = (UAE) ? UAE.concat(UDE) : UDE; _UGE[1][1] = "";
- // U.Dk.LL.SCDXWPDH([{ "UserallDirectoryName": "关键字\"" + UPW + "\"搜索结果"}], $("#UD_SYWRYB")[0]); //打印导航
- // if (UDE.length) {
- // (!UDOD.onscroll) && (UDOD.innerText = ""); U.Dk.VW.XWPDY((_UGE[1][5] = UDOD.onscroll ? UDE : _UKE), UDOD, null, UAE ? UAE.length : 0); //打印网盘资料
- // UDOD.onscroll = (U.M.SSCH({ 'AF': U.M.apply(null, [[U.Dk.S.SSWPBDWGD, [UDKN, UTF, _UKE]]]) }).SCH()); //设置滚动加载
- // }
- // if ($$("a").download !== undefined && USN.indexOf(",") < 0) { _UIE = USN.lastIndexOf("."); if (_UIE == USN.length - 1) { USN = USN.substr(0, _UIE) } _UDOD = $$("a", { "download": UFN, "href": US.fs + USN }, doc.body); U.M.IEVENT(_UDOD, "click"); $(_UDOD).remove(); } //HTML下载
- // else { U.UP.uploading([$$("input", { "type": "text", "value": UFN, "name": "filename" }), $$("input", { "type": "text", "value": USN, "name": "filepath" })], null, null, "http://disk.1473.cn/USupfile.ashx?iframename=" + (UTF || "UploadFile"), false); }
- // var i, _UTP = "ue,uw", USN = "", _UPN = "";
- // for (i = 0; i < UDE.length; i++) { if (_UTP.indexOf(UDE[i]["UserDirectoryExtendType"].toLowerCase()) == -1) { USN += ((UDE[i]["UserFilesServerName"].length > 10 ? UDE[i]["UserFilesServerName"] : "") + (i != UDE.length - 1 ? "," : "")); _UPN += ((UDE[i].filetype ? UDE[i]["UserallDirectoryName"] : UDE[i]["UserDirectoryID"]) + (i != UDE.length - 1 ? "," : "")); } }
- // U.Dk.RE.WPXZWJZJO(_UPN, ""); //多文件下载
- U.Dk.RightAuthority; //右键的权限判断,只有我的电脑可以新建TXT,Word等,拿来记录点击。
- ////添加文件或者文件夹右边 右
- //U.Dk.RE.ARFO = function (UDE) {
- // var _UDOD, _UDTD, _UGE = US.Disk.UserDisk[1];
- // if (UDE.UserDirectoryParentID == _UGE[1]) {
- // _UDOD = $("div#UDK_LR_directoryListArea", _UGE[3])[0]; _UDTD = $("div", _UDOD)[1];
- // if (_UDTD && _UDTD.className == "UDK_L_DiskGE UDK_RT_NFF") { _UDOD.innerText = ""; } //删除没有文件的提示
- // (_UGE[4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)([UDE], _UDOD); //打印试图
- // }
- //}
- // for (i = 0; i < _UME.length; i++) {
- // if (_UAE && _UAE.length) { _UME[i].splice(0, 1); _UME[i].splice(1, 1); } //多选的权限
- // else { if (UDE["filetype"]) { _UME[i].splice(1, 2); _UME[i].splice(2, 1); } else { _UME[i].splice(1, 3); _UME[i].splice(2, 2); } } //单选权限
- // }
- // if (!_UQE[0] || !_UQE[4]) {//没有添加 删除权限的功能
- // for (i = 0; i < _UME.length; i++) {
- // if (_UAE && _UAE.length) { _UME[i].splice(0, 1); _UME[i].splice(1, 1); } //多选的权限
- // else { if (UDE["filetype"]) { _UME[i].splice(1, 2); _UME[i].splice(2, 1); } else { _UME[i].splice(1, 3); _UME[i].splice(2, 2); } } //单选权限
- // }
- // }
- // else if (!_UQE[1]) { _UME[0].splice(1, 2); _UME[1].splice(1, 2); } //没有赋值下载功能 && UDE["filetype"]
- // if (!(_UAE && _UAE.length) && _UDID == US.FG && !UDE["filetype"]) { _UME[0].splice(5, 1); _UME[1].splice(5, 1) } //没有加密解密
- // (!US.userInfo.IsUseStudioMember && UDE.filetype) && (_UME[0].splice(_UME[0].length - 1, 1), _UME[1].splice(_UME[1].length - 1, 2)); //置顶功能
- ////点击消息回调
- //U.D.SY.DJHD = function (UDE, UDOD) {
- // var _TF = UDE.MessageIsVerify, _UDE = ["", "", "", "AD"];
- // if (_TF != null) { U.F.FM.AsynReceiveMessages(_UDE[_TF]); }
- // $(UDOD).remove(); //移除元素
- //}
- // var i, _UDKD, _UDOD, _UDCD, _UDPD, _UDTD, _UDSD, _ITF = 0, _UDQ = UDE[0], _UZJ = UDE[1], _UDFD = $$("frag");
- // _UDKD = $$("div", { "className": "UD_SYMMLCA" }, (UDOD || _UDFD));
- // _UDOD = $$("div", { "className": "UD_SYMMLCT", "onclick": [[U.MPlayer.SYYOP, [_UDKD]]] }, _UDKD);
- // _UDCD = $$("div", { "className": "UD_SYMMLCTI UD_SYI UD_SYMMLCTIO", "innerHTML": "" }, _UDOD);
- // $$("div", { "className": "UD_SYMMLCTM", "innerHTML": _UDQ[0].UserallDirectoryName }, _UDOD);
- // if (_UDQ[1].length || (UDE[1] && UDE[1].length)) {//音乐列表打印
- // _ITF = U.MPlayer.MYYOP(_UDKD, _UDQ[1]); //打印音乐
- // for (i = 0; (_UZJ && i < _UZJ.length); i++) { _ITF += U.MPlayer.YYOP(_UZJ[i], (UDOD || _UDFD)); } //目录下的文件夹
- // }
- // else {//空音乐提示
- // _UDKD = $$("div", { "className": "UD_SYMMLCV" }, _UDFD);
- // $$("div", { "className": "UD_SYMMLCVL UD_SYI" }, _UDKD);
- // _UDCD = $$("div", { "className": "UD_SYMMLCVR" }, _UDKD);
- // $$("div", { "className": "UD_SYMMLCVRS", "innerHTML": "这里当前还没有任何歌曲!!" }, _UDCD);
- // _UDPD = $$("div", { "className": "UD_SYMMLCVRX", "innerHTML": "你可以:" }, _UDCD);
- // $$("span", { "innerHTML": "云分享添加", "onclick": [[U.D.DT.YYDK, ["Disk", [US.userInfo.userid, US.MG]]]] }, _UDPD);
- // }
- // (UDVD) && (UDVD.appendChild(_UDFD)); return _ITF; //所有的歌曲
- // var i, j, _UAE, _UKE = [], _UGE = US.Disk.UserDisk[0];
- // (!UDE.UserDirectoryID) && (UDE = _$(_UGE).Select({ "UserDirectoryID": UDE })[0]); //转化指定的文件夹
- // _UAE = _$(_UGE).Select({ "UserDirectoryParentID": UDE.UserDirectoryID }); //获取当前文件夹下所有的文件和文件夹
- // _UKE[0] = [UDE, _$(_UAE).Select({ "filetype": 1 })]; _UAE = _$(_UAE).Select({ "filetype": 0 }); _UKE[1] = []; //生成
- // for (j = 0; j < _UAE.length; j++) { _UKE[1].push(U.Dk.LE.GM(_UAE[j])); } //函数式的递归 改成成循环递归最好
- // return _UKE;
- ////异步加载网盘
- //U.Dk.AsynCSHYY = function (r) {
- // var context = r.context, _userid = context[1], _UDID = context[2]; r = r.value;
- // //Disk加载
- // U.Dk.GUserBL(_userid, _UDID, null, r); //设置全局变量值
- // U.Dk.M.refreshfile(); //更新里面文件的头像和文件名
- // U.Dk.CSHYY(r[1], context[2]); //回调音乐 onpaste
- //}
- ////--------------------------------------------------------------------------------------搜索起点-----------------------------------------------------------------------
- //U.Dk.S.P; //总数
- ////切换
- //U.Dk.S.SDSD = function (UDOD, UTF) {
- // if (UDOD.style.color != "#5e85bb") {
- // var _UDPD = UDOD.parentNode, _UDAD = $("div", _UDPD), _UDTD = $("div#UDK_SSD_C", $(UDOD).Parent("UDK_SSD"))[0], _UDSD = $("input", _UDPD.parentNode)[0], _UDKD = $("div", _UDSD.parentNode.parentNode)[1]; U.Dk.S.P = null; _UDTD.innerText = "";
- // _UDAD.addAttrArray({ "style": { "color": "" }, "className": "" }); $(UDOD).addAttrArray({ "style": { "color": "#5e85bb" }, "className": "" }); //切换样式变化
- // $(_UDTD).Child()[1].innerText = ""; (_UDKD.onclick = U.M.apply(_UDKD, [[U.Dk.S.SetSCH, [_UDSD, 1, UTF, _UDTD]]]))(); //搜索点击
- // }
- //}
- ////设置滚动搜索
- //U.Dk.S.SetSCH = function (UDOD, UP, UTF, UDTD) {
- // var _UDCD = $(UDTD).Child(); _UDCD[1].innerText = "";
- // _UDCD[0].style.display = "block"; $("div", _UDCD[0])[0].innerText = UDOD.value;
- // UDTD.parentNode.parentNode.onscroll = U.M.SSCH({ 'AF': U.M.apply(null, [[U.Dk.S.SFND, [UDOD, UTF, UDTD]]]) }).SCH(); //滚动加载
- // U.Dk.S.DSD(UDOD, UP, UTF, UDTD); //云搜索
- //}
- ////滚动加载
- //U.Dk.S.SFND = function (UDOD, UTF, UDTD) {
- // U.Dk.S.DSD(UDOD, this.P + 2, UTF, UDTD); //云搜索滚动加载
- //}
- ////网盘首页触发云搜索
- //U.Dk.S.STFND = function (UDOD) {
- // var _UDID = $("input", $(UDOD).Parent("UDK_S"))[1];
- // U.Dk.NologinDiskDown(US.NU, ''); //切换到搜素页
- // _UDID.value = UDOD.value; //赋值
- // $("div", $(_UDID).Parent(2))[1].onclick(); //直接搜索
- //}
- ////云搜索
- //U.Dk.S.DSD = function (UDOD, UP, UTF, UDTD) {
- // var i, _UE = UP * 100, _UDE = [["img", "block"], ["div", "none"]]; UTF = U.UP.SFT(UTF); //获取搜索的类型
- // if (UDOD.value.isStrNull() && UDOD.value != UDOD.defaultValue) { if (!U.Dk.S.P || U.Dk.S.P > (_UE - 99)) { U.A.Request(US.Auth,"UseStudioDisk.Managequery", [UDOD.value, UTF, _UE - 99, _UE]), U.Dk.S.AsynDSD, ["", UDTD, UDOD]; } }
- // else { while ((i = _UDE.length--)) { $(_UDE[i][0], UDTD).style.display = _UDE[1] } } //无搜索的显示
- //}
- ////云搜索异步
- //U.Dk.S.AsynDSD = function (r) {
- // var context = r.context, _UDOD = context[1], _UDAD = $(_UDOD).Child(); r = r.value;
- // _UDAD[2].style.display = "none";
- // if (r.length) { U.Dk.S.P = r[0]["AllF"]; U.Dk.S.SetDSD(_UDAD[1], r); } //打印搜索
- // else { U.Dk.S.P = null; }
- //}
- ////打印云搜索
- //U.Dk.S.SetDSD = function (UDOD, UDE) {
- // var i, _UTF, _UDTD, _UDSD, _UDFD = $$("frag");
- // for (i = 0; i < UDE.length; i++) {
- // _UTF = U.UP.IsDF(UDE[i].UserFilesExtendName)[0];
- // _UDTD = $$("div", { "className": "UDK_RT_application", "title": UDE[i].UserFilesName }, _UDFD);
- // _UDSD = $$("div", { "className": "UDK_RT_UDD Radius5", "style": { "position": "static" }, "onclick": [[U.M.StopBubble], [U.Dk.NologinDiskDown, [UDE[i].UserID, UDE[i].UserDirectoryID, true]]] }, _UDTD);
- // if (_UTF == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "className": "UDK_RT_UDD_DV", "src": US.fs + UDE[i].UseFilesServerThumbnailName }, _UDSD); }
- // else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_UDD_DV", "style": { "cssText": U.UP.FFT(UDE[i].UserFilesExtendName)[1]} }, _UDSD); }
- // $$("span", { "innerHTML": UDE[i].UserFilesName.length > 10 ? UDE[i].UserFilesName.substr(0, 10) + "..." : UDE[i].UserFilesName }, _UDSD);
- // }
- // UDOD.appendChild(_UDFD);
- //}
- //------------------------------------------------------------------------普通视图和详细视图的转变-------------------------------------------------------------------
- //普通视图和列表视图切换。
- U.Dk.VW.NOD = function (UTF, UDID) {
- var i, _UGE = US.Disk.UserDisk[1], _UAE = ["UDK_N_PX_TB", "UDK_N_PX_LB"], _UTP = UTF == "Details" ? ["-483px -11px", "-540px -12px"] : ["-602px -11px", "-659px -12px"];
- for (i = 0; i < _UAE.length; i++) { $("div#" + _UAE[i], _UGE[3])[0].style.backgroundPosition = _UTP[i]; };
- U.Dk.VW.DT((_UGE[1] = UDID || _UGE[1]));
- }
- //选择视图
- U.Dk.VW.DT = function (UDID) {
- var _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Select({ "UserDirectoryParentID": UDID }), _UDOD = $("div#UDK_LR_directoryListArea", _UGE[1][3])[0];
- _UDOD.innerText = ""; (_UGE[1][4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)(_UDE, _UDOD); //打印数据
- }
- //------------------------------------------------------------------------------普通视图------------------------------------------------------------------------------
- //普通视图文件打印
- U.Dk.VW.PD = function (UDE, UDOD, UFID) {
- var i, _UDTD, _UDSD, _UTF, _UFT, _UGE = US.Disk.UserDisk[1][0], _UDFD = $$("frag");
- if (UDE.length) {
- for (i = 0; i < UDE.length; i++) {
- if (US.userInfo.userid == _UGE.UserId || !UDE[i].UserDirectoryEncrypt) {
- _UTF = U.UP.IsDF(UDE[i].UserDirectoryExtendType)[0]; (!_UFT) && (_UFT = UFID == UDE[i].UserDirectoryID);
- _UDTD = $$("div", { "id": "disk" + UDE[i].UserDirectoryID, "className": "UDK_RT_application" + (_UFT ? " UDK_RT_hover" : ""), "onclick": [[U.Dk.HP.DKDS, ["this"]], [U.Dk.LL.UDKURL, [UDE[i].UserDirectoryID]], [U.Dk.LE.DBC, [UDE[i].UserDirectoryID, _UGE.UserId]]], "onmousedown": [[U.M.StopBubble], [U.Dk.RM.DRC, ["this", UDE[i].UserDirectoryID, _UGE.UserId]]] }, _UDFD);
- _UDSD = $$("div", { "className": "UDK_RT_UDD Radius5", "onmouseout": [[U.Dk.HP.DKDS, ["this"]]], "onmouseover": [U.Dk.HP.DKDS, ["this", UDE[i].Descript || UDE[i].UserallDirectoryName]] }, _UDTD); // [U.Dk.VW.CH, [_UDTD.childNodes]]
- if (_UTF == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "className": "UDK_RT_UDD_DV", "src": UDE[i].UserDirectoryUrl }, _UDSD); }
- else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_UDD_DV", "style": { "cssText": UDE[i].UserDirectoryUrl } }, _UDSD); }
- $$("span", { "id": "resDataList_name_" + UDE[i].UserDirectoryID, "innerHTML": UDE[i].UserDirectoryName }, _UDSD); _UFT && (_UFT = _UDTD);
- }
- }
- }
- else { _UDTD = $$("div", { "style": { "position": "relative" } }, _UDFD); $$("div", { "className": "UDK_L_DiskGE UDK_RT_NFF" }, _UDTD); }
- UDOD.appendChild(_UDFD); (_UTF) && (UDOD.scrollTop = _UFT.offsetTop);
- }
- //----------------------------------------------------------------------------列表视图--------------------------------------------------------------------------------
- //列表视图文件打印
- U.Dk.VW.PTD = function (UDE, UDOD) {
- var i, _UTF, _UDTD, _UDSD, _UDID, _UPID, _UGE = US.Disk.UserDisk[1], _UDFD = $$("frag");
- if (UDE.length) {
- _UPID = UDE[0].UserDirectoryParentID; _UDTD = $$("div", { "className": "UDK_RT_DL_AT" }, _UDFD);
- $$("div", { "className": "UDK_RS_listspan UDK_RT_DL_ATO", "onclick": [[U.Dk.VW.AS, [UDOD, true]]], "innerHTML": "全选" }, _UDTD);
- $$("div", { "className": "UDK_RS_listspan UDK_RT_DL_ATT", "onclick": [[U.Dk.VW.NOD, [_UGE[4], _UPID]]], "innerHTML": "文件名" }, _UDTD);
- $$("div", { "className": "UDK_RS_listspan", "style": { "width": "10%" }, "innerHTML": "文件大小", "onclick": [[U.Dk.HP.AtSTimeS, [_UPID, true]]] }, _UDTD);
- $$("div", { "className": "UDK_RS_listspan", "style": { "textIndent": "1%", "width": "50px" }, "onclick": [[U.Dk.VW.NOD, [_UGE[4], _UPID]]], "innerHTML": "类型" }, _UDTD);
- for (i = 0; i < UDE.length; i++) {
- _UDID = UDE[i].UserDirectoryID; _UTF = U.UP.FFT(UDE[i].UserDirectoryExtendType);
- _UDTD = $$("div", { "className": "UDK_RT_Details", "id": "disk" + _UDID, "onmousedown": [[U.M.StopBubble], [U.Dk.RM.DRC, ["this", _UDID, _UGE[0].UserId]]], "onclick": [[U.Dk.HP.DKDS, ["this"]], [U.Dk.LL.UDKURL, [_UDID]], [U.Dk.LE.DBC, [_UDID, _UGE[0].UserId]]] }, _UDFD);
- $$("input", { "type": "checkbox", "check": i, "className": "UDK_RT_DL_CK" }, _UDTD);
- _UDSD = $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FN", "id": "resDataList_name_" + UDE[i].UserDirectoryID }, _UDTD);
- $$("i", { "className": "UDK_L_DiskGE UDK_RT_DL_IMG", "style": { "cssText": _UTF[2] } }, _UDSD);
- $$("div", { "title": UDE[i].UserallDirectoryName, "innerHTML": UDE[i].UserallDirectoryName }, _UDTD);
- $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_DT", "innerHTML": U.MT.formatDateToArray(UDE[i].UserDirectoryAddTime) }, _UDTD);
- $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FZ", "innerHTML": U.UP.FileSize(UDE[i].UserDirectorySize) }, _UDTD);
- $$("div", { "className": "UDK_RT_DT_Span UDK_RT_DT_SP_FT", "id": "reDataList_type_" + UDE[i].UserDirectoryID, "innerHTML": _UTF[0] }, _UDTD);
- }
- }
- else { $$("div", { "className": "UDK_L_DiskGE UDK_RT_NFF" }, _UDFD); }
- UDOD.appendChild(_UDFD);
- }
- ////-----------------------------------------------------------------页面点击时候执行的函数(包括左键)-----------------------------------------------------------------
- ////打开文件夹或者文件
- //U.Dk.LE.DBC = function (UDID, userid) {//点击右边目录或者是文件的时候
- // U.Dk.DiskOperatingSwitch(userid); var _UTF, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Select({ "UserDirectoryID": UDID }, null, 1)[0], _UTP = _UDE.UserDirectoryExtendType.toLowerCase(); //操作用户切换
- // U.Dk.SBDD(_UGE[1][3], ["block", "none"]); //查看切换
- // if (_UTP == "folder") { (US.userInfo.userid == userid && (U.AFB.GoList["disk" + userid]["OL"] == 1)) && (U.D.ZYXB(0, false, "WZ")); U.AFB.AddEvent([[U.Dk.LE.OFO, [_UDE, UDID, userid]]], "disk" + userid); }
- // else {
- // U.M.StopBubble(); _UTF = U.UP.IsDF(_UTP)[0]; //阻止冒泡
- // if (_UTF == "P") { U.Dk.LE.OIMG(UDID, _UDE); } //图片预览器
- // else if (_UTF == "M") { U.Dk.LE.OM(_UDE); } //音乐播放器
- // else if (_UTP == "video") { U.Dk.LE.OV(_UDE); } //视频处理
- // else {
- // if (!U.U.L.isLogin()) {//执行下载文件或者打开office文档和txt文本文件.文件需要用全名
- // if (_UTP == "ue" || _UTP == "uw") { U.M.divdoubleClick(_UTF == "ue" ? "US_Excel" : "US_Word", UDID, userid); } //网页Excel打开
- // else { U.Dk.LE.OFT(_UDE.UserFilesServerName, _UDE.UserallDirectoryName, userid, UDE.UserDirectoryID); } //其余的Office文件打开
- // }
- // }
- // U.Dk.RM.DRC(); //执行右键菜单
- // }
- //}
- //U.Dk.UP.TF = true;
- //U.Dk.UP.UP = { "7aeaab56-485f-4150-b781-8ffd86d593ce": [], "93553847-e299-464c-a0e2-c15872efb6ae": [], "8a2135ff-746a-43a8-97b8-552d228a00bb": [], "bf21bf7a-1e95-4194-8e4a-e9334d7d998d": [] };
- ////----------------------------------------------------------------------------------disk上传的接口
- ////判断上传窗口是否显示 显示就更换上传事件
- //U.Dk.UP.SFUW = function (UDOD, UPID, userid, UDID) {
- // var _UDTD = $("#UDK_UP")[0], _UTF = U.Dk.M.PDQX(DID);
- // if (_UTF) {//判断是否有权限
- // UDOD.onclick = U.M.apply(this, [[U.M.StopBubble], [U.Dk.UP.FUW, [UPID, userid, UDID, { "FCP": U.Dk.UP.SCGUP, "ID": "UDK_FUPB"}])]]; //上传点击
- // if (_UDTD.style.display == "block") { U.D.PopupWindow(_UDTD); } //弹出上传框
- // }
- //}
- ////上传的接口
- //U.Dk.UP.FUW = function (UPID, userid, UDID, UGS) {
- // if (!U.U.L.isLogin()) {
- // if (UPID == US.VG) { U.Dk.RE.AUPV(UDID); } //上传视频处理
- // else {
- // var _UDOD, _UYX, _UGE = U.Dk.UP.UP, _UTF = U.Dk.UP.UPF(UPID), _UDTD = $("#UDK_FUPI"), _UTP = U.CI.IsHF();
- // if (_UTP == "HTML5") { } //HTML5的上传
- // else if (_UTP == "Flash") { _UDOD = U.Dk.UP.FUP(UPID, UDID, _UTF, UGS); } //Flash上传
- // else { _UDOD = U.Dk.UP.HUP(UPID, UDID, _UTF); } //HTML上传
- // _UDOD = U.Dk.UP.HUP(UPID, UDID, _UTF);
- // if (U.Dk.UP.TF) { _UGE = U.Dk.UP.UP = {}; _UGE[US.DG] = []; _UGE[US.PG] = []; _UGE[US.MG] = []; _UGE[US.VG] = []; } //设置上传的值
- // if (_UTF[0] == "") { _UGE[UDID] = []; } //群上传设置 _UGE = {};
- // $("div", _UDOD)[0].style.display = "block"; U.D.PopupWindow(_UDOD); _UYX = _UDTD.GetElementInfo(); //弹窗
- // U.D.Tb.WindowRestore($("div", _UDOD)[0], null, "上传"); //创建任务栏
- // if (US.Disk.UserDisk[0].length < 7) { U.D.ZYBH([false, "云端在线,体验云服务", "setp3:点击上传文件按钮,上传您的一个文件吧", null, { "X": _UYX["TX"], "Y": _UYX["TY"], "L": _UYX["TX"] + 80, "T": _UYX["TY"] - 350 }, "UD_ZY_CDIF", [-18, 3, "UD_ZYQT"]], _UDTD[0]); }
- // }
- // }
- //}
- ////HTML上传 设置
- //U.Dk.UP.HUP = function (UPID, UDID, UTF) {
- // var _UDOD = $("#UDK_UP")[0], _UDTD = $("#UDK_UP_CC")[0], _UDAD = $("div", _UDOD), _UDID = $("input", _UDOD)[0];
- // $("span", _UDOD)[0].innerHTML = "文件普通上传" + "(" + UTF[1] + "目前最大支持" + UTF[2] + ")"; //上传提示
- // if (U.Dk.UP.TF) { _UDAD[8].innerHTML = ""; } //清空值
- // _UDID.onchange = U.M.apply(_UDID, [[U.Dk.UP.UPLUP, [_UDID, _UDTD, UDID]]]); //上传事件选择
- // _UDAD[_UDAD.length - 1].onclick = U.M.apply(_UDID, [[U.Dk.UP.SOUP, [UPID, UDID]]]); //上传到服务器处理
- // return _UDOD;
- //}
- ////Flsh上传
- //U.Dk.UP.FUP = function (UPID, UDID, UTF, UGS) {
- // var i, _USZ, _UWH = { "height": 30, "width": 88 }, _UDOD = $("#UDK_FUP")[0], _UDAD = $("div", _UDOD);
- // for (i in _UWH) { _UWH[i] = UGS[i] || _UWH[i]; delete UGS[i]; }; _USZ = U.Dk.UP.FTF["FUN"] = UGS || {};
- // _UDAD[2].innerHTML = "文件普通上传" + "(" + UTF[1] + "目前最大支持" + UTF[2] + ")"; //上传提示
- // U.UP.FAFZ(_USZ, {}, UGS ? UGS["GS"] : null); U.Dk.UP.FTF["URL"] = UGS ? UGS["URL"] : ""; //添加访问
- // U.UP.AddFAN(_UDAD["UDK_FUPI"], (UGS ? UGS["ID"] : "UDK_FUPB"), _UWH); //添加Flash上传按钮
- // (U.Dk.UP.TF) && (_UDAD["UDK_FUPCC"].innerHTML = ""); //清空值
- // return _UDOD;
- //}
- ////通过目录ID获取格式
- //U.Dk.UP.UPF = function (UDID) {
- // var i, _UDE = [[US.DG, [U.UP.SFT("A"), "文件", "100MB", "disk"]], [US.PG, [U.UP.SFT("P"), "图片", "100MB", "photo"]], [US.MG, [U.UP.SFT("M"), "音乐", "100MB", "music"]], [US.VG, [[U.UP.SFT("V"), "视频", "100MB", "vedio"]]]];
- // for (i = 0; i < _UDE.length; i++) {
- // if (_UDE[i][0] == UDID) { return _UDE[i][1]; }
- // }
- // return ["", "友群", "250MB"]; ;
- //}
- ////----------------------------------------------------------------------------from表单上传------------------------------------------------------------------
- ////点击添加按钮 显示文件名在页面上并创建新的inputk
- //U.Dk.UP.UPLUP = function (UDI, UDOD, UDID) {
- // var _UGE = US.Disk.UserDisk;
- // if (_UGE[1][0].FileSize <= U.UP.GetSfileS(US.userInfo.UserDiskSpace + "M")) { //是否有足够的空间上传
- // var _UDTD, _UDSD, _UDGD, _UDID, _UN = U.UP.GetUpName(UDI), _UTF = U.UP.SFT("B");
- // if (!(U.UP.UploadFileType(UDI, _UTF))) {//过滤病毒类型
- // _UTF = U.UP.IsDF(_UN[1])[1]; //上传文件的类型 我的电脑(US.DG) 我的音乐(US.PG) 我的视频(US.SG) 我的图片(US.MG)
- // _UDTD = $$("div", { "className": "UDK_UP_FILEZL" });
- // $$("div", { "className": "UDK_UP_FILEZLT", "innerHTML": "正在上传中..." }, _UDTD);
- // $$("div", { "className": "UDK_L_DiskGE UDK_UP_DELETE", "onclick": U.M.apply(this, [[U.Dk.UP.DE, [UDI, _UTF]]]) }, _UDTD); //删除按钮
- // $$("div", { "className": "UDK_UP_FILEName", "innerHTML": _UN[0] }, _UDTD);
- // _UDSD = $$("div", { "className": "UDK_UP_MXLTdiv" }, _UDTD); _UDGD = $$("div", { "className": "UDK_UP_LTFrame" }, _UDSD); _UDID = $$("div", {}, _UDGD);
- // $$("input", { "className": "UDK_UP_LTFTextarea", "name": "UDK_UP_LTF", "onblur": [U.MR.InputTip, (["this", ["", '可输入文件描述...']])], "onfocus": [U.MR.InputTip, (["this", ['可输入文件描述...', '']])], "value": "可输入文件描述..." }, _UDID);
- // UDI.style.display = "none"; _UDID.appendChild(UDI);
- // $$("input", { "name": "UDK_UP_ic", "className": "UD_filePrew UDK_UP_Add", "type": "file", "onchange": [[U.Dk.UP.UPLUP, ["this", UDOD, UDID]]] }, $("#UDK_UP_AU")[0]); //上传按钮复原
- // U.Dk.UP.UP[_UTF] ? U.Dk.UP.UP[_UTF].push[UDI, _UDTD] : U.Dk.UP.UP[DID].push[UDI, _UDTD]; //添加input
- // UDOD.appendChild(_UDTD); UDOD.scrollTop = UDOD.scrollHeight - UDOD.offsetHeight; //位置定位
- // }
- // else { U.Alert("该类型不允许上传"); }
- // }
- // else { U.Alert("你的网盘已满,请用积分兑换网盘空间"); }
- //}
- ////上传处理
- //U.Dk.UP.SOUP = function (UPID, UDID) {
- // var i, _UGE = U.Dk.UP.UP;
- // for (i in _UGE) {
- // if (_UGE.hasOwnProperty(i)) {
- // if (_UGE[i].length > 0) { if (UPID != i) { UDID = i; }; U.Dk.UP.SUP(i, UDID); return; }
- // }
- // }
- //}
- ////上传到服务器
- //U.Dk.UP.SUP = function (UPID, UDID) {
- // var i, _UDTD, _UDSD, _UAE, _UGE = [], _UFD = US.Disk.UserDisk[0], _UDE = U.Dk.UP.UP[UPID];
- // if (_UDE.length) {
- // for (i = 0; i < _UDE.length; i++) { _UDSD = $("input", _UDE[i][1])[0]; $("div", _UDE[i][1])[0].style.display = "block"; _UDTD = $$("div", {}); _UDSD.value = _UDSD.value == _UDSD.defaultValue ? "" : _UDSD.value; _UDTD.appendChild(_UDE[i][0]); _UDTD.appendChild(_UDSD); _UGE.push(_UDTD); }
- // U.Alert(_UGE.length ? "正在上传,请稍后查看" : "上传文件为空,无法上传");
- // if (_UFD.length) { _UAE = _$(_UFD).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID"); U.Dk.UP.TF = false; U.UP.uploading(_UGE, U.Dk.UP.AsnySUP, [UPID, UDID, _UAE[0]], "http://disk.1473.cn/USupfile.ashx?iframename=UploadFlashfile&DirectoryId=" + UDID + "&GroupID=" + (_UAE[_UAE.length - 1].GroupID || "") + ("&Encrypt=" + (_UAE[_UAE.length - 1].UserDirectoryID == US.SG ? "Yes" : "")), true); } //执行上传
- // return true;
- // }
- // return false;
- //}
- ////上传删除
- //U.Dk.UP.DE = function (UDI, UDID) {
- // var _UGE = U.Dk.UP.UP[UDID], i;
- // for (i = 0; i < _UGE.length; i++) { if (_UGE[i][0]) { _UGE[i][1].parentNode.removeChild(_UGE[i][1]); _UGE.splice(i, 1); return; } } //删除元素
- //}
- ////上传完后的回调
- //U.Dk.UP.AsnySUP = function (r) {
- // var _UN, context = r.context, _UDOD = r.UpObj, _UDID = $("input", _UDOD)[0]; r = r.value;
- // U.Dk.UP.DE(_UDID, context[0]); //删除上传
- // if (r == "flase" || r == undefined) { U.Alert("上传文件超过限制"); } //上传超过限制
- // else {
- // _UN = U.UP.GetUpName(_UDID); //获取input上传名和 上传的格式
- // U.Dk.UP.SCGUP(r, { "type": _UN[1], "name": _UN[0], "size": r[3], "ID": context[1] }, context[2]); //添加文件到网盘
- // if (U.Dk.UP.UP[context[0]].length == 0) { U.Dk.UP.SOUP(); } //新的上传
- // }
- //}
- ////------------------------------------------------------------------------------flash上传-----------------------------------------------------------------------------
- //U.Dk.UP.FTF = { "FL": [], "DID": "", "ID": "", "JD": [], "F": [], "ITF": [], "FUN": { "URL": "", "EX": "", "ADD": "", "ACP": "", "CP": "", "JDT": "", "FCP": "", "AFCP": ""} }; //这个是Flash上传的全局变量
- ////添加上传文件 上传文件的显示
- //U.Dk.UP.FLAdd = function (UDE) {
- // var i, _UDTD, _UDSD, _UGE = U.Dk.UP.FTF, _UDFL = _UGE["FL"], _UADF = _UGE["FUN"]["ADD"], _UMID = US.Disk.UserDisk[1][1], UDOD = $("#UDK_FUPCC")[0], _UDFD = $$("frag");
- // _$(UDE).Add({ "ID": U.Dk.UP.FTF["ID"], "FUN": _UGE["FUN"], "URL": _UGE["FUN"]["URL"] }); //生成文件上传的属性
- // for (i = 0; i < UDE.length; i++) {
- // UDE[i].FID = U.MS.produceGuid(); //唯一的识别
- // _UDTD = $$("div", { "className": "UDK_FUPCH UDK_FUPCCC" }, _UDFD);
- // _UDSD = $$("div", { "className": "UDK_FUPCHL UTDF" }, _UDTD);
- // $$("div", { "className": "UDK_L_DiskGE UDK_RT_DL_IMG", "style": { "cssText": U.UP.FFT(UDE[i].type.substr(1))[2]} }, _UDSD);
- // $$("div", { "className": "UDK_FUPCHLT UTDF", "innerHTML": UDE[i].name }, _UDSD);
- // $$("div", { "className": "UDK_FUPCHD UDK_FUPCHLN UTDF", "style": { "textIndent": "8px" }, "innerHTML": U.UP.FileSize(UDE[i].size) }, _UDSD);
- // _UDSD = $$("div", { "className": "UDK_FUPCHLV UDK_FUPCCJ", "title": "(0%)" }, _UDTD);
- // $$("div", { "className": "UDK_FUPCCJO" }, _UDSD);
- // UDE[i]["JD"] = ($$("div", { "className": "UDK_FUPCCJT" }, _UDSD));
- // $$("div", { "innerHTML": "(0%)", "className": "UDK_FUPCCJS", "style": { "height": "25px"} }, _UDSD);
- // _UDSD = $$("div", { "className": "UDK_FUPCHD" }, _UDTD);
- // $$("div", { "className": "UDK_L_DiskGE UDK_FUPCCS", "title": "关闭", "onclick": [U.Dk.UP.DFF, [UDE[i], _UDTD, _UDFL.length - 1]] }, _UDSD);
- // }
- // UDOD.appendChild(_UDFD); _UDFL.push(UDE); (_UADF) && (_UADF(UDE)); (_UDFL.length == 1) && (U.Dk.UP.FLUP(0, 0, UDE[0])); //直接执行上传
- //}
- ////点击上传
- //U.Dk.UP.FLUP = function (ITF, UTF, UDE) {
- // var i, _UAE, _UKE, _UJM, _UGID, _UFRE = U.Dk.UP.FTF["FL"], _UGE = US.Disk.UserDisk; UDE.DID = U.UP.IsDF(UDE.type.substr(1))[1];
- // if (U.Dk.UP.ISFLUP(UDE)) {//允许上传
- // UDE.LO = "yes"; _UAE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": UDE.ID }, "UserDirectoryParentID"); _UKE = _UAE[_UAE.length - 1]; //获取指定的文件夹
- // if (!UDE["URL"]) { (_UKE.UserDirectoryID != UDE.DID && _UKE.GroupID == null) && (UDE.ID = UDE.DID); UDE.URL = "http://disk.1473.cn/USupfile.ashx?iframename=UploadFlashfile&DirectoryId=" + UDE.ID + "&GroupID=" + (_UKE.GroupID || ""); } //没有指定的上传地址就使用默认的
- // UDE["URL"] + "&Encrypt=" + (_UAE[_UAE.length - 1].UserDirectoryID == US.SG ? "Yes" : ""); //设置加密上传
- // U.UP.FTF["EL"].UpLoad(ITF, UTF, UDE.FID); U.Alert("正在上传" + UDE["name"] + "文件,请等待"); //获取文件的hash码
- // }
- //}
- ////上传文件判断是否存在
- //U.Dk.UP.IsFUp = function (UWJL, FID) {
- // var _UGE = US.Disk.UserDisk, _UDL = U.Dk.UP.GetFWZ(FID), _UFL = _UDL[2], _UDE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": _UDL[2].ID }, "UserDirectoryParentID");
- // U.A.Request(US.Auth,"UseStudioDisk.IsFUp", [_UFL.ID || "", _UDE[_UDE.length - 1].GroupID || "", _UFL.size, UWJL, _UFL.type.substr(1), ""]), U.Dk.UP.AsynIsFUp, ["", _UFL, _UDE]; //判断服务器是否有相同的文件
- //}
- ////异步获取文件是否存在
- //U.Dk.UP.AsynIsFUp = function (r) {
- // var context = r.context, _UFL = context[1], _UDE = context[2], _UDT = U.Dk.UP.GetFWZ(_UFL.FID); r = r.value; try { r = eval(r)[0]; } catch (e) { }
- // if (r) { U.Dk.UP.SUPF([r.UserFilesServerName, r.UserFilesID, r.UseFilesServerThumbnailName, _UFL.size], _UDE, _UFL); } //已有的文件自己拷贝
- // else { U.UP.FTF["EL"].URRUP(_UFL["URL"] + "&UserId=" + US.userInfo.userid + "&IsF=true", _UFL.FID, _UDT[0], _UDT[1]); } //上传到服务器
- //}
- ////上传的进度条
- //U.Dk.UP.FLJD = function (UDE, FID) {
- // var _UBL = Math.floor((UDE["Loaded"] / UDE["Total"]) * 100), _UDL = U.Dk.UP.GetFWZ(FID), _UDJD = _UDL[2]["JD"];
- // _UDJD.style.width = (_UBL * 1.20) + "%"; _UDJD.parentNode.title = $("div", _UDJD.parentNode)[2].innerText = "(" + _UBL + "%)";
- //}
- ////上传单个文件完毕
- //U.Dk.UP.FLCP = function (UDTA) {
- // U.Alert("等待服务器的响应...");
- //}
- ////上传文件成功同时服务端返回了数据
- //U.Dk.UP.FSLCP = function (UDAT, FID) {
- // var _URE = UDAT.data, UFL = U.Dk.UP.GetFWZ(FID)[2];
- // try { _URE = eval(_URE); } catch (e) { } //返回的值
- // (_URE) && (U.Dk.UP.SUPF(_URE, null, UFL)); //文件成功的上传到服务器
- //}
- ////上传文件成功
- //U.Dk.UP.SUPF = function (URE, UDE, UFL) {
- // var _UAF = UFL["FUN"]["FCP"];
- // if (_UAF) { _UAF(URE, { "type": UFL.type.substr(1), "name": UFL.name, "size": UFL.size, "ID": UFL["ID"], "DID": UFL["DID"] }, UDE); } //上传文件回调
- // U.Dk.UP.DFF(UFL); U.Alert("上传文件成功"); //继续上传
- //}
- ////删除单个上传文件
- //U.Dk.UP.DFF = function (UFL) {
- // var i, j, _UTF = false, _UAFL = U.Dk.UP.FTF["FL"], _UDT = U.Dk.UP.GetFWZ(UFL.FID), _UDOD = UFL["JD"].parentNode.parentNode;
- // _UDOD.parentNode.removeChild(_UDOD); _UAFL[_UDT[1]].splice(_UDT[0], 1); (!_UAFL[_UDT[1]].length) && (_UAFL.splice(_UDT[1], 1))
- // if (_UAFL.length) { for (i = 0; i < _UAFL.length; i++) { for (j = 0; j < _UAFL[i].length; j++) { if (!_UAFL[i][j].LO) { U.Dk.UP.FLUP(j, i, _UAFL[i][j]); _UTF = !_UTF; break; } } if (_UTF) { break; } } }
- // else { U.Dk.UP.FLACP(); U.Alert("所有文件上传完毕"); }
- //}
- //上传文件成功回调
- U.Dk.UP.SCGUP = function (URE, UFE, UTE, TF) {
- // var _UKE, _UGE = US.Disk.UserDisk, _UIF = US.userInfo, _UCE = UTE || _$(_UGE[0]).Select({ "UserDirectoryID": UFE["ID"] });
- // URE[2] = (URE[2] == null ? U.UP.FFT(UFE["type"])[1] : US.fs + URE[2]); //文件缩略图
- // _UKE = new U.Dk.M.Entity(([URE[1], URE[3], UFE["ID"], (UFE["name"].length > 10 ? UFE["name"].substr(0, 10) + "..." : UFE["name"]), UFE["name"], UFE["type"].toLowerCase(), URE[0], new Date(), URE[2], 9999.0000, null, UTE["GroupID"], 1, UFE["name"]])); //添加目录
- // (_UGE[2] || US.userInfo.userid != _UGE[1][2]) && (_$(_UKE).Add({ "UserId": _UIF.UserId, "UserNickName": _UIF.UserNickName, "UserName": _UIF.UserName, "UserThumbnailImageHead": _UIF.UserThumbnailImageHead })); _UGE[0].push(_UKE); //修改文件目录
- // if (_UGE[2]) { _UIF.FileSize = U.UP.FileSize((U.UP.GetSfileS(_UIF.FileSize) + UFE["size"])); U.Dk.M.AddUserHBImage(UFE["ID"], _UKE); } //上传头像或者背景图
- // if (!TF) { U.Dk.RE.ARFO(_UKE); U.Dk.LE.DBC(UFE["ID"], US.userInfo.userid); U.Dk.onloadLeft(); } //添加文件
- // if (!UTE.GroupID) { U.D.BC.SetNews[new U.D.T.CII([URE[1], US.userInfo.userid, US.userInfo.UserNickName, US.userInfo.UserThumbnailImageHead, "UD_DiskCon", UFE["ID"], UFE["name"], new Date(), _UKE]], true); } //公共信息提示
- // return _UKE;
- }
- ////文件判断是否允许上传
- //U.Dk.UP.ISFLUP = function (UDE) {
- // var _UGE = US.Disk.UserDisk, _UTF = false;
- // if (UDE["size"] > U.UP.GetSfileS("100M")) { U.Alert("最大上传文件不可以超过100M"); } //上传的文件不能超过100M
- // else if ((U.UP.GetSfileS(_UGE[1][0].FileSize + "M") + UDE.size) >= U.UP.GetSfileS(US.userInfo.UserDiskSpace + "M")) { U.Alert("你的网盘已满,请用积分兑换网盘空间"); return; } //超过网盘大小
- // else { _UTF = !_UTF; }; return _UTF;
- //}
- ////获取文件所在的位置
- //U.Dk.UP.GetFWZ = function (FID) {
- // var i, j, UGE = U.Dk.UP.FTF["FL"];
- // for (i = 0; i < UGE.length; i++) { j = UGE[i].indexOf(FID, "FID"); return [j, i, UGE[i][j]]; }
- //}
- ////上传所有文件完毕
- //U.Dk.UP.FLACP = function (UFL) {
- // var _UAF = UFL["FUN"]["AFCP"];
- // U.Dk.UP.FTF["FL"] = []; U.Dk.UP.TF = true; //清除上传容器//允许从新上传
- // (_UAF) && (_UAF()); //所有文件上传成功回调
- //}
- ////上传的错误提示
- //U.Dk.UP.FLEX = function (UDTA) {
- // U.Alert(UDTA); U.M.Console(UDTA);
- //}
- ////关闭按钮同时结束文件上传
- //U.Dk.UP.DAF = function () {
- // U.UP.FTF["EL"].DAF();
- //}
- //-------------------------------------------------------------disk导航条变化---------------------------------------------------------------------
- //树形框点击事件:导航条清空递归重写
- U.Dk.LL.Nav = function (UDID, userid) {
- var i, _UDAD, _UDPD, _UTF, UMID, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID"), _UDOD = $("div#UDK_N_ArticleNav", _UGE[1][3])[0], _UDTD = $("div#UDK_HP_UpFile", _UGE[1][3])[0], _UDFD = $$("frag"), _UL = _UDE.length;
- (_UDPD = _UDOD.parentNode).style.width = _UDPD.parentNode.offsetWidth - 400 + "px"; _UDOD.innerText = ""; U.Dk.DiskOperatingSwitch(userid); //操作用户切换
- while ((i = _UL--)) { _UTF = i == _UDE.length; $$(_UTF ? "div" : "span", { "className": _UTF ? "UDK_L_DiskGE UDK_N_HOME" : "", "title": _UDE[i - 1]["UserallDirectoryName"], "onclick": [[U.Dk.LL.UDKURL, [_UDE[i - 1].UserDirectoryID])], [U.Dk.LE.DBC, ([_UDE[i - 1].UserDirectoryID, userid]]], "innerHTML": _UTF ? "" : "> " + _UDE[i - 1].UserDirectoryName }, _UDFD);
- } _UDOD.appendChild(_UDFD); //导航打印
- _UDAD = $(_UDOD).Child(); i = _UDE.length; _UL = 0; while (i--) { _UL += _UDAD[i].clientWidth + 10; } _UDOD.style.width = _UL + "px"; _UDOD.parentNode.scrollLeft = _UL;
- U.Dk.HP.CPT(_UDE[_UDE.length - 1].UserDirectoryID); (_UDTD) && (U.Dk.UP.SFUW(_UDTD, _UDE[_UDE.length - 1].UserDirectoryID, userid, _UDE[0].UserDirectoryID)); //文件夹的权限 //上传区域赋值
- }
- //----------------------------------------------------------------左边栏JS-----------------------------------------------------------**
- //判断是否伸缩 伸展菜单
- U.Dk.LL.SM = function (UDOD, userid, UDID) {//obj就是单击的那张变化的图
- var _UDE, _UDPD = UDOD.parentNode, _UDTD = $("div", UDOD)[0], _UL = $("div", _UDPD).length - 1;
- U.Dk.DiskOperatingSwitch(userid); //操作用户切换
- if (_UL > 1) { _UDPD.removeChild(_UDPD.lastChild); } //伸展取消
- else {
- _UDE = _$(US.Disk.UserDisk[0]).Select({ "UserDirectoryParentID": UDID, "filetype": 0 });
- U.Dk.VW.LV(_UDE, _UDPD);
- }
- _UDTD.className = "UDK_L_DiskGE UDK_L_USTreesign " + (_UL > 1 ? "UR_I_D_E" : "UR_I_D_S");
- U.Dk.LL.VM(UDOD); //改变单击的样式
- }
- //单击菜单时的效果 伸缩时候的点击元素效果
- U.Dk.LL.VM = function (UDOD) {
- var _UGE = US.Disk.UserDisk[1];
- (_UGE[5]) && ($(_UGE[5]).addAttrArray({ "style": { "border": 0, "backgroundColor": "" } }));
- UDOD.style.backgroundColor = "#dee6ef"; _UGE[5] = UDOD;
- }
- //Disk导航点击变化链接
- U.Dk.LL.UDKURL = function (UDID) {
- var _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID")[0], _UTF = U.Dk.HP.UPF(_UDE.UserDirectoryID)[3];
- (_UTF) && (U.D.G.UrlWrite(_UTF + "/" + _UGE[1][0].UserName, _UGE[1][0].UserNickName + "的硬盘")); //url重写
- }
- //顶部导航函数,多个地方用到,合成一个函数
- U.Dk.LL.TD = function (UDOD) {
- U.UI.Confirm("将切换到硬盘首页,确认吗?", [U.Dk.LL.TDQH, [UDOD]], "");
- }
- //切换到网盘首页
- U.Dk.LL.TDQH = function (UDOD) {
- U.Dk.NologinDiskDown(US.userInfo.userid || US.NU, US.DG);
- U.M.StopBubble();
- }
- ////-----------------------------------------------------------------------打开文件处理-------------------------------------------------------------------------
- ////点击文件夹的处理
- //U.Dk.LE.OFO = function (UDE, UDID, userid) {
- // var _UGE = US.Disk.UserDisk[1]; U.Dk.DiskOperatingSwitch(userid); _UGE[1] = UDID; //记录所在的文件夹
- // $("div#UDK_N_PX_PX", _UGE[3])[0].onclick = U.M.apply(this, [[U.Dk.HP.AtSTimeS, [UDID]]]); //按时间排序的
- // U.Dk.VW.NOD(_UGE[4], UDID); U.Dk.LL.Nav(UDID, userid); //打印视图和导航
- //}
- ////------------------------------------------------------------------------普通文件处理------------------------------------------------------------------------
- ////---------------------------------------------------------------------------------文件处理------------------------------------------------------------------
- ////点击图片处理
- //U.Dk.LE.OIMG = function (UDID, UDE, UTF) {
- // var i, k, _UAE, _UKE = [], _UGE = US.Disk.UserDisk;
- // if (_UGE[1][1]) { _UAE = _$(_UGE[0]).Select({ "UserDirectoryParentID": UDE.UserDirectoryParentID, "filetype": 1 }); }
- // else { _UAE = []; for (i = 0; i < 3; i++) { _UAE = _UAE.concat(_$(_UGE[0]).Select({ "UserDirectoryParentID": _UGE[0][i == 2 ? 3 : i].UserDirectoryID, "filetype": 1 })); } }
- // for (i = 0; i < _UAE.length; i++) { (_UAE[i]["UserDirectoryID"] == UDE["UserDirectoryID"]) && (k = i); _UKE.push({ "Time": _UAE[i]["UserDirectoryModifyTime"], "Thm": _UAE[i].UserDirectoryUrl, "Img": US.fs + _UAE[i].UserFilesServerName }); } ///^abcd(.+?)fghj$/
- // (!UTF) && (U.Img.Create(_UKE, k, { "TF": 2 })); return [_UKE, k]; //打印图片
- //}
- ////-----------------------------------------------------------------------音乐的处理---------------------------------------------------------------------------
- ////打开音乐处理
- //U.Dk.LE.OM = function (UDE) {
- // var _UAE = U.Dk.LE.GM(UDE.UserDirectoryParentID); //获取当前所有的音乐和目录
- // U.MPlayer.Open(_UAE[0], _UAE[1], UDE.UserDirectoryID); //打开音乐播放器
- //}
- ////----------------------------------------------音乐辅助函数
- ////获取音乐文件和目录
- //U.Dk.LE.GM = function (UDE) {
- // var i, j, _UAE, _UKE = [], _UGE = US.Disk.UserDisk[0];
- // (!UDE.UserDirectoryID) && (UDE = _$(_UGE).Select({ "UserDirectoryID": UDE })[0]); //转化指定的文件夹
- // _UAE = _$(_UGE).Select({ "UserDirectoryParentID": UDE.UserDirectoryID }); //获取当前文件夹下所有的文件和文件夹
- // _UKE[0] = [UDE, _$(_UAE).Select({ "filetype": 1 })]; _UAE = _$(_UAE).Select({ "filetype": 0 }); _UKE[1] = []; //生成
- // for (j = 0; j < _UAE.length; j++) { _UKE[1].push(U.Dk.LE.GM(_UAE[j])); } //函数式的递归 改成成循环递归最好
- // return _UKE;
- //}
- ////-----------------------------------------------------------------------------视频处理-----------------------------------------------------------------------
- ////打开实现链接的视频
- //U.Dk.LE.OV = function (UDE) {
- // U.M.divdoubleClick("UseStudioBrowserDiv", UDE.UserFilesServerName, null);
- //}
- //全选功能
- U.Dk.VW.AS = function (UDOD, UTF) {
- $("input", UDOD.parentNode.parentNode).addAttrArray({ "checked": UTF });
- UDOD.onclick = U.M.apply(UDOD, [[U.Dk.VW.AS, ([UDOD, !UTF])]]);
- }
- //判断用户权限
- //U.Dk.M.PDQX = function (UDID) {
- // var i, _UDE = _$(US.Disk.UserDisk[0]).RecurD(null, { "UserDirectoryID": UDID }, "UserDirectoryParentID");
- // for (i = 0; i < _UDE.length; i++) { if (_UDE[i].UserDirectoryEncrypt == "true" && _UDE[i].GroupID != null) { return false; } }
- // return _UDE;
- //}
- //---------------------------------------------------------------------左边树形的视图------------------------------------------------------------------------
- //这里是说明左边的树形栏视图
- U.Dk.VW.LV = function (UDE, UDOD) {
- U.Dk.VW.CLV(UDE, $$("div", { "style": { "marginLeft": "10px" } }, UDOD));
- }
- //左边子元素
- U.Dk.VW.CLV = function (UDE, UDOD) {
- var i, _UDID, _UDTD, _UDSD, _UDMD, _UKE = ["UDK_L_USTreeFolderIcon", ""], userid = US.Disk.UserDisk[1][0].UserId, _UDFD = $$("frag");
- for (i = 0; i < UDE.length; i++) {
- if (US.userInfo.userid == userid || !UDE[i].UserDirectoryEncrypt) {
- _UDID = UDE[i].UserDirectoryID; (UDE[i].UserDirectoryEncrypt) && (_UKE[0] = "UDK_L_USTreeFolderEncryptIcon", _UKE[1] = "(已加密)");
- _UDTD = $$("div", { "classNmae": "UDK_L_USTreecontainA", "onclick": [[U.M.StopBubble], [U.Dk.LL.UDKURL, [_UDID]], [U.Dk.LE.DBC, [_UDID, userid]]] }, _UDFD);
- _UDSD = $$("div", { "className": "UDK_L_USTTitle", "onclick": [U.Dk.LL.SM, ["retElement", userid, _UDID]] }, _UDTD);
- $$("div", { "id": _UDID + 'img', "className": "UDK_L_DiskGE UR_I_D_E UDK_L_USTreesign" }, _UDSD);
- _UDMD = $$("a", { "className": "UDK_L_USdisktreeA", "id": 'd' + _UDID, "onmousedown": [U.Dk.RM.DRC, ["this", _UDID, userid]] }, _UDSD);
- $$("i", { "className": "UDK_L_DiskGE " + _UKE[0] }, _UDMD);
- $$("span", { "innerHTML": UDE[i].UserDirectoryName + _UKE[1] }, _UDMD);
- }
- }
- UDOD.appendChild(_UDFD);
- }
- ////-------------------------------------------------------------------------------------disk本地搜索----------------------------------------------------------
- ////本地搜索
- //U.Dk.S.LSearch = function (UDOD) {
- // if (UDOD.value.isStrNull() && UDOD.value != UDOD.defaultValue) {
- // var _UDV = UDOD.value, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Like({ "UserallDirectoryName": _UDV, "Descript": _UDV }), _UDTD = $("div#UDK_LR_directoryListArea", _UGE[1][3])[0];
- // _UDTD.innerText = ""; (_UGE[1][4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)(_UDE, _UDTD);
- // }
- // else { U.Alert("请输入想要搜索的内容!"); }
- //}
- //------------------------------------------------------------------------------------权限设置-----------------------------------------------------------------------
- ////用户权限 是否给点击右键一下新建文件夹啊等等的一些功能
- //U.Dk.HP.CPT = function (UDID) {
- // return (U.Dk.RightAuthority = UDID == US.DG);
- //}
- ////是否具有上传权限
- //U.Dk.HP.AUD = function () {
- // var _UGE = US.Disk.UserDisk[1], _UDOD = $("div#UDK_RS_directoryCommandArea", _UGE[3])[0]; _UDOD.innerText = "";
- // if (US.userInfo.userid == _UGE[0].UserId) {
- // $$("div", { "className": "UDK_L_DiskGE UDK_B_C UDK_B_CreateDirButton", "onclick": [[U.M.StopBubble], [U.Dk.RE.CMB, ["folder"]]] }, _UDOD);
- // $$("div", { "id": "UDK_HP_UpFile", "className": "UDK_L_DiskGE UDK_B_C UDK_B_UpFileButton", "onclick": [[U.M.StopBubble], [U.Dk.UP.FUW, ["UDK_UpFlie", _UGE[0].UserId]]] }, _UDOD);
- // }
- //}
- ////用户右键的权限
- //U.Dk.HP.EBB = function () {
- // var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("p", _UGE[1][3]), _UDE = ["UDK_R_addFolderButton", "UDK_R_addWordButton", "UDK_R_addXlsButton", "UDK_R_addPPTButton", "UDK_R_encryptwindow", "UDK_R_divDeleteButton", "UDK_R_divModifyButton", "UDK_LR_S", "UDK_LR_Cut"];
- // _UGE[3].onmousedown = U.Dk.RM.DRC; _UGE[3].onclick = $("div#UDK_LR_directorycontentarea", _UGE[3])[0].onmousedown = U.M.apply(this, [[U.Dk.RM.DRC, ["this", "add", _UGE[0].UserId]]]);
- // for (i = 0; i < _UDE.length; i++) { _UDAD[_UDE[i]].parentNode.style.display = "none"; }
- //}
- ////----------------------------------------------------------------------------disk定位-------------------------------------------------------------------------------
- ////拖动效果..文件与目录之间的拖动效果.
- //U.Dk.HP.CD = function (UDOD) {
- // var _UGE = US.Disk.UserDisk, UDPD = UDOD.parentNode, _UDAD = $(UDPD).Child();
- // _UDAD[1].setCapture(); //聚焦
- // document.onmousemove = U.M.apply(this, [[U.Dk.HP.XCD, [_UDAD, UDPD.clientWidth]]]);
- // document.onmouseup = U.M.apply(this, [[U.Dk.HP.DCD, [UDOD]]]);
- //}
- ////拖拉效果
- //U.Dk.HP.XCD = function (UDAD, UW) {
- // var _UX = event.clientX, _UTW = Math.max(Math.min(_UX - UDAD[1].getBoundingClientRect().left, 600), 208);
- // UDAD[0].style.width = _UTW + "px"; _UDCD[2].style.width = (UW - _UTW - 6) + "px";
- //}
- ////拖动结束
- //U.Dk.HP.DCD = function (UDOD) {
- // UDOD.releaseCapture(); //释放焦点
- // document.onmousemove = document.onmousemove = null;
- //}
- ////首页位置调整
- //U.Dk.HP.NCW = function (UDOD) {
- // var _UWH = U.M.GetElementInfo(UDOD), _UDAD = $("div", UDOD), _UDLD = _UDAD["UDK_RS_leftContent"], _UDRD = _UDAD["UDK_RS_rightContent"];
- // if (_UWH["CW"]) {
- // $(UDOD).addAttrArray({ "style": { "width": _UWH["OW"] + "px", "height": _UWH["OH"] + "px"} });
- // _UDAD["UDK"].style.height = _UWH["OH"] - 37 + "px"; _UDAD[1].style.width = _UWH["OW"] - 30 + "px";
- // _UDRD.style.width = Math.max((_UWH["OW"] - _UDLD.offsetWidth - 6), 0) + "px";
- // }
- //}
- ////登录调整位置格式
- //U.Dk.HP.CW = function (UDOD) {
- // var _UW, _UH, _UDPD, _UDAD, _UDLD, _UDRD, _UDTD, _UDFD, _UGE = US.Disk.UserDisk; UDOD = UDOD || (_UGE ? _UGE[1][3] : null);
- // if (UDOD) {
- // _UDPD = UDOD.parentNode; _UW = _UDPD.clientWidth; _UH = _UDPD.clientHeight - 35;
- // if (_UW && _UH) {
- // _UDAD = $("div", _UDPD); _UDRD = _UDAD["UDK_RS_rightContent"], _UDLD = _UDAD["UDK_RS_leftContent"]; _UDTD = _UDAD["UDK_L_USTreeTreeNode"]; _UDFD = _UDAD["UDK_LL_F"];
- // UDOD.style.height = _UH - 2 + "px"; _UDAD[1].style.width = _UW - 30 + "px";
- // if (_UDLD.clientHeight) {
- // _UDFD.style.maxHeight = (_UDLD.clientHeight - 190) + "px"; _UDTD.style.maxHeight = (_UDLD.clientHeight - 223) + "px";
- // _UDRD.style.width = Math.max((_UW - _UDLD.clientWidth - 6), 0) + "px";
- // _UDAD["UDK_LL_USTreeMainNodeDiv"].style.height = _UH - _UDAD["UDK_LL_US"].clientHeight - 20 + "px";
- // }
- // _UDAD["UDK_LR_directorycontentarea"].style.height = Math.max(_UH - 175, 0) + "px";
- // _UDPD.style.width = _UW + "px"; _UDPD.style.height = _UH + 35 + "px";
- // }
- // }
- //}
- ////右键正确定位
- //U.Dk.HP.RM = function (UDOD) {
- // var _UDPD = $(UDOD).Parent("UDK_M_alreadylogin"), _UXY = U.M.GetMousep(_UDPD);
- // $("div#UDK_R_rightMouseClickDiv", _UDPD).addAttrArray({ "style": { "visibility": "visible", "display": "block", "left": _UXY["X"] + "px", "top": _UXY["Y"] + "px"} }); // "visibility": "visible", "display": "inline-block",}
- //}
- ////Disk弹出位置变化
- //U.Dk.HP.DLO = function (UDOD) {
- // var _UWH, _UT, _UL, _UDTD, _UGE = US.Disk.Layer, UDOD = UDOD || US.Disk.UserDisk[1][3].parentNode;
- // if (!_UGE["LI"]) { _UGE["LI"] = UDOD; }
- // else {
- // _UWH = U.M.GetElementInfo(UDOD); _UDTD = _UGE["LI"] || UDOD; _UT = _UWH["OT"] + _UWH["OH"]; _UL = _UWH["OL"] + _UWH["OW"];
- // _UT = _UT > US.Height ? 0 : _UWH["OT"] + _UGE["step"]; _UL = _UL > US.Width ? 0 : _UWH["OL"] + _UGE["step"];
- // $(UDOD).addAttrArray({ "style": { "top": _UT + "px", "left": _UL + "px"} }); _UGE["LI"] = UDOD;
- // }
- //}
- ////文件描述位置
- //U.Dk.HP.DKDS = function (UDOD, UMS) {
- // if (UDOD && !(U.M.onmouseout(UDOD))) {
- // var _UE = U.M.GetElementInfo(UDOD), _UDPD = $(UDOD).Parent("UDK").parentNode, _UDTD = $("div#UDK_DS", _UDPD)[0];
- // if (typeof UMS != "string") { _UDTD.style.display = "none"; }
- // else {
- // $("div", _UDTD)[1].innerHTML = UMS; //文件描述
- // $(_UDTD).addAttrArray({ "style": { "display": "block", "left": (_UE["TX"] - _UDPD.offsetLeft + (_UE["CW"] / 2)) + "px", "top": (_UE["TY"] - _UDPD.offsetTop + (_UE["CH"] / 2)) + "px"} }); //定位
- // }
- // }
- //}
- ////--------------------------------------------------------------------------------disk排序--------------------------------------------------------------------------
- ////打印排序
- //U.Dk.HP.AtSTimeS = function (UDID, TF) {
- // var _UGE = US.Disk.UserDisk, _UDOD = $("div#UDK_LR_directoryListArea", _UGE[1][3])[0];
- // U.M.Sequence(_$(_UGE[0]).Select({ "UserDirectoryParentID": UDID }), TF ? "UserDirectorySize" : "UserDirectoryAddTime", TF ? U.UP.IsSizeS : U.MT.SizeComparison); //用冒泡排序
- // _UDOD.innerText = ""; (_UGE[1][4] == "Normal" ? U.Dk.VW.PD : U.Dk.VW.PTD)(_UDE, _UDOD); //打印文件
- //}
- ////------------------------------------------------------------------网盘搜索和网盘动态------------------------------------------------------------------------
- ////网盘动态 网盘首页切换
- //U.Dk.DI.SCMSD = function (UDOD, TF) {
- // var _UDAD = $("div", UDOD), _UDE = ["none", "block"]; (TF) && (_UDE.reverse()); //云搜索
- // _UDAD["UDK_SDP"].style.display = _UDE[0]; _UDAD["UDK_SSD"].style.display = _UDE[1];
- //}
- ////--------------------------------------------------------------------------查看云网盘-------------------------------------------------------------------------
- ////--------------------------------------------------------------------网盘初始化
- ////网盘动态
- //U.Dk.DI.CM = function (UDID, UDOD, userid) {
- // var _UGE = US.Disk.DiskDaren, _UDAD = $("div", UDOD);
- // if (_UGE["HF"]) { U.Dk.DI.SetHP(_UGE["HF"], _UDAD["UDK_RPHost"]); U.Dk.DI.GetTP(UDID, UDOD); U.Dk.DI.SDFN(UDID, _UDAD["UDK_SDP"], 1, userid); }
- // else {
- // if ($("iframe", _UDAD["UDK_RPGG"])[0] == null) { $$("iframe", { "frameBorder": 0, "marginheight": "0", "marginwidth": "0", "style": { "width": "100%", "height": "100%", "overflow": "hidden" }, "src": "/usercontrols/pages/UD_GG.htm?ID=tanx-a-mm_32325420_3265865_14580172&SID=tanx-s-mm_32325420_3265865_14580172&SRC=http://p.tanx.com/ex?i=mm_32325420_3265865_14580172" }, _UDAD["UDK_RPGG"]); }
- // U.A.Request(US.Auth,"UseStudioDisk.GetDaren", [userid, UDID, US.NU], U.Dk.DI.AsynCM, [UDOD, UDID, UDOD, userid]);
- // }
- //}
- ////网盘首页异步
- //U.Dk.DI.AsynCM = function (r) {
- // var _UDE, _UGE = US.Disk.DiskDaren, context = r.context, _UDOD = context[0], _UDID = context[1], _userid = context[3], _UFN = context[5]; r = r.value;
- // if (r.length) {
- // _$(_UGE).Add({ "HF": r[0], "TF": r[2] }); //添加热门和最新网盘数据
- // U.Dk.M.AddPND[_userid, _UDID, 1, r[1]]; //网盘滚动数据
- // if (_UFN) { _UFN(); } //有回调的执行回调
- // else { U.Dk.DI.CM(_UDID, _UDOD, _userid); } //网盘动态
- // }
- //}
- ////------------------------------------------------------------------热门云盘
- ////热门云盘
- //U.Dk.DI.SetHP = function (UDE, UDOD) {
- // var i, _UDTD, _UDSD, _UDHD;
- // _UDTD = $$("div", { "className": "UDK_L_DiskGE UDK_RPtext" });
- // _UDSD = $$("div", { "className": "UDK_RPHotDS" });
- // for (i = 0; (i < UDE.length && i < 10); i++) {
- // _UDHD = $$("div", { "className": "UDK_RPHotDiv", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", US.DG, UDE[i].UserID, null]]] }, _UDSD);
- // $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead), "className": "UDK_RPHotImg"}, _UDHD);
- // $$("div", { "className": "UDK_RPHotName", "innerHTML": UDE[i].UserName }, _UDHD);
- // $$("span", { "className": "UDK_RPHotVoluTXT", "innerHTML": "文件个数:" }, _UDHD);
- // $$("a", { "className": "UDK_RPHotVolume", "innerHTML": UDE[i].CN }, _UDHD);
- // }
- // UDOD.appendChild(_UDTD); UDOD.appendChild(_UDSD);
- //}
- ////------------------------------------------------------------------排行榜
- ////排行榜切换
- //U.Dk.DI.GetTP = function (UDID, UDOD) {
- // var UDE = _$(US.Disk.DiskDaren["TF"]).Select({ "T": UDID }, null, 10); //获取指定的排行榜文件
- // U.Dk.DI.SetTP(UDE, $("div#UDK_RPTop", UDOD)[0]); //打印排行榜文件
- //}
- ////排行榜文件打印
- //U.Dk.DI.SetTP = function (UDE, UDOD) {
- // var i, _UDTD, _UDSD, _UDHD;
- // _UDTD = $$("div", { "className": "UDK_RPTopOneDiv" });
- // $$("div", { "className": "UDK_RPTopOne", "innerHTML": "01." }, _UDTD);
- // $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[0].UserThumbnailImageHead), "className": "UDK_RPTopImg", "onclick": [[U.M.StopBubble], [U.U.I.POUW, [UDE[0].UserID]]] }, _UDTD);
- // $$("span", { "className": "UDK_RPTopFilesName", "innerHTML": UDE[0].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", UDE[0].UserDirectoryID, UDE[0].UserID, null]]] }, _UDTD);
- // $$("a", { "className": "UDK_RPTopNickName", "innerHTML": UDE[0].UserNickName }, _UDTD);
- // _UDSD = $$("div", { "className": "UDK_RPTopNAMDiv" });
- // for (i = 1; i < UDE.length; i++) {
- // _UDHD = $$("div", { "className": "UDK_RPTopUNDiv" }, _UDSD);
- // $$("div", { "className": "UDK_RPTopImgNUM", "innerHTML": "0" + (i + 1) }, _UDHD);
- // $$("div", { "className": "UDK_RPTopNAM", "innerHTML": UDE[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", UDE[i].UserDirectoryID, UDE[i].UserID, null]]] }, _UDHD);
- // $$("div", { "className": "UDK_RPTopUN", "innerHTML": UDE[i].UserNickName, "onclick": [[U.M.StopBubble], [U.U.I.POUW, [UDE[i].UserID]]] }, _UDHD);
- // }
- // UDOD.appendChild(_UDTD); UDOD.appendChild(_UDSD);
- //}
- ////-----------------------------------------------------------------最新动态
- //U.Dk.DI.UDSD; U.Dk.DI.DTE = [];
- ////最新动态切换
- //U.Dk.DI.SDFN = function (UDID, UDOD, UP, userid) {
- // userid = userid || US.NU; UDID = UDID || US.NU; var _UDTD = U.Dk.DI.UDSD = $("div#UDK_LPINew", UDOD)[0], _UDPD = _UDTD.parentNode, _UDSD = $("span", _UDPD)[0], _UDMD = $("div", _UDPD)[0];
- // _UDTD.innerText = ""; _UDSD.onclick = U.M.apply(_UDSD, [[U.Dk.NologinDiskDown, (['', UDID, ''])]]); _UDMD.onclick = U.M.apply(this, [[U.Dk.NologinDiskDown, ([US.userInfo.userid || US.NU, UDID, ''])]]); //按钮事件赋值
- // U.Dk.DI.DFN(UDID, UP, userid, _UDTD, UDOD); UDOD.onscroll = U.M.SSCH({ 'AF': U.M.apply(null, [[U.Dk.DI.SFND, [UDID, userid, _UDTD, UDOD]]]) }).SCH(); //设置数据加载
- //}
- ////滚动变化
- //U.Dk.DI.SFND = function (DID, userid, UDSD, UDOD) {
- // U.Dk.DI.DFN(DID, this.P + 2, userid, UDSD, UDOD);
- //}
- ////网盘最新动态
- //U.Dk.DI.DFN = function (UDID, UP, userid, UDSD, UDOD, UFUN) {
- // var _UDE = U.Dk.M.GetPND[userid, UDID, UP, 30, 300], _UTP = _UDE[1], _UE = _UTP * 300;
- // if (_UDE[0]) { U.Dk.DI.SetDFN(_UDE[0], UDSD, userid, UP); } //打印网盘数据
- // else { U.A.Request(US.Auth,"UseStudioDisk.GetUserFNew", [userid, UDID, _UE - 300, _UE, US.NU]), U.Dk.DI.AsynDFN, [UDOD, UDID, UP, userid, _UTP, UDSD, UFUN]; } //获取网盘数据
- //}
- ////最新动态异步,硬盘首页图片ajax
- //U.Dk.DI.AsynDFN = function (r) {
- // var context = r.context, _UDOD = context[0], _UDID = context[1], _UP = context[2], _userid = context[3], _UTP = context[4], _UDTD = context[5]; r = r.value;
- // if (r.length) {
- // U.Dk.M.AddPND[_userid, _UDID, _UTP, r]; //网盘滚动数据
- // U.Dk.DI.DFN(_UDID, _UP, _userid, _UDTD); //打印最新动态
- // }
- // else { _UDOD.onscroll = null; }
- //}
- ////添加网盘动态数据
- //U.Dk.DI.DTSJ = function (UDE) {
- // var i, _UAE = [], userid = US.userInfo.userid || US.NU;
- // for (i = 0; i < UDE.length; i++) { if (UDE[i].NEWTYPE == "UD_DiskCon") { _UAE.push(UDE[i]); } }
- // U.Dk.M.AddPND[userid, "", 1, _UAE];
- //}
- ////打印最新动态
- //U.Dk.DI.SetDFN = function (UDE, UDOD, userid, UP) {
- // var i, _UAE, _UTF, userid, _UDTD, _UDSD, _UDMD, _UDFD = $$("frag");
- // if (UDE.length) {
- // for (i = 0; i < UDE.length; i++) {
- // _UAE = UDE[i].ET ? (UDE[i].ET = eval(UDE[i].ET)) : UDE[i]; _UTF = U.UP.IsDF(_UAE.UserDirectoryExtendType || _UAE.UserFilesExtendName)[0]; userid = UDE[i].UserID || UDE[i].UserId;
- // _UDTD = $$("div", { "className": "UDK_LPINewDiv" }, _UDFD);
- // _UDSD = $$("div", { "className": "UDK_LPINewFYDiv" }, _UDTD);
- // $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(_UAE.UserThumbnailImageHead), "className": "UDK_LPINewIMG","onclick": [[U.M.StopBubble], [U.U.I.POUW, [userid]]] }, _UDSD);
- // $$("div", { "className": "UDK_LPINewFYName", "onclick": [[U.M.StopBubble], [U.U.I.POUW, [userid]]], "innerHTML": _UAE.UserName }, _UDSD);
- // $$("span", { "className": "UDK_LPINewFYWZ", "innerHTML": "上传了文件" }, _UDSD);
- // _UDMD = $$("div", { "className": "UDK_LPINewLR" }, _UDSD);
- // $$("div", { "className": "UDK_LPINewLTframe", "innerHTML": (_UAE.UserFilesDescript || _UAE.Descript) || "没有描述此文件..." }, _UDMD);
- // $$("div", { "className": "UDK_L_DiskGE UDK_LPINewLTFH" }, _UDMD);
- // if (_UTF == "P") { $$("img", { "onerror": [[U.M.ImgError, ["this", 1]]], "className": "UDK_LPINewLTicon", "src": US.fs + ((_UAE.UseFilesServerThumbnailName || _UAE.UserDirectoryUrl || _UAE.UserFilesServerName)).replace(US.fs, ""), "onclick": [[U.M.StopBubble], [U.Img.Create, ([[{ "Thm": US.fs + (_UAE["UseFilesServerThumbnailName"] || _UAE.UserDirectoryUrl), "Img": US.fs + _UAE["UserFilesServerName"]}]])]] }, _UDTD); }
- // else { $$("div", { "className": "UDK_LPINewLTicon UDK_L_DiskGE", "style": { "cssText": U.UP.FFT(_UAE.UserDirectoryExtendType || _UAE.UserFilesExtendName)[1] }, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", _UAE.UserDirectoryID, _UAE.UserID, null]]] }, _UDTD); }
- // $$("div", { "className": "UDK_LPINewFilesName", "innerHTML": _UAE.UserFilesName || _UAE.UserDirectoryName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", _UAE.UserDirectoryParentID || _UAE.UserDirectoryID, userid, null]]] }, _UDTD);
- // $$("div", { "className": "UDK_LPINewFBTime", "innerHTML": U.MT.formatDateToArray(_UAE.UserFilesAddTime) }, _UDTD);
- // $$("div", { "className": "UDK_LPINewLYcloud", "innerHTML": "来自有思云分享" }, _UDTD);
- // }
- // UDOD.appendChild(_UDFD);
- // }
- // else { if (userid != US.NU && UP == 1) { UDOD.innerText = ""; $$("div", { "className": "UDK_L_DiskGE UDK_LPIT" }, UDOD); } }
- //}
- ////----------------------------------------------------------------------------音乐播放器功能--------------------------------------------------------------------------
- ////他人的专辑
- //U.Dk.DI.HZJ = function () {
- //}
- ////---------------------------------------------------------------------------disk右键功能全--------------------------------------------------------------------
- ////-----------------------------------------------------------------------------添加文件夹----------------------------------------------------------------------
- ////新添加视频文件
- //U.Dk.RE.AUPV = function (DID) {
- // var _UDT = $$("div", {}), _UDOD, _SW = ["视频名称:", "分享地址:"];
- // for (var i = 0; i < _SW.length; i++) {//打印新添加视频弹框
- // _UDOD = $$("div", { "style": { "cssText": "float:left; margin:20px 0 0 20px;line-height:20px;clear:both;" }, "innerHTML": _SW[i] }, _UDT);
- // $$("input", { "type": "text", "style": { "cssText": "width:220px;height:18px;"} }, _UDOD);
- // }
- // var _UCM = U.Dk.RE.Prompt("分享视频", 180, 350, _UDT, U.M.apply(_UDT, [[U.Dk.RE.UPV, [DID]]]), US.Disk.UserDisk[1][3]);
- // _UCM.Create();
- //}
- ////Ajax上传到后台
- //U.Dk.RE.UPV = function (DID) {
- // var _UDI = $("input", this), _T = "video";
- // if (U.Dk.RE.MBC(DID, _UDI[0].value, _T, "Create") && U.MS.Website(_UDI[1].value.trim())) {//判断文件是否及格
- // var _FSN = _UDI[0].value.length > 15 ? _UDI[0].value.substring(0, 10) + "..." : _UDI[0].value; //文件简写名
- // var _DKE = new U.Dk.M.Entity[U.MS.produceGuid(), 0, DID, _UDI[0].value, _FSN, _T, _UDI[1].value, new Date(), U.UP.FFT(_T)[1], 9999.000, null, null, 1];
- // U.A.Request(US.Auth,"UseStudioDisk.addDirectoryOrFile", [US.userInfo.userid, DID, _DKE["UserDirectoryID"], _DKE["UserFilesServerName"], _UDI[0].value, _T, 9999, "", ""], U.Dk.RE.AsynAF, ["", _DKE]);
- // }
- //}
- ////-----------------------------------------------------------------------------------删除文件-------------------------------------------------------------------------
- ////------------------------------------------------------------------------------修改文件名----------------------------------------------------------------------
- ////修改文件名
- //U.Dk.RE.MRNT = function (UDOD, UDID) {
- // var _UDOD, _UDTD, _UDID, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE[0]).Select({ "UserDirectoryID": UDID })[0], _UTF = U.Dk.M.PDQX(_UDE.UserDirectoryID);
- // if (_UTF) {
- // _UDOD = $$("div", { "className": "UDL U_UI_dlnoSR" }); _UDTD = $$("div", {}, _UDOD); _UDID = $$("input", { "type": "text", "className": "UDK_XG", "value": _UDE.UserallDirectoryName.split("." + _UDE.UserDirectoryExtendType)[0], "onkeypress": [[U.M.returnkeylogin, [null, [[U.Dk.RE.MRN, [_UDE, _UDOD]]]]]] }, _UDTD);
- // U.Dk.RE.Prompt("修改文件", 140, 350, _UDOD, U.M.apply(_UDOD, [[U.Dk.RE.MRN, [_UDE, _UDOD]]]), US.Disk.UserDisk[1][3]).Create(); _UDID.select(); //创建对话框
- // }
- //}
- ////修改函数名接口
- //U.Dk.RE.MRN = function (UDE, UDOD) {
- // U.Dk.RE.MFN(UDE, $("input", UDOD)[0].value);
- //}
- ////-------------------------------------------------------------------------加密解密开始----------------------------------------------------------------------
- ////------------------------------------------------------------------------------------文件文件夹赋值粘贴
- ////------------------------------------------------------------------------刷新文件------------------------------------------------------------------------------------
- ////刷新
- //U.Dk.RE.CN = function () {
- // U.Dk.onloadAjax(US.Disk.UserDisk[1][1], US.Disk.UserDisk[1][2]); //基本资料更新
- // U.Dk.LE.DBC(US.Disk.UserDisk[1][1], US.Disk.UserDisk[1][0].UserId); //导航条
- // U.Dk.LL.UDKURL(US.Disk.UserDisk[1][1]); //url变化
- //}
- ////--------------------------------------------------------------------------------文件下载---------------------------------------------------------------------
- ////文件下载
- //U.Dk.RE.ODL = function (USN, UN, UDID) {
- // var _UTF = U.UP.GetUpName(USN)[1];
- // if (!U.U.L.isLogin()) {
- // if (_UTF == null && USN.indexOf("http") > 0) { window.open(USN); } //如果是外网的连接直接连接
- // else {
- // if (_UTF == "ue" || _UTF == "uw") { //下载web word excel
- // U.Alert("云office暂不提供下载");
- // //if (browser.msie) { parent.U.A.Request(US.Auth,"UseStudioDisk.GetFileContent", [UDID], U.Dk.RE.AsynXZ, ["", UN]); U.Alert("正在加载下载页"); } //IE的下载方式
- // //else { U.UP.uploading([$$("input", { "type": "text", "value": USN, "name": "filename" }), $$("input", { "type": "text", "value": UN + ".htm", "name": "filepath" }), $$("input", { "type": "text", "value": US.userInfo.userid, "name": "UserId" })], null, null, "http://disk.1473.cn/UseStudiodisk.ashx?functionname=UseStudioDisk.UploadFile", false); } //调用上传的接口实现下载
- // }
- // else { window.open("/userpages/UD_XZ.aspx?fileservername=" + USN + "&filename=" + UN + "&UserId=" + US.userInfo.userid + "&usrd=" + Math.random()); }
- // }
- // }
- //}
- ////IE异步下载
- //U.Dk.RE.AsynXZ = function (r) {
- // var _W, _DO, _UDN = r.context[1];
- // r = r.value;
- // if (r != false) {
- // _W = window.open("javascript:void((function(){document.open();document.domain='1473.cn';document.close()})())"); //
- // try {
- // _DO = _W.document.open(); //打开空文件生成下载页
- // _DO.write('<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);
- // _DO.execCommand("SaveAs", true, _UDN);
- // _DO.close(); _W.close();
- // } catch (e) { }
- // }
- // else { U.Alert("文件损坏"); }
- //}
- ////文件下载
- //U.D.SY.WPXZWJ = function (UDE) {
- // if (!U.U.L.isLogin(3)) {
- // if (UDE.filetype) { U.Dk.RE.ODL(UDE.UserFilesServerName, UDE.UserallDirectoryName, UDE.UserDirectoryID); } //文件下载
- // else { U.Alert("文件夹暂时不提供下载"); } //文件夹下载
- // }
- //}
- ////剪切的异步
- //U.Dk.RE.AysnUFCut = function (r) {
- // var context = r.context, _UDE = context[2], _UAF = context[4], _UPID = _UDE[0].UserDirectoryParentID, _UGE = US.Disk.UserDisk; r = r.value;
- // _$(_UDE).Change({ "UserDirectoryParentID": context[1] }); //更改父层ID
- // (_UGE[1][1] == context[1] && _UGE[1][1] == _UPID) && (U.Dk.VW.DT(_UGE[1][1])); (_UAF) && (_UAF(_UDE, r, _UPID)); //剪切答应
- //}
- ////单击到目录item时候,执行右键菜单
- //U.Dk.RM.DRC = function (UDOD, UDID, userid) {
- // if (event && event.button == 2 && UDID != null) {//右键操作
- // var _UTF, _UDV, _UAE, _UDAD, _UGE = US.Disk.UserDisk, _UDE = _$(_UGE).Select({ "UserDirectoryID": UDID == "add" ? _UGE[1][1] : UDID })[0];
- // U.Dk.DiskOperatingSwitch(userid); //操作用户切换
- // if (UDID == "add") {
- // _UAE = U.Dk.M.PDQX(_UDE.UserDirectoryID);
- // if (_UAE && (U.Dk.RightAuthority || _UDE[0].GroupID)) { _UDV = ["none", "none", "none", "block", "none", "block", "block", "none", "none", "none", "none", "block", "block", "block", "block", "block", "none"]; } //有权限的操作
- // else { _UDV = ["none", "none", "none", "block", "none", "block", "block", "none", "none", "none", "none", "block", "none", "none", "none", "block", "none", "none"]; if (_UGE[1][0].UserDiskND.indexOf(_UGE[1][1]) > -1 || _UAE === false) { _UDV[11] = _UDV[16] = "none"; } } //无权限的操作
- // if (U.Dk.RE.CE.length > 0) { $("p#UDK_LR_S", _UGE[1][3])[0].className = "UR_P"; } //粘贴样式改变
- // }
- // else {
- // if ((_UAE = U.D.DragE) && !_UAE.Event()) { //多选右键功能
- // _UAE = _UDE = U.Dk.RM.MFDRC(_UAE.TC, _UGE[0]);
- // if (_UAE.length) { _UDV = ["block", "none", "none", "none", "none", "none", "none", "none", "none", "block", "none", "none", "none", "none", "none", "none", "block"]; if (_UGE[1][0].UserDiskND.indexOf(_UGE[1][1]) > -1) { _UDV[17] = _UDV[9] = "none"; } }
- // else { U.D.DragE.SetHover(); U.Alert("文件夹不支持多选功能"); return; }
- // }
- // else {
- // if ("folderencrypt,folder".indexOf(_UDE.UserDirectoryExtendType) > -1) {
- // if (_UGE[1][0].UserDiskND.indexOf(_UDE.UserDirectoryParentID) > -1) { _UDV = ["block", "block", "block", "none", "block", "none", "none", "block", "none", "none", "none", "none", "none", "none", "none", "none", "block"]; } //文件夹权限
- // else { _UDV = ["block", "block", "block", "none", "block", "none", "none", "block", "block", "block", "none", "none", "none", "none", "none", "none", "block"]; }
- // }
- // else {//文件操作
- // $("span", $("p#UDK_R_encryptwindow", _UGE[1][3])[0]).addAttrArray({ "innerHTML": _UDE.UserDirectoryEncrypt ? "解密" : "加密" });
- // if (_UDE.UserFilesServerName == "请不要删除") { _UDV = ["none", "block", "none", "none", "block", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none", "none"]; } //不允许删除的
- // else { _UDV = ["none", "block", "none", "none", "block", "none", "none", "none", "block", "block", "block", "none", "none", "none", "none", "none", "none"]; }
- // }
- // }
- // U.Dk.RM.SLM[[UDOD.onclick], [U.Dk.RE.UFCopy, [_UDE, "Copy"]], [U.Dk.RE.AB, ["this", UDID]], [U.Dk.RE.ODL, [_UDE.UserFilesServerName, _UDE.UserallDirectoryName, _UDE.UserDirectoryID]], [U.D.CM.CMSS, [UDID, 1]], [U.Dk.RE.SHEW, ["this.innerText", UDID]], [U.Dk.RE.MRNT, ["this", UDID]], [U.Dk.RE.DMB, [_UDE]], [U.Dk.RE.UFCopy, [_UDE, "Cut"]]]; //右键赋值
- // }
- // U.Dk.RM.VHIDDEN(_UDV); U.Dk.HP.RM(UDOD); U.M.StopBubble(); //正确显示 //右键定位 // 阻止冒泡
- // }
- // else {
- // var _UGE = US.Disk.UserDisk[1][3]; (UDID) && (U.M.StopBubble());
- // $("div#UDK_R_rightMouseClickDiv", _UGE)[0].style.visibility = "hidden";
- // }
- //}
- ////右键菜单的显示
- //U.Dk.RM.VHIDDEN = function (UAE) {
- // var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("p", _UGE[3]), _UDE = ["UDK_LR_CP", "UDK_R_openfolder", "UDK_R_openanddownload", "UDK_R_refreshDirectoryButton", "UDK_R_attribute", "UDK_LR_Normal", "UDK_LR_Details", "UDK_LR_TL", "UDK_R_divModifyButton", "UDK_R_divDeleteButton", "UDK_R_encryptwindow", "UDK_R_addFolderButton", "UDK_R_addWordButton", "UDK_R_addXlsButton", "UDK_R_addPPTButton", "UDK_LR_S", "UDK_LR_Cut"];
- // for (i = 0; i < _UDE.length; i++) { if (US.userInfo.userid == _UGE[0].UserId || i < 8) { _UDAD[_UDE[i]].parentNode.style.display = UAE[i]; } }
- //}
- ////右键查单赋予事件
- //U.Dk.RM.SLM = function (UAE) {
- // var i, _UGE = US.Disk.UserDisk[1], _UDAD = $("p", _UGE[3]), _UDE = ["UDK_R_openfolder", "UDK_LR_CP", "UDK_R_attribute", "UDK_R_openanddownload", "UDK_LR_TL", "UDK_R_encryptwindow", "UDK_R_divModifyButton", "UDK_R_divDeleteButton", "UDK_LR_Cut"];
- // for (i = 0; i < _UDE.length; i++) { if (US.userInfo.userid == _UGE[0].UserId || i < 5) { _UDAD[_UDE[i]].onclick = U.M.apply(this, [UAE[i]]); } }
- //}
- //_$(U.Dk).Add({ "Ism": false, "CSH": [] });
- ////--------------------------------------------------------------------------本地硬盘网络硬盘共同区域----------------------------------------------------
- ////首页和本地硬盘切换
- //U.Dk.NologinDiskDown = function (userid, UDID, TF) {
- // var _UDOD;
- // if (TF) { //显示本地硬盘
- // if (UDID) { _UDOD = U.Dk.DiskDown(userid, UDID, TF); } //获取资料
- // else { if (!U.U.L.isLogin()) { _UDOD = U.Dk.cloneDisk(userid); U.Dk.SBDD(_UDOD, ["block", "none"]); } else { return; } } //切换到网盘查看的页面
- // }
- // else {//显示首页
- // if (UDID) { _UDOD = U.Dk.DiskTC(UDID, (userid || US.NU)); } //好友数据共享
- // else { _UDOD = U.Dk.cloneDisk((userid || US.NU)); _UDOD.style.display = "block"; U.D.SetDTop(_UDOD); U.Dk.DI.SCMSD(_UDOD); U.Dk.SBDD(_UDOD, ["none", "block"]); } //云搜索
- // }
- // return _UDOD;
- //}
- ////首页和网盘查看
- //U.Dk.SBDD = function (UDOD, UTF) {
- // var i, _UDE = ["UDK_RS_UserDiskMain", "UDK_S"];
- // for (i = 0; i < _UDE.length; i++) { $("div#" + _UDE[i], UDOD)[0].style.display = UTF[i]; }
- //}
- ////克隆disk窗口 同时判断是否需要克隆
- //U.Dk.cloneDisk = function (userid) {
- // var _UDOD, _UDTD, _UDE = US.Disk.Disks[userid]; //获取用户Disk资料
- // if (_UDE && _UDE[1]) { _UDOD = _UDE[1][3].parentNode; }
- // else {
- // if (userid == US.NU) { if ((_UDTD = $("#UseStudioUserDiskDiv" + (userid = (US.userInfo.userid || US.NU)))[0])) { _UDOD = _UDTD; } } //首页的克隆方式
- // if (!_UDOD) {
- // _UDOD = $("#UseStudioUserDiskDiv").addAttrArray({ "style": { "width": "95%", "height": "75%"} })[0]; //获取克隆的实体
- // _UDOD = _UDOD.cloneNode(true); parent.$("body", document)[0].appendChild(_UDOD); //添加到桌面
- // }
- // _UDOD.id = "UseStudioUserDiskDiv" + userid; //克隆Disk窗体
- // }
- // return _UDOD;
- //}
- ////disk添加多个窗口
- //U.Dk.DiskDown = function (userid, UDID, TF) {
- // var _UDOD = U.Dk.cloneDisk(userid); //克隆窗体
- // if (_UDOD) {
- // U.Dk.SBDD(_UDOD, (TF ? ["block", "none"] : ["none", "block"])); //首页和硬盘显示
- // if (_UDOD.style.display == "block") { U.D.SetDTop(_UDOD); } else { U.D.PopupWindow(_UDOD, U.M.apply(this, [[U.Dk.HP.DLO, [_UDOD]]])); } //弹出最上层窗口
- // U.D.Tb.WindowRestore(_UDOD, $$("div", { "style": { "width": "61px", "height": "60px", "margin": "11px 0 0 5px", "className": "UD_DI_iconimg UD_NUB"} }).outerHTML, "硬盘"); //创建任务栏链接
- // if (UDID && userid) { U.Dk.Commonresource(userid, UDID, $("div#UDK", _UDOD)[0]); } //查看用户的切换
- // return _UDOD;
- // }
- //}
- //-----------------------------------------------------------------------共享网络硬盘区域--------------------------------------------------------------
- ////网络硬盘数据共享区域
- //U.Dk.DiskTC = function (UDID, userid, TF) {
- // var _UDOD = U.Dk.DiskDown(US.userInfo.userid || US.NU, "", TF), _UDAD = $("div", _UDOD), _UDSD = $("span", _UDAD["UDK_LPIcon"].parentNode)[0];
- // _UDSD.style.display = US.userInfo.userid ? "block" : "none"; //是否显示陌生人查看
- // U.Dk.HP.NCW(_UDOD); //位置调整
- // U.Dk.DI.CM(UDID, _UDAD["UDK"], userid); //根据DID选择页面
- // U.D.G.UrlWrite("disk", "有思硬盘"); //Url重写
- // U.Dk.DI.SCMSD(_UDOD, true); //网盘动态
- // return _UDOD;
- //}
- //------------------------------------------------------------------------------登录用户本地硬盘和查看他人硬盘操作----------------------------------------------------------------------
- ////根据用户文件得到用户Disk
- //U.Dk.GetDsikFID = function (UFID) {
- // U.A.Request(US.Auth,"UseStudioDisk.GetDsikFID", [UFID], U.Dk.AsynGetDsikFID, ["", UFID]);
- //}
- ////异步获取用户Disk通过文件ID
- //U.Dk.AsynGetDsikFID = function (r) {
- // var _URE = r.value, _userid = _URE[0][1].UserId, _DID = _URE[1], _USOD = U.Dk.cloneDisk(_userid), _UDK = $("div#UDK", _USOD)[0]; //克隆disk
- // r.context = [_UDK, _userid, _DID]; r.value = _URE[0]; U.Dk.onloadup(r); //添加值
- // U.Dk.NologinDiskDown(_userid, _DID, true); //查看对应用户的硬盘
- //}
- ////判断用户是否需要获取数据
- //U.Dk.Commonresource = function (userid, UDID, UDOD) {
- // var _UDE = US.Disk.Disks[userid];
- // if (_UDE) {//正在获取或者存在数据
- // if (_UDE.length) {//存在数据
- // US.Disk.UserDisk = _UDE; _UDE[1][1] = UDID; U.Dk.HP.CW(); U.Dk.onloadfunction(); //生成Disk
- // if (US.userInfo.userid == _UDE[1][2]) { _UDE[1][0] = US.userInfo; U.Dk.M.refreshfile(); } //刷新网盘
- // }
- // }
- // else { U.Dk.HP.CW(UDOD); US.Disk.Disks[userid] = []; U.A.Request(US.Auth,"UseStudioDisk.Commonresource", [US.userInfo.userid || US.NU, userid]), U.Dk.onloadup, [UDOD, userid, UDID]; } //获取用户资料
- //}
- ////加载音乐文件
- //U.Dk.Om = function (userid) {
- // U.Alert("正在加载音乐文件..."); U.Dk.Ism = true; U.Dk.Commonresource(userid || US.NU, US.MG, $("div#UDK", U.Dk.cloneDisk(userid))[0]); //打开音乐
- //}
- ////生成disk对应的树
- //U.Dk.onloadup = function (r) {
- // var i, _UGE, context = r.context, _UDOD = context[0], _userid = context[1], _UDID = context[2]; r = r.value;
- // if (r.length) {
- // _UGE = U.Dk.GUserBL(_userid, _UDID, _UDOD, r); //设置用户Disk变量
- // U.Dk.HP.EBB(); //设置用户右键权限
- // U.Dk.GALAF(r[1].UserId); //disk前进后退
- // U.Dk.M.refreshfile(); //更新资料
- // U.Dk.onloadAjax(_UGE[1][1], _userid); //装载网络硬盘。
- // U.Dk.onloadfunction(); //加载显示的文件
- // if (US.userInfo.userid == _UGE[1][0].UserId) { U.D.ZYXB(0); } //用户指引
- // for (i = 0; i < U.Dk.CSH.length; i++) { U.Dk.CSH[i](_userid, _UDID); } //初始化
- // }
- //}
- ////disk前进后退辅助
- //U.Dk.GALAF = function (UserId) {
- // var _UDAD = $("div", US.Disk.UserDisk[1][3]);
- // U.AFB.RGoL("disk" + UserId); //注册前进后退事件
- // _UDAD["UDK_LR_navback"].onclick = U.M.apply(this, [[U.AFB.DrawBack, ["disk" + UserId])]];
- // _UDAD["UDK_N_next"].onclick = U.M.apply(this, [[U.AFB.GoForward, ["disk" + UserId])]];
- //}
- ////当用户登录后执行的函数
- //U.Dk.onloadfunction = function () {
- // var _UDE, _UDOD;
- // if (U.Dk.Ism) { _UDE = U.Dk.LE.GM(US.MG); U.MPlayer.Open(_UDE[0], _UDE[1]); U.Dk.Ism = false; } //音乐播放器
- // else if ((_UDE = US.Disk.UserDisk[1])[1]) {
- // if ((_UDOD = $("a#d" + _UDE[1], _UDE[3])[0])) { U.Dk.LL.SM(_UDOD.parentNode, _UDE[0].UserId, _UDE[1]); } //展开用户点击是什么
- // U.Dk.HP.AUD(); //设置硬盘上传权限
- // U.Dk.LE.DBC(_UDE[1], _UDE[0].UserId)//导航条
- // U.Dk.LL.UDKURL(_UDE[1]); //Url重写
- // }
- //}
- ////---------------------------------------------------------------------------------用户disk左边显示--------------------------------------------------------------
- ////用户登录视图
- //U.Dk.onloadAjax = function (UDID, userid) {
- // var _UDAD, _UGE = US.Disk.UserDisk[1]; U.Dk.onloadLeft(_UGE[1]); //用户视图展示
- // if (US.userInfo.userid == _UGE[2]) {
- // _UDAD = $("div", _UGE[3]);
- // U.Dk.SetDF(US.Friend[1], _UDAD["UDK_LL_F"]); //用户好友
- // U.Dk.SetDF(US.Friend[2], _UDAD["UDK_LL_Group"]); //群
- // }
- // U.Dk.directoryAjax(_UGE[0].UserId, UDID); //装载左边文件区域数据
- //}
- ////用户视图显示
- //U.Dk.onloadLeft = function () {
- // var _UGE = US.Disk.UserDisk, _UDAD = $("div", $("div#UDK_LL_US", _UGE[1][3])[0]), _UDCD = $("div", _UDAD["UDKLLNR"]), _UDE = ["UDK_LL_US_SP", "UDK_LL_VirC", "UDK_LL_Fcount"], _UKE = [_UGE[1][0].UserNickName, "积分:" + (_UGE[1][0].VirtualCurrency || 0) + "分", "文件:" + _UGE[1][0].FilesCount + "个"];
- // $("img", _UDAD[0]).addAttrArray({ "onerror": U.M.ImgError, "src": U.M.GetImgU(_UGE[1][0].UserThumbnailImageHead) }, 0); //用户头像
- // //信息打印
- // for (i = 0; i < _UDE.length; i++) { _UDAD[_UDE[i]].innerHTML = _UKE[i]; }
- // _UDE = [2, 5]; _UKE = [U.UP.FileSize(U.UP.GetSfileS(_UGE[1][0].UserDiskSpace + "G")), _UGE[1][0].FileSize];
- // for (i = 0; i < _UDE.length; i++) { _UDCD[_UDE[i]].innerHTML = _UKE[i]; }
- // _UDAD["UDK_LL_US_TX"].onclick = U.M.apply(this, [[U.M.StopBubble], [U.U.I.POUW, [_UGE[1][0].UserId]]]); //新增用户
- // (_UGE[1][3]) && ($("span#UDK_Title", _UGE[1][3].parentNode)[0].innerHTML = "<span style='color:#4d8bcc;'>" + _UGE[1][0].UserNickName + "</span>" + "的网盘");
- //}
- ////用户好友和群
- //U.Dk.SetDF = function (UDE, UDOD) {
- // var i, _UDTD, _UDFD = $$("frag"); UDOD.innerHTML = "";
- // for (i = 0; i < UDE.length; i++) {
- // _UDTD = $$("div", { "className": "UDK_LL_HYXZ", "onclick": UDE[i].GroupManageID ? [[U.Dk.LE.DBC, [UDE[i].GroupManageID, US.userInfo.userid]]] : [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", US.DG, UDE[i].UserId, null]]] }, _UDFD);
- // if (UDE[i].GroupManageID) { _UDTD.appendChild(U.Dk.PGroup(UDE[i])); }
- // else { $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead), "title": "聊天", "className": "UDK_LL_HYImg", "onclick": [[U.M.StopBubble], [U.F.W.DMW, [UDE[i]]]] }, _UDTD); }
- // $$("span", { "className": "UDK_LL_HYName", "innerHTML": UDE[i].FriendsDescript || UDE[i].GroupManageName, "title": "查看网盘" }, _UDTD);
- // }
- // UDOD.appendChild(_UDFD);
- //}
- ////用户群
- //U.Dk.PGroup = function (UDE) {
- // var i, j, k = 0, _UDOD, _UDTD, _UAE = _$(US.Friend[3]).Select({ "GroupManageID": UDE.GroupManageID }, null, 9), _UIF = _UAE.length == 1 ? 1 : _UAE.length < 5 ? 2 : 3;
- // US.Disk.UserDisk[0].splice(6, 0, new U.Dk.M.Entity[UDE.GroupManageID, 0, US.userInfo.userid, UDE.GroupManageName, UDE.GroupManageName, "folder", null, U.MT.formatDateToArray(new Date()), U.UP.FFT("folder")[1], 1, null, null, 0, "", UDE.GroupManageID]); //新建实体
- // _UDOD = $$("div", { "className": "UDK_LL_HYImg", "onclick": [[U.M.StopBubble], [U.F.W.DGMW, [UDE]]] }); //打开群
- // for (i = 0; i < _UIF; i++) { _UDTD = $$("div", { "style": { "width": "100%", "height": Math.floor(40 / _UIF) + "px"} }, _UDOD); for (j = 0; j < _UIF; j++) { if (_UAE[k]) { $$("img", { "onerror": U.M.ImgError, "src": U.M.GetImgU(_UAE[k].UserThumbnailImageHead), "style": { "width": Math.floor(40 / _UIF) + "px", "height": Math.floor(40 / _UIF) + "px"} }, _UDTD); k++; } else { break; } } } //生成群头像
- // return _UDOD;
- //}
- ////音乐好友
- //U.Dk.SetMDF = function (UDE, UDOD) {
- // var _UDTD, UDFD = $$("frag");
- // for (i = 0; i < UDE.length; i++) {//在音乐里打印用户好友
- // _UDTD = $$("div", { "className": "U_MPFZL", "onclick": [[U.M.StopBubble], [U.Dk.Om, [UDE[i].UserId]]] }, _UDFD);
- // $$("img", { "onerror": U.M.ImgError, "style": { "width": "30px", "height": "30px" }, "src": U.M.GetImgU(UDE[i].UserThumbnailImageHead) }, _UDTD);
- // $$("span", { "style": { "cursor": "pointer" }, "innerHTML": UDE[i].FriendsDescript }, _UDTD);
- // }
- // UDOD.appendChild(_UDFD);
- //}
- ////用户提示
- //U.Dk.UTS = function (UTS, UDOD) {
- // if (US.Disk.UserDisk[1][0].UserId == US.userInfo.userid || U.M.GTPN("UseStudioUserDiskDiv" + US.userInfo.userid, UDOD)) { U.Dk.DiskOperatingSwitch(US.userInfo.userid); if (UTS[2]) { U.F.M.FAW("fg"); U.Alert(UTS[0]); return false; } return true; }
- // else { U.Alert(UTS[1]); return false; }
- //}
- ////好友导航的隐藏和查看
- //U.Dk.DSDFD = function (UDOD) {
- // UDOD.style.display = UDOD.style.display == "block" ? "none" : "block";
- //}
- ////初始化网盘左边的树
- //U.Dk.directoryAjax = function (userid) {
- // var i, _UDTD, _UDSD, _UDGD, _UGE = US.Disk.UserDisk, _UDOD = $("div#UDK_L_USTreeTreeNode", _UGE[1][3])[0], _UDE = _UGE[0].slice(2, 6), _UDFD = $$("frag"), _UAE = ["UDK_L_USTreeComputerIcon", "UDK_L_USTreeAlbumIcon", "UDK_L_USTreeMusicIcon", "UDK_L_USTreeVideoIcon", "UDK_L_USTreeRecycleBin"]; _UDOD.innerText = "";
- // for (i = 0; i < _UDE.length; i++) {
- // _UDTD = $$("div", { "className": "UDK_L_USTreecontainA" }, _UDFD);
- // _UDSD = $$("div", { "className": "UDK_L_USTTitle", "onclick": [[U.M.StopBubble], [U.Dk.LL.UDKURL, [_UDE[i].UserDirectoryID]], [U.Dk.LL.SM, ["retElement", userid, _UDE[i].UserDirectoryID]], [U.Dk.LE.DBC, [_UDE[i].UserDirectoryID, userid]]] }, _UDTD);
- // $$("div", { "className": "UDK_L_DiskGE UR_I_D_E UDK_L_USTreesign" }, _UDSD);
- // _UDGD = $$("a", { "className": "UDK_L_USTreeusestudiodisktreeA", "id": "d" + _UDE[i].UserDirectoryID }, _UDSD);
- // $$("i", { "className": "UDK_L_DiskGE " + _UAE[i] }, _UDGD);
- // $$("span", { "innerHTML": _UDE[i].UserDirectoryName }, _UDGD);
- // }
- // U.Dk.DSDFD(_UDOD); _UDOD.appendChild(_UDFD);
- //}
- //---------------------------------------------------------------------------添加网盘达人-----------------------------------------------------------------------------
- ////添加最新动态
- //U.Dk.M.AddPND = function (UDE) {
- // var _UGE = US.Disk.DiskDaren[UDE[0]];
- // if (!_UGE) { _UGE = US.Disk.DiskDaren[UDE[0]] = []; }
- // _UGE = _UGE[UDE[1]] = _UGE[UDE[1]] || [];
- // _UGE[UDE[2]] = UDE[3].concat((_UGE[UDE[2]] || []));
- //}
- ////分页获取最新动态
- //U.Dk.M.GetPND = function (UAE) {
- // var _UKE, _UDE = US.Disk.DiskDaren[UAE[0]], _UP = UAE[2], _UTP = Math.ceil(_UP * UAE[3] / UAE[4]), _UIP = _UP % UAE[3], _UE = _UIP * UAE[3], _US = _UE - UAE[3];
- // _UDE && (_UDE = _UDE[UAE[1]]) && (_UDE = _UDE[_UTP]) && (_UKE = _UDE.slice(_US, _UE)); return [_UKE, _UTP];
- //}
- //没有使用。。。先放着
- //U.Dk.SelectRectangle = function (obj) {
- // var FirstX = event.clientX;
- // var FirstY = event.clientY;
- // var SecondX = 0;
- // var SecondY = 0;
- // var isShare = true;
- // var div = document.getElementById("UDK_LL_ShareBox");
- // div.style.left = FirstX + "px";
- // div.style.top = FirstY + "px";
- // div.style.width = "0px";
- // div.style.height = "0px";
- // div.style.display = "block";
- // window.onmousemove = function () {
- // if (isShare == true) {
- // window.scrollTo(0, 0)
- // SecondX = event.clientX;
- // SecondY = event.clientY;
- // if (SecondX > FirstX) {
- // div.style.left = FirstX + "px";
- // div.style.width = SecondX - FirstX + "px";
- // }
- // if (SecondY > FirstY) {
- // div.style.top = FirstY + "px";
- // div.style.height = SecondY - FirstY + "px";
- // }
- // if (SecondY < FirstY) {
- // div.style.top = SecondY + "px";
- // div.style.height = FirstY - SecondY + "px";
- // }
- // if (SecondX < FirstX) {
- // div.style.left = SecondX + "px";
- // div.style.width = FirstX - SecondX + "px";
- // }
- // }
- // }
- // window.onmouseup = function () {
- // isShare = false;
- // div.style.display = "none";
- // }
- // window.onblur = function () {
- // isShare = false;
- // div.style.display = "none";
- // }
- //}
- //设置权限
- U.Dk.RE.SZQX = function () {
- var _ITF, _UGE = US.Disk.UserDisk, _UDID = _UGE[1][1], _UDRD = _$(_UGE[0]).RecurD(null, { "UserDirectoryID": _UDID }, "UserDirectoryParentID");
- if (_UDRD.length > 1 && _UDRD[0].UserDirectoryEncrypt != "true" && _UDRD[_UDRD.length - 1].GroupID != null) { _ITF = ["是否<span style='color:red;'>设置</span>文件夹权限", "encrypt", "true"]; } //设置文件夹权限
- else {
- if (_UDRD[0].UserDirectoryEncrypt == "true") { _ITF = ["是否<sapn style='color:red;'>解除</sapn>文件夹权限", "unencrypted", null]; } //解除文件夹权限
- else if (_UGE[1][2] == US.userInfo.userid && _UDRD.length > 1) { //用户设置权限
- if (_UDRD[0].GroupID != US.NU) { _ITF = ["是否<span style='color:red;'>设置</span>文件夹共享", US.NU]; } //设置文件夹共享
- else { _ITF = ["是否<span style='color:red;'>解除</span>文件夹共享", US.NU]; } //取消文件共享
- }
- else { U.Alert("无法设置他人权限"); }
- }
- if (_ITF) { U.UI.Confirm(_ITF[0], [U.Dk.RE.SQX, [_UDID, _ITF[1], _ITF[2]]], null); }
- }
- ////***********************************************************加密解密开始*********************************************************************
- //U.Dk.RE.SHEW = function (obj) {
- // //判断加密/解密
- // var EncryptWindow = new U.UI.Dialog();
- // EncryptWindow.title = U.M.textCompatible(obj) == "" ? "暂时解密" : U.M.textCompatible(obj);
- // EncryptWindow.width = 280;
- // EncryptWindow.model = 'OKCancel';
- // // var _directoryid = document.getElementById("selectLabel").value;
- // var _directoryid = U.D.P.selectLabel;
- // var key = U.D.P.FileKey;
- // // var key = document.getElementById("FileKey").value;
- // switch (U.M.textCompatible(obj)) {
- // case "加密":
- // EncryptWindow.height = 180;
- // 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;">输入密码 <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;">确认密码 <input type="password" id="encryptdecryptpassword2" style="width:140px; height:20px;" class="OS inputBox"/></span></div>';
- // EncryptWindow.confirmYesClose = function () {
- // var _pass1 = document.getElementById("encryptdecryptpassword1").value; //取第一次密码
- // var _pass2 = document.getElementById("encryptdecryptpassword2").value; //取第二次密码
- // if (_pass1 != _pass2 || _pass1 == "") {
- // //document.getElementById("encryptdecryptalertdiv").innerHTML = "密码不一致";
- // alert("密码不一致");
- // return;
- // }
- // // var response = U.A.Request(US.Auth,"UseStudioDisk.encryptwindowButtonClick", _directoryid + ',' + _pass1 + ',' + "加密").value;
- // var response = U.A.Request(US.Auth,"UseStudioDisk.encryptwindowButtonClick", [_directoryid, _pass1]).value.toString();
- // //var response = UseStudioDiskManage.encryptwindowButtonClick(_directoryid, _pass1, "加密").value;
- // if (response == "false") {
- // alert("密码输入错误");
- // } else {
- // //动态修改Directory文件名图片及方法
- // // var aa = null;
- // // if (key == "") {
- // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
- // // // var ktext = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // //text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
- // // // aa = text;
- // // // aa = eval('(' + text + ')');
- // // }
- // // else {
- // // text = US.Disk.UserDisk[0][key];
- // // }
- // text = U.Dk.M.ufinfoarray("onefind", key);
- // text.UserDirectoryEncrypt = response;
- // text.UserDirectoryUrl = "background-position:-120px -42px;";
- // if (document.getElementById("disk" + _directoryid) != null) {
- // var _div = document.getElementById("disk" + _directoryid);
- // if (U.Dk.DirectoryView == "Details") {
- // _div.getElementsByTagName("i")[0].style.backgroundPosition = "-241px -96px";
- // }
- // else if (U.Dk.DirectoryView == "Noraml") {
- // _div.getElementsByTagName("i")[0].style.backgroundPosition = "-120px -42px";
- // }
- // }
- // if (document.getElementById(_directoryid) != null) {
- // var div = document.getElementById(_directoryid);
- // if (div.getElementsByTagName("span")[0].innerHTML == null || div.getElementsByTagName("span")[0].innerHTML == "") {
- // div.getElementsByTagName("i")[0].className = "UDK_L_Disk UDK_L_USTreeFolderEncryptIcon";
- // div.getElementsByTagName("span")[0].innerHTML = "(已加密)";
- // div.onclick = null;
- // div.href = "";
- // div.onmousedown = function () { U.Dk.rightClickA(text); }
- // }
- // }
- // //这个地方没写详细的文件..图片改变?.....暂时放着
- // }
- // }
- // break;
- // case "解密":
- // EncryptWindow.height = 140;
- // 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;">输入密码 <input type="password" id="decripttextinput" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
- // EncryptWindow.confirmYesClose = function () {
- // var decrypttext = document.getElementById("decripttextinput").value;
- // // var response = U.A.Request(US.Auth,"UseStudioDisk.GetUserDecrptData", _directoryid + ',' + decrypttext).value;
- // var response = U.A.Request(US.Auth,"UseStudioDisk.DeciphermentFile", [_directoryid, decrypttext]).value.toString();
- // // var response = UseStudioDiskManage.GetUserDecrptData(_directoryid, decrypttext).value;
- // if (response == "false") {
- // alert("密码错误");
- // return;
- // }
- // else {
- // //置文件夹密码为空
- // // U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", response).value;
- // //这个地方直接修改..........放到后台执行..不需要返回值...判断密码是否正确....由前台的树....获取到的密码直接判断
- // //这个让密码为空....的代码....还要在进入一次后台.....有必要么
- // //U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", [response]).value.toString();
- // //UseStudioDiskManage.DecryptDirectory(response);
- // //动态修改Directory图片文字及方法
- // // var aa = null;
- // // if (key == "") {
- // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
- // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
- // // //aa = text;
- // // // aa = eval('(' + text + ')');
- // // }
- // // else {
- // // text = US.Disk.UserDisk[0][key];
- // // }
- // text = U.Dk.M.ufinfoarray("onefind", key);
- // text.UserDirectoryEncrypt = null;
- // //text.UserDirectoryUrl = "background-position:-120px -42px;";
- // //未加密文件的拼图
- // text.UserDirectoryUrl = "background-position:-78px -175px;";
- // if (document.getElementById("disk" + _directoryid) != null) {
- // if (U.Dk.DirectoryView == "Details") {
- // _div.getElementsByTagName("i")[0].style.backgroundPosition = "-217px -173px";
- // }
- // else if (U.Dk.DirectoryView == "Noraml") {
- // _div.getElementsByTagName("i")[0].style.backgroundPosition = "-78px -175px";
- // }
- // }
- // if (document.getElementById(_directoryid) != null) {
- // var div = document.getElementById(_directoryid);
- // if (div.getElementsByTagName("span")[0].innerHTML == "(已加密)") {
- // div.getElementsByTagName("i")[0].className = "UDK_L_Disk UDK_L_USTreeFolderIcon";
- // div.getElementsByTagName("span")[0].innerHTML = "";
- // div.onclick = "U.Dk.LL.VM(this);javascript:U.Dk.RE.CN('" + _directoryid + "'); javascript:U.Dk.LL.Nav(document.getElementById('" + text.UserDirectoryID + "')," + text.UserDirectoryDeep + ");";
- // div.href = "";
- // }
- // }
- // }
- // }
- // break;
- // // case "": //这个为空。。。到底什么情况才会有?
- // // EncryptWindow.height = 140;
- // // 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;">输入密码 <input type="password" id="decripttextinput" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
- // // EncryptWindow.confirmYesClose = function () {
- // // var decrypttext = document.getElementById("decripttextinput").value;
- // // //var response = U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", _directoryid + ',' + decrypttext).value;
- // // //这里有点蛋疼........实际上就传入一个ID......而且判断的返回值一直为空..............到底这个..密码错误根本不可能触发
- // // //var response = U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", [_directoryid, decrypttext]).value;
- // // var response = "true";
- // // //var response = UseStudioDiskManage.GetUserDecrptData(_directoryid, decrypttext).value;
- // // if (response == "false") {
- // // alert("密码错误"); return;
- // // }
- // // else {
- // // //动态修改Directory图片文字及方法
- // // // var aa = null;
- // // // if (key == "") {
- // // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
- // // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // // text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
- // // // // aa = text;
- // // // // aa = eval('(' + text + ')');
- // // // }
- // // // else {
- // // // text = US.Disk.UserDisk[0][key];
- // // // }
- // // text = U.Dk.M.ufinfoarray("onefind", key);
- // // //记录下父亲ID,同时也给全局变量赋值
- // // U.Dk.ParentID = text.UserDirectoryID;
- // // document.getElementById("ParentID").innerHTML = text.UserDirectoryID;
- // // //更新Json数据
- // // //US.Disk.directoryContenTable = U.Dk.directoryAjax(U.Dk.UserGuid, text.UserDirectoryID);
- // // //传入视图类型的全局变量,判断是哪个视图后再重新刷新目录
- // // U.Dk.VW.NOD(U.Dk.DirectoryView);
- // // U.Dk.ArticleNav(text.UserDirectoryName, text.UserDirectoryID, text.UserDirectoryDeep);
- // // }
- // // }
- // // break;
- // }
- // EncryptWindow.Create();
- //}
- ////上传文件使用的动态添加
- //Namespace.register("U.UL");
- ////普通视图
- //U.UL.UpTable = function (UserDirectoryID, filetype, UserDirectoryName, FilesID, FilesServerName, UserDirectoryUrl, UserFileSize) {
- // var myDate = new Date();
- // var directoryListAreaDiv = parent.window.document.getElementById("UDK_LR_directoryListArea");
- // //UserDirectoryUrl = parent.window.U.Dk.FileTypeImg(filetype);
- // var createDiv = document.createElement("div");
- // createDiv.id = "disk" + FilesID;
- // createDiv.className = "UDK_RT_application";
- // createDiv.style.cssText = "width:80px; margin-left:10px; text-align:center; float:left; height:80px; ";
- // fileAddTime = parent.window.U.MT.getDate(myDate);
- // //这里对地址进行判断.....以免前台的树的内容不同
- // if (UserDirectoryUrl == null || UserDirectoryUrl == "") {
- // UserDirectoryUrl = parent.window.U.Dk.FileTypeImg(filetype);
- // }
- // else {
- // UserDirectoryUrl = "background-image:url(" + parent.window.US.Disk.UserDisk[1][0] + UserDirectoryUrl + ");";
- // }
- // //创建图标内div的内容
- // 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 + "')\">";
- // strCode += "<i class='UDK_L_Disk' style='width:65px; height:61px; display:inline-block; " + UserDirectoryUrl + ";'></i><br/>";
- // strCode += "<span style='width:80px;' id=resDataList_name_" + FilesID + ">" + UserDirectoryName + "</span>";
- // strCode += "</div>";
- // createDiv.innerHTML = strCode;
- // directoryListAreaDiv.appendChild(createDiv);
- // //为了防止一开时加载...U.Dk.ParentID为空的情况
- // var dd;
- // if (parent.window.U.Dk.ParentID == "") {
- // dd = "7aeaab56-485f-4150-b781-8ffd86d593ce"
- // }
- // else
- // dd = parent.window.U.Dk.ParentID;
- // //拼凑链接地址
- // if (FilesServerName.lastIndexOf(".", FilesServerName.length - 1) == -1) {
- // FilesServerName = FilesServerName + "." + filetype;
- // }
- // else {
- // FilesServerName = FilesServerName + filetype;
- // }
- // 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 };
- // //写入前台的树
- // parent.window.US.Disk.UserDisk[0].push(str);
- //}
- ////详细视图
- //U.UL.UpDetailsTable = function (UserDirectoryID, filetype, UserDirectoryName, FilesID, FilesServerName, UserDirectoryUrl, UserFileSize) {
- // var myDate = new Date();
- // var directoryListAreaDiv = parent.window.document.getElementById("UDK_LR_directoryListArea");
- // if (UserDirectoryUrl == null || UserDirectoryUrl == "") {
- // UserDirectoryUrl = parent.window.U.Dk.FileTypeImg(filetype);
- // }
- // else {
- // UserDirectoryUrl = "background-image:url(" + parent.window.US.Disk.UserDisk[1][0] + UserDirectoryUrl + ");";
- // }
- // //UserDirectoryUrl = parent.window.U.Dk.FileTypeImg(filetype);
- // var createDiv = document.createElement("div");
- // createDiv.className = "UDK_RT_Details";
- // //createDiv.style.cssText = "width:100%; min-width:500px; border-bottom:dashed 1px #ccc; height:32px;";
- // createDiv.id = "disk" + FilesID;
- // fileAddTime = parent.window.U.MT.getDate(myDate);
- // //把文件类型转换成中文名称
- // var tmp = parent.window.U.Dk.findFileType(filetype).split("|");
- // var filetypename = tmp[0];
- // var fileIcon = tmp[1];
- // var key = directoryListAreaDiv.children.length - 2;
- // strCode = "<input type=\"checkbox\" check=\"" + key + "\" class=\"UDK_RT_DL_CK\" id=\"js_datalist_check_" + key + "\"/>";
- // strCode += "<a onmousedown=\"U.M.StopBubble();U.Dk.RM.DRC(this,'" + FilesID + "')\" onclick=\"U.Dk.divdoubleClick('" + FilesID + "')\" ondblclick=\"this.click()\" >";
- // strCode += "<i class='UDK_L_Disk UDK_RT_DL_IMG' style='" + fileIcon + "'></i>";
- // strCode += "<span class=\"UDK_RT_DT_Span UDK_RT_DT_SP_FN\" id=resDataList_name_" + FilesID + " >" + UserDirectoryName + "</span>";
- // strCode += "<span class=\"UDK_RT_DT_Span UDK_RT_DT_SP_DT\">" + fileAddTime + "</span>";
- // strCode += "<span class=\"UDK_RT_DT_Span UDK_RT_DT_SP_FZ\">" + "0KB" + "</span>"; //文件大小还没算出来,需要算出。
- // strCode += "<span class=\"UDK_RT_DT_Span UDK_RT_DT_SP_FT\" id=\"reDataList_type_" + FilesID + "\">" + filetypename + "</span>"
- // strCode += '</a>'
- // createDiv.innerHTML = strCode;
- // directoryListAreaDiv.appendChild(createDiv);
- // var dd;
- // if (parent.window.U.Dk.ParentID == "") {
- // dd = "7aeaab56-485f-4150-b781-8ffd86d593ce"
- // }
- // else
- // dd = parent.window.U.Dk.ParentID;
- // //拼凑链接地址
- // if (FilesServerName.lastIndexOf(".", FilesServerName.length - 1) == -1) {
- // FilesServerName = FilesServerName + "." + filetype;
- // }
- // else {
- // FilesServerName = FilesServerName + filetype;
- // }
- // 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 };
- // parent.window.US.Disk.UserDisk[0].push(str);
- //}
- //Namespace.register("U.MP");
- //Namespace.register("U.Dk"); // 音乐播放的HTML 打印
- ////音乐的函数.............要=======PG 回来......................................没人做
- //U.MP.up = function () {
- // var _allPath, i; //文件路径
- // var MusicPlayList = document.getElementById("MusicPlayList"); //文件的展示的DIv
- // MusicPlayList.innerHTML = "";
- // if (parent.U.Dk.ParentID == null) return;
- // var MusicValue = eval(parent.U.Dk.M.ufinfoarray("find", [parent.U.Dk.ParentID, 1])); //你点击的音乐文件
- // for (i = 0; i < MusicValue.length; i++) {
- // _allPath = parent.US.Disk.UserDisk[1][0] + MusicValue[i].UserFilesServerName;
- // var _musicName = MusicValue[i].UserDirectoryName;
- // if (_musicName.length > 20) _musicName = _musicName.substring(0, 20) + "...";
- // MusicPlayList.innerHTML += "<li id='s" + i + "' class='player' jplayer='" + _allPath + "' songer='有思工作室' ablum='有思工作室' songimg='skin/default/images/songer/1.jpg'>" +
- // "<a href='javascript:void(0);' class='controllink'></a>" +
- // "<p>'" + _musicName + "'</p>" +
- // "</li>";
- // }
- //}
- ////文件下载
- //U.Dk.RE.ODL = function () {
- // var key = U.D.P.FileKey;
- // //通过ID找一条记录
- // text = U.Dk.M.ufinfoarray("onefind", key);
- // var filetype = text.UserDirectoryExtendType.toLowerCase();
- // //由于没有解决txt xls 图片格式的下载..暂时使用在另一个页面打开这个方法
- // if (filetype == "txt" || filetype == "xls" || filetype == "jpg" || filetype == "bmp" || filetype == "png" || filetype == "gif") {
- // var openanddownloadA = document.createElement("div");
- // window.open("http://fs.1473.cn/" + text.UserFilesServerName);
- //// openanddownloadA.href = "http://fs.1473.cn/" + text.UserFilesServerName + ".rar";
- //// openanddownloadA.onclick = function () {
- //// location.href = "http://fs.1473.cn/" + text.UserFilesServerName + ".rar";
- //// //SaveAs(openanddownloadA.href, openanddownloadA.href);
- //// }
- // document.body.appendChild(openanddownloadA);
- // openanddownloadA.click();
- // }
- // else {
- // var openanddownloadA = document.createElement("div");
- // openanddownloadA.href = "http://fs.1473.cn/" + text.UserFilesServerName;
- //// openanddownloadA.onclick = function () {
- //// location.href = "http://fs.1473.cn/" + text.UserFilesServerName ;
- //// //SaveAs(openanddownloadA.href, openanddownloadA.href);
- //// }
- // document.body.appendChild(openanddownloadA);
- // openanddownloadA.click();
- // }
- // // var a;
- // // a =window.open("http://fs.1473.cn/" + text.UserFilesServerName,"_blank", "width=0, height=0");
- // // a.document.execCommand("SaveAs");
- // // a.close();
- // //无窗口弹出
- // // var str = "http://fs.1473.cn/" + text.UserFilesServerName;
- // // parent.window.frames["hrong"].location.href = str;
- // // sa();
- //}
- ////文件下载
- //U.Dk.RE.ODL = function () {
- // var key = parent.U.D.P.FileKey;
- // //通过ID找一条记录
- // text = parent.U.Dk.M.ufinfoarray("onefind", key);
- // // var openanddownloadA = document.createElement("div");
- // // openanddownloadA.href = "http://fs.1473.cn/" + text.UserFilesServerName;
- // // openanddownloadA.onclick = function () {
- // // alert("1");
- // //
- // // location.href = "http://fs.1473.cn/" + text.UserFilesServerName;
- // // SaveAs(openanddownloadA.href, openanddownloadA.href);
- // // }
- // // document.body.appendChild(openanddownloadA);
- // // openanddownloadA.click();
- // // var a;
- // // a =window.open("http://fs.1473.cn/" + text.UserFilesServerName,"_blank", "width=0, height=0");
- // // a.document.execCommand("SaveAs");
- // // a.close();
- // //无窗口弹出
- // var str = "http://fs.1473.cn/" + text.UserFilesServerName;
- // parent.window.frames["hrong"].location.href = str;
- // sa();
- //}
- //function sa() {
- // if (parent.window.frames["hrong"].document.readyState != "complete")
- // setTimeout("sa()", 100);
- // else
- // parent.window.frames["hrong"].document.execCommand('SaveAs');
- //}
- //function SaveAs(href,name) {
- // alert("123");
- // var a = window.open(href)
- // a.document.execCommand('Saveas ', true, href)
- // a.window.close()
- // return false
- //}
- ///----------------------------本地搜索..........有关于搜索都在此
- ////--模糊收索,通过queryname的这进行第一次收索,childqueryname进行只子收索--徐嘉伟
- //U.LD.return_query = function (obj) {
- // 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>";
- // 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>";
- // 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>";
- // 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>";
- // //父亲搜索框的值
- // var queryname = document.getElementById("UDK_N_queryBox").value;
- // var childqueryid = "";
- // var allfile = "";
- // // 对点击传过来的值经行判断。如果是查询。那么就进行赋值
- // if (obj.value == "查询") {
- // childqueryid = document.getElementById("UDK_N_minutetext").value;
- // if (U.Dk.obj_id == undefined) { ; }
- // else {
- // obj.id = U.Dk.obj_id;
- // }
- // }
- // else {
- // childqueryid = "";
- // }
- // if (queryname == "" || queryname == "请输入你要查找的文件") {
- // return;
- // }
- // // var all = U.A.Request(US.Auth,"UseStudioDisk.Managequery", queryname).value;
- // var all = U.A.Request(US.Auth,"UseStudioDisk.Managequery", [queryname]).value;
- // //var all = eval(UseStudioDiskManage.query(queryname).value);
- // document.getElementById("UDK_N_logoquerydiv").style.display = "none";
- // // 遍历整个json经行赋值。。
- // for (var query_result in all) {
- // var allresult = all[query_result];
- // var filecoordinate = U.LD.coordinate(allresult.UserFilesExtendName);
- // var file_ename = allresult.UserFilesExtendName;
- // if (file_ename == "jpg" || file_ename == "gif" || file_ename == "png" || file_ename == "bmp") {
- // if (allresult.UserFilesName.indexOf(childqueryid) != -1) {
- // 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>";
- // allresult.UserFilesName = "" + allresult.UserFilesName;
- // var photoImage = US.Disk.UserDisk[1][0] + allresult.UseFilesServerThumbnailName;
- // 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>";
- // }
- // }
- // else if (file_ename.indexOf("mp") != -1) {
- // if (allresult.UserFilesName.indexOf(childqueryid) != -1) {
- // 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>";
- // 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>";
- // }
- // }
- // else if (file_ename.indexOf("mv") != -1 || file_ename == "wma") {
- // if (allresult.UserFilesName.indexOf(childqueryid) != -1) {
- // 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>";
- // 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>";
- // }
- // }
- // else {
- // if (allresult.UserFilesName.indexOf(childqueryid) != -1) {
- // 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>";
- // 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>";
- // }
- // }
- // }
- // hardpan = hardpan + "</div><br />";
- // photo_album = photo_album + "</div><br />";
- // video = video + "</div><br />";
- // music = music + "</div>";
- // //查看硬盘相册。。的类容防止样式错误
- // 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 />") {
- // hardpan = "";
- // }
- // 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 />") {
- // photo_album = "";
- // }
- // 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>") {
- // music = "";
- // }
- // 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 />") {
- // video = "";
- // }
- // // 这里是看用户点击想查看是什么部分。。
- // if (obj.id == "UDK_N_hardpan") {
- // allfile = hardpan;
- // }
- // else if (obj.id == "UDK_N_music") {
- // allfile = music;
- // }
- // else if (obj.id == "UDK_N_video") {
- // allfile = video;
- // }
- // else if (obj.id == "UDK_N_photo_album") {
- // allfile = photo_album;
- // }
- // else {
- // allfile = hardpan + photo_album + video + music;
- // }
- // if (allfile == "<br /><br /><br />") {
- // allfile = "";
- // }
- // // 把json值打印出来
- // document.getElementById("UDK_N_disksearchResultdiv").innerHTML = allfile;
- // if (allfile != "") {
- // document.getElementById("UDK_N_childquerydiv").style.display = "block"; //如果查询有值。我们就让子查询条出来。
- // document.getElementById("UDK_N_minutetext").focus(); //这里是子查询聚焦..
- // }
- // U.Dk.obj_id = obj.id; //为了防止数据打印的变化变回初值防止查询错误
- //}
- //// 当用户点击enter键时进行搜索--徐嘉伟
- //U.LD.returnkeylogin = function (obj) {
- // var cilckbutton = document.getElementById("" + obj.id + "").children[1];
- // if (event.keyCode == 13) {
- // cilckbutton.click();
- // U.M.StopDefault(obj.event); //阻止事件冒泡。
- // }
- //}
- ////点击返回后收索出现--徐嘉伟
- //U.LD.return_search = function () {
- // document.getElementById("UDK_N_disksearchResultdiv").innerHTML = ""; //把上一次搜索的json值变回""
- // document.getElementById("UDK_N_childquerydiv").style.display = "none"; //隐藏子搜索条
- // document.getElementById("UDK_N_logoquerydiv").style.display = "block"; //把总搜索条显示回来
- // document.getElementById("UDK_N_queryBox").focus(); //querybox触礁
- // document.getElementById("UDK_N_queryBox").value = ""; //清空上次查询的值
- // document.getElementById("UDK_N_minutetext").value = ""; //把子查询条的值清空
- //}
- ////伸展文件--徐嘉伟
- //U.LD.displayfile = function (obj) {
- // var allresult = "";
- // var gainnonediv = obj.parentNode.parentNode.getElementsByTagName("div"); //找到所有的穿过来的div经行下面的伸展
- // var _extendimg = "/img/UD.Disk/Extend.jpg";
- // var _shrinkimg = "http://disk.1473.cn/img/Shrink.jpg";
- // obj.src == _extendimg ? obj.src = _shrinkimg : obj.src = _extendimg; //伸展图标的改变
- // if (gainnonediv[1].style.display == "none") {
- // for (var i = 0; i < gainnonediv.length; i++) {
- // // allresult = gainnonediv[i];
- // gainnonediv[i].style.display = "block";
- // }
- // }
- // else {
- // for (var i = 0; i < gainnonediv.length; i++) {
- // // allresult = gainnonediv[i];
- // if (i != 0) {//除了第一div下面的进行隐藏收缩
- // gainnonediv[i].style.display = "none";
- // }
- // }
- // }
- //}
- //U.Dk.popFileUplaodWindow = function (obj) {
- // //如果用户未登录,跳转到登录页面这个地方已经没有用了
- //// if (US.userInfo.username == undefined) {
- //// // window.location.href = "smallRegister.aspx";
- //// return;
- //// }
- // filewindow = document.getElementById("uploadFileDiv");
- // if (filewindow.style.display == "none" || filewindow.style.display == "") {
- // filewindow.style.display = "block";
- // var _type = document.getElementById("ArticleNav").firstChild.innerHTML;
- // var tmp = _type.split(" ");
- // _type = tmp[0];
- // //将连接地址赋给相应的选项;蔡城辉:根据选项,在上传窗口左上角显示相应的文字
- // switch (_type) {
- // case "我的电脑": document.getElementById("uploadFileFrame").src = "utilitypages/FilesUpload/plupload/UseStudioUpload.aspx"; document.getElementById("filetypelabel").innerHTML = "上传文件"; break;
- // case "相册": document.getElementById("uploadFileFrame").src = "utilitypages/FilesUpload/plupload/UseStudioUploadImage.aspx"; document.getElementById("filetypelabel").innerHTML = "上传图片"; break;
- // case "音乐": document.getElementById("uploadFileFrame").src = "utilitypages/FilesUpload/plupload/UseStudioUploadMusic.aspx"; document.getElementById("filetypelabel").innerHTML = "上传音乐"; break;
- // case "视频": document.getElementById("uploadFileFrame").src = "utilitypages/FilesUpload/plupload/UseStudioUploadVideo.aspx"; document.getElementById("filetypelabel").innerHTML = "上传视频"; break;
- // }
- // }
- // else {
- // filewindow.style.display = "none";
- // }
- // filewindow.style.left = obj.offsetLeft - 70;
- // filewindow.style.top = obj.getBoundingClientRect().top - 40 - 350;
- //}
- //调整目录和文件区域的宽度
- //U.Dk.adjust = function (diskbody) {
- // // var leftContent = document.getElementById("UDK_RS_leftContent");
- // // var rightConent = document.getElementById("UDK_RS_rightContent");
- // //var leftwidth = leftContent.style.width.substring(0, leftContent.style.width.indexOf("p"));
- // //U.Dk.ScreenWidth = document.body.clientWidth; UDK_RS_rightContent
- // //var bw = diskbody.clientWidth;
- // var bh = diskbody.parentNode.clientHeight - 30;
- // diskbody.style.height = bh + "px";
- // // diskbody.width = bw + "px";
- // // diskbody.height = bh + "px";
- // //var ScreenWidth = diskbody.clientWidth;
- // //var width = bw - leftwidth - 5 + "px";
- // //rightConent.style.width = width;
- //}
- //----------------------参数------------
- //判断是否已安装控件
- //U.Dk.ContentDarg = function () {
- // var isdarg = true;
- // document.onmousemove = function () {
- // if (document.getElementById("leftContent") != null || document.getElementById("rightContent") != null) {
- // if (isdarg == true) {
- // var leftContent = document.getElementById("leftContent");
- // var rightConent = document.getElementById("rightContent");
- // var directoryCommandArea = document.getElementById("directoryCommandArea");
- // var width = event.clientX - leftContent.getBoundingClientRect().left;
- // width = Math.max(Math.min(width, 600), 220);
- // leftContent.style.width = width + "px";
- // rightConent.style.width = (ScreenWidth - width - 5) + "px";
- // directoryCommandArea.style.left = width + 20 + "px";
- // }
- // }
- // }
- // document.onmouseup = function () { isdarg = false; }
- //}
- //调整左右两边的width的样式使用户达到最佳效果。。
- //////////////////////////////////////////////////////////////////////////////////待修改
- ////单击目录或者文件事件,记录目录或者文件id
- //U.Dk.divsingleClick = function (url) {
- // document.getElementById("selectLabel").value = url;
- //}
- //////////////////////////////////////////////////////////////////////////////////待修改
- ////文件视图
- //U.Dk.FileTable = function (Json,Type) {
- // var directoryListAreaDiv = document.getElementById("directoryListArea");
- // directoryListAreaDiv.innerHTML = "";
- // for (var key in Json) {
- // //遍历Json数据,赋给_directory,创建table表格
- // var _directory = Json[key];
- // var createDiv = document.createElement("div");
- // createDiv.style.cssText = "width:80px; text-align:center; float:left; height:100px; ";
- // //创建图标内div的内容
- // strCode = "<div class=\"application\" oncontextmenu=\"U.Dk.RM.DRC('" + key + "')\" onclick=\"U.Dk.divdoubleClick('" + key + "')\" ondblclick=\"javascript:this.click()\">";
- // strCode += "<a href=# onclick=\"return false;\" style=\"padding:3px 0px 3px 0px;\">";
- // strCode += "<img width=\"50\" height=\"50\" src=" + _directory.UseFilesServerThumbnailName + " alt=\"www.1473.cn\"><br/>";
- // strCode += "<span style='width:80px;' id=resDataList_folder_" + key + ">" + _directory.UserFilesName + "</span>";
- // strCode += "</a>";
- // strCode += "</div>";s
- // createDiv.innerHTML = strCode;
- // directoryListAreaDiv.appendChild(createDiv);
- // }
- // var TypeEng='';
- // switch(Type){
- // case "声音文件":TypeEng="Music";break;
- // case "视频文件":TypeEng="Video";break;
- // case "Office文档":TypeEng="Office";break;
- // case "图像文件":TypeEng="Photos";break;
- // }
- // var ArticleNav = document.getElementById("ArticleNav");
- // 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>";
- //}
- //***********************************************************加密解密开始************************************************;*********************
- //U.Dk.RE.SHEW = function (obj) {
- // //判断加密/解密
- // var EncryptWindow = new U.UI.Dialog();
- // EncryptWindow.title = U.M.textCompatible(obj) == "" ? "暂时解密" : U.M.textCompatible(obj);
- // EncryptWindow.width = 280;
- // EncryptWindow.model = 'OKCancel';
- // // var _directoryid = document.getElementById("selectLabel").value;
- // //var _directoryid = U.D.P.selectLabel;
- // var key = U.D.P.FileKey;
- // // var key = document.getElementById("FileKey").value;
- // switch (U.M.textCompatible(obj)) {
- // case "加密":
- // EncryptWindow.height = 180;
- // 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;">输入密码 <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;">确认密码 <input type="password" id="encryptdecryptpassword2" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
- // EncryptWindow.confirmYesClose = function () {
- // var _pass1 = document.getElementById("encryptdecryptpassword1").value; //取第一次密码
- // var _pass2 = document.getElementById("encryptdecryptpassword2").value; //取第二次密码
- // if (_pass1 != _pass2 || _pass1 == "") {
- // //document.getElementById("encryptdecryptalertdiv").innerHTML = "密码不一致";
- // alert("密码不一致");
- // return;
- // }
- // // var response = U.A.Request(US.Auth,"UseStudioDisk.encryptwindowButtonClick", _directoryid + ',' + _pass1 + ',' + "加密").value;
- // var response = U.A.Request(US.Auth,"UseStudioDisk.encryptwindowButtonClick", [_directoryid, _pass1]).value.toString();
- // //var response = UseStudioDiskManage.encryptwindowButtonClick(_directoryid, _pass1, "加密").value;
- // if (response == "false") {
- // alert("密码输入错误");
- // }
- // else {
- // //动态修改Directory文件名图片及方法
- // // var aa = null;
- // // if (key == "") {
- // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
- // // // var ktext = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // //text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
- // // // aa = text;
- // // // aa = eval('(' + text + ')');
- // // }
- // // else {
- // // text = US.Disk.UserDisk[0][key];
- // // }
- // text = U.Dk.M.ufinfoarray("onefind", key);
- // text.UserDirectoryEncrypt = response;
- // //修改文件图标样式
- // text.UserDirectoryUrl = "background-position:79px -263px;";
- // //判断能否找到点击文件div
- // var RightTreediv = document.getElementById("disk" + _directoryid);
- // //找到后进行视图类型判断--修改文件图标
- // if (RightTreediv != null) {
- // if (U.Dk.DirectoryView == "Details") {
- // RightTreediv.getElementsByTagName("i")[0].style.backgroundPosition = "-241px -96px";
- // }
- // else if (U.Dk.DirectoryView == "Normal") {
- // RightTreediv.getElementsByTagName("i")[0].style.backgroundPosition = "79px -263px";
- // }
- // }
- // //左边树的div
- // var LeftTreeDiv = document.getElementById(_directoryid);
- // //左边的目录设计
- // if (LeftTreeDiv != null) {
- // if (LeftTreeDiv.getElementsByTagName("span")[0].innerHTML == null || LeftTreeDiv.getElementsByTagName("span")[0].innerHTML == "") {
- // LeftTreeDiv.getElementsByTagName("i")[0].className = "UDK_L_Disk UDK_L_USTreeFolderEncryptIcon";
- // LeftTreeDiv.getElementsByTagName("span")[0].innerHTML = "(已加密)";
- // 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); };
- // }
- // }
- // }
- // }
- // break;
- // case "解密":
- // EncryptWindow.height = 140;
- // 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;">输入密码 <input type="password" id="decripttextinput" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
- // EncryptWindow.confirmYesClose = function () {
- // //获取密码
- // var decrypttext = document.getElementById("decripttextinput").value;
- // // var response = U.A.Request(US.Auth,"UseStudioDisk.GetUserDecrptData", _directoryid + ',' + decrypttext).value;
- // //通过后台进行解密以及是否密码正确的判断
- // var response = U.A.Request(US.Auth,"UseStudioDisk.DeciphermentFile", [_directoryid, decrypttext]).value.toString();
- // // var response = UseStudioDiskManage.GetUserDecrptData(_directoryid, decrypttext).value;
- // if (response == "false") {
- // alert("密码错误");
- // return;
- // }
- // else {
- // //置文件夹密码为空
- // // U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", response).value;
- // //这个地方直接修改..........放到后台执行..不需要返回值...判断密码是否正确....由前台的树....获取到的密码直接判断
- // //这个让密码为空....的代码....还要在进入一次后台.....有必要么
- // //U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", [response]).value.toString();
- // //UseStudioDiskManage.DecryptDirectory(response);
- // //动态修改Directory图片文字及方法
- // // var aa = null;
- // // if (key == "") {
- // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
- // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
- // // //aa = text;
- // // // aa = eval('(' + text + ')');
- // // }
- // // else {
- // // text = US.Disk.UserDisk[0][key];
- // // }
- // //修改了后台数据.....前台树这边没有在从后台执行取树的过程
- // text = U.Dk.M.ufinfoarray("onefind", key);
- // text.UserDirectoryEncrypt = null;
- // //text.UserDirectoryUrl = "background-position:-120px -42px;";
- // //未加密文件的拼图
- // text.UserDirectoryUrl = "background-position:-171px -256px;";
- // var RightTreediv = document.getElementById("disk" + _directoryid);
- // if (RightTreediv != null) {
- // if (U.Dk.DirectoryView == "Details") {
- // RightTreediv.getElementsByTagName("i")[0].style.backgroundPosition = "-217px -173px";
- // }
- // else if (U.Dk.DirectoryView == "Normal") {
- // RightTreediv.getElementsByTagName("i")[0].style.backgroundPosition = "-171px -256px";
- // }
- // }
- // var LeftTreeDiv = document.getElementById(_directoryid);
- // if (LeftTreeDiv != null) {
- // if (LeftTreeDiv.getElementsByTagName("span")[0].innerHTML == "(已加密)") {
- // LeftTreeDiv.getElementsByTagName("i")[0].className = "UDK_L_Disk UDK_L_USTreeFolderIcon";
- // LeftTreeDiv.getElementsByTagName("span")[0].innerHTML = "";
- // LeftTreeDiv.onclick = function () { U.Dk.LL.VM(LeftTreeDiv); U.Dk.RE.CN(_directoryid); U.Dk.LL.Nav(document.getElementById(text.UserDirectoryID), text.UserDirectoryDeep) };
- // //LeftTreeDiv.href = "";
- // }
- // }
- // }
- // }
- // break;
- // // case "": //这个为空。。。到底什么情况才会有?
- // // EncryptWindow.height = 140;
- // // 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;">输入密码 <input type="password" id="decripttextinput" style="width:140px; height:20px;" class="UDK_P_OS UDK_P_inputBox"/></span></div>';
- // // EncryptWindow.confirmYesClose = function () {
- // // var decrypttext = document.getElementById("decripttextinput").value;
- // // //var response = U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", _directoryid + ',' + decrypttext).value;
- // // //这里有点蛋疼........实际上就传入一个ID......而且判断的返回值一直为空..............到底这个..密码错误根本不可能触发
- // // //var response = U.A.Request(US.Auth,"UseStudioDisk.DecryptDirectory", [_directoryid, decrypttext]).value;
- // // var response = "true";
- // // //var response = UseStudioDiskManage.GetUserDecrptData(_directoryid, decrypttext).value;
- // // if (response == "false") {
- // // alert("密码错误"); return;
- // // }
- // // else {
- // // //动态修改Directory图片文字及方法
- // // // var aa = null;
- // // // if (key == "") {
- // // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", _directoryid).value;
- // // // // var text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // // text = U.A.Request(US.Auth,"UseStudioDisk.selectOne", [_directoryid]).value;
- // // // //var text = UseStudioDiskManage.selectOne(_directoryid).value;
- // // // // aa = text;
- // // // // aa = eval('(' + text + ')');
- // // // }
- // // // else {
- // // // text = US.Disk.UserDisk[0][key];
- // // // }
- // // text = U.Dk.M.ufinfoarray("onefind", key);
- // // //记录下父亲ID,同时也给全局变量赋值
- // // U.Dk.ParentID = text.UserDirectoryID;
- // // document.getElementById("ParentID").innerHTML = text.UserDirectoryID;
- // // //更新Json数据
- // // //US.Disk.directoryContenTable = U.Dk.directoryAjax(U.Dk.UserGuid, text.UserDirectoryID);
- // // //传入视图类型的全局变量,判断是哪个视图后再重新刷新目录
- // // U.Dk.VW.NOD(U.Dk.DirectoryView);
- // // U.Dk.ArticleNav(text.UserDirectoryName, text.UserDirectoryID, text.UserDirectoryDeep);
- // // }
- // // }
- // // break;
- // }
- //// EncryptWindow.Create();
- //}
- //获取图片文件
- //U.Dk.GetImage = function (_diskfileTree, UserDirectoryID) {
- // var i, ImgJson = "["; //将其拼凑成JSON 形式
- // for (i = 0; i < _diskfileTree.length; i++) {//这里要改成根据id搜索当前的图片
- // var directorykey = _diskfileTree[i];
- // var filetype = directorykey.UserDirectoryExtendType.toLowerCase();
- // if (filetype == "jpg" || filetype == "bmp" || filetype == "png" || filetype == "gif") {
- // var ThumbnailsImg = directorykey.UserDirectoryUrl;
- // ThumbnailsImg = ThumbnailsImg.substring(ThumbnailsImg.indexOf("(") + 1, ThumbnailsImg.length - 2);
- // ImgJson += '{"imgid": "' + directorykey.UserDirectoryID + '", "imgurl": "' + "http://fs.1473.cn/" + directorykey.UserFilesServerName + '", "imgThumbnails": "' + ThumbnailsImg + '"}, ';
- // if (directorykey.UserDirectoryID == UserDirectoryID) { window.parent.U.Imges.CreatePhotoCase(directorykey.UserDirectoryID, "http://fs.1473.cn/" + directorykey.UserFilesServerName, i); }
- // }
- // }
- // ImgJson = ImgJson.substring(0, ImgJson.length - 2);
- // ImgJson += "]";
- // window.parent.U.Imges.ThumbnailsCase(ImgJson);
- //}
- //----------------------------------------------------------------------没有用的函数
- //点击返回友思搜索栏
- //U.LD.return_search = function () {
- // document.getElementById("UDK_N_logoquerydiv").style.display = "block"; //友思搜索条显示出来
- // document.getElementById("UDK_N_queryBox").value = ""; //搜索条里面的值为空
- // document.getElementById("UDK_N_childquerydiv").style.display = "none"; //子搜索条隐藏
- // document.getElementById("UDK_N_minutetext").value = ""; //子搜索条显示为空
- // document.getElementById("UDK_N_Wensearch").style.display = "none"; //上面查询的按钮隐藏
- // document.getElementById("UDK_N_alldiv").style.display = "none"; //文件分类的div隐藏
- // document.getElementById("UDK_unlogincontainer").style.display = "block";
- // document.getElementById("UDK_N_divstyle").style.display = "none";
- //}
- //Enter快捷键设置
- //U.LD.returnkeylogin = function (obj) {
- // if (event.keyCode != 13) return; //如果不是回车键,返回
- // var Anniu = document.getElementById("" + obj.id + "").children[1];
- // if (event.keyCode == 13) {
- // Anniu.click();
- // }
- //}
- //搜索的时候视图切换
- //U.LD.FildSwitch = function () {
- // var _p = US.Disk.UserDisk[1][3].parentNode;
- // _p.getElementsByTagName("div")["UDK_N_logoquerydiv"].style.display = "none"; //隐藏最大的友思导航条
- // _p.getElementsByTagName("div")["UDK_unlogincontainer"].style.display = "none";
- // _p.getElementsByTagName("div")["UDK_N_Wensearch"].style.display = "block"; //上面查询的按钮显示
- // _p.getElementsByTagName("div")["UDK_N_alldiv"].style.display = "block";
- // _p.getElementsByTagName("input")["UDK_N_childquerydiv"].style.display = "block"; //如果查询有值。我们就让子查询条出来。
- // _p.getElementsByTagName("input")["UDK_N_minutetext"].focus(); //这里是子查询聚焦..
- //}
- //用户查询文件
- //U.LD.return_query = function (obj) {
- // var queryname;
- // var UDK_N = US.Disk.UserDisk[1][3].parentNode.getElementsByTagName("div")["UDK_N_divstyle"];
- // UDK_N.style.display = "block"; //显示搜索div
- // if (obj.value == "查询") queryname = US.Disk.UserDisk[1][3].parentNode.getElementsByTagName("input")["UDK_N_queryBox"].value; //判断用户是点击那里的搜索的
- // else if (obj.value == "搜索") queryname = US.Disk.UserDisk[1][3].parentNode.getElementsByTagName("input")["UDK_N_minutetext"].value;
- // if (queryname == "" || queryname == "请输入你要查找的文件") return; //如果用户没有搜索类容
- // U.LD.FildSwitch(); //视图切换
- // U.A.Request(US.Auth,"UseStudioDisk.Managequery", [queryname], U.LD.FindFAsyn, [UDK_N]); //搜索文件的异步
- //}
- //切换搜索样式的视图
- //U.LD.return_querd = function (obj) {
- // var _p = US.Disk.UserDisk[1][3].parentNode;
- // var udh = _p.getElementsByTagName("span")["UDK_RT_Hardpan"];
- // var udp = _p.getElementsByTagName("span")["UDK_RT_Photo_album"];
- // var udv = _p.getElementsByTagName("span")["UDK_RT_Video"];
- // var udm = _p.getElementsByTagName("span")["UDK_RT_Music"];
- // if (obj.id == "UDK_N_hardpan") {
- // udh.style.display = "block";
- // udp.style.display = "none";
- // udv.style.display = "none";
- // udm.style.display = "none";
- // }
- // else if (obj.id == "UDK_N_photo_album") {
- // udp.style.display = "block";
- // udv.style.display = "none";
- // udm.style.display = "none";
- // udh.style.display = "none";
- // }
- // else if (obj.id == "UDK_N_video") {
- // udv.style.display = "block";
- // udm.style.display = "none";
- // udh.style.display = "none";
- // udp.style.display = "none";
- // }
- // else if (obj.id == "UDK_N_music") {
- // udv.style.display = "none";
- // udm.style.display = "block";
- // udh.style.display = "none";
- // udp.style.display = "none";
- // }
- // else if (obj.id == "UDK_N_alldiv") {
- // if (_p.getElementsByTagName("span")["UDK_RT_Music"] == null) { return; }
- // udv.style.display = "block";
- // udm.style.display = "block";
- // udh.style.display = "block";
- // udp.style.display = "block";
- // }
- //}
- //获取到该用户端额同类型文件,传入用户ID,和要显示的类型,比如‘图像文件’、‘视频文件’,以数据库的UseStudioFileType表为标准
- //U.Dk.directorySameTypeAjax = function (userId, sort) {
- // if (US.userInfo.userid != U.Dk.UserGuid) return;
- // var json = U.A.Request('UseStudioDisk.directorySameTypeTable', [userId, sort]).value;
- // if (json != "" && json != null && json != undefined) return eval(json);
- // return;
- //}
- //返回上一级(通过判断导航条子节点数量)
- //U.Dk.NavBack = function () {
- // var nav = US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_N_ArticleNav"]; //获取导航的div
- // _nc = nav.getElementsByTagName("span"); //获取导航条上所有的导航
- // deep = _nc.length - 2; //后退到上级导航
- // if (deep < 0) deep = 0;
- // U.M.invokeClick(_nc[deep]);
- //}
- //获取文件名字,ID,级数更新导航条
- //U.Dk.ArticleNav = function (directoryName, directoryId, directoryDeep) {
- // var ArticleNav = US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_N_ArticleNav"]; //获取导航的div
- // var ArticleNavChlid = ArticleNav.getElementsByTagName("span");
- // U.Dk.M.navchange(directoryDeep); //执行检查导航框内此级数(DEEP)是否存在两个,如果是将此级删除
- // 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);
- // U.Dk.M.Nav("islength"); //修改导航条超过的问题
- //}
- //单击到视图图片,执行单击新建草单
- //U.Dk.ViewF = function (obj) {
- // US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_R_rightMouseClickDiv"].style.visibility = "hidden";
- // _object = US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_LR_ViewF"];
- // _object.style.display = "block";
- // _object.style.left = '0px';
- // _object.style.top = '0px';
- // var _d = U.Dk.rightcorrect(obj);
- // _object.style.left = _d["x"] - 5 + 'px';
- // _object.style.top = _d["y"] - 5 + 'px';
- // _object.style.visibility = "visible";
- //}
- ////将文件搜索div以及....本地硬盘的div隐藏
- //U.LD.objhidden = function (obj) {
- // var obj = document.getElementById(obj);
- // obj.style.visibility = 'hidden';
- //}
- //-------------------------------------------------------------用户通过flash上传文件------------------------------------------------------------
- //上传
- U.Dk.popFileUplaodWindow = function (_type) {
- var filewindow = $("#UDK_RS_uploadFileDiv")[0];
- var loadFile = $("iframe", filewindow)[0]; //获取上传的iframe
- var _address = "http://disk.1473.cn/USupfile.ashx?UserId=" + parent.US.userInfo.userid + "&iframename="; //上传地址,统一定义,下面拼凑。
- switch (_type) {
- case US.DG:
- var _url = _address + "UploadFlashfile&DirectoryId=" + US.Disk.UserDisk[1][1];
- 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 });
- break;
- case US.PG:
- var _url = _address + "UploadImage&DirectoryId=" + US.Disk.UserDisk[1][1];
- loadFile.contentWindow.upload(US.Disk.UserDisk[1][1], { "title": "图片文件类型", "extensions": "jpg,gif,png,bmp,jpeg", "max_file_size": "5mb", "url": _url });
- break;
- case US.MG:
- var _url = _address + "UploadFlashfile&DirectoryId=" + US.Disk.UserDisk[1][1];
- loadFile.contentWindow.upload(US.Disk.UserDisk[1][1], { "title": "暂时只支持mp3格式", "extensions": "mp3", "max_file_size": "20mb", "url": _url });
- break;
- case US.VG:
- var _url = _address + "UploadFlashfile&DirectoryId=" + US.Disk.UserDisk[1][1];
- loadFile.contentWindow.upload(US.Disk.UserDisk[1][1], { "title": "只支持wmv格式影片", "extensions": "wmv", "max_file_size": "50mb", "url": _url });
- break;
- }
- }
- // 上传统一回调函数
- U.Dk.FileUploaded = function (up, file, info, DirectoryParentId) {
- info.response = info.response.replace("<script type='text/javascript'>document.domain = '1473.cn';</script>", "");
- var _response = eval(info.response);
- var _fid = eval(info.response)[2]; //缩略图id也是路径
- var _T = U.Dk.IsType(file.name);
- _fid = _fid || U.Dk.FileTypeImg(_T); //图标的位置
- 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]; //新建实体
- U.Dk.M.ufinfoarray("add", newDF);
- U.Dk.RE.ARFO(newDF); //直接添加到文件夹下
- }
- //------------------------------------------------------------------------------------辅助函数--------------------------------------------------------------
- U.Dk.sgsearch = function (obj) {
- if (obj.getAttribute("stat") == "none") {
- $("#UDK_M_MoreAndNew_Version").animate({ "left": "317px" }, 100);
- obj.setAttribute("stat", "display");
- } else if (obj.getAttribute("stat") == "display") {
- $("#UDK_M_MoreAndNew_Version").animate({ "left": "415px" }, 100);
- obj.setAttribute("stat", "none");
- }
- }
- // 更多条缩放,根据搜狗搜索栏改写
- U.Dk.sgsearchSH = function (obj) {
- if (obj.getAttribute("stat") == "none") {
- $("#UDK_UP_MoreAndOld_Version").animate({ "left": "317px" }, 100);
- obj.setAttribute("stat", "display");
- } else if (obj.getAttribute("stat") == "display") {
- $("#UDK_UP_MoreAndOld_Version").animate({ "left": "415px" }, 100);
- obj.setAttribute("stat", "none");
- }
- }
- U.Dk.NewFlieUpWindow = function () {
- $("#UDK_RS_uploadFileDiv")[0].style.display = "none";
- $("#UDK_UP_upFileDiv")[0].style.display = "block";
- }
- //使用事件传递委托机制实现所有A元素的href属性,以避免屏幕移位
- U.Dk.TransAHrefClick = function () {
- var target = event.srcElement || window.event.targe;
- if (target.tagName.toLowerCase() == "input") { target.parentNode.href = "javascript:void(0);"; }
- }
- //导航样式
- U.Dk.ArticleNavstyle = function () {
- if (window.event.type == "mouseover") { this.style.border = '1px solid #BBd6fb'; this.style.backgroundColor = '#ecf3fd'; }
- else { this.style.border = '1px solid #fff'; this.style.background = 'none'; }
- }
- //删除上次搜索的文件
- U.LD.DeleteLf = function (_Result) {
- var _sa = _Result.getElementsByTagName("span");
- var i;
- for (i = 0; i < _sa.length; i++) {
- _sa[i].innerHTML = "";
- }
- }
- //判断用户要选择的面板
- U.Dk.DI.SPanel = function (directoryID) {
- var type;
- switch (directoryID) { //判断点击哪个窗口以便弹出相应的显示页面
- case US.DG: type = "disk";
- break;
- case US.PG:
- type = "photo";
- break;
- case US.MG:
- type = "music";
- break;
- case US.VG:
- type = "video";
- break;
- default:
- type = "disk"; //默认
- break;
- }
- return type;
- }
- //点击更多函数
- U.Dk.MostDiskDoyen = function (folder, obj, type, this_obj) {
- // var start = $(".UDK_DI_RT_ZT", $("#" + obj)[0]).context.childNodes.length + 1; //获取当前的排行榜数量并加一作为查询起始数
- // var end = start + 30; //想改“更多”输出数量的话改这即可。
- // U.A.Request(US.Auth,"UseStudioDisk.GetMostUserFiles", [folder, start, end], U.Dk.DiskDoyenAnsy, [$("#" + obj)[0], type, this_obj]);
- }
- //点击更多函数
- U.Dk.MoreNewFiles = function (_type, id) {
- var obj = $("#" + id)[0]; //获取需要添加更多内容的div
- var length = $(".UDK_DI_LT_NR", obj).context.childNodes.length; //获取目前div内已加载的用户数量
- U.Dk.NewFileAdd(US.Disk.NewestFiles[_type], obj, length); //加载内容
- }
- //------------------------------------
- //对于style.top等字符串对象执行加减操作
- //第一个参数为object.style.top等字符串对象,第二个参数为加减的大小,减去传递负数进来
- U.Dk.StrAS = function (obj, type, number) {
- var _t = U.M.GetElementInfo(obj)
- switch (type) {
- case "top": obj.style.top = _t["TX"] + number + "px"; break;
- case "left": obj.style.left = _t["TY"] + number + "px"; break;
- case "All":
- obj.style.left = _t["TX"] + number[1] + "px";
- obj.style.top = _t["TY"] + number[0] + "px";
- break;
- default: break;
- }
- }
- //判断文件的类型
- U.Dk.IsType = function (name) {
- var TypeArrary = ["jpg", "gif", "png", "bmp", "jpeg", "mp3", "rar", "zip", "txt", "doc", "docx", "ppt", "xls", "mht", "iso", "chm", "gz", "msi", "dll", "htm", "html"]; //上传的格式
- for (i = 0; i < TypeArrary.length; i++) { //判断所有文件上传成功。
- if (name.lastIndexOf(TypeArrary[i]) != -1) {
- return TypeArrary[i];
- }
- }
- }
- //登录和没有登录的切换
- U.Dk.locality_search = function (obj) {
- //显示硬盘首页
- if (obj.id == "UDK_LL_nologinsearch") {
- document.getElementById("UDK_M_alreadylogin").style.display = "none";
- document.getElementById("UDK_N_nologin").style.display = "block";
- document.getElementById("UDK_N_return_disk").style.display = "block";
- }
- //否则,显示硬盘
- else {
- document.getElementById("UDK_M_alreadylogin").style.display = "block";
- document.getElementById("UDK_N_nologin").style.display = "none";
- document.getElementById("UDK_N_return_disk").style.display = "none";
- }
- }
- //搜索disk最大的父亲
- U.Dk.FindDiskP = function (obj) {
- if (obj.id.indexOf("UD_Nl") > -1) { return obj; }
- for (var i = 0; ;) {
- obj = obj.parentNode;
- if (obj.id.indexOf("UD_Nl") > -1) { return obj; }
- }
- }
- //右键菜单和目录菜单区域
- U.Dk.leftMouseClick = function () {
- US.Disk.UserDisk[1][3].getElementsByTagName("div")["UDK_R_rightMouseClickDiv"].style.visibility = "hidden";
- }
- //添加下级音乐
- U.Dk.AddNextM = function (ML, DK) {
- ML = ML || (window.event.srcElement || window.event.targe);
- var _F = U.Dk.GetM(DK.UserDirectoryID); //获取本级下的音乐和音乐文件夹
- for (var i in _F[1]) { if (_F[1].hasOwnProperty(i)) { var _I = U.MPlayer.AddM(_F[1][i], _F[0], ML.parentNode); } } //循环打印列表
- ML.firstChild.nodeValue = DK.UserDirectoryName + "[" + _I + "]"; //主要是为了ie7innerhtml的bug
- U.MPlayer.ListShrink(ML.parentNode); //缩展
- ML.onclick = U.M.apply(this, [[U.MPlayer.ListShrink, [ML.parentNode]]]); //点击获取下级音乐
- }
- ////硬盘,相册,音乐,视频切换菜单
- //U.Dk.DI.CM = function (DID, SO, ST) {
- // var _UDKR, _UDKL, _UDSW, T;
- // var _UDK = $("#UD_Nl")[0];
- // switch (DID) {
- // case US.DG: //disk文件
- // T = 1;
- // _UDKR = _UDK.getElementsByTagName("div")["UDK_DI_RT_NR0"];
- // _UDKL = _UDK.getElementsByTagName("div")["UDK_DI_LT0"];
- // _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];
- // break;
- // case US.PG: //相册文件
- // T = 2;
- // _UDKR = _UDK.getElementsByTagName("div")["UDK_DI_RT_NR1"];
- // _UDKL = _UDK.getElementsByTagName("div")["UDK_DI_LT1"];
- // _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];
- // break;
- // case US.MG: //音乐文件
- // T = 3;
- // _UDKR = _UDK.getElementsByTagName("div")["UDK_DI_RT_NR2"];
- // _UDKL = _UDK.getElementsByTagName("div")["UDK_DI_LT2"];
- // _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];
- // break;
- // case US.VG: //视频文件
- // alert("努力实现中......"); return;
- // break;
- // default: //搜索
- // DID = US.DG;
- // _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];
- // break;
- // }
- // U.Dk.DI.UDK_DIDisplay(_UDSW, _UDK); //切换
- // if (US.Disk.DiskDaren[DID] == null) { U.A.Request(US.Auth,"UseStudioDisk.GetMostUserFiles", [T, ST, ST + 30]), U.Dk.DiskDoyenAnsy, [_UDKR, DID, SO]; } //如果没有值
- // 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]; } } //如果还需要加载
- // if (US.Disk.NewestFiles[DID] == null) { U.A.Request(US.Auth,"UseStudioDisk.GetNewUserFiles", [T], U.Dk.GetNewDiskFile, [_UDKL, DID]); } //如果没有最新
- //}
- ////切换实体,包含了很多可显示和不可显示的内容切换
- //U.Dk.DI.UDK_DIDisplay = function (UDSW, UDK) {
- // var _AGDK = UDK.getElementsByTagName("div");
- // 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"]; //需要切换的元素
- // for (var i = 1; i < 16; i++) { _AGDK[_AUDK[i]].style.display = UDSW[i]; }
- // _AGDK[_AUDK[0]].innerHTML = UDSW[18];
- // _AGDK[_AUDK[18]].innerHTML = UDSW[19];
- // _AGDK[_AUDK[18]].onclick = U.M.apply(this, [[U.M.StopBubble], [U.Dk.DI.MyDisk, [UDSW[20]]]]);
- // _AGDK[_AUDK[0]].parentNode.parentNode.style.display = UDSW[0];
- //}
- ////返回到我的首页
- //U.Dk.DI.MyDisk = function (T) {
- // if (U.U.L.isLogin() == false) { U.M.divdoubleClick("UseStudioUserDiskDiv", T, US.userInfo.userid); } //未登录弹出登录框,登录则返回到我的首页。
- //}
- ////--------------------------------------------------------------------------网盘数据---------------------------------------------------------------------------
- ////获取网盘排行榜数据
- //U.Dk.DiskDoyenAnsy = function (r) {
- // var context = r.context; //异步传值
- // r = r.value; //服务器传值
- // if (r) {
- // if (r.length == 0) { alert("已经是最后一页了"); if (context[2]) { context[2].onclick = U.M.apply(this, "alert('已经是最后一页了')"); } } //没有数据就修改onclick事件
- // U.Dk.M.ufinfoarray("AddCS", [context[1], r]); //添加云查看值
- // U.Dk.DiskDoyen(r, context[0], context[1]); //打印值
- // }
- //}
- ////加载内容
- //U.Dk.DiskDoyen = function (UDS, UDLR, DID) {
- // var _UDXK, _UDNR, _UDNP;
- // switch (DID) {
- // case US.DG: _UDXK = ["UDK_DI_RT_DI", "UDK_DI_RT_DI_IMG"]; break;
- // case US.PG: _UDXK = ["UDK_DI_RT_PT", "UDK_DI_RT_PT_IMG"]; break;
- // case US.MG: _UDXK = ["UDK_DI_RT_MU", "UDK_DI_RT_MU_IMG"]; break;
- // case US.VG: _UDXK = ["UDK_DI_RT_PT", "UDK_DI_RT_PT_IMG"]; break;
- // default: break;
- // }
- // for (var i = 0; i < UDS.length; i++) {
- // _UDNR = $$("div", { "className": "UDK_DI_RT_ZT", "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", DID, UDS[i].UserID]]] }, UDLR);
- // _UDNP = $$("div", { "className": _UDXK[0] }, _UDNR);
- // $$("img", { "className": _UDXK[1], "src": US.fs + UDS[i].UserImageHead, "alt": "点击", "onerror": U.M.ImgError }, _UDNP); //此处有问题,怎么是全图,不是缩略图。追查发现有些头像没有缩略图,这个问题要解决。
- // $$("div", { "className": "UDK_DI_RT_WB", "innerHTML": UDS[i].UserName }, _UDNR);
- // }
- // UDLR.scrollTop = UDLR.scrollHeight - UDLR.scrollHeight; //将滚动条置到最底部
- //}
- ////-------------------------------------------------------------------------最新上传----------------------------------------------------------------------------
- ////获取最新文件数据
- //U.Dk.GetNewDiskFile = function (r) {
- // var context = r.context;
- // r = r.value;
- // if (r) {
- // U.Dk.M.ufinfoarray("AddNCS", [context[1], r]); //添加云查看值
- // U.Dk.NewFileAdd(r, context[0], context[1], 0); //打印数据
- // }
- //}
- ////加载内容 (Json数据,添加内容的标签,循环起始长度)
- //U.Dk.NewFileAdd = function (UDS, UDLR, DID, L) {
- // var _LN, _UDOD, _UDUL, _UDOL, _UDTL;
- // if (L >= UDS.length) { alert("最后一页"); return; }
- // switch (DID) {
- // case US.DG: _LN = [20, "文件"]; break;
- // case US.PG: _LN = [20, "图片"]; break;
- // case US.MG: _LN = [20, "音乐"]; break;
- // case US.VG: break;
- // default: break;
- // }
- // for (var i = L; i < L + _LN[0]; i++) {
- // if (!UDS[i]) { break; }
- // _UDOD = $$("div", { "className": "UDK_DI_LT_NR" }, UDLR);
- // _UDUL = $$("ul", {}, _UDOD);
- // _UDOL = $$("li", { "title": UDS[i].UserName + " 上传了 " + UDS[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.M.divdoubleClick, ["UseStudioUserDiskDiv", DID, UDS[i].UserID]]] }, _UDUL);
- // $$("p", { "className": "UDK_DI_LT_NR_a UDK_DI_LT_NR_Div", "innerHTML": UDS[i].UserName }, _UDOL);
- // $$("p", { "innerHTML": "上传了" + _LN[1], "className": "UDK_DI_LT_NR_Div" }, _UDOL);
- // $$("i", { "innerHTML": "(" + U.MT.formatDateToArray(UDS[i].UserFilesAddTime) + ")" }, _UDOL);
- // switch (DID) {
- // case US.DG:
- // _UDTL = $$("li", { "title": "点击下载 " + UDS[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.Dk.RE.ODL, [UDS[i].UserFilesServerName, UDS[i].UserFilesName]]] }, _UDUL);
- // $$("div", { "className": "UDK_DI UDK_DI_LT_TB_FL" }, _UDTL);
- // $$("span", { "innerHTML": UDS[i].UserFilesName }, _UDTL);
- // break;
- // case US.PG:
- // _UDTL = $$("li", { "title": "点击查看 " + UDS[i].UserFilesName, "style": { "height": "75px", "width": "75px" }, "className": "UDK_DI_LT_NR_Info" }, _UDUL);
- // $$("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);
- // break;
- // case US.MG:
- // UDS[i].UserallDirectoryName = UDS[i].UserFilesName;
- // var _MF = U.Dk.M.ufinfoarray("spliceMusic", [[UDS[i]], "最新歌曲"]); //拼接音乐目录
- // var _UDTL = $$("li", { "title": "点击试听 " + UDS[i].UserFilesName, "onclick": [[U.M.StopBubble], [U.Dk.S.LM, [_MF]]] }, _UDUL);
- // $$("div", { "className": "UDK_DI UDK_DI_LT_TB_MU" }, _UDTL);
- // $$("span", { "innerHTML": UDS[i].UserFilesName }, _UDTL);
- // break;
- // case US.VG: break;
- // default: break;
- // }
- // }
- // UDLR.length = i; //显示的数量
- // UDLR.scrollTop = UDLR.scrollHeight - UDLR.scrollHeight; //将滚动条置到最底部
- //}
- //
- //云查询添加数据
- //U.Dk.M.AddCS = function (term) {
- // if (US.Disk.DiskDaren[term[0]] == null) { US.Disk.DiskDaren[term[0]] = []; }
- // US.Disk.DiskDaren[term[0]] = US.Disk.DiskDaren[term[0]].concat(term[1]);
- //}
- //云查询最新添加数据
- //U.Dk.M.AddNCS = function (term) {
- // if (US.Disk.NewestFiles[term[0]] == null) { US.Disk.NewestFiles[term[0]] = []; }
- // US.Disk.NewestFiles[term[0]] = US.Disk.NewestFiles[term[0]].concat(term[1]);
- //}
- //--------------------------------------------------------------------------------------辅助型函数-------------------------------------------------------------
- //显示搜索隐藏其他
- U.Dk.DSFNF = function (SO) {
- for (var i = 0; i < SO.parentNode.childNodes.length; i++) { if (SO.parentNode.childNodes[i].nodeType != 3) { SO.parentNode.childNodes[i].style.display = "none"; } }
- SO.style.display = "block";
- }
- //控制文件的伸展和收缩
- U.Dk.displayfile = function (SO) {
- var _OD = $("div", SO)[0]; //伸张div
- _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"; //伸张样式
- var _OS = $("span", SO.parentNode)[0]; //子元素的
- if (_OS.style.display == "none") { _OS.style.display = "block"; }
- else { _OS.style.display = "none"; }
- }
- //用户右键的权限
- U.Dk.HP.EBB = function () {
- 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"];
- _UGE[3].onclick = _UGE[3].onmousedown = U.M.apply(this, [[U.Dk.RM.DRC, (["this", 'add', _UGE[0].UserId])]]);
- for (i = 0; i < _UDE.length; i++) { _UDP[_TF[i]].parentNode.style.display = "none"; }
- // 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"];
- // 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])]]);
- // for (i = 0; i < _TF.length; i++) { _UDP[_TF[i]].parentNode.style.display = "none"; }
- }
- //判断文件类型(看用那些图片)
- U.Dk.HP.FTI = function (FT) {
- switch (FT) {
- case "doc": return "background-position:-155px -41px";
- case "ppt": return "background-position:-227px -41px";
- case "folderencrypt": return "background-position:-660px -40px;";
- case "wmv": return "background-position:314px -162px";
- case "video": return "background-position:-503px -41px";
- case "xls": return "background-position:-297px -41px";
- case "mp3": return "background-position:-438px -41px";
- case "rar": return "background-position:-368px -41px";
- case "zip": return "background-position:-368px -41px";
- case "txt": return "background-position:-84px -41px";
- case "folder": return "background-position:-6px -41px;";
- default: return "background-position:-578px -41px; ";
- }
- }
- ////文件文件夹功能展示
- //U.Dk.HP.FunD = function (SO) {
- // 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);
- // U.Dk.HP.FunDN(_UDKF); //展示的消失
- // $(_UDKF).addAttrArray({ "style": { "display": "block", "left": (_E["TX"] - _SE[1] - _UDK.scrollLeft - 82) + "px", "top": (_E["TY"] - _SE[0] - _UDK.scrollTop - 27) + "px"} });
- // for (i = 0; i < _UDAD.length; i++) { $(_UDAD[i]).animate({ "top": _AT[i][0] + "px", "left": _AT[i][1] + "px" }, 100) } //变化
- //}
- ////功能展示消失
- //U.Dk.HP.FunDN = function (UDKF) {
- // UDKF.style.display = "none";
- // $("div", UDKF).addAttrArray({ "style": { "left": "", "top": ""} });
- //}
- //U.Dk.M.Daren = function (name, term) {
- // switch (name) {
- // // case "AddDaren": //添加云盘数据
- // // U.Dk.M.AddDaren(term);
- // // break;
- // case "AddPND": //添加好友最新动态
- // U.Dk.M.AddPND(term);
- // break;
- // case "STopD": //排行榜的切换
- // return U.Dk.M.STopD(term);
- // break;
- // case "GetPND": //获取最新动态
- // return U.Dk.M.GetPND(term);
- // break;
- // }
- //}
- ////初始化网盘首页数据
- //U.Dk.M.AddDaren = function (term) {
- // US.Disk.DiskDaren["HF"] = term[0];
- // US.Disk.DiskDaren["TF"] = term[2];
- //}
- ////排行榜切换
- //U.Dk.M.STopD = function (term) {
- // var i, TP = [], _UDD = US.Disk.DiskDaren["TF"];
- // for (i = 0; i < _UDD.length; i++) {
- // if (_UDD[i]["T"] == term) { TP.push(_UDD[i]); }
- // if (TP.length == 10) { break; }
- // }
- // return TP;
- //}
- //--------------------------------------------------------disk导航条的增删查该-----------------------------------------------------------
- //U.Dk.M.Nav = function (name, term) {//term这个最终传过来是个集合
- // switch (name) {
- // case "add": //添加
- // U.Dk.M.AddNav();
- // break;
- // case "islength": //导航长度变化导航
- // U.Dk.M.IsNav();
- // break;
- // case "change": //修改导航
- // U.Dk.M.navchange(term);
- // break;
- // }
- //}
- ////添加导航
- //U.Dk.M.AddNav = function (term) {
- //}
- ////判断添加的长度是否太长
- //U.Dk.M.IsNav = function () {
- // 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;
- // i = j = 0; _a = 10;
- // for (i = j; i < _s.length; i++) {
- // _s[i].style.display = "block"; //先让每个现实
- // _a += _s[i].innerText.length + 5;
- // if (_a > _p) {//大于了之后才冲第一个开始隐藏;
- // _s[j].style.display = "none";
- // _a -= (_s[j].innerText.length + 5);
- // j++;
- // }
- // }
- //}
- ////传入级数检查是否有比此级数小的SPAN,如果有,将其删除
- //U.Dk.M.navchange = function (Deep) {
- // var i;
- // var _ArNa = $("div#UDK_N_ArticleNav", US.Disk.UserDisk[1][3])[0];
- // var ANavC = $("span", _ArNa)[0];
- // for (i = Deep; i <= ANavC.length; ) {
- // Deepid = ANavC[i];
- // if (Deepid != null) {
- // _ArNa.removeChild(Deepid);
- // }
- // else
- // return;
- // }
- //}
- //--------------------------------------------------------------disk目录和文件的增删查该---------------------------------------------------------
- //Disk文件和文件夹的操作
- U.Dk.M.ufinfoarray = function (name, term) {//term这个最终传过来是个集合
- // switch (name) {
- // // case "onefind": //查找一个
- // // return U.Dk.M.onefindfile(term);
- // // break;
- // // case "Distinguish": //传进目录里的文件区分文件和文件夹
- // // return U.Dk.M.Distinguish(term);
- // // break;
- // // case "RecurD": //递归获取导航
- // // return U.Dk.M.RecurD(term);
- // // break;
- // // case "SFF": //关键之搜索
- // // return U.Dk.M.SFF(term);
- // // break;
- // // case "AddCS": //获取云查看的数据
- // // U.Dk.M.AddCS(term);
- // // break;
- // // case "AddNCS": //添加云查看数据
- // // U.Dk.M.AddNCS(term);
- // // break;
- // // case "spliceMusic": //拼接音乐json
- // // return U.Dk.M.MusicJson(term);
- // // break;
- // // case "spliceimg": //拼接音乐json
- // // return U.Dk.M.ImgJson(term);
- // // break;
- // // case "AllMusic": //获取所有的音乐
- // // return U.Dk.M.AllMusic();
- // // case "GetMusic": //获取音乐实体
- // // return U.Dk.M.GetMusic(term);
- // // break;
- // // case "TFFM":
- // // return U.Dk.M.TFFM(term);
- // // break;
- // // case "GetFBT": //获取指定的类型文件
- // // return U.Dk.M.GetFBT(term);
- // // break;
- // // case "GDBFM": //获取最近打开的文件
- // // return U.Dk.M.GDBFM(term);
- // // break;
- // case "PDQX": //获取是否有权限
- // return U.Dk.M.PDQX(term);
- // break;
- // }
- // if (US.userInfo.userid == null) { return; } //无权限操作下面的
- // U.Dk.DiskOperatingSwitch(US.userInfo.userid); //修改的是用户本人的资料 这个换回自己的资料
- // switch (name) {
- // case "add": //添加文件或者文件夹
- // U.Dk.M.addfindfile(term);
- // break;
- // case "delete": //删除文件或者文件夹
- // U.Dk.M.deletefriend(term);
- // break;
- // case "IsSName": //判断该文件夹下是否有修改或者创建的该文件
- // return U.Dk.M.IsSName(term);
- // break;
- // }
- }
- ////这个是搜索目录文件
- //U.Dk.M.findfile = function (term) {
- // term[0] = term[0].toLowerCase();
- // var _diskfileTree = US.Disk.UserDisk[0];
- // var i, str = [];
- // if (term[1] == null) {//因为js判断是否是空的时候
- // for (i = 0, j = 0; i < _diskfileTree.length; i++) {
- // if (_diskfileTree[i].UserDirectoryParentID == term[0]) //获取目录的父亲ID与传入的ID相同的目录信息
- // str.push(_diskfileTree[i]);
- // }
- // }
- // else {
- // for (i = 0; i < _diskfileTree.length; i++) {
- // if (_diskfileTree[i].UserDirectoryParentID == term[0]) { //获取目录的父亲ID与传入的ID相同的目录信息
- // if (_diskfileTree[i].filetype == term[1])//0是目录文件 1是文件文件
- // str.push(_diskfileTree[i]);
- // }
- // }
- // }
- // return str;
- //}
- //查找一个
- //U.Dk.M.onefindfile = function (term) {//这里是搜索一个 文件目录单一的搜索
- // var _diskfileTree = US.Disk.UserDisk[0]; //这个是用户文件目录树
- // for (var i = 0, j = 0; i < _diskfileTree.length; i++) {
- // if (_diskfileTree[i].UserDirectoryID == term) {//获取目录的父亲ID与传入的ID相同的目录信息
- // return _diskfileTree[i];
- // }
- // }
- //}
- //根据类型获取
- //U.Dk.M.GetFBT = function (term) {
- // var i, _UEL = [], _UDE = US.Disk.UserDisk; (typeof term != "object") && (term = [term, null]);
- // if (_UDE && (_UDE = _UDE[0])) {
- // for (i = 0; i < _UDE.length; i++) {
- // if (_UDE[i].UserDirectoryExtendType.toLocaleLowerCase() == (term[0] || term) && (term[1] == null || _UDE[i].UserDirectoryParentID == term[1])) {
- // _UEL.push(_UDE[i]);
- // }
- // }
- // }
- // return _UEL;
- //}
- //判断文件夹下是否要同名的
- //U.Dk.M.IsSName = function (term) {
- // var i, _dirjson = term[0];
- // for (i = 0; i < _dirjson.length; i++) {
- // if (_dirjson[i].UserallDirectoryName == term[1] && _dirjson[i].UserDirectoryExtendType == term[2]) return false;
- // }
- // return true;
- //}
- //递归的查找
- //U.Dk.M.RecurD = function (term) {
- // var _A = [], _At = [];
- // var _L = US.Disk.UserDisk[0];
- // for (var i = 0; i < _L.length; i++) {
- // if (_L[i].UserDirectoryID == term) {
- // _A.push(_L[i]);
- // if (_L[i].UserDirectoryDeep == 1) return _A;
- // _At = U.Dk.M.RecurD(_L[i].UserDirectoryParentID);
- // return _A.concat(_At);
- // }
- // }
- // return [];
- //}
- //添加目录
- //U.Dk.M.addfindfile = function (term) {//这里添加文件或者目录 term传进来是一个数据
- // var _T = term.length != null ? term : [term];
- // for (var i = 0; i < _T.length; i++) { U.Dk.M.RUS(_T[i]); }
- // US.Disk.UserDisk[0] = US.Disk.UserDisk[0].concat(_T);
- //}
- ////删除文件
- //U.Dk.M.deletefindfile = function (term) {//这里删除文件或者目录 term是UserDirectoryID这个id文件唯一的id
- // var _diskfileTree = US.Disk.UserDisk[0];
- // for (var i = 0; i < _diskfileTree.length; i++) {
- // if (_diskfileTree[i].UserDirectoryID == term) {
- // return (_diskfileTree.splice(i, 1));
- // }
- // }
- //}
- //模糊搜索disk文件或者文件夹
- //U.Dk.M.SFF = function (term) {
- // var _A = [];
- // var _L = US.Disk.UserDisk[0];
- // for (var i = 0; i < _L.length; i++) {
- // if ((_L[i].UserallDirectoryName.indexOf(term) > -1 || (_L[i].Descript != null && _L[i].Descript.indexOf(term) > -1)) && (_L[i].Descript != "" && _L[i].UserallDirectoryName != "")) {
- // _A.push(_L[i]);
- // }
- // }
- // return _A;
- //}
- //传进一个文件夹的数据 分成文件类和文件夹类
- //U.Dk.M.Distinguish = function (term) {
- // var i, _l = [], _s = [], _g = [];
- // for (i = 0; i < term.length; i++) {
- // if (term[i].filetype == 0) { _s.push(term[i]); }
- // else { if (term[i].UserDirectoryExtendType == "mp3") { _g.push(term[i]); } }
- // }
- // _l.push(_s);
- // _l.push(_g);
- // return _l; //返回的数据 0是目录文件 1是文件文件
- //}
- //// 获取用户所有的音乐文件
- //U.Dk.M.AllMusic = function () {
- // return U.Dk.M.GetFBT("mp3");
- //}
- ////递归获取所有的文件
- //U.Dk.M.GetMusic = function (term) {
- // var _UAM, _F, _SW = [];
- // _SW[0] = [], _SW[1] = [];
- // _UAM = U.Dk.M.ufinfoarray("find", [term.UserDirectoryID]);
- // _F = U.Dk.M.ufinfoarray("Distinguish", _UAM); //分类 0是目录文件夹 1是目录文件
- // _SW[0] = [term, _F[1]];
- // for (var i = 0; i < _F[0].length; i++) { _SW[1][i] = []; _SW[1][i] = U.Dk.M.GetMusic(_F[0][i]); }
- // return _SW;
- //}
- //拼接图片
- //U.Dk.M.ImgJson = function (UDE) {
- // var i;
- // for (i = 0; i < UDE.length; i++) {
- // }
- // // var _t = [], _l = {};
- // // var k;
- // // for (var i = 0; i < term[0].length; i++) {
- // // if (term[0][i].UserDirectoryID == term[1]) k = i;
- // // _l["Thm"] = term[0][i].UserDirectoryUrl.replace("background-image:url(", "").replace(");", "");
- // // _l["Img"] = US.fs + term[0][i].UserFilesServerName;
- // // _l["FilesID"] = term[1];
- // // _t.push(_l);
- // // _l = {};
- // // }
- // // return [_t, k];
- //}
- //UserDirectoryAddTime
- //使用排序法(冒泡排序法)进行时间排序
- //U.Dk.M.seqencing = function (Json) {
- // U.M.Sequence(Json, "UserDirectoryAddTime", U.MT.SizeComparison); //冒泡排序法
- // return Json;
- //}
- //判断文件或者文件夹是否有删除的权限
- //U.Dk.M.TFFM = function (term) {
- // var i, _UDND = US.Disk.UserDisk[1][0].UserDiskND;
- // for (i = 0; i < _UDND.length; i++) {
- // if (term == _UDND[i]) { return true; }
- // }
- // return false;
- //}
- //#region
- // var i, _UAE, _UCE, _UME = [], _UGE = US.Disk.UserDisk[0]; (!UDE.UserDirectoryID) && (UDE = _$(_UGE).Select({ "UserDirectoryID": UDE })[0]); UDE = [UDE] //选取制定的
- // for (i = 0; i < UDE.length; i++) {
- // _UCE = _$(_UGE).Select({ "UserDirectoryParentID": UDE[i]["UserDirectoryID"] }); //获取所有的文件和文件夹
- // _UAE = [_$(_UCE).Select({ "filetype": 0 }), _$(_UCE).Select({ "filetype": 1 })]; UDE = UDE.concat(_UAE[0]);
- // _UME.push[UDE[i], _UAE[0], _UAE[1]]
- // }
- // return _UME;
- //#endregion
- ////网盘资料异步
- //U.Dk.AsynGF = function (r) {
- // var context = r.context,
- // _UDE = context[1],
- // _UDID = context[2],
- // _userid = context[3],
- // _UAF = context[4],
- // _UGE = context[5];
- // _UGE[1].uid = _userid;
- // r = r.value;
- // U.Dk.SGBL(_userid, _UGE);
- // _UGE[0] = _UGE[0].concat(r);
- // U.Dk.M.refreshfile(_UDID, r, _UGE);
- // U.Dk.DiskLoad(_userid, _UDID, _UDE, _UAF); //生成群变量
- //}
- //#region 登录用户网盘查看
- //首页网盘切换
- U.Dk.DI.SYWPQH = function (UDOD, ITF) {
- return U.U.L.SYDLHD(U.M.apply(this, [[U.D.DT.YYDK, (["Disk", { "userid": US.userInfo.userid, "directoryid": ITF == 1 ? 1 : 2 }])]]));
- }
- //个人网盘内容分页查看
- U.Dk.DI.GRWPQHJ = function (UDOD, UP) {
- var _UDE,
- _userid = US.userInfo.userid,
- _UGE = U.Dk.DiskOperatingSwitch(_userid);
- (UP == 1) && (UDOD.innerText = "");
- if (_UGE) {//打印资料
- U.Dk.DiskLoad(_userid);
- _UDE = _UGE[3]["file"];
- _UDE = _UDE.length ? U.D.T.FYGBL([null, _UDE], UP, [60, _UDE.length > 60 ? _UDE.length : 60]) : null; //获取数据
- if (_UDE) {
- if (_UDE[0].length) {
- setTimeout(U.M.apply(this, [[U.Dk.DI.DiskSYN, [UDOD, _UDE[0]]]])); return;
- }
- }
- else if (UP == 1) {
- 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]]] });
- }; //打印数据
- }
- else {
- U.Dk.DiskLoad(_userid, "", null, U.M.apply(this, [[U.Dk.DI.GRWPQHJ, [UDOD, UP]]]), [UDOD, true]);
- } //获取查看用户网盘的数据
- }
- //#endregion
- U.Dk.LTWP = function (UDID, UDE) {
- //U.Dk.DiskLoad(UDE["UserDirectoryID"], UDID, UDE); //初始化网盘资料
- //如果用户id不等于guid同时userid又存在的话,那么通过用户名去获取用户的id
- // if (userid && userid.length != 36) {
- // userid = U.Dk.getUserDiskByName(userid)["UserId"] || userid;
- // }
- //变量定义
- var _fileinfo, //文件信息
- _diskcontentdiv, //disk操作内容区域的元素
- _diskdiv, //disk整体元素
- _dirid = dirid, //目录id
- _loginuserid = US.userInfo.userid || US.NU, //当前使用用户id
- _diskinfo = U.Dk.DiskOperatingSwitch(userid); //获取网盘信息
- //获取网盘弹框
- if (_diskinfo && _diskinfo.pdiv) {
- _diskdiv = _diskinfo.pdiv;
- }
- else {
- _diskdiv = $((obj ? "#UD_SYWO_" : "#UD_SYW_") + userid)[0];
- if (_diskinfo) {
- _diskinfo.pdiv = _diskdiv
- }
- }
- //获取网盘右边的内容区域
- _diskcontentdiv = $("#" + (obj ? "UD_SYWOCRC" : "UD_SYWT"), _diskdiv)[0]; //获取元素内容区域
- /*
- //获取目录id
- if (dirid == null || dirid.toString().length != 32) { //如果传入的目录id不为guid
- if (_diskinfo && _diskinfo[1] && _diskinfo[1][1]) { //判断是否已经加载成功网盘数据了,如果成功就获取当前网盘打开的目录
- _dirid = _diskinfo[1][1];
- }
- else {
- _dirid = US.FG;
- }
- }
- else {
- _dirid = dirid;
- }
-
- dirid = _dirid;
- */
- if (userid || (!U.U.L.isLogin(3))) { //查看他人的文件,如果是在本地想打开自己的网盘必须先登录
- // 网盘数据为空的时候获取网盘的数据
- if (_diskinfo == null) { //网盘信息不存在,则加载网盘资料
- U.Dk.GetUserDisk(userid, dirid, _diskdiv, _diskcontentdiv, obj); //加载网盘
- }
- //如果 不为空的话加载显示该网盘
- else if (_diskinfo[0] && _diskinfo.pdiv) { //判断数据是否存在 && (!_selectElement || _selectElement == userid)
- (obj ? U.Dk.PbSize : U.Dk.Size)(_diskdiv); //大小设置
- if (obj) { //初始化pb网盘 不理
- _diskinfo[2] = obj;
- U.Dk.LTWPDH(obj, _diskinfo);
- U.Dk.SYWPBJYH(_diskinfo[0].slice(5), $("#UD_SYWOCLDU", _diskinfo.pdiv)[0]);
- }
- else { //初始化个人网盘
- _diskcontentdiv = $("#UD_SYWLTX", _diskinfo.pdiv)[0]; //清空头部导航栏
- _diskcontentdiv.innerText = "";
- U.Dk.LL.XWPDH(_diskinfo[0].slice(0, 6), null, ["UD_SYWLCS", "UD_SYWLCF", "UD_SYWLCB", "UD_SYWLCT", "UD_SYWLCY", "UD_SYWLCP"], _diskcontentdiv, userid)
- // .style.display = "block";
- U.Dk.CSHYHWP(_diskinfo);
- _diskcontentdiv = $("#UD_SYWRZ", _diskinfo.pdiv)[0];
- }
- (dirid.length == 36) && (dirid = _diskinfo[0].indexOf(dirid, "UserDirectoryID"));
- dirid = dirid < 0 ? _dirid : dirid;
- if (U.Ut.isString(_dirid) && (dirid == -1 || dirid > 5)) { //指定目录到达
- _fileinfo = _diskinfo[4][_dirid];
- //如果为文件使用出发处理
- if (_fileinfo.filetype) {
- U.Dk.LE.RecordNav([[U.Dk.LE.OpenFileDirectory, [_diskinfo[4][_fileinfo.UserDirectoryParentID], _diskcontentdiv, null, userid]]], null, userid); //目录指引到指定的位置
- U.Dk.LE.OpenFileDirectory(_diskinfo[4][_dirid], _diskcontentdiv, null, userid); //文件查看处理
- }
- //文件夹处理
- else {
- U.Dk.LE.RecordNav([[U.Dk.LE.OpenFileDirectory, [_diskinfo[4][_dirid], _diskcontentdiv, null, userid]]], null, userid);
- }
- }
- else if (Guid.isGuid(dirid) || Guid.isGuid(_dirid)) { //指引到达网盘信息
- U.Dk.LE.RecordNav[[U.Dk.LE.OpenFileDirectory, ([_$(_diskinfo[0].Select({ "UserDirectoryParentID": _dirid }), _diskcontentdiv, { UserDirectoryID: _dirid }, userid])]]);
- }
- else { //导航目录点击
- _fileinfo = _diskinfo[2] ? ["UD_SYWOC", dirid < 0 ? 0 : dirid - 1] : ["UD_SYWLTXO", dirid < 0 ? 1 : dirid];
- if (_fileinfo[0] == "UD_SYWOC") {
- _fileinfo[0] = $("#" + _fileinfo[0], _diskinfo.pdiv).Child()[_fileinfo[1]].onclick();
- }
- else {
- _fileinfo[0] = $("#" + _fileinfo[0], _diskinfo.pdiv).childg()[_fileinfo[1]];
- _fileinfo[0] = $(_fileinfo[0]).Child()[0].onclick();
- }
- }
- }
- }
- }
- //最新图片
- U.Dk.DI.ZMWPZXYH = function (UDE, UDOD) {
- UDOD = $(UDOD); var i, _UTF, _UDAD, _UDOD, _UDTD, _UDSD, _USE,
- j = 0,
- _UDFD = $$("frag"),
- _UTP = U.UP.SFT("P"),
- _UDPD = UDOD.Parent(),
- _UW = _UDPD.offsetWidth,
- _UH = _UDPD.offsetHeight,
- _UAE = [_UH * 0.03, _UH * 0.12];
- for (i = 0; i < _UAE.length; i++) {
- _UAE[i] = Math.ceil(_UAE[i]);
- }
- for (i = 0; (i < UDE.length && j < 15); i++) {
- if (_UTP.indexOf(UDE[i]["UserFilesExtendName"]) > -1) {
- j++; _UDOD = $$("div", { "onclick": [[U.Dk.DI.ZMWPZXYHOC, ["this", UDE[i]]]] }, _UDFD);
- _UDTD = $$("div", { "className": "UD_HCDPLOS" }, _UDOD);
- _UDSD = $$("div", { "onclick": U.M.apply() }, _UDTD); U.D.SY.JZTPJS(U.M.GetImgU(UDE[i].UseFilesServerThumbnailName), _UDSD, UDE[i]);
- _UDTD = $$("div", { "className": "UD_HCDPLOX" }, _UDOD);
- _UDSD = $$("div", { "className": "UD_HCDPLOXL" }, _UDTD);
- $$("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);
- _UDTD = $$("div", { "className": "UD_HCDPLOXR" }, _UDTD);
- _UDSD = $$("div", { "className": "UD_HCDPLOXRS", "innerHTML": "来自 " }, _UDTD);
- $$("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);
- $$("text", { "data": " 的分享" }, _UDSD);
- }
- }
- if (j) {
- _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] + "%" } }); }
- _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 } } });
- _UDAD = $(_UDPD).parentg().childg()[0];
- _UDAD = $(_UDAD).Child();
- for (i = 0; i < _UDAD.length; i++) {
- _UDAD[i].onclick = U.M.apply(_USE, [[_USE.click, [i * 2 - 1])]];
- }
- } else {
- $(_UDPD).parentg().css("display", "none");
- }
- }
- //disk的刷新树 就是把树里的文件固定好值
- U.Dk.M.refreshfile = function () {
- var i, _UMN, _UPID, _UDID,
- _UWJ = 0,
- _UCZ = 0,
- _UGE = US.Disk.UserDisk, //当前用户网盘数据集合
- _UDE = _UGE[0], //获取的网盘的数据
- _UAE = {
- "LID": [], //临时图片的数据
- "BE": [], //用户头像
- "UE": [] //背景图片
- };
- _UGE[3] = {
- file: [],
- folder: []
- };
- _UGE[4] = {};
- for (i = 0; i < _UDE.length; i++) { //循环看有没有特殊文件
- U.Dk.M.RUS(_UDE[i]);
- _UPID = _UDE[i].UserDirectoryParentID;
- _UWJ += _UDE[i].filetype;
- _UCZ += _UDE[i].UserDirectorySize;
- _UMN = _UDE[i].UserallDirectoryName;
- _UDID = _UDE[i].UserDirectoryID; _UTP = "";
- if (_UPID == US.PG) { //图片文件夹特殊处理
- switch (_UMN) {
- case "用户头像": _UTP = "HID";
- break;
- case "背景图片": _UTP = "BID";
- break;
- case "临时图片": _UTP = "LID";
- break;
- }
- if (_UTP) { if (_UTP == "LID") { _UAE[_UTP].push(_UDID); } else { _UAE[_UTP] = _UDID; } }
- } //临时文件夹
- else if (_UPID == US.DG && _UMN == "临时目录") { _UAE["LID"].push(_UDID); } //临时目录文件夹ID
- _UGE[4][_UDE[i].UserDirectoryID] = _UDE[i];
- }
- for (i = 0; i < _UDE.length; i++) {
- switch (_UDE[i].UserDirectoryParentID) {
- case _UAE["HID"]: _UAE["BE"].push(_UDE[i]);
- break;
- case _UAE["BID"]: _UAE["UE"].push(_UDE[i]);
- break;
- }
- _UDE[i].Parent = _UGE[4][_UDE[i].UserDirectoryParentID]; _UGE[3][_UDE[i].filetype ? "file" : "folder"].push(_UDE[i]);
- }
- _$(_UGE[1][0]).Change({ "FileSize": _UCZ, "FilesCount": _UWJ, "DHID": _UAE["HID"], "BHID": _UAE["BID"], "UserDiskND": _UAE["LID"], "DiskHeadImg": _UAE["BE"], "UserBImage": _UAE["UE"] });
- (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"]);
- }
- //#region 网盘桌面
- //初始化网盘桌面
- U.Dk.DI.ZMCSHWP = function (UDE) {
- var i,
- _UDAD = $("#UD_HCDT").Child(),
- _UAE = [["YH", "UD_HCDPN"], ["YY", "UD_HCDYC"], ["W", "UD_HCDFC"]];
- for (i = 0; i < _UAE.length; i++) {
- U.D.SY["ZMWPZX" + _UAE[i][0]](UDE, $("#" + _UAE[i][1])[0]);
- } //查看
- _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])]])]]];
- _UDAD = $(_UDAD[0]).Child();
- for (i = 0; i < _UDAD.length; i++) {
- _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 }])]])]]];
- } //添加点击事件
- }
- //图片点击事件
- U.Dk.DI.ZMWPZXYHOC = function (UDOD, UDE) {
- if (UDOD.className.indexOf("UD_HCDPLOO") > -1) { U.D.Img.Img(UDE, UDE); }
- }
- //变化
- U.Dk.DI.BHZX = function (UDE) {
- var i,
- _UDOD = $(this.e),
- _UDAD = this.a,
- _UDPD = this.p,
- _UL = UDE.a.length,
- _UDFD = $$("frag");
- if (this.i == _UL - 1) {
- i = _UL - 2;
- while (i--) {
- _UDFD.appendChild(_UDAD[i]);
- }
- this.a = _UDOD.append(_UDFD).Child();
- _UDPD.scrollLeft = 0;
- this.i = 1;
- }
- else if (!this.i) {
- this.a = _UDOD.append(this.a[this.a.length - 1], null, this.a[0]).Child(); this.i = 1;
- }
- else {
- $(_UDPD).animate({ "scrollLeft": this.a[this.i - 1].offsetLeft - _UDPD.offsetLeft - _UDPD.clientLeft }, 100);
- }
- }
- //最新音乐
- U.Dk.DI.ZMWPZXYY = function (UDE, UDOD) {
- var i, j = 0, _UDTD, _UDSD, _UDCD,
- _UDFD = $$("frag"),
- _UTP = U.UP.SFT("M");
- for (i = 0; (i < UDE.length && j < 8); i++) {
- if (_UTP.indexOf(UDE[i]["UserFilesExtendName"]) > -1) {
- j++; _UDTD = $$("div", { "className": "UD_HCDYCO" }, _UDFD);
- _UDSD = $$("div", { "className": "UD_HCDYCOL" }, _UDTD);
- $$("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);
- $$("div", { "className": "UD_HCDYCOI UD_SYI", "onclick": [[U.Dk.DI.ZMWPZXYYBF, ["retElement", UDE[i]]]] }, _UDTD);
- _UDSD = $$("div", { "className": "UD_HCDYCOR" }, _UDTD);
- _UDSD = $$("div", { "className": "UD_HCDYCORO" }, _UDSD)
- $$("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);
- $$("div", { "className": "UD_HCDYCORX UTDF", "innerHTML": UDE[i].UserName, "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [UDE[i].UserID]]] }, _UDSD);
- }
- }
- if (!j) { $(UDOD).parentg().hide(); }
- else { UDOD.appendChild(_UDFD); }
- }
- //点击播放音乐
- U.Dk.DI.ZMWPZXYYBF = function (UDOD, UDE) {
- var i, _UIE, _UDCD, _UDTD,
- _UDAD = $(UDOD).parentg(2).Child();
- for (i = 0; i < _UDAD.length; i++) {
- _UDCD = $($(_UDAD[i]).childg()[1]);
- (_UIE != null) && (_UDTD = _UDCD[0], _UIE = null);
- _UDCD[_UDCD[0] == UDOD ? (_UIE = i, "addClass") : "removeClass"]("UD_HCDYCOIO");
- }
- //U.MPlayer.NBF({ UserFilesName: UDE.UserFilesName, UserFilesServerName: UDE.UserFilesServerName, bs: _UDTD ? _UDTD.onclick : null }, UDE);
- }
- //最新文件
- U.Dk.DI.ZMWPZXW = function (UDE, UDOD) {
- var i, j = 0, _UDTD, _UDSD,
- _UDFD = $$("frag"),
- _UTP = U.UP.SFT("CA");
- for (i = 0; (i < UDE.length && j < 8); i++) {
- if (_UTP.indexOf(UDE[i]["UserFilesExtendName"]) == -1) {
- j++; _UDTD = $$("div", { "className": "UD_HCDFCO" }, _UDFD);
- $$("div", { "className": "UD_HCDFCOL", "innerHTML": j }, _UDTD);
- _UDSD = $$("div", { "className": "UD_HCDFCOR" }, _UDTD);
- _UDSD = $$("div", { "className": "UD_HCDFCORO" }, _UDSD)
- $$("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);
- $$("div", { "className": "UD_HCDFCORX UTDF", "innerHTML": UDE[i].UserName, "onclick": [[U.M.StopBubble], [U.U.I.ViewOtherUserInfo, [UDE[i].UserID]]] }, _UDSD);
- }
- }
- if (!j) { $(UDOD).parentg().hide(); }
- else { UDOD.appendChild(_UDFD); }
- }
- //#endregion
- //#region 网盘应用查看区域
- //网盘新窗体
- U.Dk.DI.SPCK = function (UTP) {
- var i, _UAE, _UDTD, _UDSD, _UDMD, _UDKD, _UDE,
- _USE = {
- Poto: [US.PG, "图片"],
- Video: [US.VG, "视频"],
- Music: [US.MG, "音乐"],
- File: [US.DG, "文件"]
- }[UTP],
- _UDOD = $$("frag");
- _UDTD = $$("div", { className: "UD_SYSXZBJS" }, _UDOD); _UDSD = $$("div", { className: "UD_SYSXSZCVL" }, _UDTD);
- _UDMD = $$("div", { className: "UD_SYSXSZCVLO UD_SYSXSZCVLOS", title: _USE[1] + "分享", style: "margin-left: 0" }, _UDSD);
- $$("div", { className: "UD_SYSXSZCVLOI UD_SYI UD_SYSXSZCVLOIT" }, _UDMD); $$("div", { className: "UD_SYSXSZCVLON", "innerHTML": _USE[1] + "分享" }, _UDMD);
- _UDSD = $$("div", { className: "UD_SYSXZBJO UD_SYSXZBJ", "id": "UD_SY" + UTP }, _UDOD); $$("div", { className: "UD_SYSXZBMLD" }, _UDOD);
- _UDE = U.UI.Form({
- resize: U.M.apply(this, [[U.Dk.DI.DiskSYN, [$("#UD_SY" + UTP)[0] || _UDSD, null])]],
- style: { width: "90%", height: "85%" }, id: "UD_" + UTP, content: _UDOD, title: "<div class='UD_SYF_STI'>云端版块</div>",
- hst: { style: { padding: "0" } }, bst: { style: { textAlign: "center", overflowX: "hidden" } }
- });
- U.Dk.DI.SYWPQHJ((_UDTD = $(_UDE.body).Child()[1]), 1, 2, _USE[0], false);
- _UDE.body.onscroll = U.M.SSCH({ "AF": function () { U.Dk.DI.SYWPQHFY(this.P + 2, _UDTD); } }).SCH(); return _UDE.be;
- }
- //查看网盘窗体切换
- U.Dk.DI.QHSPCK = function (UTF, UDOD) {
- if (!UTF || !U.U.L.isLogin(3)) {
- var i, _UTF, _UDCD,
- _UDAD = $(this).parentg().childg(0);
- for (i = 0; i < _UDAD.length; i++) {
- _UTF = _UDAD[i] == this ? "addClass" : "removeClass";
- _UDCD = $(_UDAD).childg(i)[0];
- _UDCD = $(_UDCD);
- _UDAD[_UTF]("UD_SYSXSZCVLOS", i);
- _UDCD[_UTF]("UD_SYSXSZCVLOI" + (i ? "O" : "") + "T");
- }
- U.D.SY.ET["UL"]["WS"][5] = UTF ? US.userInfo.userid : "";
- U.Dk.DI.SYWPQHFY(1, UDOD); //网盘滚动分页
- }
- }
- //#region
- //图片查看区域
- U.Dk.DI.TPCK = function () {
- }
- //音乐查看区域
- U.Dk.DI.YYCK = function () {
- }
- //文件查看区域
- U.Dk.DI.WJCK = function () {
- }
- //#endregion
- //通过目录ID获取格式
- U.Dk.HP.UPF = function (UDID) {
- var i,
- _UDE = [[US.DG, [U.UP.SFT("A"), "文件", "100MB", "disk"]],
- [US.PG, [U.UP.SFT("P"), "图片", "100MB", "photo"]],
- [US.MG, [U.UP.SFT("M"), "音乐", "100MB", "music"]],
- [US.VG, [[U.UP.SFT("V"), "视频", "100MB", "vedio"]]]];
- for (i = 0; i < _UDE.length; i++) {
- if (_UDE[i][0] == UDID) {
- return _UDE[i][1];
- }
- }
- return ["", "友群", "250MB"];;
- }
- //获取网盘信息
- U.Dk.GetWPXX = function (UDE) {
- var i, _UCE,
- _userid = UDE[1][2],
- _UGE = UDE[0],
- _UIF = UDE[1][0],
- _UAE = [0, -1, _UIF.FilesCount, 0, 0, 0, 0],
- _UPT = U.UP.SFT("P"), _UVP = U.UP.SFT("V");
- for (i = 0; i < _UGE.length; i++) {
- _UCE = _UGE[i];
- if (_UCE.UserDirectoryEncrypt == "true") { _UAE[0]++; }
- else if (_UCE.UserDirectoryEncrypt == _userid || _UCE.GroupID == _userid) { _UAE[1]++; }
- else if (_UCE.UserDirectoryExtendType == "mp3") { _UAE[4]++; }
- else if (_UPT.indexOf(_UCE.UserDirectoryExtendType) > -1) { _UAE[5]++; }
- else if (_UVP.indexOf(_UCE.UserDirectoryExtendType) > -1) { _UAE[6]++; }
- }
- _UAE[3] = _UAE[2] - _UAE[4] - _UAE[5] - _UAE[6];
- return _UAE;
- }
- //多文件打开
- U.Dk.LE.DXWPDYA = function (UDAD) {
- var i,
- _UME = U.D.DragE.TC;
- for (i = 0; i < _UME.length; i++) {
- _UME[i].onclick();
- }
- }
- //添加
- U.Dk.VW.DBCK = function (UDOD, UTF) {
- if (UTF) { delete UDOD.KID; }
- else { UDOD.KID = 1; setTimeout(function () { if (UDOD.KID) { } }, 200); }
- //$(UDOD).Parent(3).click();
- }
- ////分流初始化文件
- //U.Dk.M.refreshfile = function (filesinfo, UAE, diskinfo) {
- // diskinfo = diskinfo || US.Disk.UserDisk;
- // var i, _UTP, _UDID, _UPID, _UMN, _UCE, _UTP,
- // _UIF = US.userInfo.userid == diskinfo[1][2] ? (diskinfo[1][0] = US.userInfo) : null, _UIE = diskinfo[1][0];
- // if ((_UIE.DHID == null || (UAE[0] && UAE[0].length)) && UAE[2]) {
- // _UCE = { FileSize: UAE[2].FileSize, FilesCount: UAE[2].FileCount, DHID: "", BHID: "", LID: [], UserDiskND: [], DiskHeadImg: [], UserBImage: [] }; U.Ut.AddObj(_UIE, _UCE); UAE = UAE[0];
- // } //(_UIF) && (_$(_UIF).Add(_UCE));
- // if (U.Ut.isString(filesinfo) && filesinfo.length == 36) { filesinfo = diskinfo[4][filesinfo]; }
- // if (U.Ut.isObject(filesinfo) && !filesinfo.filetype) { //处理文件夹
- // if (!(_UTP = "") && (_UDID = filesinfo.UserDirectoryID) && (_UMN = filesinfo.UserallDirectoryName) && (_UPID = filesinfo.UserDirectoryParentID) == US.PG) {
- // switch (_UMN) {
- // case "用户头像": _UTP = "HID"; break;
- // case "背景图片": _UTP = "BID"; break;
- // case "临时图片": _UTP = "LID"; break;
- // }
- // } //图片文件夹特殊处理
- // else if (_UPID == US.DG && _UMN == "临时目录") {
- // _UTP = "LID";
- // } //临时目录文件夹ID
- // filesinfo.Child = [];
- // if (_UTP == "LID") {
- // _UIE[_UTP].push(_UDID);
- // _UIE["UserDiskND"].push(_UDID);
- // } else if (_UTP) { _UIE[_UTP] = _UDID; } //添加目录信息
- // }
- // for (i = 0; i < UAE.length; i++) {
- // _UTP = "";
- // UAE[i] = U.Dk.M.RUS(UAE[i]); diskinfo[4][UAE[i].UserDirectoryID] = UAE[i];
- // diskinfo[0].push(UAE[i]); UAE[i].Parent = diskinfo[4][(_UDID = UAE[i].UserDirectoryParentID)];
- // if (filesinfo) { filesinfo.Child.push(UAE[i]); } if (_UDID == _UIE.DHID) { _UTP = "DiskHeadImg"; }
- // else if (_UDID == _UIE.BHID) { _UTP = "UserBImage"; }
- // (_UTP) && (_UIE[_UTP].push(UAE[i]));
- // }
- // return diskinfo;
- //}
- //添加上传图片或者头像
- //U.Dk.M.AddUserHBImage = function (UDID, filesinfo) {
- // var i, _UTP,
- // _UGE = US.userInfo,
- // _UDE = { "DHID": "DiskHeadImg", "BHID": "UserBImage" };
- // for (i in _UDE) {
- // if (_UGE[i] == UDID) { _UTP = _UDE[i]; break; }
- // };
- // (_UTP) && (_UGE[_UTP].push(filesinfo));
- //}
- ////获取最近打开的指定文件
- //U.Dk.M.GDBFM = function (UTF) {
- // var _UDE, _UGE = US.Disk.UserDisk;
- // if (_UGE && (_UGE = _UGE[0])) {
- // _UDE = _$(_UGE).Select({ "UserDirectoryExtendType": UTF }); U.M.Sequence(_UDE, "UserDirectoryModifyTime", U.MT.SizeComparison); //冒泡排序法
- // return _UDE;
- // }
- //}
|