12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386 |
-
- U.MD.DK.LL.ZJFWDJ = function (UDE, userid, UDOD) {
- if (UDE[1].Time) {
-
- U.MD.DK.LE.openFileDirectory(UDE[1].Time, { "UserallDirectoryName": "最近访问区域" }, UDE[1][2], true)
- }
- else {
- U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "DirectoryAndFileSortByTime", UDE[1][2], 0, 100], U.MD.DK.LL.AsynZJFWDJ, [[UDOD, true], UDE, userid, UDOD]);
- }
- }
- U.MD.DK.LL.AsynZJFWDJ = function (r) {
- var _context = r.context,
- _UDE = _context[1],
- _userid = _context[2],
- _el = _context[3],
- _UGE = U.MD.DK.M.diskOperatingSwitch(_userid);
- _UGE[1].Time = r.value; U.MD.DK.LL.ZJFWDJ(_UGE, _userid, _el);
- }
- U.MD.DK.LL.RecordNav = function (cb) {
-
- var userid;
- userid = US.disk.UserDisk[1][2];
- U.UF.N.RGoL("Disk" + userid);
- U.UF.N.AddEvent(cb, "Disk" + userid);
-
- }
- U.MD.DK.VW.XWPDYH = function (UDE, UDOD, userid) {
- if (!U.MD.U.L.isLogin()) {
- var i, _USN, _UAE, _UDMD, _UDTD, _UDSD, _UDID,
- _UGID = UDE[0] ? UDE[0].GroupManageID : "",
- _UGE = U.MD.DK.M.diskOperatingSwitch(userid) || US.disk.UserDisk,
- _UDFD = $$("frag");
- UDOD = UDOD || U.selectEl("#U_MD_DK_RZ", _UGE.formel)[0];
- UDOD.innerText = "";
- UDOD.onscroll = null;
- if (_UGE[1][4] == "Detailed") { U.MD.DK.C.XWPDYQH($("#U_MD_DK_RKZ", _UGE.formel).Child()[0], 0, _UGE[1][2], true) };
- if (UDE.length) {
- setTimeout(function () {
- for (i = 0; i < UDE.length; i++) {
- _UGID = UDE[i].GroupManageID;
- if (_UGID && UDE[i].DDC == null) { UDE[i].DDC = U.Json.select(_UGE[0], { "UserDirectoryParentID": _UGID }).length; }
- _UDTD = $$("div", {
- "title": (_USN = UDE[i].UserNickName || UDE[i].GroupManageDescript || UDE[i].GroupManageName),
- "className": "U_MD_DK_RZO " + (_UGID ? "U_MD_DK_RZOKO" : "U_MD_DK_RZOK")
-
- }, _UDFD);
- _UDSD = $$("div", { "className": _UGID ? "U_MD_DK_RZOQI" : "U_MD_DK_RZOKI" }, _UDTD);
- if (_UGID) { _UAE = U.MD.DK.VW.XWPDYHTX(_UDSD, _UGID); }
- else {
- $$("img", {
- "onerror": U.MD.C.imgError,
- "onerror": U.MD.C.imgError,
- "title": "点击查看",
- "src": U.MD.C.getHeadImage(UDE[i].UserThumbnailImageHead)
- }, _UDSD);
- }
- $$("div", { "className": "U_MD_DK_RZOKN U_MD_D_Text_Abbreviation", "innerHTML": _USN }, _UDTD);
- $$("div", { "className": "U_MD_DK_RZOKQ U_MD_D_Text_Abbreviation", "innerHTML": _UGID ? UDE[i].GroupManageRemark || "暂无群简介" : UDE[i].UserIndividualitysignature || "暂无个人简介" }, _UDTD);
- _UDSD = $$("div", { "className": "U_MD_DK_RZOKX" }, _UDTD);
- _UDID = $$("div", { "className": "U_MD_DK_RZOKXF", "innerHTML": "全部分享" }, _UDSD);
- $$("span", { "className": "U_MD_DK_RZOKXFO", "innerHTML": UDE[i].DDC || 0 }, _UDID);
- _UDID = $$("div", { "className": "U_MD_DK_RZOKXC" }, _UDSD);
- if (_UGID) { _UDID.innerHTML = "目前参与的人数:" + _UAE.length; }
- }
- UDOD.appendChild(_UDFD);
- }, 0);
- }
- else {
- var _UDID, _UDSD, _UDTD = $$("div", { "className": "U_MD_DK_RZT" });
- _UDSD = $$("div", { "className": "U_MD_DK_RZTS" }, _UDTD);
- $$("div", { "className": "U_MD_DK_RZTSL", "innerHTML": "!" }, _UDSD);
- _UDID = $$("div", { "className": "U_MD_DK_RZTSR" }, _UDSD);
- $$("div", { "className": "U_MD_DK_RZTSRS", "innerHTML": "这里暂时没有内容哦!!" }, _UDID);
- $$("div", { "className": "U_MD_DK_RZTSRX", "innerHTML": "Nothing!!" }, _UDID);
- $$("div", { "className": "U_MD_DK_RZTX", "innerHTML": "返回一步" }, _UDTD);
- UDOD.appendChild(_UDTD);
- }
-
- }
- }
- U.MD.DK.VW.XWPDYHTX = function (UDOD, UGID) {
- var i, _UPZ,
- _UDE = U.Json.select(US.friend.groupusers, { "GroupManageID": UGID }, null, 9),
- _UDFD = $$("frag"),
- _UL = _UDE.length, _UAE = [1, 4, 9];
- for (i = 0; i < _UAE.length; i++) {
- if (_UL <= _UAE[i]) {
- _UPZ = Math.ceil(_UAE[i] / 3);
- _UPZ = [(124 - (i * 5)) / _UPZ, 5, _UPZ]; break;
- }
- }
- for (i = 0; i < _UL; i++) {
- $$("img", {
- "onerror": U.MD.C.imgError,
- "onerror": U.MD.C.imgError,
- "src": U.MD.C.getHeadImage(_UDE[i].UserThumbnailImageHead),
- "style":
- {
- "width": _UPZ[0] + "px",
- "height": _UPZ[0] + "px",
- "marginLeft": i % _UPZ[2] ? _UPZ[1] + "px" : "",
- "marginTop": i < _UPZ[2] ? "" : _UPZ[1] + "px"
- }
- }, _UDFD);
- }
- _UL = Math.ceil(_UL / _UPZ[2]);
- _UPZ = ((124 - (_UPZ[0] * _UL + (_UPZ[1] * (_UL - 1)))) / 2);
- U.selectEl(UDOD).addAttrArray({
- "style":
- {
- "marginTop": _UPZ + "px",
- "height": (125 - _UPZ) + "px"
- }
- });
- UDOD.appendChild(_UDFD);
- return _UDE;
- }
- U.MD.DK.LE.ApplyDns = function (UDID) {
- U.selectEl("#U_MD_D_H").addAttrArray({
- style:
- {
- display: "block"
- },
- onclick: function () {
- U.MD.DK.LE.ApplyDns(UDID);
- }
- });
- }
- U.MD.DK.LE.ApplyDnsEnd = function (UDID) {
- if (!U.MD.U.L.isLogin() && UDID) {
- U.UF.UI.confirm("是否申请域名生成站点", function () { U.MD.DK.LE.aDnsF(UDID); });
- }
- }
- U.MD.DK.LE.aDomain = function (userid, UGE) {
- if (!U.MD.U.L.isLogin()) {
- var _UDID = UGE[1][1], _UUID = US.userInfo.userid;
- if (UGE[4][_UDID].UserId == _UUID || userid == _UUID) {
- var _UDE = U.MD.DK.M.diskOperatingSwitch(userid);
- if (_UDE[1][1]) { U.UF.UI.confirm("是否申请域名生成站点", function () { U.MD.DK.LE.aDnsF(_UDE[1][1]); }) };
- }
- else { U.alert("非本人目录无法建立站点"); }
- }
- }
- U.MD.DK.LE.GetDns = function (UDID, cb) {
-
-
- }
- U.MD.DK.LE.aDnsF = function (UDID) {
- var _UDE, _UDTD, _UDMD, _UDSD;
- _UDTD = $$("div", {
- "className": "UD_Disk_A U_MD_D_YesText",
- "onselectstart": "U.UF.EV.stopBubble();return true;"
- });
- $$("div", { "className": "UD_Disk_AT", "innerHTML": "生成网盘域名" }, _UDTD);
- _UDMD = $$("div", { "className": "UD_Disk_AC", "innerHTML": "等待域名生成..." }, _UDTD);
- _UDE = new U.UF.UI.form("申请域名",
- _UDTD,
- {
- "onmousedown": U.UF.EV.stopBubble,
- "id": "U_MD_O_W",
- "style": {
- "width": "400px",
- "height": "200px"
- }
- },
- {
- isdrag: false,
- isenlarge: false
- });
- U.MD.DK.LE.eaDomain(UDID, _UDMD);
- }
- U.MD.DK.LE.eaDomain = function (UDID, UDOD) {
-
-
- }
- U.MD.DK.LE.DXWPDYQT = function (UDE, UDOD) {
- var _UAE,
- _UGE = US.disk.Disks;
- if (!_UGE[US.EMPTYGUID]) { _UGE[US.EMPTYGUID] = [[]] };
- _UGE = _UGE[US.EMPTYGUID][0];
- if (UDE.filetype) {
- U.MD.DK.LE.openFileDirectory(UDE, US.EMPTYGUID);
- }
- else {
- _UAE = U.Json.select(_UGE, { "UserDirectoryID": UDE.UserDirectoryID })[0];
- if (_UAE) {
-
- U.MD.DK.LL.RecordNav(function () { U.MD.DK.LE.openFileDirectory(U.Json.select(_UGE, { "UserDirectoryParentID": UDE.UserDirectoryID }), U.Json.RecurD(_UGE, UDE, { "UserDirectoryID": "" }, "UserDirectoryParentID"), US.EMPTYGUID); });
- }
- else {
- _UGE.push(UDE);
- U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "GetChildsByDirectoryId", UDE.UserId, UDE.UserDirectoryID, US.EMPTYGUID], U.MD.DK.LE.AsynDXWPDYQT, ["", UDE, UDOD]);
-
- }
- }
- }
- U.MD.DK.LE.AsynDXWPDYQT = function (r) {
- var _context = r.context,
- _UDE = _context[1],
- _el = _context[2];
- r = r.value;
-
- r.UserId = _UDE.UserId;
- r.UserThumbnailImageHead = _UDE.UserThumbnailImageHead;
- r.UserNickName = _UDE.UserNickName;
- _el.innerText = "";
- US.disk.Disks[US.EMPTYGUID][0] = US.disk.Disks[US.EMPTYGUID][0].concat(r);
- U.MD.DK.LE.DXWPDYQT(_UDE, _el);
- }
- U.MD.DK.LE.OIMG = function (fileinfo) {
- var _diskinfo = US.disk.UserDisk;
- var _files = _diskinfo[4][fileinfo.UserDirectoryParentID].Child;
- var _poto = U.Json.Like(_files, { "UserDirectoryExtendType": US.disk.applicationTypes.image.types.join(",") });
- var _i = _poto.objIndexOf({ "UserDirectoryID": fileinfo.UserDirectoryID });
- return [_poto, _i];
- }
- U.MD.DK.LE.OV = function (UDE) {
- var _UTP = UDE.UserDirectoryExtendType || UDE.UserFilesExtendName,
- _USN = UDE.UserFilesServerName,
- _UTF = U.UF.C.isPlay(_UTP);
- if (_UTP == "video") { window.open(UDE.UserFilesServerName); }
- else {
- if (_UTF) {
- window.open("/Pages/Video.htm?url=" + UDE["UserFilesServerName"]);
- }
- else if (_UTF === 0) {
- U.alert("该格式无法播放");
- }
- else {
- U.alert("浏览器版本太低。");
- }
- }
- }
- U.MD.DK.LE.AsynOFT = function (r) {
- var _context = r.context,
- _USN = _context[1],
- _UN = _context[2],
- _userid = _context[3],
- _UFID = _context[4],
- _el = _context[5];
- r = r.value;
- if (r) {
- U.MD.DK.LE.openDownloadPage(_USN, _UN, _userid, _UFID, true);
- }
- else {
- U.MD.DK.RE.WPXZWJZJO(_UFID, "file");
- }
- }
- U.MD.DK.LE.USOS = function (UDID, UTH, UFT, cb, UTF, UPID, UIN) {
- var _UDPD, _UTF,
- _userdisk = US.disk.UserDisk,
- _userid = _userdisk.userInfo.UserId,
- _UYID = US.userInfo.userid,
- _UDE = U.UF.C.isString(UDID) ? (_userdisk[4][UDID] ? _userdisk[4][UDID] : UDID) : UDID;
- UDID = _UDE ? _UDE.UserDirectoryID : UDID;
- if (_UDE.UserFilesID != undefined) { UDID = _UDE.UserFilesID; _UDE.UserFilesServerName = "" }
- if (U.UF.S.Guid.test(UDID) && _UDE && (_UYID == _userid || _UDE.UserId == _UYID || _UDE.GroupID == _UDE.UserId)) {
- if (UIN = UIN || "") { UIN = UIN.replaceHtmlSign() + (_UDE.filetype ? "." + _UDE.UserDirectoryExtendType : "") };
- if (_userid == _userdisk.operator) {
- if (_UDE.UsOffice != UTH) {
- parent.U.A.Request(US.AUTH, ["SaveFileContent", UDID, UTH, UIN], parent.U.MD.DK.LE.AsynUSOS, ["", UDID, UTH, _UDE, UIN]);
- U.alert("数据同步中..");
- }
- }
- else { U.alert("拒绝访问"); }
- (cb) && (function () { cb(); }());
- }
- else {
- if (!U.MD.DK.RE.newJurisdiction(_UYID, "txt", UPID)) {
- _userdisk[1][1] = UPID = (userid == _userid) ? US.MYFOLDERID : US.FTPFOLDERID;
- };
- if (UIN) {
- return U.MD.DK.RE.AF(UFT, UIN, function () { cb(); }, US.userInfo.userid, true);
- }
- else {
- _userdisk = US.disk.UserDisk;
- _UTF = U.selectEl(_userdisk.formel).Parent({ usform: "true" }).style.display == "none";
- _UDPD = U.MD.D.I.openApplication("disk", { "userid": _userid, "directoryid": UDID }); cb = cb || [];
- if (_UTF) { cb.push[U.UF.F.CloseWindow, [_UDPD, "remove"]] };
- U.MD.DK.RE.CMB("txt", function () { cb(); }, _UDPD, _userid, true);
- }
- }
- }
- U.MD.DK.LE.NUSOS = function (UDST, UFT, UGE, UCT, UREQ) {
- var _UFID = UCT[1]["UserDirectoryID"];
- UGE = UGE || window.frames["US_ExcelFrame"].U.MD.O.E.SY;
- U.MD.DK.LE.USOS(_UFID, UDST); UGE["ID"] = _UFID;
- }
- U.MD.DK.LE.AsynUSOS = function (r) {
- var _UDE,
- _context = r.context,
- _UFID = _context[1],
- _UST = _context[2],
- _UDE = _context[3],
- _USN = _context[4];
- r = r.value;
- if (r) {
-
- _UDE.UsOffice = _UST;
- _UDE.UserDirectoryModifyTime = U.UF.D.toTimeStamp();
- if (_USN) { U.MD.DK.RE.AsynMRN({ value: true, context: ["", _UDE, _USN] }) }; U.alert("修改成功..");
- }
- else {
- U.alert("磁盘空间已满,无法修改内容");
- }
- }
- U.MD.DK.LE.GM = function (UDE) {
- var i, _UCE,
- _UME = [],
- _UGE = US.disk.UserDisk;
- if (!UDE.UserDirectoryID) { UDE = _UGE[4][UDE] };
- UDE = [UDE];
- for (i = 0; i < UDE.length; i++) {
- _UCE = _UGE[4][UDE[i].UserDirectoryID].Child;
- _UME.push([UDE[i], U.Json.select(_UCE, { "filetype": 0 }), U.Json.select(_UCE, { "UserDirectoryExtendType": "mp3" })]);
- }
- return _UME;
- }
- U.MD.DK.LE.openDownloadPage = function (USN, UN, userid, UFID, UTF) {
- var _UTF = US.userInfo.userid == userid,
- _UMT = USN.split(".")[1],
- _el = event ? event.srcElement : null;
- U.alert("正在努力的打开中,请稍后");
- }
- U.MD.DK.C.XWPDYQH = function (UDOD, UTF, userid, UTM) {
- var i, _UDSD,
- _UGE = U.MD.DK.M.diskOperatingSwitch(userid),
- _UDTD = U.MD.D.H.ET["Disk"]["SY"]["DJ"],
- _UDAD = U.selectEl($(UDOD).Parent()).Child(),
- _UDPD = U.selectEl("#" + (_UGE[2] ? "U_MD_DK_OCRC" : "U_MD_DK_RZ"), _UGE.formel)[0],
- _UDE = UTF ? ["U_MD_DK_RKZOP U_MD_DK_RKZOPI", "U_MD_DK_RKZOS"] : ["U_MD_DK_RKZOP", "U_MD_DK_RKZOS U_MD_DK_RKZOSI"];
- if (_UGE.directoryid || _UGE[1][5].length) {
- _UGE[1][4] = UTF ? "Detailed" : "Normal";
- for (i = 0; i < _UDE.length; i++) {
- _UDAD[_UDAD.length - 1 - i].className = "U_MD_DK_RKZOI U_Img " + _UDE[i];
- }
- (_UDSD = U.selectEl("#U_MD_DK_RM" + (_UGE[2] ? "O" : ""), _UGE.formel))[0].style.display = UTF ? "block" : "none"; _UDSD.find("input")[0];
- if (_UGE[1][5].length) {
- _UDPD.style.height = U.selectEl(_UDPD).Parent(2).offsetHeight - _UDPD.offsetTop - 2 + "px";
- }
- if (!UTM) {
- if (_UDTD && (_UDTD = U.selectEl(_UDTD).Parent()).id.indexOf(_UGE.directoryid) > -1) {
- U.selectEl(_UDTD).Child()[0].onclick();
- }
- else {
- U.MD.DK.LL.RecordNav(function () {
- U.MD.DK.LE.openFileDirectory(_UGE.directoryid ? U.Json.select(_UGE.directoryOrFiles, { "UserDirectoryID": _UGE.directoryid })[0] : _UGE[1][5], userid);
- });
- }
- }
- else {
- _UDPD.style.width = "";
- }
- }
- else {
- U.alert("本区域没有视图模式");
- }
- }
- U.MD.DK.C.WPWJPX = function (UTF, cb, userid) {
- var i, j, _UFT,
- _UGE = U.MD.DK.M.diskOperatingSwitch(userid),
- _UDE = _UGE.directoryid ? U.Json.select(_UGE.directoryOrFiles, { "UserDirectoryParentID": _UGE.directoryid }) : _UGE[1][5].concat(),
- _el = U.selectEl("#" + (_UGE[2] ? "U_MD_DK_OCRC" : "U_MD_DK_RZ"),
- _UGE.formel)[0],
- _UDAD = U.selectEl(_el).Child(),
- _UL = _UDAD.length,
- _UDFD = $$("frag");
- if (_UDAD.length) {
- for (i = 0; i < _UL; i++) {
- if (_UDAD[i].id.indexOf(_UDE[i]["UserDirectoryID"]) == -1) {
- _UFT = true; break;
- }
- };
- if (!_UFT) {
- if (UTF) {
- U.UF.Math.sequence(_UDE, UTF, cb, UTF === "UserDirectoryAddTime" ? -1 : 1);
- }
- else if (cb) {
- _UDE = cb(_UDE);
- }
- }
- for (i = 0; i < _UL; i++) {
- _UDFD.appendChild(_UDAD[(j = _UDAD.objIndexOf({ "id": "R" + _UDE[i]["UserDirectoryID"] }))]);
- _UDAD.splice(j, 1)[0];
- };
- _el.appendChild(_UDFD);
- }
- }
- U.MD.DK.C.WPWJPXLX = function (UTF, UDE) {
- var i, _UTP, _UAE = {};
- for (i = 0; i < UDE.length; i++) {
- _UTP = UDE[i][UTF];
- if (!_UAE[_UTP]) { _UAE[_UTP] = [] };
- _UAE[_UTP].push(UDE[i]);
- }
- return U.Json.Merger(_UAE);
-
- if (!UTM) {
- if (_UDTD && U.selectEl(_UDTD).Parent().id.indexOf(_UGE.directoryid) > -1) {
- _UDTD.onclick();
- }
- else {
- U.MD.DK.LL.RecordNav(function () {
- U.MD.DK.LE.openFileDirectory(_UGE.directoryid ? U.Json.select(_UGE.directoryOrFiles, { "UserDirectoryID": _UGE.directoryid })[0] : _UGE[1][5], userid);
- });
- }
- }
- else {
- _UDPD.style.width = "";
- }
- }
- U.MD.DK.C.WPWJNPX = function (UDE) {
- U.Json.sort(UDE, "UserDirectoryName", 1); return UDE;
- }
- U.MD.DK.C.WPZTJD = function (UDOD) {
- var i,
- _UDID = U.selectEl("input", UDOD),
- _UE = U.UF.EL.getMousePosition(),
- _UTF = UDOD.componentFromPoint(_UE["MX"], _UE["MY"]);
- for (i = 0; i < _UDID.length; i++) {
- _UDID[i].blur();
- }
- }
- U.MD.DK.C.LSWJCL = function (diskinfo) {
- var _userinfo = diskinfo[1][0];
- return _userinfo.DHID + "," + _userinfo.BHID + "," + (_userinfo.UserDiskND || []).join(",");
- }
- U.MD.DK.C.DGHQML = function (userid, UDID) {
- var _UGE = U.MD.DK.M.diskOperatingSwitch(userid);
- }
- U.MD.DK.C.WPTDSY = function (UDOD, cb) {
- }
- U.MD.DK.RE.DWJXZ = function (UFID, UV) {
-
- U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "UD_I_AddFileEX", US.userInfo.userid, UFID, UV == "true" ? 1 : 0], function () { U.alert("成功添加置顶"); });
-
- }
- U.MD.DK.RE.TSXXML = function () {
- var i, _dirid, _fileinfo, _UKE, _UCE,
- _UTF = 1,
- _userid = US.userInfo.userid,
- _diskinfo = US.disk.UserDisk;
- if (_diskinfo[1][2] == _userid || _diskinfo[2]) {
- if (_diskinfo[2] || ((_fileinfo = U.Json.RecurD(_diskinfo[0], null, { "UserDirectoryID": _diskinfo[1][1] }, "UserDirectoryParentID"), _UCE = _fileinfo[_fileinfo.length - 1], _dirid = _UCE.UserDirectoryID) && _UCE.GroupID || _dirid == US.FTPFOLDERID)) {
- _dirid = _diskinfo[1][1];
- _UKE = U.JsongroupBy(U.MD.DK.C.MLWJSY[_fileinfo[0]], _diskinfo[0][0], "UserId");
- _UCE = [];
- for (i in _UKE) {
- if ((_UKE.hasOwnProperty(i) && i != _userid)) {
- (_UCE.push({ UserId: i, UserThumbnailImageHead: _UKE[i][0].UserThumbnailImageHead }));
- }
- };
- if (_UCE.length) {
- U.MD.F.W.viewFriend({
- GroupManageID: _dirid,
- GroupManageName: _fileinfo[0].UserDirectoryName + "(" + _UCE.length + ")人",
- GroupManageDescript: "推送消息让所有人都能收到你的通知",
- "UserId": _UCE.toKeyArray("UserId").join(",")
- });
- return ""
- }
- _UTF = 0;
- }
- else { _UTF = 2; }
- }
- if (_UTF != null) {
- U.alert["无参与消息的用户", "只能在本人共享内推送消息", "本人目录无法推送消息"][_UTF]
- }
- }
- U.MD.DK.S.SSWPBDWD = function (UDOD, UTF) {
- var _UGE = US.disk.UserDisk,
- _UDV = UDOD.value,
- _el = U.selectEl("#U_MD_DK_RZ", _UGE.formel)[0];
- U.MD.DK.S.P = _el.innerText = "";
- if (_UDV.isStrNull() && _UDV != UDOD.defaultValue) {
- U.MD.DK.S.SSWPBDW(_UDV, 1, UTF, null, _diskinfo.userInfo);
- }
- }
- U.MD.DK.S.SSWPBDWGD = function (UDKN, UTF, UDE, userid) {
- U.MD.DK.S.SSWPBDW(UDKN, this.P + 2, UTF, UDE, userid);
- }
- U.MD.DK.S.SSWPBDW = function (UPW, UP, UTF, UDE, userid) {
- var _UE = UP * 100,
- _UTP = U.MD.DK.S.P;
- if (_UTP == "" || _UTP > (_USE - 99)) {
- U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "SearchDirectoryAndFile", UPW, _UE - 99, _UE]), U.MD.DK.S.AsynSSWPBDW, ["", UPW, UTF, UDE, userid];
- }
- }
- U.MD.DK.S.AsynSSWPBDW = function (r) {
- var _context = r.context,
- _UPW = _context[1],
- _UTF = _context[2],
- _UDE = _context[3],
- _userid = _context[4],
- _UGE = U.MD.DK.M.diskOperatingSwitch(_userid),
- _el = U.selectEl("#U_MD_DK_RZ", _UGE.formel)[0];
- r = r.value;
- if (r.length) {
- U.MD.DK.S.P = r[0]["AllF"];
- if (_UDE) {
- U.MD.DK.S.PSSWPBDW(r, _UPW, _el, _UTF, _UDE, _userid);
- }
- else {
- U.MD.DK.LL.RecordNav(function () {
- U.MD.DK.S.PSSWPBDW(r, _UPW, _el, _UTF, _UDE, _userid);
- });
- }
- }
- else {
- U.MD.DK.S.P = ""; if (!r.length) { U.alert("无搜索结果!") }
- }
- }
- U.MD.DK.S.PSSWPBDW = function (UDE, UPW, UDOD, UTF, UAE, userid) {
- var _UKE = UAE ? UAE.concat(UDE) : UDE;
- U.MD.DK.LL.printNavigation([{ "UserallDirectoryName": "关键字\"" + UPW + "\"搜索结果" }], U.selectEl("#U_MD_DK_RYB", US.disk.UserDisk.formel)[0]);
- if (UDE.length) {
- if (!UAE) { UDOD.innerText = "" };
- U.MD.DK.VW.printContent(UDE, UDOD, null, UAE ? UAE.length : 0);
-
- U.UF.EV.scrollLoad(function () {
- U.MD.DK.S.SSWPBDWGD(UPW, UTF, _UKE, userid)
- }, U.selectEl(UDOD).Parent());
- }
- }
- U.MD.DK.C.getIcon = function (UTF) {
- US.disk.applicationTypes
- UTF = UTF.toLowerCase();
- var i, _UKE,
- _UDE = ["folder", "folderencrypt", "png,jpg,bmp,gif", "doc,docx,uw", "xls,xlsx,ue", "ppt,pptx", "txt", "wmv,video", "mp3", "rar,zip"],
- _UAE = [["文件夹", "-6px -41px", "-169px -5px"], ["文件夹", "-659px -42px", "-736px -77px"],
- ["图片文件", "-593px -402px", "-61px -5px"], ["Word文档", "-155px -41px", "-511px -198px", "-477px -10px", "-65px -420px"],
- ["Excel文档", "-297px -41px", "-584px -198px;", "-325px -10px", "-290px -50px", "-120px -420px"],
- ["PPT幻灯片", "-227px -41px", "-548px -198px", "-220px -420px"], ["Txt文本文档", "-84px -41px", "-477px -198px", "-170px -420px"],
- ["视频文件", "-503px -41px", "-760px -42px"], ["Mp3音乐文件", "-438px -41px", "-734px -43px", "-15px -420px", "-175px -10px"],
- ["Rar压缩文件", "-368px -41px", "-619px -199px", "-270px -420px"]];
-
- for (i = 0; i < _UDE.length; i++) {
- if (_UDE[i].split(",").indexOf(UTF) > -1) {
- _UKE = _UAE[i];
- break;
- }
- };
-
- if (!_UKE) { _UKE = ["系统文件", "-575px -41px", "-478px -230px", "-320px -420px"] };
-
- for (i = 1; i < _UKE.length; i++) {
- _UKE[i] = "background-position:" + _UKE[i] + ";"
- };
- return _UKE;
- };
- U.UF.E.setRangeStyle = function (style, range) {
- range = range || U.UF.E.getRangeAt();
- var _tempel,
- _startsplitel,
- _endsplitel,
- _startparent,
- _endparent,
- _span,
- _startlineel,
- _endlineel,
- _nextel,
- _startel = range.startContainer,
- _endel = range.endContainer,
- _startoffset = range.startOffset,
- _endoffset = range.endOffset;
-
- _startlineel = U.UF.E.getLineElement(_startel);
-
- _endlineel = U.UF.E.getLineElement(_endel);
-
- if (_startel == _endel && _startoffset == _endoffset) {
- _tempel = U.UF.E.getLineElement(_startel);
- _span = $$("span", { "innerHTML": _tempel.innerHTML, "style": style });
- _tempel.innerHTML = "";
- _tempel.appendChild(_span);
- U.UF.E.setRange(_span.firstChild, _span.firstChild, _startoffset, _endoffset, range);
- }
-
- else if (_startlineel == _endlineel) {
-
- if (_startel == _endel) {
- _startsplitel = U.UF.E.splitText(_startel, _startoffset);
- _endsplitel = U.UF.E.splitText(_startsplitel, _endoffset - _startoffset);
-
- _startparent = _startsplitel.parentNode;
- _span = $$("span", { "style": style });
- _span.appendChild(_startsplitel);
- U.selectEl(_startparent).append(_span, null, _endsplitel);
-
- U.UF.E.setRange(_startsplitel, _startsplitel, 0, _startsplitel.data.length, range);
- }
- else {
-
- _startsplitel = U.UF.E.splitText(_startel, _startoffset);
- _startparent = _startsplitel.parentNode;
- _span = $$("span", { "style": style });
- U.selectEl(_startparent).append(_span, 0, _startsplitel);
- _span.appendChild(_startsplitel);
- _startlineel = _span;
-
- _tempel = U.UF.E.splitText(_endel, _endoffset);
- _endsplitel = _endel;
- _endparent = _endsplitel.parentNode;
- _span = $$("span", { "style": style });
- U.selectEl(_endparent).append(_span, 0, _tempel);
- _span.appendChild(_endsplitel);
- _endlineel = _span;
-
-
- _nextel = _startlineel;
- while ((_nextel = _nextel.nextSibling) && _nextel != _endlineel) {
-
- if (_nextel.innerHTML) {
- U.selectEl(_nextel).css(style);
- }
-
- else {
- _span = $$("span", { "style": style });
- U.selectEl(_nextel.parentNode).append(_span, 0, _nextel);
- _span.appendChild(_nextel);
- _nextel = _span;
- }
- }
-
- U.UF.E.setRange(_startsplitel, _endsplitel, 0, _endsplitel.data.length, range);
- }
- }
-
- else {
-
- _startsplitel = U.UF.E.splitText(_startel, _startoffset);
- _startparent = _startsplitel.parentNode;
- _span = $$("span", { "style": style });
- _span.appendChild(_startsplitel);
- _startparent.appendChild(_span);
-
- _tempel = U.UF.E.splitText(_endel, _endoffset);
- _endsplitel = _endel;
- _endparent = _endsplitel.parentNode;
- _span = $$("span", { "style": style });
- _endparent.insertBefore(_span, _tempel);
- _span.appendChild(_endsplitel);
-
-
- _nextel = _startlineel;
- while ((_nextel = _nextel.nextSibling) && _nextel != _endlineel) {
-
- _span = U.selectEl("span", _nextel)[0];
-
- if (_span) {
- U.selectEl(_span).css(style);
- }
-
- else {
- _span = $$("span", { "innerHTML": _nextel.innerHTML, "style": style });
- _nextel.innerHTML = _span.outerHTML;
- }
- }
-
- U.UF.E.setRange(_startsplitel, _endsplitel, 0, _endsplitel.data.length, range);
- }
- };
- U.UF.E.setRangeStyle = function (attr, range) {
- range = range || U.UF.E.getRangeAt();
- var _start = range.startContainer;
- var _end = range.endContainer;
- var _startoffset = range.startOffset;
- var _endoffset = range.endOffset;
- var _startline = U.UF.E.getLineElement(_start);
- var _endline = U.UF.E.getLineElement(_end);
- var _frag = $$("frag");
- if (_startline != _endline) {
- var _rangselect = range.extractContents().childNodes;
-
- U.UF.E.setStyle(attr, _rangselect[0]);
-
- var _start = _rangselect[0].childNodes[0];
- var _end = _rangselect[0].childNodes[_rangselect[0].childNodes.length - 1];
-
- while (_rangselect[0].childNodes[0]) {
- _startline.appendChild(_rangselect[0].childNodes[0]);
- }
-
- for (var i = 0; i < _rangselect.length - 1;) {
- U.UF.E.setStyle(attr, _rangselect[i]);
- _frag.appendChild(_rangselect[i]);
- }
-
- U.UF.E.setStyle(attr, _rangselect[_rangselect.length - 1]);
- var _end = _rangselect[_rangselect.length - 1].childNodes[_rangselect[_rangselect.length - 1].childNodes.length - 1];
- while (_rangselect[_rangselect.length - 1].childNodes[0]) {
- U.selectEl(_endline).append(_rangselect[_rangselect.length - 1].childNodes[_rangselect[_rangselect.length - 1].childNodes.length - 1], 0, _endline.firstChild);
- }
- range.insertNode(_frag);
- U.UF.E.setRange(_start, _end, 0, 1, range);
- }
-
- else if (_start == _end && _start.parentNode.tagName.toLocaleLowerCase() == "span") {
- var _parentspan = _start.parentNode;
- var _startsplitel = U.UF.E.splitText(_start, _startoffset);
- var _endsplitel = U.UF.E.splitText(_startsplitel, _endoffset - _startoffset);
- if (_startoffset != 0) {
- var _span = $$("span", { "style": { "cssText": _parentspan.style.cssText }, "innerHTML": _start.data });
- _parentspan.replaceChild(_span, _start);
- }
- attr.cssText = _parentspan.style.cssText;
- var _span2 = $$("span", { "style": attr, "innerHTML": _startsplitel.data });
- _parentspan.replaceChild(_span2, _startsplitel);
- if (_endsplitel.data.length != 0) {
- var _span1 = $$("span", { "style": { "cssText": _parentspan.style.cssText }, "innerHTML": _endsplitel.data });
- _parentspan.replaceChild(_span1, _endsplitel);
- }
- _parentspan.outerHTML = _parentspan.innerHTML;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- }
-
-
-
-
-
-
- };
- U.UF.E.unifiedFormat = function (allEle) {
- var _i,
- _tagName,
- _innerHTML,
- _createTagName,
- _attr = {};
- var _allEle = allEle || U.selectEl('.editor *');
- var _allLineTagName = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'ul'];
- var _nowLineTagName = ['div', 'span'];
- var _removeTagName = ['head', 'meta', 'script', 'link'];
- for (_i = 0; _allEle.length > _i; _i++) {
- _tagName = _allEle[_i].tagName.toLowerCase();
- _innerHTML = _allEle[_i].innerHTML;
- if (_removeTagName.indexOf(_tagName) >= 0) {
- U.selectEl(_allEle[_i]).remove();
- } else if (0 > _nowLineTagName.indexOf(_tagName)) {
- _attr = { innerHTML: _innerHTML };
- if (_allLineTagName.indexOf(_tagName) >= 0) {
- _createTagName = 'div';
- _attr.id = Guid.newGuid();
- if (_allEle[_i].style.cssText) {
- _attr.style = { cssText: _allEle[_i].style.cssText }
- }
- var a = $$(_createTagName, _attr);
- _allEle[_i].parentNode.replaceChild(a, _allEle[_i]);
-
- a.parentNode && a.parentNode.parentNode.appendChild(a);
- } else {
- _createTagName = 'span';
- if (_allEle[_i].style.cssText) {
- _attr.style = { cssText: _allEle[_i].style.cssText }
- }
- _allEle[_i].parentNode.replaceChild($$(_createTagName, _attr), _allEle[_i]);
- }
- }
- }
- };
- U.MD.DK.RE.MBC = function (UDID, UST, UTF, UTP) {
- var _UAL,
- _UFT = false,
- _userid = US.userInfo.userid,
- _diskinfo = US.disk.UserDisk,
- _fileinfo = U.Json.select(_diskinfo.directoryOrFiles, {
- "UserDirectoryParentID": UDID
- }),
- _UAE = U.Json.select(_fileinfo, {
- "UserDirectoryExtendType": "folder"
- });
- if (UST.isStrNull()) {
- _UAL = "名字不能空";
- }
- else if (UST.count() > 40) {
- _UAL = "文件名过长";
- }
- else if (UTP == "Create" && (UTF == "folder" && _fileinfo.length >= 500) || (UTF != "folder" && _fileinfo.length - _UAE.length >= 5000)) {
- _UAL = "无法创建,超过最大个数";
- }
- else { _UFT = !_UFT; };
- if (_UAL) { U.alert(_UAL) };
- return _UFT;
- }
- U.MD.DK.RE.WPHQID = function (UDE, UGE) {
- var _UCE = UDE[UDE.length - 1] || "";
- return (UGE[2] || _UCE.UserDirectoryID == US.FTPFOLDERID) ? UGE[1][2] : (_UCE.GroupID || "");
- }
- U.MD.DK.RE.Prompt = function (UTS, UH, UW, UC, UCY, UDOD) {
- return U.UF.UI.confirm(UTS, UCY, UC);
- }
- U.MD.DK.RE.MFN = function (UDE, UST, cb, userid) {
- userid = userid || US.userInfo.userid;
- var _UEN = UDE.UserDirectoryExtendType,
- _diskinfo = U.MD.DK.M.diskOperatingSwitch(userid),
- _USN = UST.replaceHtmlSign();
- UST = UST.replaceHtmlSign() + (UDE.filetype ? "." + _UEN : "");
- if (_UEN == "folderencrypt") {
- _UEN = "folder"
- }
- if (UST == UDE.UserallDirectoryName) { _UTF = "none"; }
- else if (U.MD.DK.RE.MBC((_diskinfo && _diskinfo[1] && _diskinfo[1][1] ? _diskinfo[1][1] : UDE.UserDirectoryParentID), UST, _UEN, "Change")) {
- _UTF = true;
- if (_UEN == "folder") {
- U.A.Request(US.AUTH, ["UpdateDirectoryInfo", UDE.UserDirectoryID, UST], U.MD.DK.RE.AsynMRN, ["", UDE, UST, cb, userid]);
- }
- else {
- U.A.Request(US.AUTH, ["UpdateFileInfo", UDE.UserDirectoryID, UST], U.MD.DK.RE.AsynMRN, ["", UDE, UST, cb, userid]);
- }
- }
- if (_UTF) {
- UDE.UserallDirectoryName = UST;
- UDE.UserDirectoryName = UST.addEllipsis(20);
- }
- return _UTF;
- }
- U.MD.DK.RE.AsynMRN = function (r) {
- var _context = r.context,
- _fileinfo = _context[1],
- _UST = _context[2], _UCB = _context[3],
- _userid = _context[4],
- _diskinfo = U.MD.DK.M.diskOperatingSwitch(_userid);
- r = r.value;
- if (r) {
- if (_UST) {
- _fileinfo.UserallDirectoryName = _UST;
- _fileinfo.UserDirectoryName = _UST.addEllipsis(20);
- };
- U.MD.DK.RE.AsynWPCMM(_fileinfo);
- if (_UCB) { _UCB(_context, r) };
- }
- }
- U.MD.DK.RE.AsynWPCMM = function (UDE) {
- var i,
- _UCE = ["L", "R"],
- _diskinfo = US.disk.UserDisk;
- for (i = 0; i < _UCE.length; i++) {
- _UDCD = U.selectEl("#" + _UCE[i] + UDE.UserDirectoryID, _diskinfo.formel);
- if (_UDCD[0]) {
- if (i) {
- _UDCD = _UDCD.childs()[0];
- _UDCD = U.selectEl(_UDCD).childs()[1];
- _UDCD = U.selectEl(_UDCD).Child()[0] = UDE.UserallDirectoryName;
- }
- else {
- _UDCD = _UDCD.childs()[0];
- _UDCD = U.selectEl(_UDCD).Child()[2].innerHTML = UDE.UserallDirectoryName;
- }
- }
-
- }
- }
- U.MD.DK.RE.copy = function (UDE, TF) {
- UDE = UDE.length ? UDE : [UDE];
- U.MD.DK.RE.CE = UDE;
- U.MD.DK.RE.TF = TF;
- U.MD.DK.RE.OR = US.disk.UserDisk;
- U.MD.DK.RE.UEI = U.MD.DK.C.readWritePermission(US.disk.UserDisk[1][1], US.disk.UserDisk);
- U.MD.DK.RE.UDID = UDE[0].UserDirectoryID;
- }
- U.MD.DK.RE.shear = function (UDE, TF) {
- UDE = UDE.length ? UDE : [UDE];
- U.MD.DK.RE.CE = UDE;
- U.MD.DK.RE.TF = TF;
- U.MD.DK.RE.OR = US.disk.UserDisk;
- U.MD.DK.RE.UEI = U.MD.DK.C.readWritePermission(US.disk.UserDisk[1][1], US.disk.UserDisk);
- U.MD.DK.RE.UDID = UDE[0].UserDirectoryID;
- }
- case "PDisk":
- _diskinfo = U.MD.D.H.ET["NT"]["PB"]["DBK"] || obj.directoryid;
- _userid = _diskinfo.UserDirectoryID;
- _pbdiskinfo = U.MD.DK.M.diskOperatingSwitch(_userid);
- _diskDiv = (_pbdiskinfo && _pbdiskinfo.formel) ? U.selectEl(_pbdiskinfo.formel).Parent({ usform: "true" }) : (_diskDiv = U.selectEl("#U_MD_DK_O").clone(true),
- _diskDiv.addAttrArray({
- id: "U_MD_DK_O_" + _userid,
- style:
- {
- display: "block"
- }
- }),
- new U.UF.UI.form("<div class='U_MD_F_S_TI'>网盘</div>",
- _diskDiv[0],
- {
- "onmousedown": function () {
- U.MD.DK.M.diskOperatingSwitch(_userid);
- },
- "onresize": function () {
- U.MD.DK.PbSize(_diskDiv[0], null)
- },
- "id": "U_D_" + _userid,
- "style": {
- "width": "80%",
- "height": "85%"
- }
- }).form
- );
- U.UF.F.windowTopCenter(_diskDiv);
- U.MD.DK.LTWP(obj.userid == null ? US.MYFOLDERID : obj.userid, _diskinfo);
- _taskbar = ["-15px -296px", "论坛网盘", _diskDiv];
- break;
- case "Poto":
- if (!U.MD.U.L.isLogin()) {
- _formdiv = U.MD.DK.H.SPCK(str);
- _taskbar = ["-331px -413px", "相册", _formdiv];
- }
- break;
- case "Video":
- if (!U.MD.U.L.isLogin()) {
- _formdiv = U.MD.DK.H.SPCK(str);
- _taskbar = ["-586px -296px", "视频", _formdiv];
- }
- break;
- case "Music":
- if (!U.MD.U.L.isLogin()) {
- _formdiv = U.MD.DK.H.SPCK(str);
- _taskbar = ["-145px -297px", "音乐", _formdiv];
- }
- break;
- case "SY":
- _formdiv = U.MD.D.H.ZMQH();
- _taskbar = ["-205px -413px", "首页", _formdiv];
- break;
- case "pdisk":
- U.MD.D.PB.YMHBK(urlinfo[0], U.selectEl("#U_MD_HomeSXZBALCB").Child()[4].onclick);
- break;
- case "pbt": U.MD.D.PB.A.WAPMHBK(Array.isArray(urlinfo) ? urlinfo[0] : urlinfo); break;
-
- case "TZ": case "UPBR":
- if (urlinfo[0]) {
- U.MD.D.PB.A.WAPMHBK(urlinfo[1], null, urlinfo[2]);
- }
- else {
- if (urlinfo[1]) { U.MD.D.Blog.F.GSHGBL(urlinfo[1]) };
- }
- break;
- case "login": U.MD.U.L.login(urlinfo || 3);
- break;
- case "pbt": U.MD.D.PB.A.WAPMHBK(Array.isArray(UDE) ? UDE[0] : UDE); break;
-
- case "TZ": case "UPBR":
- if (UDE[0]) {
- U.MD.D.PB.A.WAPMHBK(UDE[1], null, UDE[2]);
- }
- else {
- if (UDE[1]) { U.MD.D.Blog.F.GSHGBL(UDE[1]) };
- }
- break;
- case "login": U.MD.U.L.login(UDE || 3);
- break;
- case "UD_DiskCon":
- US.disk.DiskDaren["SE"] = { UserFilesID: UDE[0] };
- U.MD.U.L.setLoginCallBack(function () { U.MD.D.I.openApplication("Disk", { "userid": US.userInfo.userid, "directoryid": UDE[1] }) });
- break;
-
-
- case "0":
- U.MD.F.W.viewFriend(UDE);
- break;
- case "1":
- U.selectEl("#U_MD_D_MG_OA").Child()[0].onclick();
- break;
- case "3": (US.userInfo.userid && (_UCE = U.Json.select(US.friend.group, { "GroupManageID": UDE.MessageContent })[0])) && (U.MD.F.W.viewFriend(_UCE));
- break;
- case "pdisk":
- U.MD.D.PB.YMHBK(UDE[0], U.selectEl("#U_MD_HomeSXZBALCB").Child()[4].onclick);
- break;
- var _UGID, _dirid, _UCE, _UFT,
- _UME = U.MD.DK.RE,
- _UTP = _UME.TF,
- _fileinfo = _UME.CE,
- _UBE = _UME.UEI[0][_UME.UEI[0].length - 1],
- _USID = _UBE.UserDirectoryID,
- _diskinfo = U.MD.DK.M.diskOperatingSwitch(userid),
- _UTF = U.MD.DK.C.getDirectoryPermissions(UDID),
- _UKE = _UTF[2][0][_UTF[2][0].length - 1];
- UDID = UDID || _diskinfo[1][1];
- if (U.Json.select(_fileinfo, { UserDirectoryID: UDID })[0]) {
- U.alert("不允许添加到选择目录");
- }
- else if (_UTF[0]) {
- if (_fileinfo.length && (((_dirid = _UKE.UserDirectoryID) == US.FTPFOLDERID || _UKE.GroupID != null) || ((_dirid == _USID || _dirid == US.PRIVATEFOLDERID) && US.userInfo.userid == userid)) || !UDID) {
- _UGID = U.MD.DK.RE.WPHQID(_UTF[2][0], _diskinfo); _UCE = U.MD.DK.C.MLWJSY(_fileinfo);
- if (_UTP == "Cut" || _diskinfo[1][0].FileSize + _UCE[1] <= U.UF.UP.maxUnitToByte(_diskinfo[1][0].UserDiskSpace + "M")) {
- if (!UDID) {
- U.alert("自动整理分配粘贴文件");
- _UTP = _UTP == "Cut";
- U.A.Request(US.AUTH, ["CopyOrCutAndPasteFiles", US.userInfo.userid, U.Json.toKeyArray(_fileinfo, "UserDirectoryID").join(","), _UTP, UDID]), U.MD.DK.RE.AsynTSStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
- }
- else {
- if (_UTP == "Cut") {
- U.A.Request(US.AUTH, ["CutAndPasteFiles", US.userInfo.userid, UDID, U.Json.toKeyArray(_fileinfo, "UserDirectoryID").join(","), _UGID, (_fileinfo[0].GroupID || "")]), U.MD.DK.RE.AsynUFStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
- }
- else {
- U.A.Request(US.AUTH, ["CopyAndPasteFiles", US.userInfo.userid, UDID, U.Json.toKeyArray(_fileinfo, "UserDirectoryID").join(","), _UGID, (_UCE[2].length ? _UME.UEI[0][0].UserDirectoryDeep : "")]), U.MD.DK.RE.AsynUFStick, ["", UDID, _fileinfo, _UCE[1], cb, _diskinfo[1][2], _UGID, _UTP, _dirid];
- }
-
- }
- }
- else {
- U.alert("网盘已满");
- }
- }
- else {
- U.alert("请保存目录文件类型相同");
- }
- }
- else {
- U.alert("拒绝访问");
- }
- U.MD.DK.RE.AsynTSStick = function (r) {
- var i, _UPID, _dirid, _UCE,
- _context = r.context,
- _fileinfo = _context[2],
- _diskinfo = r.value;
- for (i = 0; i < _diskinfo.length; i++) {
- _dirid = _diskinfo[i].UserFilesID;
- _UPID = _diskinfo[i].UserDirectoryID;
- _UCE = _$.select(_fileinfo, { UserDirectoryID: _diskinfo[i].PID })[0];
- U.UF.C.AddObj(_diskinfo[i], _UCE);
- _diskinfo[i].UserDirectoryParentID = _UPID;
- _diskinfo[i].UserDirectoryID = _dirid;
- _diskinfo[i].GroupID = null;
- _diskinfo[i].UserDirectoryEncrypt = null;
- _UCE = U.Json.select(_fileinfo, { UserDirectoryID: _diskinfo[i].PID })[0];
- U.UF.C.AddObj(_diskinfo[i], _UCE);
- U.UF.C.AddObj(_diskinfo[i], { UserDirectoryParentID: _UPID, UserDirectoryID: _dirid, GroupID: null, UserDirectoryEncrypt: null });
- }
- _context.push(true);
- U.MD.DK.RE.AsynUFStick(r);
- }
- U.MD.DK.RE.AsynUFStick = function (r) {
- var i, j, _UFT, _UAE, _UCE,
- _UIF = US.userInfo,
- _context = r.context,
- _dirid = _context[1],
- _fileinfo = _context[2],
- _USZ = _context[3],
- _UCB = _context[4],
- _userid = _context[5],
- _UGID = _context[6],
- _UTF = _context[7],
- _UMID = _context[8],
- _UPID = _fileinfo[0].UserDirectoryParentID,
- _diskinfo = U.MD.DK.M.diskOperatingSwitch(_userid);
- r = r.value;
- if (r) {
- if (_UTF == "Cut" || _UTF === true) {
- if (_UTF !== true) {
- U.Json.Change(_fileinfo, { UserDirectoryParentID: _dirid }), U.MD.DK.M.recursionUpdateDirectory(_fileinfo, { GroupID: _UGID })
- }
- if (_diskinfo[4][_dirid] && _diskinfo[4][_dirid].Child) {
- _diskinfo[4][_dirid].Child = _diskinfo[4][_dirid].Child.concat(_fileinfo)
- }
- if (_diskinfo[4][_UPID] && _diskinfo[4][_UPID].Child) {
- for (i = 0; i < _fileinfo.length; i++) {
- U.Json.del(_diskinfo[4][_UPID].Child, { "UserDirectoryID": _fileinfo[i].UserDirectoryID });
- }
- }
- U.MD.DK.RE.copy(_fileinfo, "Copy");
- if ((_UAE = U.MD.DK.RE.OR) !== _diskinfo) {
- for (i = 0; i < _fileinfo.length; i++) {
- _diskinfo[0].push((_fileinfo[i] = _diskinfo[4][_fileinfo[i].UserDirectoryID] = (U.Json.del(_UAE[0], { "UserDirectoryID": _fileinfo[i].UserDirectoryID })))); _diskinfo[4][_fileinfo[i].UserDirectoryParentID].Child.push(_fileinfo[i]);
- }
- }
- _UFT = true;
-
- _fileinfo.UserDirectoryEncrypt = _UMID == US.PRIVATEFOLDERID ? "true" : "";
- _fileinfo.GroupID = _UGID;
- }
- else {
- _UAE = [];
- for (i = 0; i < r.length; i++) {
- _UCE = r[i]; _diskinfo[0].push((_UCE = !_UTF ? _UCE : U.MD.DK.M.RUS(new U.MD.DK.M.entity(_UCE.UserFilesID, _UCE.UserFilesSize, _UCE.UserDirectoryID, _UCE.UserFilesName.addEllipsis(20), _UCE.UserFilesName, _UCE.UserFilesExtendName, _UCE.UserFilesServerName, _UCE.UserFilesAddTime, _UCE.UseFilesServerThumbnailName || "", _UCE.UserDirectoryDeep, U.UF.D.toTimeStamp(), _UCE.UserDirectoryEncrypt, _UCE.UserFilesExtendName == "folder" ? 0 : 1, "", _UGID))));
- _diskinfo[4][_UCE.UserDirectoryID] = _UCE; for (j = 0; j < _fileinfo.length; j++) { if (_fileinfo[j].UserDirectoryID == r[i].PID || _fileinfo[j].UserFilesID == r[i].PID) { (_diskinfo[4][_UCE.UserDirectoryParentID] && _diskinfo[4][_UCE.UserDirectoryParentID].Child) && (_diskinfo[4][_UCE.UserDirectoryParentID].Child.push(_UCE)); _UAE.push(_UCE); break; } }
- }
- _fileinfo = _UAE;
- }
- if (_UTF == "Copy" || _UTF === false || _UFT) {
- _diskinfo[1][0].FileSize += _USZ;
- _diskinfo[2] ? U.MD.DK.LTWPDH(_diskinfo[2], _diskinfo) : U.MD.DK.CSHYHWP(_diskinfo);
- }
- if (_UGID && (_UAE = U.Json.select(US.friend.group, { GroupManageID: _UGID })[0])) {
- if (!_UAE.DDC) { _UAE.DDC = 0; }
- _UAE.DDC += _fileinfo.length;
- }
- U.MD.DK.RE.AsynWPJQ(_userid, _fileinfo, _UPID, _UTF); if (_UCB) { _UCB(_fileinfo) };
- return _fileinfo[_fileinfo.length - 1];
- }
- else {
- U.alert("文件错误!");
- }
- }
- U.MD.DK.RE.AsynWPJQ = function (userid, UDE, UPID, UTF) {
- var i, _UIE, _el, _UAE = [],
- _UKE = [US.MYFOLDERID, US.IMAGEFOLDERID, US.MUSICEFOLDERID, US.VIDEOFOLDERID],
- _diskinfo = U.MD.DK.M.diskOperatingSwitch(userid) || US.disk.UserDisk,
- _UDTD = U.selectEl("#" + (_diskinfo[2] ? "U_MD_DK_OCRC" : "U_MD_DK_RZ"), _diskinfo.formel)[0],
- _dirid = _diskinfo[1][1],
- _UOID = UDE[0].UserDirectoryParentID;
- US.disk.DiskDaren["SE"] = UDE[UDE.length - 1];
- if (_UDTD && userid == _diskinfo[1][2]) {
- if ((_dirid == _UOID || (_dirid == "" && _UKE.indexOf(_UOID))) && (UTF == "Copy" || UPID != _UOID)) {
- _el = U.selectEl("#" + (_diskinfo[2] ? "U_MD_DK_OCRC" : "U_MD_DK_RZ"), _diskinfo.formel)[0];
- if (U.Json.select(_diskinfo[0], { "UserDirectoryParentID": _diskinfo[1][1] }).length == UDE.length) { _el.innerText = "" };
- U.MD.DK.VW.printContent(UDE, _el);
- }
- else if ((UPID && _dirid == UPID)) {
- U.MD.DK.RE.delPageFileOrDir(UDE, userid);
- }
- else if (UTF === "boolean") {
- _diskinfo[1][1] = _UOID;
- if (!_diskinfo[2]) {
- _el = U.selectEl("#U_MD_DK_LC",
- _diskinfo.formel)[0].style.display == "none" ? U.selectEl("#L" + _UOID, _diskinfo.formel)[0] : U.selectEl("#U_MD_DK_LC", _diskinfo.formel).Child()[((_UIE = _UKE.indexOf(_UOID)) > 0 ? _UIE : -4) + 3];
- if (_el) {
- U.selectEl(_el).Child()[0].onclick();
- }
- };
- if (!_el) { U.MD.DK.LE.openFileDirectory(U.Json.select(_diskinfo[0], { "UserDirectoryID": _UOID })[0], userid) };
- _UDTD.scrollTop = _UDTD.scrollHeight;
- }
- _el = null;
- for (i = 0; i < UDE.length; i++) {
- if (!UDE[i]["filetype"] && (_el = _el || U.selectEl("#L" + UDE[i].UserDirectoryParentID, diskinfo.formel)[0])) {
- _UAE.push(UDE[i]);
- }
- }
- if (_UAE.length && (_el = U.selectEl(_el).Child()[1])) { U.MD.DK.LL.printLeftTreeDirectory(_UAE, _el, userid) };
- _diskinfo[2] ? U.MD.DK.LTWPDH(_diskinfo[2], _diskinfo) : U.MD.DK.CSHYHWP(_diskinfo);
- }
- }
- U.MD.DK.RE.CMB = function (UTP, UAF, UDOD, userid, UTF) {
- var _UDTD, _UDSD, _dirid,
- _UFL = false,
- _UTF = "txt,uw,ue,folder";
- if (_UTF.indexOf(UTP) > -1) {
- _UDTD = $$("div", { "className": "UDL U_UI_dlnoSR" });
- _UFL = true;
- _UDSD = $$("div",
- {},
- _UDTD);
- _dirid = $$("input", {
- "type": "text", "style": {
- "cssText": "width: 248px; height: 20px; line-height:20px; border:0; outline:none; background:none;"
- }
- }, _UDSD);
- U.MD.DK.RE.Prompt(UTP == "folder" ? "新建文件夹" : "新建" + UTP + "文件",
- 140,
- 350,
- _UDTD, function () {
- U.MD.DK.RE.AF(UTP, _dirid, UAF, userid, UTF);
- }, UDOD);
- }
- return _UFL;
- }
- U.MD.DK.RE.AF = function (UTF, fun, UAF, userid, UFT) {
- var i, _fileinfo, _USID, _UOID, _UGID,
- _USC = 9999,
- _ULX = 1,
- _diskinfo = U.MD.DK.M.diskOperatingSwitch(userid) || US.disk.UserDisk,
- _UPID = _diskinfo[1][1] || US.MYFOLDERID,
- _UTM = U.MD.DK.C.getDirectoryPermissions(_UPID);
- if (typeof fun != "string") {
- fun = fun.value || fun.innerText || "";
- }
- if (_UTM[0] && _UPID && U.MD.DK.RE.MBC(_UPID, fun, UTF, "Create") && U.MD.DK.RE.newJurisdiction(userid, UTF)) {
- _fileinfo = [];
- while (_diskinfo[4][_USID || _UPID]) {
- _fileinfo.push(_diskinfo[4][_USID || _UPID]);
- _USID = _diskinfo[4][_USID || _UPID]["UserDirectoryParentID"]
- }
- _UGID = U.MD.DK.RE.WPHQID(_fileinfo, _diskinfo);
- if ("folderencrypt".indexOf(UTF) > -1) {
- _USC = _fileinfo[0].UserDirectoryDeep, _ULX = 0, _diskinfo[1][0].FilesCount += 1
- }
- _UOID = _fileinfo[_fileinfo.length - 1].UserDirectoryID;
- _fileinfo = U.MD.DK.M.RUS(new U.MD.DK.M.entity(Guid.newGuid(), 0, _UPID, fun.addEllipsis(20), fun, UTF, null, U.UF.D.toTimeStamp(new Date()), "", _USC, null, _UOID == US.PRIVATEFOLDERID ? "true" : "", _ULX, "", (_UOID == US.FTPFOLDERID ? userid : (_UGID || "")), null, userid));
- if (_fileinfo.filetype == "1") {
- U.A.Request(US.AUTH, ["CreateFile", US.userInfo.userid, _fileinfo["UserDirectoryID"], _fileinfo["UserDirectoryParentID"], fun.escapeQuotes() + (UTF == "txt" ? ".txt" : ""), _fileinfo["UserFilesServerName"] || "", "", "", UTF, _UGID]), U.MD.DK.RE.AsynAF, ["", _fileinfo, UAF, _diskinfo, U.MD.D.H.ET["Disk"]["SY"]["DJ"], userid, UTF, UFT];
- }
- else {
- U.A.Request(US.AUTH, ["CreateDirectory", US.userInfo.userid, _fileinfo["UserDirectoryID"], _USC, fun.escapeQuotes(), _fileinfo["UserDirectoryParentID"], _UGID, _fileinfo.filetype == "1" ? (_fileinfo["UserDirectoryEncrypt"] || _UGID) : _fileinfo["UserDirectoryEncrypt"]]), U.MD.DK.RE.AsynAF, ["", _fileinfo, UAF, _diskinfo, U.MD.D.H.ET["Disk"]["SY"]["DJ"], userid, UTF, UFT];
- }
- return _fileinfo;
- }
- else { U.alert("拒绝访问"); } return false;
- }
- U.MD.DK.RE.AsynAF = function (r) {
- var _context = r.context,
- _fileinfo = _context[1],
- _cb = _context[2],
- _diskinfo = _context[3],
- _el = _context[4],
- _userid = _context[5],
- _UTP = _context[6],
- _UTF = _context[7],
- _diskinfo = U.MD.DK.M.diskOperatingSwitch(_userid),
- _dirid = _diskinfo[1][1];
- r = r.value;
- if (r != null) {
- if (_diskinfo[2] || _diskinfo[1][2] != US.userInfo.userid) {
- _fileinfo.UserId = US.userInfo.userid;
- _fileinfo.UserNickName = US.userInfo.UserNickName;
- _fileinfo.UserName = US.userInfo.username;
- _fileinfo.UserThumbnailImageHead = US.userInfo.UserThumbnailImageHead;
- _fileinfo.Parent = _diskinfo[4][_fileinfo.UserDirectoryParentID];
- }
- var _diskinfo = U.MD.DK.M.diskOperatingSwitch(_userid);
-
- U.MD.DK.M.entity.add([_fileinfo], _diskinfo);
- if (_dirid == _fileinfo.UserDirectoryParentID) {
- U.MD.DK.RE.AsynWPXJWJ(_el, _userid, _fileinfo);
- }
- else if (!_dirid) {
- var _UDAD = U.selectEl(_diskinfo[2] ? "#U_MD_DK_OC" : "#U_MD_DK_LTXO", _diskinfo.formel).childs(0)[_diskinfo[2] ? 1 : 3];
- _UDAD = U.selectEl(_UDAD).Child()[0].onclick();
- }
- if (_cb) {
- _cb(_context, r, _diskinfo[1][1] == _fileinfo);
- }
- else if (!_UTF && "txt,uw,ue".indexOf(_UTP) > -1) {
- U.MD.DK.LE.openFileDirectory(_fileinfo);
- }
- else if (U.UF.C.isFunction(_UTF)) { (_UTF)(); }
- }
- }
- U.MD.DK.RE.AsynWPXJWJ = function (UDOD, userid, UDE) {
- var _UDAD, _UDTD, _UDSD,
- _diskinfo = U.MD.DK.M.diskOperatingSwitch(userid);
- if (!UDE["filetype"] && UDOD && U.selectEl(UDOD).Parent().id.indexOf(UDE.UserDirectoryParentID) == 1) {
- _UDTD = U.selectEl($(UDOD).Parent()).Child()[1];
- if (_UDTD) {
- U.MD.DK.LL.printLeftTreeDirectory([UDE], _UDTD, userid)
- }
- }
- if (UDE["UserDirectoryParentID"] == _diskinfo[1][1] || !_diskinfo[1][1]) {
- _UDSD = U.selectEl("#" + (_diskinfo[2] ? (U.MD.DK.LTWPDH(_diskinfo[2], _diskinfo), "U_MD_DK_OCRC") : (U.MD.DK.CSHYHWP(_diskinfo), "U_MD_DK_RZ")), _diskinfo.formel)[0];
- if (U.Json.select(_diskinfo[0], { "UserDirectoryParentID": _diskinfo[1][1] }).length == 1) {
- _UDSD.innerText = "";
- _UDSD.innerText = "";
- };
- U.MD.DK.VW.printContent([UDE], _UDSD, _UDTD ? [(_UDAD = U.selectEl(_UDTD).Child())[_UDAD.length - 1]] : null);
- }
- }
- var _disk = US.disk.UserDisk,
- _diskuser = _disk.userInfo.UserId,
- _directoryid = _disk.directoryid,
- _formel = _disk.formel
- var _diskinfo = U.MD.DK.setUserGlobalVariable(_diskuser, _directoryid, _disk);
- _diskinfo = U.Json.select(_diskinfo.directoryOrFiles, { "UserDirectoryID": _directoryid })[0];
- var _mydate = new Date();
- var _newguid = Guid.newGuid();
- U.UF.UI.confirm($$("input", { "placeholder": "请输入文件夹名字", id: "_newfolderinput", "style": { "width": "180px", "height": "25px" } }),
- function () {
-
- if (U.MD.DK.RE.MBC(_disk.directoryid, _newfolderinput.value, "folder", "1")) {
- U.A.Request(US.AUTH, ["CreateDirectory", _diskuser, _newguid, 3, _newfolderinput.value, _directoryid, "sss", "", ""],
- function (r) {
- U.alert("创建文件夹成功");
- var _newdata = { "Descript": "sss", "GroupID": null, "UserDirectoryAddTime": _mydate.getFullYear() + "-" + (_mydate.getMonth() + 1) + "-" + _mydate.getDate(), "UserDirectoryDeep": "3", "UserDirectoryEncrypt": "", "UserDirectoryExtendType": "folder", "UserDirectoryID": _newguid, "UserDirectoryModifyTime": null, "UserDirectoryName": null, "UserDirectoryParentID": _directoryid, "UserDirectorySize": 0, "UserDirectoryUrl": null, "UserFilesServerName": "sss", "UserId": _diskuser, "UserName": _disk.userInfo.UserName, "UserNickName": _disk.userInfo.UserNickName, "UserThumbnailImageHead:": null, "UserallDirectoryName": _newfolderinput.value, "filetype": 0 };
- _disk.directoryOrFiles.unshift(_newdata);
- U.MD.DK.VW.printContent([_newdata], U.selectEl("#U_MD_DK_RZ", _formel)[0]);
- }, []);
- }
-
- else {
- U.MD.DK.RE.newFolder.confirm();
- }
- }, function () { } )
- var _formel,
- _form,
- _UDID = (fileinfo && (fileinfo.UserFilesID) || fileinfo) || Guid.newGuid();
- if (!(_formel = U.selectEl("#UD_Word" + _UDID)[0])) {
-
- _formel = U.selectEl("#UD_Word").clone(true);
- _formel[0].id = "";
- _form = new U.UF.UI.form("", _formel[0], { "resize": function () { U.MD.O.W.T.WETZ(_formel[0], "Word"); }, "id": "UD_Word" + _UDID, "style": { "width": "90%", "height": "90%", "overflow": 'hidden' } }, {}, { "style": { "height": "36px" } });
-
- U.MD.O.W.T.Top(userinfo, fileinfo, _formel[0])
- U.selectEl(_form.header).addAttrArray({
- "className": ""
- }).append(_formel.Child()[0]);
-
- U.MD.O.officeLoad(_form, _formel[0], userinfo, fileinfo, "Word", function (userinfo, fileinfo, loading, iframe, el) {
-
-
- U.MD.O.asynWord(userinfo, fileinfo, loading, iframe);
- if (U.UF.Ut.isFunction(cb)) {
- cb();
- }
- });
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- _formel = _form.form;
-
- U.A.Request("http://cd.1473.cn/php", ["db.1473.cn", "UseStudio_DNS", "GetDnsInfoByFileId", fileinfo.UserDirectoryID], function (r) {
- fileinfo.DnsInfo = r.value[0];
- U.MD.DS.DnsInfo[fileinfo.UserDirectoryID] = fileinfo;
- console.log(r.value[0]);
- console.log(fileinfo);
- });
- }
- else {
- U.UF.F.windowTopCenter(_formel);
- }
- var _file;
- var _iframe = U.selectEl("iframe", el)[0];
- var _sel = U.selectEl(el);
- var _child = _sel.Child()[0];
- _sel.css("display", "block");
- switch (type) {
- case "Word": _file = "WordEditArea.htm"; break;
- case "Excel": _file = "ExcelEditArea.htm"; break;
- case "PPT": _file = "PPT.htm"; break;
- default: break;
- }
- if (!_iframe) {
-
- _iframe = $$("iframe", {
- "frameBorder": "0",
- "style": {
- "border": "0"
- },
- "src": "/Controls/Office/" + type + "/" + _file,
- "width": "100%",
- "height": "100%"
- }, _child);
- U.selectEl(menu.middle).append(_iframe);
-
- U.UF.DL.iframeLoad(_iframe, function () { cb(userinfo, fileinfo, _child, _iframe, el); });
- }
- U.MD.O.Colse = function () {
-
-
- }
- U.MD.O.asynWord = function (userinfo, fileinfo, loading, iframe) {
-
-
-
-
-
-
-
-
-
- var _UW = iframe.contentWindow;
- U.UF.DL.uploading(loading);
- U.MD.O.W.T.WETZ($(loading).Parent(), "Word");
-
-
-
-
- _UW.U.MD.O.W.load(fileinfo ? fileinfo.UserDirectoryID : "", fileinfo, fileinfo ? fileinfo.UserId : userInfo.userid, iframe);
-
-
-
-
-
-
-
- }
- U.MD.O.AsynWordO = function (r) {
- var _context = r.context,
- _UCB = _context[1];
- r = r.value;
- if (r && (r = r[0])) {
- r = new U.MD.DK.M.entity(r.UserFilesID, r.UserFilesSize, r.UserDirectoryID, r.UserFilesName, r.UserFilesName, r.UserFilesExtendName, r.UserFilesServerName, r.UserFilesAddTime, r.UseFilesServerThumbnailName, 9999, r.UserFilesModifyTime, null, 1, null, r.UserDirectoryEncrypt, null, r.UserID, r.UserName, r.UserName, r.UserThumbnailImageHead);
- }
- _context.length >= 5 ? _UCB(_context[2], r, _context[3], _context[4]) : _UCB(r, _context[2]);
- }
- case "app":
- _formdiv = new U.UF.UI.form("<div class='U_MD_F_S_TI'>应用市场</div>",
- $$("iframe", {
- "scrolling": this.Scroll || "no",
- "frameBorder": 0,
- "width": "100%",
- "height": "100%",
- "src": "http://app.1473.cn"
- }, _UDTD),
- {
- "id": "UD_APP",
- "style": {
- "width": "80%",
- "height": "85%"
- }
- }).form;
- _taskbar = ["-400px -296px", "站外应用", _formdiv];
- break;
- U.MD.DK.VW.fileSwitchForm = function (UDID, UTF, UDE, UP) {
- var _UXY = U.UF.EL.getMousePosition(),
- _UGE = U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid),
- _UME = U.selectEl("body").getElementInfo(),
- _el = $$("div", { "className": "U_MD_O_E_ZOCC" }),
- _UDTD = $$("div", { "className": "U_MD_O_E_ZOCCL", "style": { "border": "0" } }, _el),
- _UDSD = $$("div", { "className": "U_MD_O_E_ZOCCLH" }, _UDTD);
-
-
-
- $$("span", { "innerHTML": "↑" }, _UDSD);
- $$("span", { "className": "U_MD_O_E_ZOCCLO", "innerHTML": "本地上传" }, _UDSD);
- if (_UGE) {
- _UDTD = $$("div", { "className": "U_MD_O_E_ZOCCL", "id": "U_MD_O_E_ZOCCL" }, _el);
- $$("div", { "className": "U_MD_O_E_ZOCCLI U_MD_DK_LCT U_Img" }, _UDTD);
- $$("span",
- {
- "className": "U_MD_O_E_ZOCCLO",
- "innerHTML": "云盘添加",
- "onclick": function () {
- U.MD.DK.VW.CCWPXZK(UDID,
- { onclick: UDE.CB }, UTF);
- }
- }, _UDTD);
- }
-
- new U.UF.UI.form("文件选择",
- _el,
- {
- "onmousedown": U.UF.EV.stopBubble,
- "id": "U_MD_HomeNR",
- "style": {
- "width": _UGE ? "261px" : "130px",
- "height": "85px",
- "top": _UXY["Y"] + (UP ? 10 : -100) / (_UGE ? 1 : 2) + _UME["ST"] + "px",
- "left": _UXY["X"] - 130 + _UME["SL"] + "px"
- }
- },
- {
- isdrag: false,
- isnarrow: false,
- isenlarge: false
- });
- _UDSD.onmousedown();
- }
- U.MD.DK.VW.CCWPXZK = function (UDID, UDE, UTP, UFID, cb) {
- if (!U.MD.U.L.isLogin()) {
- if (U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid)) {
- var _UDSD, _UDTD = $$("div", {});
- $$("div", {
- innerHTML: "◀",
- className: "U_MD_HomeSXZLRSITQO",
- onclick: function () {
- U.UF.N.backOff("SWP");
- }
- }, _UDTD);
- $$("div", {
- innerHTML: "▶",
- className: "U_MD_HomeSXZLRSITQO",
- onclick: function () {
- U.UF.N.goAhead("SWP");
- }
- }, _UDTD);
-
- _UDSD = new U.UF.UI.form("文件选择",
- $$("div", { "className": "U_MD_HomeSXZLRSITA" }),
- {
- "onmousedown": U.UF.EV.stopBubble,
- "id": "UD_WPTC",
- "style": {
- "width": "530px",
- "height": "350px"
- }
- },
- {
- isTop: true
- });
- (cb || U.MD.DK.VW.ZBPWPTP)(UDID || US.EMPTYGUID, _UDSD, UDE, UTP, UFID);
- }
- else { U.alert("等地加载..请稍后"); }
- }
- }
- U.MD.DK.VW.CCWPXZKS = function (UDOD, UDTD, UDSD) {
- var _UDCD = U.selectEl(UDSD).childs()[0];
- _UDCD = U.selectEl(_UDCD).childs();
- if (_UDCD.length > 1) {
- _UDCD.css("height", U.selectEl(UDSD).height() - _UDCD[1].offsetHeight - 8 + "px", 0);
- }
- }
- U.MD.DK.VW.ZBPWPTP = function (UDID, UDOD, UDE, UTP) {
- U.UF.N.RGoL("SWP");
- U.UF.N.addEvent(function () { U.MD.DK.VW.PWPTP(UDID, UDOD, UDE, UTP); }, "SWP");
- }
- U.MD.DK.VW.PWPTP = function (UDID, UDOD, UDE, UTP) {
- var _userid = US.userInfo.userid;
- UDOD.innerText = "";
- U.MD.DK.LE.getChildsByDirectoryId(_userid, _diskinfo[4][UDID], [UDOD, true], function () { U.MD.DK.VW.PCKBDBL(UDID, UDOD, UDE, UTP); });
- }
- U.MD.DK.VW.APWPTP = function (UDID, UDOD, UDE, UTP, UFID) {
- U.A.Request(US.CD, [US.DB, "UseStudio_Disk", "GetAllBackupFiles", UFID], U.MD.DK.VW.AsynAPWPTP, [[UDOD, true], UDOD, UDE, UTP, UFID]);
- }
- U.MD.DK.VW.AsynAPWPTP = function (r) {
- var i, _USE,
- _context = r.context,
- _el = _context[1],
- _UDE = _context[2],
- UTP = _context[3],
- _UFID = _context[4], _UAE = r.value;
- for (i = 0; i < r.value.length; i++) {
- U.MD.DK.M.RUS(_UAE[i]);
- };
- U.MD.DK.VW.PCKBDBL(_UAE, _el, _UDE, UTP, _UFID);
- }
- U.MD.DK.VW.PCKBDBL = function (UDE, UDOD, UCE, UTP, UFID) {
- var i, _UDID, _UDTD, _UDSD, _UDND, _UTM, _UAE, _UTF, _UTP, _UNE,
- _UDFD = $$("div", { className: "U_MD_HomeSXZLRSITN" }),
- _UGE = U.MD.DK.M.diskOperatingSwitch(US.userInfo.userid);
-
- if (U.UF.C.isString(UDE)) {
- _UDID = UDE;
- if (UDE == US.EMPTYGUID) { UDE = _UGE[0].slice(0, 6); }
- else {
- UDE = _UGE[4][UDE].Child;
- _UDID = _UGE[1][1] || US.MYFOLDERID; (UFID) && (UFID ? _UGE[4][UFID].UserDirectoryParentID || UFID : UFID)
- }
- }
- else if (UDE[0] && Guid.isGuid(UTP)) {
- _UDID = UTP;
- UDE = _UGE[4][UDE[0].UserDirectoryParentID].Child;
- };
-
- if (UDE.length) {
- for (i = 0; i < UDE.length; i++) {
- _UTM;
- _UTF = _UTP == "folder"; _UAE = U.UF.D.getYearMonthDay(UDE[i]["UserDirectoryAddTime"], "Array");
- _UNE = U.MD.DK.C.getIcon(UDE[i].UserDirectoryExtendType);
- if ((UTP && UTP.indexOf(UDE[i].UserDirectoryExtendType) > -1) || (((_UTF == "A") || (!UTP || _UTF)) || UTP == "Other")) {
- if (UTP == "Other") {
- _UDTD = $$("div", {
- className: "U_MD_HomeSXZLRSITM",
- title: UDE[i]["UserallDirectoryName"]
-
- }, _UDFD);
- _UDSD = $$("div", { className: "U_MD_HomeSXZLRSITMO U_MD_D_Text_Abbreviation" }, _UDTD);
- $$("div", { className: _UNE.classname[2] + " U_MD_HomeSXZLRSITMOB U_Img U_MD_D_Text_Abbreviation" }, _UDSD);
- $$("div", {
- className: "U_MD_HomeSXZLRSITMOA", "innerHTML": UDE[i]["UserallDirectoryName"]
- }, _UDSD);
- $$("div", {
- className: "U_MD_HomeSXZLRSITMS U_MD_D_Text_Abbreviation", "innerHTML": U.UF.UP.minUnitToMaxUnit(UDE[i]["UserDirectorySize"])
- }, _UDTD);
- $$("div", { className: "U_MD_HomeSXZLRSITMD U_MD_D_Text_Abbreviation", "innerHTML": _UAE[0] + "-" + _UAE[1] + "-" + _UAE[2] + " " + _UAE[3] + ":" + _UAE[4] }, _UDTD);
- if (UCE.De) {
- $$("div", {
- "title": "删除该文件备份",
- className: "U_MD_HomeSXZLRSITMC U_MD_F_S_S U_Img",
- onclick: function () {
- U.UF.EV.stopBubble(); UCE.De(_UDTD, UDE[i])
- }
- }, _UDTD);
- }
- }
- else {
- _UDTD = $$("div", {
- "className": "U_MD_HomeSXZLRSITO",
- "title": _UTM ? "" : ""
-
- }, _UDFD);
- _UDSD = $$("div", { "className": "U_MD_HomeSXZLRSITOT" }, _UDTD);
- if (_UTM == "P") {
- $$("img", {
- "onerror": U.MD.C.imgError,
- "onerror": function () {
- U.MD.C.imgError(this, 1);
- },
- "src": UDE[i].UserDirectoryUrl
- }, _UDSD);
- }
- else { U.selectEl(_UDSD).addAttrArray({ "style": { "cssText": U.MD.DK.C.getIcon(_UTP)[1] + ";" }, "className": "U_MD_DK_L_DiskGE " + _UDSD.className }) }
- $$("div", { "className": "U_MD_HomeSXZLRSITOS U_MD_D_Text_Abbreviation", "innerHTML": UDE[i].UserDirectoryName }, _UDTD);
- }
- }
- }
- if (_UDTD) { UDOD.appendChild(_UDFD) };
- }
- if (!_UDTD) {
- $$("div", { "className": "U_MD_HomeSXZLRSITT", "innerHTML": "该目录暂无指定的内容" }, UDOD);
- }
- if (UCE.Bo) {
- U.selectEl(_UDFD).css({ height: UDOD.offsetHeight - 37 + "px" }); _UDND = $$("div", { className: "U_MD_HomeSXZLRSITK" }, _UDFD);
- $$("div", {
- className: "U_MD_HomeSXZBFCTA U_MD_HomeSXZBFCTAT",
- title: "取消", "innerHTML": "取消",
- "onclick": function () {
- U.MD.DK.VW.EPWPTP(_UDID, UDOD, UCE.Bo.cl);
- }
- }, _UDND);
- $$("div", {
- className: "U_MD_HomeSXZBFCTA",
- title: "确定",
- "innerHTML": "确定",
- "onclick": function () {
- U.MD.DK.VW.EPWPTP(_UDID, UDOD, UCE.Bo.ok);
- }
- }, _UDND);
- UDOD.appendChild(_UDND)
- }
- }
- U.MD.DK.VW.EPWPTP = function (UDID, UDOD, cb) {
- U.selectEl(UDOD).Parent({ usform: "true" }).close(); (cb) && (cb(UDID));
- }
- U.UF.IMG.Create = function (UDE, UI, UME, cb) {
- U.UF.EV.stopBubble();
- return (new U.UF.IMG.Create.init(UDE, UI, UME, cb)).Create();
- }
- U.UF.IMG.Create.init = function (UDE, UI, UME, cb) {
-
- this.Iss;
- this.UIOD;
- this.BL;
- this.UIMG;
- this.W;
- this.h;
- this.R = 0;
- this.I = typeof UI == "number" ? UI : 0;
- this.cb = cb;
- this.CTF = true;
- this.AIMG = UDE;
- for (var i in UME) {
- if (UME.hasOwnProperty(i)) {
- this[i] = UME[i];
- }
- }
- }
- U.UF.IMG.Create.init.prototype = {
- ET: [],
-
- ImgT: function (UDE, UDID) {
- var i,
- _el, _UDTD, _UDSD, _UDKD, _UDCD, _UDID,
- _UCE = [["放大", "U_MD_HomeJDXB"], ["缩小", "U_MD_HomeJDXS"], ["左转", "U_MD_HomeJDXL"], ["右转", "U_MD_HomeJDXR"]];
-
- if ((_el = U.selectEl("#" + UDID)[0])) {
- _UDID = U.selectEl(_el).childs(0)[0];
- _UDID = U.selectEl(_UDID).Child()[2];
- _UDID = U.selectEl("img", _UDID);
- U.selectEl(_el).Center();
- _UDID.length ? (_UDID = _UDID[0], _UDID.src = UDE["Thm"]) : (_UDTD.innerHTML = "",
- _UDCD = $$("div", { "className": "U_MD_HomeJZO" }, _UDTD),
- _UDID = $$("img", { "onerror": U.MD.C.imgError, "onerror": U.MD.C.imgError, "onselectstart": function () { }, "ondragstart": function () { }, "src": U.MD.C.getHeadImage(UDE["Thm"]) }, _UDCD));
- }
-
- else {
- _el = $$("div", { "className": "U_MD_HomeJ U_MD_HomeJO", id: UDID, "onmousewheel": function () { U.UF.EV.stopBubble(); this.Wheel(this); }, "__size__": "false", "onmousedown": function () { U.UF.F.drag(this); } });
- _UDTD = $$("div", { "className": "U_MD_HomeJA" }, _el);
- _UDSD = $$("div", { "className": "U_MD_HomeJD", "onmousedown": U.UF.EV.stopBubble, "onclick": U.UF.EV.stopBubble }, _UDTD);
- _UDSD = $$("div", { "className": "U_MD_HomeJDX" }, _UDSD); _UDSD = $$("div", { "className": "U_MD_HomeJDXS" }, _UDSD);
- for (i = 0; i < _UCE.length; i++) {
- _UDKD = $$("div", { "className": "U_MD_HomeJDXC", "style": i ? {} : { "margin": "0px" }, "title": _UCE[i][0], onclick: function () { i > 1 ? this.Rotate : this.Zoom(i > 1 ? (i - 2) * 2 - 1 : (i ? "Out" : "In"), _el, this) } }, _UDSD);
- if (!i) { _UDCD = $$("div", {}, _UDKD); $$("div", { "title": "回到原图", "innerHTML": " 100%", onclick: function () { this.Zoom(100, _el, this); } }, _UDKD); } else { _UDCD = _UDKD; }
- $$("div", { "className": "U_Img U_MD_HomeJDXO " + _UCE[i][1] }, _UDCD);
- $$("div", { "className": "U_MD_HomeJDXT", "title": "点击" + _UCE[i][0], "innerHTML": _UCE[i][0] }, _UDCD);
- }
- $$("div", { "className": "U_MD_HomeJL U_MD_HomeJLO U_Img", "onmousedown": U.UF.EV.stopBubble, "onclick": U.UF.EV.stopBubble }, _UDTD);
- _UDCD = $$("div", { "className": "U_MD_HomeJZ", "onmousedown": U.UF.EV.stopBubble }, _UDTD); $$("div", { "className": "U_MD_HomeJL U_MD_HomeJRO U_Img", "onmousedown": U.UF.EV.stopBubble, "onclick": U.UF.EV.stopBubble }, _UDTD);
- _UDCD = $$("div", { "className": "U_MD_HomeJZO" }, _UDCD); _UDID = $$("img", { "onerror": U.MD.C.imgError, "onerror": U.MD.C.imgError, "onselectstart": function () { }, "ondragstart": function () { }, "src": U.MD.C.getHeadImage(UDE["Thm"]) }, _UDCD);
- $$("div", { "className": "U_Img U_MD_O_E_C U_MD_O_E_CT", style: { top: "0", right: "0" }, "title": "关闭", "onmousedown": U.UF.EV.stopBubble, "onclick": function () { this.Close(null, this); } }, _el);
- U.selectEl(_el).appendTo((this.parent || document.body)).Center();
- }
-
- return [(this.UIOD = _el), (this.UIMG = _UDID)];
- },
-
- Create: function () {
- if (this.AIMG) {
-
- this.AIMG = this.AIMG.length != null ? this.AIMG : [this.AIMG];
- var _UIE = this.AIMG[this.I],
- _UDE = (this.cb ? this.cb(_UIE) : this.ImgT(_UIE, "Usestudio_Img"));
- this.R = 0;
- this.Iss = U.selectEl(this.UIOD).attr("__size__") == "false";
-
- U.UF.IMG.imgReady(U.MD.C.getHeadImage(_UIE["Img"]), function () {
- this.Ready(_UDE[0], _UDE[1], this, _UIE);
- }, function () {
- this.Load(_UDE[0], _UDE[1], this, _UIE);
- }, U.UF.C.apply(this, function () {
- this.Error(_UIE["Img"])
- }));
- return this;
- }
- },
-
- XSI: function (UIOD, UT, UTF) {
- if (UT.CTF) { UT.Close(UIOD, UT, UTF); }
- UT.CTF = true;
- },
-
- Wheel: function (UT, UE) {
- UE = event || UE;
- var _UWD = UE.wheelDelta ? (UE.wheelDelta / 120) : (-(UE.detail || UE.deltaY) / 3), _UTF = _UWD > 0 ? "In" : "Out";
- UT.Zoom(_UTF, UT.UIOD, UT);
- },
-
- Change: function (UTF, UT, cb) {
-
- UTF = UT.I + UTF;
- UT.I = UTF = (UTF < 0 || UTF >= UT.AIMG.length) ? ((UTF < 0) ? UT.AIMG.length - 1 : 0) : UTF;
-
- var _UIID = U.selectEl(UT.UIMG).addAttrArray({
- "src": UT.AIMG[UTF]["Thm"],
- "style":
- {
- "filter": "alpha(opacity=30)",
- "MozOpacity": "0.3",
- "Khtml-opacity": "0.3",
- "opacity": "0.3"
- }
- });
-
- UT.PJ("", "", UT.UIOD, UT.UIMG);
- UT.Rotate((UT.R = 0), UT.UIOD, UT);
-
- U.UF.IMG.imgReady(UT.AIMG[UTF]["Img"], function () {
- UT.Ready(UT.UIOD, _UIID[0], UT);
- },
- function () {
- UT.Load(UT.UIOD, _UIID[0], UT);
- }, U.UF.C.apply(this, function () {
- UT.Error()
- }));
- (cb) && (function () { cb(); }());
- },
-
- Zoom: function (US, UIOD, UT) {
-
-
- var US,
- _UW,
- _UH,
- _UIMG = U.selectEl(this.UIMG);
- if ("Out,In".indexOf(US) > -1) { US = US == "Out" ? this.BL * 0.8 : this.BL / 0.8 };
- UT.W = UT.W || _UIMG[0].width; UT.H = UT.H || _UIMG[0].height;
- this.BL = US = Math.max(Math.min(300, US), 22);
- _UH = parseInt(UT.H * (US / 100)); _UW = parseInt(UT.W * (US / 100));
- _UIMG.addAttrArray({ "style": { "width": _UW + "px", "height": _UH + "px" } });
- UT.PJ(_UW, _UH, UIOD, _UIMG[0]);
- U.UF.F.windowTopCenter(UIOD);
- },
-
- PJ: function (UW, UH, UIOD, UIID) {
- var _UDPD = U.selectEl(UIID).Parent();
-
- _UDPD.style.height = UH ? UH + "px" : "";
- _UDPD.style.width = UW ? UW + "px" : "";
-
- if (!this.Iss) { UIOD.style.width = _UDPD.style.width };
- if (UH) { U.selectEl(_UDPD).css("marginTop", ((UH = (($(_UDPD).Parent().offsetHeight - UH) / 2)) > 0 ? UH : 0) + "px") };
- },
-
- Rotate: function (UV, UIOD, UT) {
-
- var _UIMG = U.selectEl(UT.UIMG),
- _UDPD = _UIMG.Parent(),
- _UWH = [_UDPD.offsetWidth, _UDPD.offsetHeight];
- if (UV) { _UWH.reverse() };
- UV = UT.R + UV; UV = UV >= 4 ? 0 : UV; UV = UV < 0 ? 3 : UV;
- UT.R = UV; _UWH[2] = UV % 2 ? ((_UWH[(UV - 1) / 2] / 2) + "px") : "center";
- _UIMG.addAttrArray({
- style: {
- "filter": "Progid:DXImageTransform.Microsoft.BasicImage(Rotation=" + UV + ")",
- "transformOrigin": _UWH[2] + " " + _UWH[2], "WebkitTransform": "rotate(" + UV * 90 + "deg)",
- "MozTransform": "rotate(" + UV * 90 + "deg)",
- "transform": "rotate(" + UV * 90 + "deg)",
- "OTransform": "rotate(" + UV * 90 + "deg)"
- }
- });
- UT.PJ(_UWH[0], _UWH[1], UIOD, _UIMG[0]);
- U.UF.F.windowTopCenter(UIOD);
- },
-
- MoveScroll: function (UDOD, UT) {
- UDOD.setCapture();
- document.onmousemove = function () { UT.Move(UDOD, event.clientX, event.clientY, [UDOD.scrollTop, UDOD.scrollLeft], UT); };
- document.onmouseup = function () { UT.Up(UDOD); };
- },
-
- Move: function (UDOD, UX, UY, UTL, UT) {
- UT.CTF = false;
- U.selectEl(UDOD).addAttrArray({
- "scrollTop": UTL[0] - (event.clientY - UY),
- "scrollLeft": UTL[1] - (event.clientX - UX)
- });
- },
-
- Up: function (UDOD) {
- UDOD.releaseCapture();
- document.onmousemove = document.onmouseup = null;
- },
-
- Download: function (FN) {
- FN = FN.replace(US.FILESYSTEMURL, "");
- U.MD.DK.RE.ODL(FN, "1473用户图片.jpg");
- },
-
- Close: function (UIOD, UT, UTF) {
- U.UF.F.closeWindow(UIOD || this.UIOD, UTF ? "remove" : false);
- this.ET.splice(this.ET.indexOf(UT), 1);
- },
-
- Ready: function (UIOD, UIID, T, UDE) {
- if (UIOD.style.display != "none" && (UDE && UDE["Thm"] == UIID.src || !UDE || !UDE["Thm"])) {
-
- $[UIID, UIID.parentNode].addAttrArray({ "style": { "width": this.width + "px", "height": this.height + "px" } });
- T.W = this.width;
- T.H = this.height;
-
- T.PJ(T.W, T.H, UIOD, UIID);
- U.UF.F.windowTopCenter(UIOD);
- return true;
- }
- else { return false; }
- },
-
- Load: function (UIOD, UIID, T, UDE) {
- if (this.src && UIOD.style.display != "none" && (UDE && UDE["Thm"] == UIID.src || !UDE || !UDE["Thm"])) {
- var _UDPD = U.selectEl(UIID).Parent(),
- _UWH = this.Iss ? [_UDPD.offsetWidth, _UDPD.offsetHeight] : [US.width, US.height];
-
- U.selectEl(UIID).addAttrArray({ "src": this.src, "style": { "MozOpacity": "1", "Khtml-opacity": "1", "opacity": "1", "filter": "alpha(opacity=100)" } });
- T.W = this.width;
- T.H = this.height;
- UIOD = U.selectEl(UIOD);
- T.Zoom(Math.min(Math.min(T.W, _UWH[0]) / this.width, Math.min(T.H, _UWH[1]) / this.height) * 100, UIOD[0], T);
- UIOD.Center();
- }
- },
-
- Error: function (URL, ITF) {
- var UIOD;
- var _UIID = this.UIMG;
- ITF = ITF || 0;
- ITF++;
- if (ITF < 3 && this.TF == 2) {
- U.UF.IMG.imgReady(URL + "?&n=" + ITF, function () {
- this.Ready(this.UIOD, _UIID, this);
- },
- function () {
- this.Load(this.UIOD, _UIID, this);
- U.UF.C.apply(this, function () {
- this.Error(URL, ITF)
- });
- });
- }
- else {
- U.alert("图片丢失");
- U.selectEl(_UIID).css({ "width": "auto", "height": "auto" });
- U.MD.C.imgError(_UIID, (this.TF || 1));
- this.Zoom(100, this.UIOD, this);
- U.UF.F.windowTopCenter(this.UIOD)
- }
- }
- };
- U.UF.UI.Editor = function (el) {
- return U.UF.UI.EditorLoad({ head: true, isc: false, title: false, context: "", parentEle: el });
- }
- U.UF.UI.PopEditor = function (UDE, UFE) {
- return U.UF.UI.EditorLoad(UDE, UFE);
- }
- U.UF.UI.EditorLoad = function (UDE, UFE) {
- return new U.UF.UI.EditorLoad.init(UDE, UFE).create();
- }
- U.UF.UI.EditorLoad.addT = function (UDOD, UTI, UCE) {
- var _UDSD = $$("div", { className: "U_MD_HomeSXZBFCAT", "style": { "display": "block" } }, UDOD);
- _UDSD = $$("div", { className: "U_MD_HomeSXZBFCATX" }, _UDSD);
- $$("div", { className: "U_MD_HomeSXZBFCATXL", "innerHTML": UTI || "主题:" }, _UDSD);
- var _UDFD = $$("div", { className: "U_MD_HomeSXZBFCATXR" }, _UDSD);
- _UDMD = $$("input", {
- className: "U_MD_HomeSXZTST",
- defaultValue: (_UCT = "请输入标题..."),
- "value": UCE,
- placeholder: _UCT,
- onblur: [
- [U.UF.MR.inputPlaceholder, [this, "", _UCT]]
- ],
- onfocus: [
- [U.UF.MR.inputPlaceholder, [this, _UCT, ""]]
- ]
- }, _UDFD);
- return _UDSD;
- }
- U.UF.UI.EditorLoad.init = function (UDE, UFE) {
- this.obj = UDE || {};
- this.rt = UFE || {};
- this.o = [];
- this.extra = [];
- }
- U.UF.UI.EditorLoad.init.prototype = {
- et: {},
- config: function (UDE) {
- if (!this.f) {
- this.f = {
- EX: "uerror",
- ADD: "uadd",
- JDT: "ujdt",
- FCP: "ufcp",
- FUP: "ufup",
- CP: "ucp",
- ACP: "ucp"
- };
- for (var i in this.f) {
- this.f[i] = U.UF.EV.eventDelegation(U.UF.C.apply(this, function () { this[this.f[i]]() }), null, false);
- }
- }
- this.c = this.c || {
- id: Guid.guidNoDash()
- };
- if (UDE) { U.UF.C.AddObj(this.c, UDE) };
- return this;
- },
- set: function (UDE) {
- U.UF.C.AddObj(this, UDE);
- },
- create: function () {
- if (this.obj.cus) {
- this.cuscreate();
- }
- var i, _UCT, _UDTD, _UDSD, _UDFD, _UDBD, _UDMD, _UDND, _UDKD, _UDLD, _UDED, _UDVD, _UDUD, _UDCD, _UAE,
- _UDE = this.obj,
- _USE = {
- "hst": "",
- "bst": "",
- "draw": "",
- "close": "",
- "max": "",
- "min": "",
- "isContain": "",
- "style": ""
- };
- this.config();
- _UDE.id = _UDE.id || Guid.guidNoDash();
- if ((_UAE = this.et[_UDE.id])) {
- (_UDMD = _UAE.ti).value = _UDE.name;
- (_UDND = _UAE.con).innerHTML = _UDE.title;
- U.selectEl(_UAE.content).parentElement({
- usform: "true"
- }).Center();
- }
- else {
- _UAE = this;
- this.content = _UDTD = $$("div", { className: "U_MD_HomeSXZBFCA", id: _UDE.id || "" });
- if (this.obj.title !== false) {
- _UDMD = this.ti = U.selectEl("input", U.UF.UI.EditorLoad.addT(_UDTD, "主题", _UDE["title"]))[0];
- }
- if (this.obj.head) {
- this.head = _UDSD = $$("div", {
- "onclick": function () { this.Tool(); },
- className: "U_MD_HomeSXZBFCAH"
- }, _UDTD);
- _UDUD = $$("div", { "className": "U_MD_F_DTZ U_Img U_MD_HomeSXZBFCAHO", "style": { "position": "relative" }, "title": "本地添加文件" }, _UDSD);
- if (US && US.userInfo && US.userInfo.userid) {
- $$("div",
- {
- "className": "U_MD_F_DTW U_Img U_MD_HomeSXZBFCAHH",
- "style":
- {
- "width": "28px"
- }, "title": "网盘添加文件",
- "onclick": function () {
- U.MD.DK.VW.CCWPXZK
- (US.EMPTYGUID, {
- "onclick": U.UF.C.apply(this, this.createFile)
- }, null)
- }
- }, _UDSD);
- }
- _UDKD = $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_CT U_Img U_MD_HomeSXZBFCAHO",
- title: "表情包",
- onclick: function () {
- U.UF.EV.stopBubble();
- U.MD.UI.face(this, function () {
- this.face();
- })
- }
- }, _UDSD);
- _UDKD = $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_ZJ U_Img U_MD_HomeSXZBFCAHO",
- title: "背景色",
- onclick: function () { U.UF.EV.stopBubble(); U.MD.O.E.T.ToolOC(this); }
- }, _UDSD);
- _UDKD = $$("div", {
- "className": "U_MD_O_E_ZOB",
- onclick: U.UF.C.apply(this, function () {
- this.use({ "backgroundColor": "" }, "backgroundColor");
- })
- }, _UDKD);
- _UDLD = $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_ZZ U_Img U_MD_HomeSXZBFCAHO",
- title: "字体色",
- onclick: [
- [U.UF.EV.stopBubble],
- [U.MD.O.E.T.ToolOC, [this]]
- ]
- }, _UDSD);
- _UDLD = $$("div", {
- "className": "U_MD_O_E_ZOB",
- onclick: U.UF.C.apply(this, function () {
- this.use({
- "color": ""
- }, "backgroundColor");
- })
- }, _UDLD);
- _UDED = $$("div", { "className": "U_MD_O_E_ZO U_MD_O_E_ZOV U_MD_HomeSXZBFCAHO" }, _UDSD);
- _UDED = $$("select", {
- "className": "U_MD_O_E_ZV",
- onchange: U.UF.C.apply(this, function () { this.use({ "fontFamily": "" }, "font"); })
- }, _UDED);
- _UDVD = $$("div", { "className": "U_MD_O_E_ZO U_MD_O_E_ZOO U_MD_HomeSXZBFCAHO" }, _UDSD);
- _UDVD = $$("select", {
- "className": "U_MD_O_E_ZVO",
- onchange: function () {
- this.use({
- "fontSize": ""
- }, "font");
- }
- }, _UDVD);
- $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_ZLO U_Img U_MD_HomeSXZBFCAHO",
- title: "斜体",
- onclick: U.UF.C.apply(this, function () {
- this.use({
- fontStyle: ["italic", "normal"]
- });
- })
- }, _UDSD);
- $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_ZLT U_Img U_MD_HomeSXZBFCAHO",
- title: "加粗",
- onclick: U.UF.C.apply(this, function () {
- this.use({
- fontWeight: ["bold", "normal"]
- });
- })
- }, _UDSD);
- $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_ZF U_Img U_MD_HomeSXZBFCAHO",
- title: "下划线",
- onclick: U.UF.C.apply(this,
- function () {
- this.use({
- textDecoration: ["underline", "none"]
- });
- })
- }, _UDSD);
- $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_ZT U_Img U_MD_HomeSXZBFCAHO",
- title: "删除线",
- onclick: U.UF.C.apply(this,
- function () {
- this.use({
- textDecoration: ["line-through", "none"]
- });
- })
- }, _UDSD);
- $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_LJ U_Img U_MD_HomeSXZBFCAHO",
- title: "超链接",
-
- onclick: function () {
- U.MD.O.E.T.AddUrl(U.UF.C.apply(this, [[this.AddUrl]]))
- }
- }, _UDSD);
- $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_ZR U_Img U_MD_HomeSXZBFCAHO",
- title: "左对齐",
- onclick: U.UF.C.apply(this,
- function () {
- this.use({
- textAlign: "left"
- })
- })
- }, _UDSD);
- $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_ZRZ U_Img U_MD_HomeSXZBFCAHO",
- title: "居中",
- onclick: U.UF.C.apply(this, function () {
- this.use({
- textAlign: "center"
- })
- })
- }, _UDSD);
- $$("div", {
- "className": "U_MD_O_E_ZI U_MD_O_E_ZRL U_Img U_MD_HomeSXZBFCAHO",
- title: "右对齐",
- onclick: U.UF.C.apply(this, function () {
- this.use({
- textAlign: "right"
- })
- })
- }, _UDSD);
- U.MD.O.E.T.CreatTool([_UDED, _UDVD, _UDKD, _UDLD], [0, 1, 2, 3]);
- U.selectEl("&*", this.head).addAttrArray({
- "unselectable": "on"
- });
- }
- _UDCD = $$("div", { "innerHTML": "在该处添加内容..." });
- _UCT = _UDCD.outerHTML;
- this.con = {
- className: "U_MD_HomeSXZLRSSI U_MD_HomeSXZBFCO",
- contenteditable: "true",
- onblur: function () {
- U.UF.MR.inputPlaceholder(this, "<div></div>", _UCT);
- },
- onfocus: function () {
- U.UF.MR.inputPlaceholder(this, _UCT);
- }
- };
- if (this.car) { U.UF.C.AddObj(this.cob, this, car) };
- this.con = _UDND = $$("div", this.con, _UDTD);
- _UDSD = $$("div", { className: "U_MD_HomeSXZBFCT" }, _UDTD);
- if (this.obj.imgt) {
- if (!U.UF.C.isNumber(this.obj.imgt)) { this.obj.imgt = 9 };
- this.imgt = _UDBD = $$("div", {
- className: "U_MD_HomeSXZLRSSVON"
- }, _UDSD);
- }
- _USE.forEach(function (UA, UB) {
- _USE[UB] = _UDE[UB] == null ? _USE[UB] : _UDE[UB];
- });
-
-
-
-
-
-
- _USE.SO = this.obj.parent;
- _USE.sizeend = function () { this.size(); };
- _USE.content = _UDTD;
- _USE.title = "<div class='U_MD_F_S_TI'>" + (this.obj.name || "最新发表") + "</div>";
- if (_UDE.parentEle) {
- this.body = _UDE.parentEle;
- U.selectEl(_UDE.parentEle).append(_UDTD)
- }
- else {
- this.body = new U.UF.UI.form(_USE).form;
-
- if (this.obj.celbut !== false) {
- $$("div", {
- className: "U_MD_HomeSXZBFCTA U_MD_HomeSXZBFCTAT",
- title: "取消",
- "innerHTML": "取消",
- "onclick": this.obj.celbut ? this.obj.celbut : [
- [U.UF.F.closeWindow, [this.body, "remove"]]
- ]
- }, _UDSD)
- };
- $$("div", {
- className: "U_MD_HomeSXZBFCTA",
- title: "确定",
- "innerHTML": "确定",
- "onclick": function () {
- this.fb();
- }
- }, _UDSD);
- }
-
- this.objfl = U.UF.UP.addFlashUploadBottom(_UDUD, null, { "width": "25px", "height": "22px" });
-
- U.UF.UP.flashUploadInit({ "width": "25px", "height": "22px" },
- {
- "ADD": function () {
- this.uadd();
- },
- "CP": function () {
- this.ucp();
- },
- "JDT": function () {
- this.ujdt();
- },
- "FUP": function () {
- this.ufup();
- },
- "FCP": function () {
- this.ufcp();
- }
- }, "M");
- this.et[_UDE.id] = this;
- this.r = this.cursor(_UDTD, _UDND);
- }
- try {
- if (U && U.D && U.MD.D.Tb && U.MD.D.T.taskbar) {
- U.MD.D.T.taskbar({
- bp: "-267px -413px",
- name: (_UAE.obj.name || "最新发表"),
- el: _UAE.body,
- id: _UDE.id,
- click: U.UF.C.apply(_UAE, _UAE.create)
- })
- };
- } catch (e) { }
- _UAE.size();
- if (_UDCD) { _UAE.r.add(_UDE["context"] || _UCT) };
- return _UAE;
- },
- text: function () {
- return this.con.innerHTML.escapeQuotes();
- },
- clear: function () {
- var i, _UDE = this.extra;
- for (i = 0; i < _UDE.length; i++) {
- U.selectEl(_UDE[i]).remove();
- }
- },
- append: function (UDE) {
- var i, _el = U.selectEl(this.content),
- _UDFD = $$("frag");
- if (Array.isArray(UDE)) {
- for (i = 0; i < UDE.length; i++) {
- this.extra.push(UDE[i]);
- U.selectEl(_UDFD).append(UDE[i]);
- }
- }
- else {
- UDE.forEach(function (UVE, UIE) {
- this.extra.push(U.UF.UI.EditorLoad.addT(_UDFD, UVE, UIE));
- });
- }
- _el.append(_UDFD, 0, _el.Child()[0]);
- },
- addButton: function () {
- },
- cuscreate: function () {
- var _UDE = this.obj.cus;
- if (_UDE.tr) {
- _UDE.tr.onclick = function () {
- this.fb();
- }, delete _UDE.tr
- };
- if (_UDE.ubox) {
- U.UF.UP.addFlashUploadBottom(_UDE.ubox, this.c.id, {
- width: "100%",
- height: "100%"
- }), U.UF.UP.flashUploadInit({}, this.f, this.obj.type || "M"), delete _UDE.ubox
- };
- this.set(_UDE);
- },
- fb: function () {
- var _UAS, _UTI, _UDTD = this.ti,
- _UCT = this.con.innerHTML,
- _UDAD = this.imgt ? U.selectEl(this.imgt).Child() : null;
- if (_UDTD && (_UTI = _UDTD.value) && _UDTD.defaultValue == _UDTD.value) {
- _UAS = "请填写标题";
- _UDTD.focus();
- }
- else if ((_UCT.isStrNull() || _UCT == "有什么和大家分享...") && ((_UCT = "图片分享") && (!_UDAD || !_UDAD.length))) {
- _UAS = "请填写内容";
- this.con.focus();
- }
- else {
- if (this.obj.fcb && this.obj.fcb(_UCT, _UTI, _UDAD) !== true) {
- if (!this.parentEle && (this.obj.close !== false)) { U.UF.F.closeWindow(this.body, this.isc !== false ? "remove" : "") };
- } else {
- this.con.focus();
- }
- }
- if (_UAS) { U.alert(_UAS) };
- },
- jd: function () {
- this.r.CreateR();
- },
- uerror: function (UE) {
- U.alert("选择文件错误..");
- },
- Tool: function () {
- var i, _UDTD,
- _UDAD = U.selectEl(this.head).Child();
- for (i = 0; i < _UDAD.length; i++) {
- _UDTD = U.selectEl(_UDAD[i]).Child()[0];
- if (_UDTD && _UDTD.tagName.toLowerCase() == "div") {
- U.selectEl(_UDTD).css("display", "none");
- }
- }
- },
- uadd: function (UDE, UL) {
- var i, _UL;
-
- if (this.obj.imgt) {
- if (this.obj.imgt - UDE.length < 0) {
- _UL = UDE.length - this.obj.imgt;
- for (i = 0; i < _UL; i++) {
- this.objfl.deleteUploadFile(UDE.length - i - 1, this.o.length);
- }
- UDE = UDE.slice(0, this.obj.imgt > UDE.length ? UDE.length : this.obj.imgt);
- }
- this.obj.imgt -= UDE.length;
- }
-
- for (i = 0; i < UDE.length; i++) {
- UDE[i].id = Guid.newGuid();
- }
-
- if (UL && UDE.length) {
- if (this.rt.add) { this.rt.add(UDE, UL) }
- this.o.push(UDE);
- if (this.o.length == 1) { this.up(UDE[0], 0, 0) }
- }
- },
- up: function (UDE, UI, UJ) {
- this.objfl.generateFileHash(UJ, (UDE || this.o[UI][UJ]).id, UI);
- },
- ujdt: function (UDE, UFID, UTF) {
- if (this.rt.jdt) { this.rt.jdt(UDE) };
- },
- ufup: (function () {
- var asyn = function (r) {
- var _context = r.context,
- _UDE = _context[1],
- _UFID = _context[2];
- r = r.value;
- if (r) {
- this.ufcp(r, _UFID);
- }
- else if ((!this.rt.fup) || (this.rt.fup(_UDE) !== false)) {
- this.objfl.upload((this.url || "http://main.1473.cn/USUpfile.ashx?typename=UseStudioEditor&") + "UserId=" + (US.userInfo.userid || US.EMPTYGUID) + "&IsF=true", _UFID, _UDE[1], _UDE[2]);
- }
- },
- _ = function (UWE, UFID) {
- var _UDE = this.getup(UFID);
- if (_UDE[0]) {
- U.A.Request(US.AUTH, ["GetFileByHash", UWE, _UDE[0].size, _UDE[0].type.substr(1)], function () { asyn(); }, (["", _UDE, UFID]));
- }
- else {
- this.ufcp(null, UFID)
- }
- }
- return _;
- })(),
- ucp: function (UDE) {
- },
- ufcp: function (UDE, UFID) {
- this.del(null, UFID);
- if (UDE && (!this.rt.fcp || this.rt.fcp(UDE, _UCE))) {
- if (UDE.data) {
- (UDE = UDE.data.parseJSON()), UDE = {
- UserFilesServerName: UDE[0],
- UseFilesServerThumbnailName: UDE[1],
- UserFilesID: UDE[2],
- UserFilesSize: UDE[3],
- UserDirectoryEncrypt: UDE[4]
- }
- };
-
- if (UDE.data) {
- UDE = UDE.data.parseJSON();
-
- UDE = {
- UserFilesServerName: UDE[0],
- UseFilesServerThumbnailName: UDE[1],
- UserFilesID: UDE[2],
- UserFilesSize: UDE[3],
- UserDirectoryEncrypt: UDE[4]
- }
- }
-
- if (this.imgt) {
- $$("img", {
- "onerror": U.MD.C.imgError,
- onerror: "U.MD.C.imgError(this, 2)",
- title: "右键删除",
- src: U.MD.C.getHeadImage(UDE.UserFilesServerName),
- alt: U.MD.C.getHeadImage(UDE.UserFilesServerName),
- onmouseup: U.UF.C.apply(this, function () {
- this.imgdel(this);
- }),
- onclick: [
- [U.MD.I.Img, ([null, {
- UserFilesServerName: UDE.UserFilesServerName,
- UseFilesServerThumbnailName: UDE.UseFilesServerThumbnailName
- }])]
- ]
- }, this.imgt);
- }
- else { this.createFile(null, null, null, UDE); }
- }
- if (_UGE.length) { this.up(null, 0, 0) };
- },
- createFile: function (URL, USN, UDOD, UDE) {
- var _el, _UDTD, _UDSD, _UDMD, _UTH, _UGE = this.o;
- if (U.UF.UP.isImg(UDE.UserFilesServerName)) {
- _UTH = "<span><img onerror='U.MD.C.imgError(this, 2)' onclick='U.MD.I.Img(null, { 'Thm': '" + U.MD.C.getHeadImage(UDE.UserFilesServerName) + "', 'Img': '" + U.MD.C.getHeadImage(UDE.UserFilesServerName) + "' src='" + U.MD.C.getHeadImage(UDE.UserFilesServerName) + "' alt='" + U.MD.C.getHeadImage(UDE.UserFilesServerName) + "' title='点击查看原图' />  </span>"
- }
- else {
- _el = $$("div", {
- contenteditable: "false",
- style: {
- "cssText": "width:260px; height:70px; background-color:#DDD; display: inline-block; *display:inline; *zoom:1;text-decoration: none; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-indent:0"
- }
- });
- _UDTD = $$("div", {
- className: "U_MD_HomeID",
- "style": {
- "cssText": "margin:10px 0 0 10px; width:40px; height:50px; margin:15px 0 0 10px; float:left; background-position:-261px -22px"
- }
- }, _el);
- $$("div", {
- style: {
- cssText: "font-size:15px; width:40px; margin:auto; font-family:'微软雅黑'; text-align:center; color:#888; position:relative; top:16px; height:20px; overflow:hidden;"
- },
- innerHTML: U.UF.UP.getFileNameAndExtension(UDE.UserFilesServerName)[1]
- }, _UDTD);
- _UDTD = $$("div", { style: { "cssText": "width:195px; height:100%; margin-left:10px; float:left;" } }, _el);
- _UDSD = $$("div", { style: { "cssText": "width:200px; height:35px; line-height:35px;" } }, _UDTD);
- _UDMD = $$("div", { innerHTML: "文档 容量大小 " }, _UDSD);
- $$("span", { innerHTML: U.UF.UP.minUnitToMaxUnit(UDE.UserFilesSize), style: { cssText: "color:#006699;" } }, _UDMD);
- _UDSD = $$("div", { style: { "cssText": "width:200px; height:35px; line-height:35px;" } }, _UDTD);
- _UDMD = $$("div", { style: { "cssText": "float:left; width:35px; height:35px;" } }, _UDSD);
- $$("img", { "onerror": U.MD.C.imgError, style: { "cssText": "width:30px; height:30px;" }, src: U.MD.C.getHeadImage(US.userInfo.UserThumbnailImageHead) }, _UDMD);
- $$("div", { style: { "cssText": "float:left;padding:0 8px;max-width:50px;" }, innerHTML: US.userInfo.username }, _UDSD);
- $$("a", { innerHTML: "点击下载", href: "/Pages/Download.htm?id=" + UDE.UserFilesID + "&type=file", target: "_blank" }, _UDSD);
- U.selectEl("*", _el).addAttrArray({
- contenteditable: "false"
- });
- _UTH = "  " + _el.outerHTML + "  ";
- }
- this.r.add(_UTH);
- },
- AddUrl: function (URL) {
- URL = URL.value;
- this.r.add("<a href='" + URL + "' style='color:#3B639F;text-decoration:none;' target='_blank' >" + (URL) + "</a>");
- },
- imgdel: function (UDOD) {
- if (event.button == 2) {
- this.obj.imgt++;
- U.selectEl(UDOD).remove();
- }
- },
- uacp: function () {
- try {
- if (!this.rt.acp) { this.rt.acp() };
- } catch (e) { }
- this.objfl.DAF();
- },
- del: function (UIE, UFID) {
- var _UDE, UJ, _UGE = this.o;
- if (UIE != null) {
- _UGE.splice(UIE, 1);
- } else if (UFID) {
- _UDE = this.getup(UFID);
- if (_UDE[0]) { this.objfl.deleteUploadFile(_UDE[2], _UDE[1]), _UGE[_UDE[1]].splice(_UDE[2], 1), (!_UGE[_UDE[1]].length) && (_UGE.splice(_UDE[1], 1)) };
- }
- if (!_UGE.length) { this.uacp() };
- },
- getup: function (UDID) {
- var i, j, _UDE = this.o;
- for (i = 0; i < _UDE.length; i++) {
- for (j = 0; j < _UDE[i].length; j++) {
- if (_UDE[i][j].id == UDID) {
- return [_UDE[i][j], i, j];
- }
- }
- }
- return [null, -1, -1];
- },
- size: function () {
- U.selectEl(this.content).css("height", U.selectEl(this.content).parentElement().height() - 2 + "px");
- U.selectEl(this.con).css("height", this.content.offsetHeight - (this.ti ? 115 : 70) - (this.head ? 33 : 0) - 1 + "px");
- },
- use: function (UDE, UTF) {
- if (UTF) {
- var i, _el = event.srcElement;
- for (i in UDE) {
- UDE[i] = UTF == "font" ? _el.value + (i == "fontSize" ? "px" : "") : _el.style[UTF];
- }
- }
- this.r.use(UDE);
- },
- cursor: (function () {
- var _UDE, _ = function (UDOD, UDTD) {
- return new _UDE.init(UDOD, UDTD).bind();
- }
- _.prototype = _UDE = {
- init: function (UDOD, UDTD) {
- var _UDID = Guid.guidNoDash();
-
-
-
-
-
-
-
-
-
-
- this.iso = false;
- this.isb = false;
- this.el = UDOD;
- this.eb = UDTD;
- this.id = UDID;
- this.sor = U.UF.E.GetSelectionRange(window, UDTD, {
- "TF": _UDID
- });
- },
- bind: function () {
- U.selectEl(this.el).bind({
- mousedown: function () { this.create(); }
- });
- U.selectEl(this.eb).bind({
- blur: function () { this.blur(); },
- focus: function () { this.focus(); }
- });
- return this;
- },
- blur: function () {
- if (!this.iso) {
- var _UDE = U.UF.E.SORange.OAT[this.id],
- _UL = _UDE.length > 2 ? _UDE.length - 2 : _UDE.length - 1;
- this.sor = _UDE.length > 1 ? _UDE[_UDE.length - 2].OR : this.sor;
- }
- this.isb = true;
- },
- focus: function () {
- this.isb = false;
- },
- create: function () {
- var _el = this.eb,
- _UDTD = event ? event.srcElement : null;
- this.iso = false;
- if ((!_UDTD || (_el !== _UDTD && !U.UF.EL.isChild(_el, _UDTD)) && !this.isb)) { this.sor.CreateR(), this.iso = true };
- },
- add: function (UST) {
- this.eb.focus();
- this.sor.Replace(UST, null, true);
- this.sor.CreateR();
- },
- use: function (UDE) {
- U.UF.E.FontSizeType(this.sor.Parent(), UDE, this.sor, this.id);
- }
- }
- _UDE.init.prototype = _UDE;
- return _;
- })(),
-
- face: function (UDOD, UIE) {
- var _UIMG = "/img/ChatingFaceGif/[face](" + UIE + ").gif";
-
- this.r.add(" " + $$("img", { "onerror": U.MD.C.imgError, "src": _UIMG, "contentEditable": "true" }).outerHTML + " ");
- }
- }
- U.MD.F.N.AsynQW = function (news) {
- var _groupid = news.MessageContent.split(",")[0];
- var _group = U.Json.select(US.friend.group, { GroupManageID: _groupid });
- var _news = {
- FriendsDescript: "由" + news.MessageContent.split(",")[1] + "发起的互联办公群组。",
- IsLogin: 0,
- MessageSendTime: "" + news.MessageContent.split(",")[2] + "",
- UserId: "" + news.MessageContent.split(",")[0] + "", UserImageHead: null,
- UserIndividualitysignature: "", UserName: "" + news.MessageContent.split(",")[1] + "", UserNickName: "" + news.MessageContent.split(",")[1] + "",
- UserThumbnailImageHead: null, tf: 1
- };
- var _files = {
- P: 1,
- UseFilesServerThumbnailName: null,
- UserDirectoryEncrypt: _groupid,
- UserDirectoryID: _groupid,
- UserFilesDescript: null,
- UserFilesExtendName: "" + news.MessageContent.split(",")[4].split(".")[1] + "",
- UserFilesID: "" + news.MessageContent.split(",")[3] + "",
- UserFilesModifyTime: "" + news.MessageSendTime + "",
- UserFilesName: "" + news.MessageContent.split(",")[1] + "", UserFilesServerName: "",
- UserId: "" + news.UserId + ""
- };
- if (_group[0]) {
- var _UKE = U.MD.F.W.isCreateForm(_group[0].GroupManageID);
- if (_UKE[1]) {
- var First = $$("div", { "className": "UD_QWJCSS" }, U.selectEl("div.U_MD_F_C", _UKE[1][1])[0]);
- $$("div", { "className": "UD_QWJCSS_O", "innerHTML": news.MessageContent.split(",")[2] }, First);
- var kInner = $$("div", { "className": "UD_QWJCSS_T" }, First);
- $$("div", { "className": "UD_QWJCSS_T_O", "innerHTML": "" + news.MessageDescript + "邀请您参与编辑文档,快去看看吧" }, kInner);
- var BS = $$("div", { "className": "UD_QWJCSS_T_T", "onclick": function () { U.MD.O.word(US.userInfo, _files); } }, kInner);
- $$("div", { "className": "UD_QWJCSS_T_T_O" }, BS);
- $$("div", { "className": "UD_QWJCSS_T_T_T", "innerHTML": news.MessageContent.split(",")[4] }, BS);
- $$("div", { "className": "UD_QWJCSS_T_T_S", "innerHTML": "....." }, BS);
- }
- U.MD.F.H.recentContacts(_news);
- }
- }
- U.MD.F.N.NCTFU = function () {
- if ($("#U_MD_F_N_Message")[0].style.display == "none") {
- U.selectEl("#U_MD_F_N_Message")[0].style.top = document.body.offsetHeight - 210 + "px";
- U.selectEl("#U_MD_F_N_Message")[0].style.left = document.body.offsetWidth - 360 + "px";
- }
- U.selectEl("#U_MD_F_N_Message")[0].style.display = "block";
-
- }
- U.MD.F.N.NCTBlock = function () {
- U.selectEl("#U_MD_F_N_Message")[0].style.display = "block"
- }
- U.MD.F.N.XXHFXT = function (news) {
- var i, _UDSD, _UDND, _UDTDr,
- _friendform = U.selectEl("#U_MD_F_H_RC")[0],
- _UDTD = U.selectEl("div", _friendform)[0],
- _UDFD = $$("frag");
- _UDTD.innerText = "";
- _UDODT = U.selectEl("#U_MD_D_MG_OA")[0];
- if (news && news.length) {
- for (i = 0; i < news.length; i++) {
- (_UDTDr = $$("div",
- {
- "className": "U_MD_D_MG_OO",
- "title": "消息",
- "onclick": function () {
- U.UF.EV.stopBubble();
- U.MD.F.W.popupFriendsForm(news[i]); U.MD.F.N.clearNews(news[i].MessageID || news[i].GroupMessageID, news, _UDTDr);
- }
- }))
- _UDCD = $$("div", { "className": "U_MD_D_MG_OOI" }, _UDTDr);
- if (news[i].GroupManageID) {
- _UDNDS = $$("div", { "className": "U_MD_F_H_RCOONTw" }, _UDTDr);
- U.MD.F.printGroupHeadImage(news[i], _UDNDS, 4, [35, 35]);
- }
- else {
- $$("img",
- {
- "onerror": U.MD.C.imgError,
- "alt": news[i].FriendsDescript || news[i].UserNickName || news[i].GroupManageName,
- "src": U.MD.C.getHeadImage(news[i].UserThumbnailImageHead)
- },
- _UDCD);
- }
- $$("div", { "className": "U_MD_D_MG_OON U_MD_D_Text_Abbreviation", "innerHTML": news[i].FriendsDescript || news[i].UserNickName || news[i].GroupManageName }, _UDTDr);
- $$("div", { "className": "U_MD_D_MG_OONT U_MD_D_Text_Abbreviation", "innerHTML": "您有" + news[i].count + "消息未读" }, _UDTDr);
- $$("div", { "className": "U_MD_D_MG_OOC", "style": { "cssText": "float:right" }, "innerHTML": "查看" }, _UDTDr);
- _UDODT.appendChild(_UDTDr);
- }
-
- }
- }
- U.UF.MR.DHQH = function (UDOD, UCL, UDE) {
- var i, _UIE, _UDCD,
- _UDAD = U.selectEl($(UDOD).Parent()).Child();
- for (i = 0; i < _UDAD.length; i++) {
- _UDCD = U.selectEl(_UDAD[i]);
- if (_UDAD[i] == UDOD) { _UIE = i };
- if (UCL) { _UDCD[_UIE == i ? "addClass" : "removeClass"](UCL) };
- if (UDE) { _UDCD.addAttrArray((_UIE == i ? UDE[0] : UDE[1])) };
- }
- return _UIE;
- }
|