UCD.js 63 KB

12
  1. Namespace.register("U.CD.LO");U.CD.LO.SetWH=function(){if(!document.body.clientHeight){location.href=location.href;}$("#UCD_TOP")[0].style.height="35px";$("#UCD_CT_Top_Tab")[0].style.height="20px";$("#UCD_CT_BT")[0].style.height="20px";$("#UCD_TT")[0].style.width="160px";$("#UCD_CT")[0].style.width=document.body.clientWidth-160+"px";$("#UCD_Bottom")[0].style.height=document.body.clientHeight-$("#UCD_TOP")[0].clientHeight-5+"px";var e=$("#UCD_Bottom")[0].clientHeight-$("#UCD_CT_Top_Tab")[0].clientHeight-$("#UCD_CT_BT")[0].clientHeight;if(e>0){$("#UCD_CT_CT")[0].style.height=e-10+"px";}$("#UCD_TT_Z")[0].style.height=$("#UCD_Bottom")[0].clientHeight-26-100+"px";var d=$("#UCD_TT")[0],c=$("#UCD_CT")[0],k=$("#UCD_RTree")[0],g=document.body.clientWidth,i=4;if(g!=0){if(d.style.display=="none"&&k.style.display=="none"){c.style.width=g-i+"px";}if(d.style.display=="none"&&k.style.display=="block"){c.style.width=g-k.clientWidth-i+"px";}if(d.style.display=="block"&&k.style.display=="none"){c.style.width=g-d.clientWidth-i+"px";}if(d.style.display=="block"&&k.style.display=="block"){c.style.width=g-d.clientWidth-k.clientWidth-i+"px";}}var f=$("#UCD_CT_SM_IF")[0],a=$("#UCD_CT_IF")[0];f.width=f.parentNode.clientWidth+"px";if(a.clientHeight-20>0){f.style.height=a.clientHeight-20+"px";}var h=$("#UCD_CT_Code")[0],j=$("#UCD_CT_HH_CT")[0],b=$("#UCD_CT_HH_Code")[0];h.style.width=b.clientWidth-j.clientWidth+"px";};U.CD.LO.HEToolbar=function(a){$("#UCD_TT")[0].style.display=$("#UCD_TT")[0].style.display=="none"?"block":"none";U.CD.LO.SetWH();};U.CD.LO.CloseZY=function(){$("#UCD_RTree")[0].style.display="none";U.CD.LO.SetWH();};U.CD.LO.OpenZY=function(){$("#UCD_RTree")[0].style.display="block";U.CD.LO.SetWH();};U.CD.LO.OCZY=function(){$("#UCD_RTree")[0].style.display=$("#UCD_RTree")[0].style.display=="none"?"block":"none";U.CD.LO.SetWH();};U.CD.LO.View=function(){var c=$("#UCD_CT_IF")[0],b=$("#UCD_CT_HH_Code")[0],a=$("#UCD_CT_SM_IF")[0];b.style.display="none";c.style.display="block";c.style.height="100%";U.CD.LO.SetWH();};U.CD.LO.Code=function(){var b=$("#UCD_CT_IF")[0],a=$("#UCD_CT_HH_Code")[0];b.style.display="none";a.style.display="block";a.style.height="100%";U.CD.LO.SetWH();};U.CD.LO.Split=function(){var b=$("#UCD_CT_IF")[0],a=$("#UCD_CT_HH_Code")[0];b.style.height="60%";a.style.height="40%";b.style.display="block";a.style.display="block";U.CD.LO.SetWH();};Namespace.register("U.CD.R");U.CD.R.LoadFC=function(d){if(U.UP.IsImg(d.Name)){var e=US.fs+d.Content.split("|")[1],a=US.fs+d.Content.split("|")[0];var b=$("#UCD_CT_SM_IF")[0].contentWindow.document.body;var c=$$("img",{"src":e,"onerror":[U.MD.C.imgError,(["this",2])]});b.innerHTML="";b.appendChild(c);$$("div",{"onselectstart":function(){return true;},"innerHTML":"图片路径�?+e+"</br>缩略图路径:"+a},b);return;}if(d.Content.split("|").length==2&&d.Content.replace(/\r\n/g,"\n").split("\n").length==1){alert("未知文件类型,非图片文件不能展示,请持续关注后续版本");return;}if(!U.CD.ExistTab(d)){U.CD.R.CreateTab(d);}};U.CD.CloseEdit=function(d,b,c){var a=d.getElementsByTagName("li");if(b==U.CD.U.CUser.CTab){if(a.length==1){U.CD.R.ClearTab();return;}if(b==a[0]){U.CD.ExistTab(a[1].Data);}else{U.CD.ExistTab(a[0].Data);}}d.removeChild(b);};U.CD.R.ClearTab=function(){U.CD.U.CUser.CTab=null;$("#UCD_CT_Code_CT")[0].innerHTML="";U.CD.CD.Init();$("#UCD_CT_Top_Tab")[0].getElementsByTagName("ul")[0].innerHTML="";};U.CD.ExistTab=function(d){var a=false;var e=$("#UCD_CT_Top_Tab")[0].getElementsByTagName("ul")[0];var c=e.getElementsByTagName("li");for(var b=0;b<c.length;b++){if(c[b].id=="Tab"+d.ID){c[b].style.backgroundColor="white";a=true;if(U.CD.U.CUser.CTab){c["Tab"+U.CD.U.CUser.CTab.Data.ID].Data.Content=$("#UCD_CT_Code_CT")[0].innerHTML;}U.CD.R.FlushCodePage(c[b].Data);U.CD.U.CUser.CTab=c[b];}else{c[b].style.backgroundColor="#ccc";}}return a;};U.CD.R.CreateTab=function(b){var d=$("#UCD_CT_Top_Tab")[0].getElementsByTagName("ul")[0];U.CD.R.MoreTab(d);var c=$("#UCD_CT_Top_Tab")[0].getElementsByTagName("ul")[0];var a=$$("li",{"style":{"background-color":"white"},"id":"Tab"+b.ID},c);$$("span",{"innerHTML":b.Name,"title":b.Name,"onclick":[U.CD.R.LoadFC,([b])]},a);$$("div",{"className":"UCD_CT_Top_Tab_Close","innerHTML":"X","onclick":[[U.UF.EV.stopBubble],[U.CD.CloseEdit,([c,a,b])]]},a);if(U.CD.U.CUser.CTab){d.getElementsByTagName("li")["Tab"+U.CD.U.CUser.CTab.Data.ID].Data.Content=$("#UCD_CT_Code_CT")[0].innerHTML;}a.Data=b;U.CD.U.CUser.CTab=a;U.CD.R.FlushCodePage(a.Data);};U.CD.R.MoreTab=function(b){var c=Math.floor($("#UCD_CT")[0].clientWidth/160);if(b.getElementsByTagName("li").length>=c){var a=b.getElementsByTagName("li")[0];if(a==U.CD.U.CUser.CTab){U.CD.U.CUser.CTab=b.getElementsByTagName("li")[1];}b.removeChild(a);}};U.CD.R.FlushCodePage=function(a){if(a.Content==""){U.CD.CD.Init(a);}else{U.CD.CD.DisNode(a);}};U.CD.R.Save=function(a){$("#UCD_TOP_L_BC")[0].onclick=function(){var e=U.CD.U.IsUSelf();if(!e){U.CD.U.LoginApply();return;}if(!a){var c=U.CD.U.CUser.TNode[0].TNode,f=null,b;f=U.CD.U.CUser.CurrentNode;if(f){b="<div style=' color:red;text-align:left; margin-left:10px; height:25px;'>该文件已经自动选取了项�?</div>";b+="<div style='text-align:left;margin-left:30px; height:16px; '> 确认将建立新的index.htm文件�?<span style=' color:blue;'>"+f.Name+"'</span>项目�? </div>";b+="<div style='text-align:left;margin-left:30px; height:16px; '>取消不做任何操作.建议在项目面板中新建文件�?/div>";U.UF.UI.Confirm(b,[U.CD.R.SaveNewFile,([f,e])],"");}else{U.UF.UI.Confirm("<div style=' color:red;text-align:left; margin-left:10px; height:25px;'>您还未创建过项目!</div><div> 确认将建立一个名为Test的项目,取消不做任何操作</div> ",[U.CD.R.SaveNewFolder,([e])],"");}return;}var d=escape($("#UCD_CT_Code_CT")[0].innerHTML);U.A.Request(U.CD.AjaxUrl,(["Update_FileContent",e.userid,a.Deep,a.ID,d]),U.CD.R.SaveAsyn,(["",a]));};};U.CD.R.SaveAsyn=function(d){var b,c=d.context[1];if(d.value){var a=$("#UCD_CT_Top_Tab")[0].getElementsByTagName("ul")[0].getElementsByTagName("li");for(b=0;b<a.length;b++){if(a[b].id=="Tab"+c.ID){a[b].Data.Content=c.Content;alert("保存"+c.Name+"成功");return;}}}else{alert("保存失败");}};U.CD.R.SaveNewFolder=function(b){var c={"Name":"Test","CreateDate":new Date(),"Type":"folder","ID":Guid.newGuid(),"Deep":2,"TNode":[],"IsPublic":true,"IsDelete":false};var a=U.CD.U.CUser.TNode[0];U.A.Request(U.CD.AjaxUrl,(["Add_Folder",b.userid,a.ID,a.Deep,c.ID,c.Name,U.CD.USLang]),U.CD.R.SaveNewFile,(["",b]));};U.CD.R.SaveNewFile=function(r,u){var _c,_pnode,node;if(u){_c=u;_pnode=r;}else{if(r.value!="false"){_c=r.context[1];_pnode=eval("("+r.value+")");}else{alert("自动创建项目异常�?);return;}}node={"Name":"index.htm","CreateDate":new Date(),"Type":"file","ID":Guid.newGuid(),"Deep":parseInt(_pnode.Deep)+1,"IsPublic":true};U.A.Request(U.CD.AjaxUrl,(["Add_File",_c.userid,_pnode.ID,_pnode.Deep,node.ID,node.Name]),U.CD.R.SaveNewOK,(["",_c,_pnode,u]));};U.CD.R.SaveNewOK=function(r){if(r.value!="false"){var _c=r.context[1];var _pnode=r.context[2];var u=r.context[3];var _file=eval("("+r.value+")");_pnode.TNode.length=0;_pnode.TNode.push(_file);if(!u){U.CD.RT.F_L_Node(_pnode,_c.userid,$("#UCD_RT_Tree")[0]);U.CD.RT.LV(_pnode.TNode,$("#UCD_RT_Tree")[0].firstChild,_c.userid);U.CD.U.CUser.CurrentNode=_pnode;}else{U.CD.RT.LV(_pnode.TNode,$("#UCD_RT_Tree")[0].firstChild,_c.userid);}U.CD.R.LoadFC(_file);alert("初始化用户文件成�?);}else{alert("初始化用户数据失�?);}};U.CD.R.NewFile=function(){var a=U.CD.U.IsUSelf();if(!a){U.CD.U.LoginApply();return;}if(U.CD.U.CUser.TNode[0].TNode.length>0){U.CD.RT.CP_NF(U.CD.U.CUser.CurrentSO,a.userid,U.CD.U.CUser.CurrentNode);}else{U.CD.RT.CProject(a.userid,U.CD.U.CUser.TNode[0]);}};U.CD.R.run=function(){var c;if($("#UCD_IF")[0]){c=$("#UCD_IF")[0];}else{var a=$$("div",{"id":"UCD_RUN"},document.body);var b=$$("div",{"className":"UCD_RUN_Head"},a);$$("div",{"className":"UCD_RUN_Refesh","innerHTML":"重新运行"},b);$$("div",{"className":"UCD_RUN_Close","innerHTML":"关闭","onclick":function(){a.style.display="none";}},b);var c=$$("iframe",{"className":"UCD_RUN_Iframe","id":"UCD_IF"},a);}$("#UCD_RUN")[0].style.display="block";var c=$("#UCD_IF")[0];c.src="RS.htm";U.MD.IframeLoad(c,[[U.CD.CD.ILAsync,([c,$("#UCD_CT_Code_CT")[0]])]]);};U.CD.R.OpenRun=function(){var b=U.CD.CD.ExecIFText($("#UCD_CT_Code_CT")[0]);var d=$$("textarea",{"value":b});b=d.value;var a=window.open("javascript:void((function(){document.open();document.domain='1473.cn';document.close()})())","_blank","");var c=a.document.open("text/html","replace");a.opener=null;c.write(b);c.close();};U.CD.R.Stop=function(){if($("#UCD_RUN")[0]){$("#UCD_RUN")[0].style.display="none";}};Namespace.register("U.CD");U.UF.EV.addPrototype(Object,U.E.E);U.UF.S.FileName=/^([a-zA-Z0-9\s\._-]+)$/;U.UF.S.ZWFileName=/^[0-9a-zA-Z\u4e00-\u9fa5\._-]{1,40}\\*$/;U.CD.AjaxUrl="http://d-back.1473.cn:1337/";U.CD.AjaxCross="http://d-back.1473.cn:1337/CD.htm";U.CD.TipR=null;U.CD.Loading=null;U.CD.USLang="USHtml";U.CD.DType={"TW":"提问","ZY":"作业","JH":"精华","CT":"控件"};U.CD.Init=function(){U.CD.TipR=U.UF.E.GetSelectionRange(window,$("#UCD_CT_Code_CT")[0],{"TF":"UCD_CODE","CB":U.CD.R.Wrap});document.onclick=document.body.onmousedown=U.M.apply(this,[[U.CD.Tip.HidTip]]);U.UF.EV.addPrototype(Object,U.E.E);U.ACD=U.A;U.CD.AsynLI();U.CD.CD.Init();var a=U.M.GetUF();if(a){setTimeout(function(){U.CD.Url.AsynUrlGuide(a);},1000);}else{setTimeout(function(){U.CD.SL.Init();},1000);}U.CD.LO.SetWH();U.CD.Tip.Init();U.CD.Loading=$("#UCD_LD")[0];U.CD.Loading.style.display="none";};U.CD.AsynLI=function(){var e=document.createDocumentFragment(),c,b={"U_CD":"ACD","U_Main":"A","U_Disk":"Adisk","reply":"RY","TF":true},a=[["U_CD",U.CD.AjaxCross,"ACD"],["U_Main","http://main.1473.cn/index.htm","A"],["U_Disk","http://disk.1473.cn/index.htm","Adisk"],["UL_IF","http://www.1473.cn/NewPage.htm"],["reply","http://reply.1473.cn/index.htm","RY"]];U.D.ITF=a.length;for(var d=0;d<a.length;d++){c=$$("iframe",{"id":a[d][0],"name":a[d][0],"src":a[d][1],"width":0,"height":0},e);U.MD.IframeLoad(c,[[U.CD.AsynLIFA,([b])]]);}document.body.appendChild(e);};U.CD.AsynLIFA=function(a){for(var b in a){if(a.hasOwnProperty(b)&&b!="TF"){if(window.frames[b].U&&window.frames[b].U.A!==(window.U)[a[b]]){(window.U)[a[b]]=window.frames[b].U.A;Delete(a,b);}}}this.contentWindow.name=this.id;if(a["TF"]&&(window.frames["U_Main"].U!=null&&(window.frames["U_Main"].U.A===U.A)&&U.Adisk!=null)){a["TF"]=false;U.CD.AsynJWH();setTimeout(U.CD.U.CookieL,100);}};U.CD.AsynJWH=function(){};window.onresize=U.CD.LO.SetWH;window.onbeforeunload=function(){};Namespace.register("U.CD.CD");U.UF.S.SplitHTML=function(e){var c,d,b=[];for(c=0;c<e.length;c++){if(e[c]=="<"){d=c;}if(e[c]==">"){b.push(e.substring(d,c+1));}}return b;};U.CD.CD.AppendHTML=function(f){var e=$("#UCD_CT_HH_CT")[0],g=$("#UCD_CT_Code_CT")[0];var l=U.CD.CD.SplitHTML(f.outerHTML);var a=g.getElementsByTagName("div");for(var d=0;d<a.length;d++){if(a[d].innerText.TrimAll().toLowerCase()=="<body>"){var b=a[d].innerText.indexOf(">")-1;for(var c=0;c<l.length;c++){var k=$$("div",{"className":"UCD_R_C_Line","innerText":l[c].AddPreSpace(b)});g.insertBefore(k,a[d+1+c]);U.CD.CD.DrawLine(e,g);}return;}}};U.UF.EV.addPrototype(String,"AddPreSpace",function(c){var b,a="";for(b=0;b<c;b++){a+=" ";}return a+this;});U.CD.CD.Init=function(a){U.CD.CD.DrawCode(U.CD.CD.InitCode(),false);U.CD.R.Save(a);};U.CD.CD.InitAsyn=function(a){U.CD.CD.DrawCode(a.contentWindow.document.documentElement.outerHTML,true);};U.CD.CD.DisNode=function(a){var b=$("#UCD_CT_Code_CT")[0];b.innerHTML=a.Content;U.CD.CD.DrawCode(b.innerText,false);U.CD.R.Save(a);};U.CD.R.Wrap=function(c,a){var g=$("#UCD_CT_HH_CT")[0],h=$("#UCD_CT_Code_CT")[0],d=$("#UCD_TP_TB")[0];var e=event.keyCode;if(e==9){}if(e==46){var j,b=g.childNodes.length-h.childNodes.length;for(var f=0;f<=b;f++){j=g.lastElementChild||g.lastChild;g.removeChild(j);}}if(e==10||e==13){if(d.style.display=="none"){if(!U.CD.CD.StrFilter(U.CD.TipR.Parent())){U.M.StopDefault();return;}U.CD.CD.DrawLine(g,h);U.CD.CD.FushIframe(h);}}if(e==0){d.style.display="none";}if(e==190&&window.event.shiftKey==false){if(U.CD.Tip.IsJs(a[0])){return;}if(U.CD.Tip.IsCss()){}}if(e==46){}g.style.height=h.scrollHeight+"px";};U.CD.CD.SplitHTML=function(b,c){if(c){return U.CD.CD.SplitHTMLInit(b);}var a=U.UF.CI.getBrowser();return b.replace(/\r\n/g,"\n").split("\n");};U.CD.CD.SplitHTMLInit=function(f){var c,d,g=0,b=[];for(c=0;c<f.length;c++){if(f.charAt(c)=="<"){if(g>d){if(f.substring(g,c).replace(/\s+/g,"")!=""){b.push(f.substring(g,c));}}d=c;}if(f.charAt(c)==">"){if(f.charAt(c+1)!="<"){g=c+1;}b.push(f.substring(d,c+1));}}return b;};U.CD.CD.DrawCode=function(c,e){var f=$("#UCD_CT_HH_CT")[0],d=$("#UCD_CT_Code_CT")[0];var b=U.CD.CD.SplitHTML(c,e),a;d.innerHTML="";f.innerHTML="";for(a=0;a<b.length;a++){$$("div",{"className":"UCD_R_Tab_Line","innerHTML":a+1},f);U.CD.CD.AllFilComments(b[a],d);}f.style.height=d.scrollHeight+"px";U.CD.CD.FushIframe(d);};U.CD.CD.DrawLine=function(c,a){var b=c.getElementsByTagName("div").length+1;$$("div",{"className":"UCD_R_Tab_Line","innerHTML":b},c);c.style.height=a.scrollHeight+"px";};U.CD.CD.FushIframe=function(a){try{U.CD.CD.ExecIF(a);}catch(b){U.CD.CD.AlertDomain();}};U.CD.CD.ReInitDomain=function(){};U.CD.CD.AlertDomain=function(){alert("所有文件必须引�?script src='http://d.1473.cn/UJ.js' type='text/javascript'><\/script>,否则会拒绝访问,请仔细检�?);};U.CD.CD.Is1473Domain=function(b){var a,c=b.replace(/\r\n/g,"\n").split("\n");for(a=0;a<c.length;a++){if(c[a].toLowerCase().indexOf("http://d.1473.cn/UJ.js".toLowerCase())>-1){return b;}}if(c.length>7){c.splice(5,0,"<script src='http://d.1473.cn/UJ.js' type='text/javascript'><\/script>");}if(c.length<4){b=U.CD.CD.InitCode(b);}return b;};U.UF.EV.addPrototype(String,"Rtrim",function(){return this.replace(/(\s*$)/g,"");});U.CD.CD.ExecIF=function(c){var b=U.CD.CD.ExecIFText(c);var a=$("#UCD_CT_SM_IF")[0].contentWindow.document.open("text/html","replace");a.write(b);a.close();};U.CD.CD.ExecIFText=function(b){var a=b.innerText||b.textContent;if(U.UF.CI.getBrowser().browser=="chrome"){a=U.CD.CD.ExecIFCompChrome(a);}if(U.UF.CI.getBrowser().browser=="firefox"){a=U.CD.CD.ExecIFCompChrome(a);}if(U.UF.CI.getBrowser().browser=="rv"){a=U.CD.CD.ExecIFCompChrome(a);}a=a+"\n"+"<script src='http://d.1473.cn/UJ.js' type='text/javascript'><\/script>";a=a+"\n"+"<link href='http://d.1473.cn/UJ.css' rel='stylesheet' type='text/css' />";return a;};U.UF.EV.addPrototype(String,"RemoveNBSP",function(){return this.replace(/&nbsp;/ig,"");});U.CD.CD.ExecIFCompChrome=function(b){var c=b.replace(/\r\n/g,"\n").split("\n"),a,b="";for(a=0;a<c.length;a++){c[a]=c[a].lTrim().Rtrim();b+=c[a]+"\n";}return b;};U.CD.CD.InitCode=function(b){var a="<html xmlns='http://www.w3.org/1999/xhtml'>\n<head>\n <title></title>\n <link href='http://d.1473.cn/UJ.css' rel='stylesheet' type='text/css'/>\n <script src='http://d.1473.cn/UJ.js' type='text/javascript'><\/script>\n <!--css代码,js代码写在下面-->\n</head>\n<body>\n <!-- html元素写在下面 -->\n";if(b){a+=b+"\n";}a+="</body>\n</html>\n\n\n\n\n\n\n\n\n\n\n";return a;};U.UF.EV.addPrototype(String,"InsertStr",function(b,d){var a=this.substr(0,d);var c=this.substr(d,this.length);return a+b+c;});U.UF.C.IndexOfParent=function(d){var c=d.parentNode,a,b;if(!c){return -1;}b=c.childNodes;for(a=0;a<b.length;a++){if(b[a]==d){return a;}}return -1;};U.CD.CD.StrFilter=function(c){var b=c.innerText;U.CD.CD.FilterComments(b);var a=U.UF.CI.getBrowser();if(a.browser=="msie"&&(a.ver=="7.0"||a.ver=="8.0")){if(b.indexOf("!!")>-1){alert("IE7,8输入'!!'会导致浏览器假死,请仔细检�?");return false;}}return true;};U.CD.CD.GetInPos=function(c){var a,b;for(b=0;b<100;b++){if(c.parentNode.id!="UCD_CT_Code_CT"){c=c.parentNode;}else{a=c;break;}}return U.UF.C.IndexOfParent(a);};U.CD.CD.FilterComments=function(a){var b=U.CD.TipR.Parent(),c=false;if(a.indexOf("<!--")>=0&&a.indexOf("-->")>=0){c=true;}if(a.lTrim().substr(0,2)=="//"){c=true;}if(c){$(b).addAttrArray({"style":{"cssText":"color:green"}});}else{$(b).addAttrArray({"style":{"cssText":"color:#333"}});}};U.UF.EV.addPrototype(String,"lTrim",function(){return this.replace(/(^\s*)/g,"");});U.CD.CD.AllFilComments=function(a,b){var c=false;if(a.indexOf("<!--")>=0&&a.indexOf("-->")>=0){c=true;}if(a.lTrim().substr(0,2)=="//"){c=true;}if(c){$$("div",{"style":{"color":"green"},"className":"UCD_R_C_Line","innerText":a},b);}else{$$("div",{"className":"UCD_R_C_Line","innerText":a},b);}};U.CD.R.NoUse=function(c){var e=$("#UCD_CT_HH_CT")[0];var b=U.CD.R.RemoveMoreLine(c);c.innerHTML=b.innerHTML;e.innerHTML="";var d=b.getElementsByTagName("div");if(d.length==0){$$("div",{"className":"UCD_R_C_Line","innerHTML":""},$("#UCD_CT_Code_CT")[0]);}for(var a=0;a<d.length;a++){$$("div",{"className":"UCD_R_Tab_Line","innerHTML":a+1},e);}};U.CD.R.RemoveMoreLine=function(e){if(e.innerHTML==""){return e;}var d=document.createElement("div");var b=e.getElementsByTagName("div");for(var a=0;a<b.length;a++){if(!b[a].getElementsByTagName("div").length>0){d.appendChild(b[a].cloneNode(true));}}return d;};U.CD.CD.IFReload=function(){if(U.UF.CI.getBrowser().browser=="chrome"){U.CD.CD.ExecIF($("#UCD_CT_Code_CT")[0]);}else{var a=window.frames["UCD_CT_SM_IF"].document;a.location.reload();}};U.UP.IsHTML=function(){};U.CD.CD.IsDeleteDomain=function(b){var c=b.replace(/\r\n/g,"\n").split("\n"),a;for(a=0;a<c.length;a++){if(c[a].lTrim().Rtrim()=="<script src='http://d.1473.cn/UJ.js' type='text/javascript'><\/script>"){U.CD.CD.AlertDomain();return true;}}return false;};U.CD.CD.FillErrorInfo=function(){var a="<html xmlns='http://www.w3.org/1999/xhtml'>\n<head>\n <title></title>\n <link href='http://d.1473.cn/UJ.css' rel='stylesheet' type='text/css' />\n <script src='http://d.1473.cn/UJ.js' type='text/javascript'><\/script>\n</head>\n<body>\n<div style='color:red; font-size:20px;'>\n出错啦!!!\n</div>\n<div>\n代码中必须包含跨域文件http://d.1473.cn/uj.js。这是所有浏览器公有问题。\n</div>\n</body>\n</html>";U.CD.CD.DrawCode(a,false);};Namespace.register("U.CD.C");U.CD.C.Button=function(){return $$("input",{"type":"button","style":{"cssText":"width:120px; height:25px; position:absolute;"},"value":"按钮"});};U.CD.C.Div=function(){return $$("div",{"style":{"cssText":"width:80px; height:80px; background-color:Red; text-align:center; position:absolute;"},"innerHTML":"最基本元素"});};U.CD.C.Img=function(){return $$("img",{"style":{"cssText":"width:200px; height:200px; background-color:Red; text-align:center; position:absolute;"},"src":"images/UCD_RT.png"});};U.CD.C.Textarea=function(){return $$("textarea",{"style":{"cssText":"width:360px; height:160px; border:1px solid gray; position:absolute;"},"value":"文本�?});};U.CD.C.Reset=function(){return $$("input",{"type":"reset","style":{"cssText":"width:120px; height:25px; position:absolute;"},"value":"重置"});};U.CD.C.Submit=function(){return $$("input",{"type":"submit","style":{"cssText":"width:120px; height:25px; position:absolute;"},"value":"提交"});};U.CD.C.Text=function(){return $$("input",{"type":"text","style":{"cssText":"width:150px; height:18px; position:absolute;"}});};U.CD.C.Password=function(){return $$("input",{"type":"password","style":{"cssText":"width:150px; height:18px; position:absolute;"}});};U.CD.C.Radio=function(){return $$("input",{"type":"radio","style":{"cssText":"position:absolute;"}});};U.CD.C.Checkbox=function(){return $$("input",{"type":"checkbox","style":{"cssText":"position:absolute;"}});};U.CD.C.P=function(){return $$("p",{"style":{"cssText":" "},"innerHTML":"这是一个段�?});};U.CD.C.H=function(){return $$("h3",{"style":{"cssText":""},"innerHTML":"这是一个标�?});};U.CD.C.Select=function(){var a=new Array("操作","设置栏目","更多设置","更多选项");var d=$$("select",{"style":{"cssText":"position:absolute;"}});for(var c=0;c<a.length;c++){var b=$$("option",{"style":{},"innerHTML":a[c]},d);}return d;};U.CD.C.SelectAsyn=function(d,e,g,j){var c=new Array("操作","设置栏目","更多设置","更多选项");var j=parseInt(j.value);if(j>=20||j<=0){alert("请输入正确数�?-20�?);return;}var h=$$("select",{"style":{"cssText":"position:absolute;"}});for(var f=0;f<j;f++){var b=$$("option",{"style":{},"innerHTML":f},h);}U.CD.L.AppendIF(h,d,e,g);};U.CD.C.Table=function(b,c,e){var g=$$("div",{"className":"UCD_TR_CP"});$$("div",{"className":"UCD_TR_CP_MS","innerHTML":"请输入行数:"},g);var h=$$("input",{"className":"UCD_RT_CP_Input"},g);$$("div",{"className":"UCD_TR_CP_MS","innerHTML":"请输入列数:"},g);var d=$$("input",{"className":"UCD_RT_CP_Input"},g);var f=([b,c,e,h,d]);var a=new U.UF.UI.Dialog(null,null,"创建表格Table",350,"","","","","",U.M.apply(g,[[U.CD.C.TableAsyn,f]]),g,"");U.D.PopupWindow(a.Create());};U.CD.C.TableAsyn=function(f,g,b,d,a){var d=parseInt(d.value);var a=parseInt(a.value);if(d<=0||a<=0){alert("请输入正确数值(0-30�?);return;}if(d>30||a>30){alert("数值过大(0-30�?);return;}var h="";var e,c;for(e=0;e<d;e++){h+="<tr style='border:1px solid green;'>";for(c=0;c<a;c++){h+="<td style='border:1px solid green;'>&nbsp;</td>";}h+="</tr>";}var k=$$("table",{"style":{"cssText":"width:300px; height:200px; position:absolute; border:1px solid blue;"}});setTableInnerHTML(k,h);U.CD.L.AppendIF(k,f,g,b);};function setTableInnerHTML(d,c){if(navigator&&navigator.userAgent.match(/msie/i)){var a=d.ownerDocument.createElement("div");a.innerHTML="<table><tbody>"+c+"</tbody></table>";if(d.tBodies.length==0){var b=document.createElement("tbody");d.appendChild(b);}d.replaceChild(a.firstChild.firstChild,d.tBodies[0]);}else{d.innerHTML=c;}}U.CD.C.Ol=function(b,c,d){var f=$$("div",{"className":"UCD_TR_CP"});$$("div",{"className":"UCD_TR_CP_MS","innerHTML":"请输入列表行数:"},f);var g=$$("input",{"className":"UCD_RT_CP_Input"},f);var e=([b,c,d,g]);var a=new U.UF.UI.Dialog(null,null,"创建Ol",350,"","","","","",U.M.apply(f,[[U.CD.C.OlAsyn,e]]),f,"");U.D.PopupWindow(a.Create());};U.CD.C.Ul=function(b,c,d){var f=$$("div",{"className":"UCD_TR_CP"});$$("div",{"className":"UCD_TR_CP_MS","innerHTML":"请输入列表行数:"},f);var g=$$("input",{"className":"UCD_RT_CP_Input"},f);var e=([b,c,d,g]);var a=new U.UF.UI.Dialog(null,null,"创建Ul",350,"","","","","",U.M.apply(f,[[U.CD.C.UlAsyn,e]]),f,"");U.D.PopupWindow(a.Create());};U.CD.C.OlAsyn=function(d,e,g,j){var c=new Array("新闻资讯","体育竞技","娱乐八卦","前沿科技","环球财经","天气预报","房产家居","网络游戏");var j=parseInt(j.value);if(j>=20||j<=0){alert("请输入正确数�?-20�?);return;}var h=$$("ol",{"style":{"cssText":""}});for(var f=0;f<j;f++){var b=$$("li",{"style":{},"innerHTML":c[f]},h);}U.CD.L.AppendIF(h,d,e,g);};U.CD.C.UlAsyn=function(d,e,g,j){var c=new Array("新闻资讯","体育竞技","娱乐八卦","前沿科技","环球财经","天气预报","房产家居","网络游戏");var j=parseInt(j.value);if(j>=20||j<=0){alert("请输入正确数�?-20�?);return;}var h=$$("ul",{"style":{"cssText":""}});for(var f=0;f<j;f++){var b=$$("li",{"style":{"list-style-type":"disc"},"innerHTML":c[f]},h);}U.CD.L.AppendIF(h,d,e,g);};U.CD.C.Navigation=function(){var e=$$("div",{"style":{"cssText":" position:absolute;"}});var c=$$("a",{"innerHTML":"首页","href":"#","style":{"cssText":"margin-left:10px;"}},e);var b=$$("a",{"innerHTML":"资料","href":"#","style":{"cssText":"margin-left:10px;"}},e);var a=$$("a",{"innerHTML":"信息","href":"#","style":{"cssText":"margin-left:10px;"}},e);var d=$$("hr",{"style":{"cssText":"width:300px;"}},e);return e;};U.CD.C.Pagination=function(){var e=$$("div",{"style":{"cssText":" position:absolute;"}});var g=$$("div",{"style":{"cssText":"margin:10px;"}},e);var f=$$("div",{"innerHTML":"上一�?,"href":"#","style":{"cssText":"color:#5AA3CE; width:75px; height:25px; line-height:25px; text-align:center; border:1px solid #DDDDDD;list-style:none; float:left;"}},g);var c=$$("div",{"innerHTML":"1","href":"#","style":{"cssText":"color:#5AA3CE; width:25px; height:25px; line-height:25px; text-align:center; border:1px solid #DDDDDD; list-style:none; float:left;"}},g);var b=$$("div",{"innerHTML":"2","href":"#","style":{"cssText":"color:#5AA3CE;width:25px; height:25px; line-height:25px; text-align:center; border:1px solid #DDDDDD; list-style:none; float:left;"}},g);var a=$$("div",{"innerHTML":"3","href":"#","style":{"cssText":"color:#5AA3CE;width:25px; height:25px; line-height:25px; text-align:center; border:1px solid #DDDDDD; list-style:none; float:left;"}},g);var d=$$("div",{"innerHTML":"下一�?,"href":"#","style":{"cssText":"color:#5AA3CE;width:75px; height:25px; line-height:25px; text-align:center; border:1px solid #DDDDDD;float:left; list-style:none;"}},g);var h=$$("div",{"style":{"cssText":"clear:both;"}},e);return e;};U.CD.C.Switchingcard=function(){var b=$$("div",{"style":{"cssText":"position:absolute;"}});var f=$$("div",{"style":{"cssText":"margin-left:0px;"}},b);var h=$$("div",{"id":"first","onclick":"switching(this)","innerHTML":"第一部分","style":{"cssText":"color:#5AA3CE; width:75px; height:25px; line-height:25px; text-align:center; border:1px solid #DDDDDD;list-style:none; float:left; margin:0px;"}},f);var e=$$("div",{"id":"second","onclick":"switching(this)","innerHTML":"第二部分","style":{"cssText":"color:#5AA3CE; width:75px; height:25px; line-height:25px; text-align:center; border:1px solid #DDDDDD;float:left; list-style:none;"}},f);var g=$$("hr",{"style":{"cssText":"clear:both;"}},b);var a=$$("div",{"id":"show_div","style":{}},b);var c=$$("div",{"id":"first_div","style":{"cssText":"border:1px solid #DDDDDD;width:300px;height:100px;display:block;"},"innerHTML":"<p>第一部分内容</p>"},a);var d=$$("div",{"id":"second_div","style":{"cssText":"border:1px solid #DDDDDD;width:300px;height:100px;display:none;"},"innerHTML":"<p>第二部分内容</p>"},a);var a=$$("div",{"style":{},"innerHTML":"<script>function switching(obj){var divs = document.getElementById('show_div').childNodes; for(var iLoop = 0;divs.length>iLoop;iLoop++){divs[iLoop].style.display = 'none'; }document.getElementById(obj.id+'_div').style.display='block';}<\/script>"},b);return b;};U.CD.C.Search=function(){var a=$$("div",{"style":{"cssText":"position:absolute;"}});$$("input",{"type":"text","style":{"cssText":"width:150px; height:25px;float:left;border:1px solid #cccccc;"}},a);var b=$$("div",{"style":{"cssText":"width:50px; background-color:#e6e6e6; height:25px; padding-top:3px; float:left; margin-left:10px;border:1px solid #cccccc;"}},a);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; margin-left:11px; color:#333333;font-size:14px;"},"innerHTML":"搜索"},b);return a;};U.CD.C.Form=function(){var a=$$("form",{"style":{"cssText":"position:absolute;"}});var e=$$("div",{},a);$$("div",{"style":{"cssText":"margin-top:15px;"},"innerHTML":"电子邮箱�?},e);$$("input",{"type":"text","style":{"cssText":"width:300px;height:25px;margin-top:10px;border:1px solid #cccccc;"}},e);var b=$$("div",{},a);$$("div",{"style":{"cssText":"margin-top:15px;"},"innerHTML":"密码�?},b);$$("input",{"type":"text","style":{"cssText":"width:300px;height:25px;margin-top:10px;border:1px solid #cccccc;"}},b);var d=$$("div",{"style":{"cssText":"margin-top:15px;"}},a);$$("input",{"type":"checkbox","style":{"cssText":"float:left;margin-top:-3px;"}},d);$$("div",{"style":{"cssText":"width:100px; float:left;font-size:14px;"},"innerHTML":"记住登录状�?},d);var c=$$("div",{"style":{"cssText":"width:50px; background-color:#e6e6e6; height:25px; padding-top:3px; float:left; margin-left:10px;border:1px solid #cccccc;margin-top:-5px;"}},d);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; margin-left:11px; color:#333333;font-size:14px;"},"innerHTML":"登录"},c);return a;};U.CD.C.Register=function(){var l=$$("form",{"style":{"cssText":"position:absolute;"}});var i=$$("div",{},l);$$("div",{"style":{"cssText":"margin-top:15px;font-size:25px; color:Orange;"},"innerHTML":"用户注册"},i);var d=$$("div",{"style":{"cssText":"margin-top:30px;"}},i);var a=$$("div",{"style":{"cssText":"margin-top:35px;"}},d);$$("div",{"style":{"cssText":"margin-left:15px;float:left;"},"innerHTML":"用户名:"},a);$$("input",{"type":"text"},a);var h=$$("div",{"style":{"cssText":"margin-top:35px;"}},d);$$("div",{"style":{"cssText":"margin-left:30px;float:left;"},"innerHTML":"密码�?},h);$$("input",{"type":"text"},h);var e=$$("div",{"style":{"cssText":"margin-top:35px;"}},d);$$("div",{"style":{"cssText":"float:left;"},"innerHTML":"确认密码�?},e);$$("input",{"type":"text"},e);var f=$$("div",{"style":{"cssText":"margin-top:35px;"}},d);$$("div",{"style":{"cssText":"float:left;"},"innerHTML":"用户全称�?},f);$$("input",{"type":"text"},f);var b=$$("div",{"style":{"cssText":"margin-top:35px;"}},d);$$("div",{"style":{"cssText":"float:left;margin-left:30px;"},"innerHTML":"电话�?},b);$$("input",{"type":"text"},b);var j=$$("div",{"style":{"cssText":"margin-top:35px;"}},d);$$("div",{"style":{"cssText":"float:left;margin-left:30px;"},"innerHTML":"地址�?},j);$$("input",{"type":"text"},j);var g=$$("div",{"style":{"cssText":"margin-top:35px;"}},d);$$("div",{"style":{"cssText":"float:left;margin-left:30px;"},"innerHTML":"邮箱�?},g);$$("input",{"type":"text"},g);var k=$$("div",{"style":{"cssText":"margin-top:35px;"}},d);$$("div",{"style":{"cssText":"float:left;margin-left:35px;"},"innerHTML":"QQ�?},k);$$("input",{"type":"text"},k);var c=$$("div",{"style":{"cssText":"margin-top:50px; margin-left:100px;"}},d);$$("input",{"type":"button","value":"确定"},c);$$("input",{"type":"reset"},c);return l;};U.CD.C.ShadeForms=function(){return $$("input",{"type":"button","style":{"cssText":"width:120px; height:25px; position:absolute;"},"value":"按钮","onclick":U.CD.C.Shade()});};U.CD.C.Shade=function(){var coverDiv=$$("div",{"style":{"cssText":"position:absolute;background:#000000;left:0px;top:0px;z-Index:0;"}});document.body.appendChild(coverDiv);var _div=$$("div",{"style":{"cssText":"position:absolute;background:white;left:35%;top:10%;width:500px; height:200px;z-Index:1;"}},coverDiv);var _Buttondiv=$$("div",{"style":{"cssText":"width:50px; background-color:#0044cc; height:25px; padding-top:6px; margin-top:150px;margin-left:420px;float:left;"}},_div);$$("a",{"href":"#","style":{"cssText":"color:white; text-decoration:none; margin-left:12px;"},"innerHTML":"关闭"},_Buttondiv);var _Buttondiv1=$$("div",{"style":{"cssText":"width:80px; background-color:#e6e6e6; height:25px; float:left;padding-top:6px; margin-left:320px;float:left;margin-top:-30px;"}},_div);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; margin-left:12px; color:black;"},"innerHTML":"保存设置"},_Buttondiv1);var bodySize=[];with(document.documentElement){bodySize[0]=(scrollWidth>clientWidth)?scrollWidth:clientWidth;bodySize[1]=(scrollHeight>clientHeight)?scrollHeight:clientHeight;}coverDiv.style.width=bodySize[0]+"px";coverDiv.style.height=bodySize[1]+"px";(document.all&&window.ActiveXObject&&!window.opera)?coverDiv.style.filter="Alpha(Opacity=60)":coverDiv.style.opacity=0.6;};U.CD.C.ButtonGrop=function(){var e=$$("div",{"style":{"cssText":"width:122px; height:30px; border:1px solid #cccccc; position:absolute;"}});var d=$$("div",{"style":{"cssText":"width:30px; height:30px; float:left;border:1px solid #cccccc;padding-top:5px;"}},e);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; padding-left:8px;color:#000000;font-size:14px;"},"innerHTML":"�?},d);var c=$$("div",{"style":{"cssText":"width:30px; height:30px; float:left;border:1px solid #cccccc;padding-top:5px;"}},e);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; padding-left:8px;color:#000000;font-size:14px;"},"innerHTML":"�?},c);var b=$$("div",{"style":{"cssText":"width:30px; height:30px; float:left;border:1px solid #cccccc;padding-top:5px;"}},e);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; padding-left:8px;color:#000000;font-size:14px;"},"innerHTML":"�?},b);var a=$$("div",{"style":{"cssText":"width:30px; height:30px; float:left;border:1px solid #cccccc;padding-top:5px;"}},e);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; padding-left:8px;color:#000000;font-size:14px;"},"innerHTML":"�?},a);return e;};U.CD.C.Bar=function(){var b=$$("div",{"style":{"cssText":"width:80%; height:20px; position:absolute; background-Color:#CCCCCC;"}});var a=$$("div",{"style":{"cssText":"width:60%; height:20px;background-Color:#0D8FD1;"}},b);return b;};U.CD.C.Preview=function(){var m=$$("div",{});var g=$$("div",{"style":{"cssText":"float:left; width:30%; margin-left:2%; border:1px solid #CCCCCC;"}},m);$$("img",{"style":{"cssText":"width:99%; margin:2%;"},"src":"images/city.jpg"},g);var f=$$("div",{"style":{"cssText":"margin-left:10px; width:90%;"}},g);$$("h3",{"innerHTML":"冯诺尔曼结构"},f);$$("p",{"innerHTML":"也称普林斯顿结构,是一种将程序指令存储器和数据存储器合并在一起的存储器结构。程序指令存储地址和数据存储地址指向同一个存储器的不同物理位置�?},f);var e=$$("div",{"style":{"cssText":"height:50px;"}},f);var p=$$("div",{"style":{"cssText":"width:50px; background-color:#0044cc; height:30px; padding-top:6px; float:left;"}},e);$$("a",{"href":"#","style":{"cssText":"color:white; text-decoration:none; margin-left:9px;"},"innerHTML":"浏览"},p);var l=$$("div",{"style":{"cssText":"width:50px; background-color:#e6e6e6; height:30px; padding-top:6px; float:left; margin-left:10px;"}},e);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; margin-left:9px; color:black;"},"innerHTML":"分享"},l);var k=$$("div",{"style":{"cssText":"float:left; width:30%; margin-left:2%; border:1px solid #CCCCCC;"}},m);$$("img",{"style":{"cssText":"width:99%; margin:2%;"},"src":"img/city.jpg"},k);var o=$$("div",{"style":{"cssText":"margin-left:10px; width:90%;"}},k);$$("h3",{"innerHTML":"冯诺尔曼结构"},o);$$("p",{"innerHTML":"也称普林斯顿结构,是一种将程序指令存储器和数据存储器合并在一起的存储器结构。程序指令存储地址和数据存储地址指向同一个存储器的不同物理位置�?},o);var c=$$("div",{"style":{"cssText":"height:50px;"}},o);var j=$$("div",{"style":{"cssText":"width:50px; background-color:#0044cc; height:30px; padding-top:6px; float:left;"}},c);$$("a",{"href":"#","style":{"cssText":"color:white; text-decoration:none; margin-left:9px;"},"innerHTML":"浏览"},j);var h=$$("div",{"style":{"cssText":"width:50px; background-color:#e6e6e6; height:30px; padding-top:6px; float:left; margin-left:10px;"}},c);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; margin-left:9px; color:black;"},"innerHTML":"分享"},h);var i=$$("div",{"style":{"cssText":"float:left; width:30%; margin-left:2%; border:1px solid #CCCCCC;"}},m);$$("img",{"style":{"cssText":"width:99%; margin:2%;"},"src":"img/city.jpg"},i);var n=$$("div",{"style":{"cssText":"margin-left:10px; width:90%;"}},i);$$("h3",{"innerHTML":"冯诺尔曼结构"},n);$$("p",{"innerHTML":"也称普林斯顿结构,是一种将程序指令存储器和数据存储器合并在一起的存储器结构。程序指令存储地址和数据存储地址指向同一个存储器的不同物理位置�?},n);var a=$$("div",{"style":{"cssText":"height:50px;"}},n);var d=$$("div",{"style":{"cssText":"width:50px; background-color:#0044cc; height:30px; padding-top:6px; float:left;"}},a);$$("a",{"href":"#","style":{"cssText":"color:white; text-decoration:none; margin-left:9px;"},"innerHTML":"浏览"},d);var b=$$("div",{"style":{"cssText":"width:50px; background-color:#e6e6e6; height:30px; padding-top:6px; float:left; margin-left:10px;"}},a);$$("a",{"href":"#","style":{"cssText":"text-decoration:none; margin-left:9px; color:black;"},"innerHTML":"分享"},b);return m;};Namespace.register("U.CD.F");U.CD.F.HTML=function(){return"&lt;<html>&gt;<head></head><body><div style='width:150px; height:100px; background-color:blue;'>哈,从最简单元素div开�?/div></body></html>";};Namespace.register("U.CD.L");U.CD.L.ConMUp=function(h,g){g=this.E;var d=h.innerHTML,a,b=$("#UCD_CT_SM_IF"),f=b.GetElementInfo(),c=g["X"]-f["BCRL"],e=g["Y"]-f["BCRT"];document.body.removeChild(h);if(c>0&&c<f["OW"]&&e>0&&e<f["OH"]){switch(d){case"button":a=U.CD.C.Button();U.CD.L.AppendIF(a,b,c,e);break;case"reset":a=U.CD.C.Reset();U.CD.L.AppendIF(a,b,c,e);break;case"submit":a=U.CD.C.Submit();U.CD.L.AppendIF(a,b,c,e);break;case"text":a=U.CD.C.Text();U.CD.L.AppendIF(a,b,c,e);break;case"password":a=U.CD.C.Password();U.CD.L.AppendIF(a,b,c,e);break;case"radio":a=U.CD.C.Radio();U.CD.L.AppendIF(a,b,c,e);break;case"checkbox":a=U.CD.C.Checkbox();U.CD.L.AppendIF(a,b,c,e);break;case"form":a=U.CD.C.Form();U.CD.L.AppendIF(a,b,c,e);break;case"img":a=U.CD.C.Img();U.CD.L.AppendIF(a,b,c,e);break;case"img":a=U.CD.C.Img();U.CD.L.AppendIF(a,b,c,e);break;case"table":U.CD.C.Table(b,c,e);break;case"textarea":a=U.CD.C.Textarea();U.CD.L.AppendIF(a,b,c,e);break;case"div":a=U.CD.C.Div();U.CD.L.AppendIF(a,b,c,e);break;case"p":a=U.CD.C.P();U.CD.L.AppendIF(a,b,c,e);break;case"h":a=U.CD.C.H();U.CD.L.AppendIF(a,b,c,e);break;case"ul":U.CD.C.Ul(b,c,e);break;case"ol":U.CD.C.Ol(b,c,e);break;case"navigation":a=U.CD.C.Navigation();U.CD.L.AppendIF(a,b,c,e);break;case"pagination":a=U.CD.C.Pagination();U.CD.L.AppendIF(a,b,c,e);break;case"switchingcard":a=U.CD.C.Switchingcard();U.CD.L.AppendIF(a,b,c,e);break;case"search":a=U.CD.C.Search();U.CD.L.AppendIF(a,b,c,e);break;case"register":a=U.CD.C.Register();U.CD.L.AppendIF(a,b,c,e);break;case"shade":a=U.CD.C.ShadeForms();U.CD.L.AppendIF(a,b,c,e);break;case"buttongroup":a=U.CD.C.ButtonGrop();U.CD.L.AppendIF(a,b,c,e);break;case"bar":a=U.CD.C.Bar();U.CD.L.AppendIF(a,b,c,e);break;case"preview":a=U.CD.C.Preview();U.CD.L.AppendIF(a,b,c,e);break;case"select":a=U.CD.C.Select(b,c,e);U.CD.L.AppendIF(a,b,c,e);break;case"comfirm":a=U.CD.UC.Confirm(b,c,e);U.CD.L.AppendIF(a,b,c,e);break;}}};U.CD.L.AppendIF=function(a,b,c,d){$(a).addAttrArray({"style":{"left":c+"px","top":d+"px"}});U.CD.CD.AppendHTML(a);b[0].contentWindow.document.body.appendChild(a);b[0].contentWindow.document.body.innerHTML+="";};U.CD.L.moudt=function(d){var a,b=U.M.GetMousep();a=$$("div",{"className":"UCD_TOOLT_Drag","style":{"top":b["Y"]+"px","left":b["X"]+"px"},"innerHTML":d},document.body);try{U.D.iconmove(a,window.frames["UCD_CT_SM_IF"],{"UP":U.CD.L.ConMUp});}catch(c){a.releaseCapture();a.parentNode.removeChild(a);document.onmouseup=null;U.UF.UI.Confirm("<div style=' color:red;text-align:left; margin-left:10px; height:25px;'>所有文件必须引�?http://d.1473.cn/UJ.js ,否则会拒绝访问,请仔细检�?/div> ",[U.CD.CD.Init,([])],"");return;}};U.CD.L.iconmove=function(c,b){var a=new U.CD.L.ICM(c,b);a.init(c,b);a.id="UCD_Left_DO";document.onmousemove=U.M.apply(a,[[a.move]]);document.onmouseup=U.M.apply(a,[[a.up]]);(b)&&(b.document.onmousemove=document.onmousemove)&&(b.document.onmouseup=document.onmouseup);};U.CD.L.ICM=function(b,a){this.X=b.offsetLeft,this.Y=b.offsetTop;this.W=a;this.SW;this.SO=b;this.E;};U.CD.L.ICM.prototype={init:function(c,b){var a=U.M.GetMousep();this.E=a;this.SW=[0,0,US.Width-65,US.Height-240,a["X"]-c.offsetLeft,a["Y"]-c.offsetTop];c.setCapture();},move:function(){var b;if(event){b=U.M.GetMousep();}else{var d=$("#"+this.W.name).GetElementInfo();b=this.W.U.M.GetMousep();b["X"]+=d["BCRL"];b["Y"]+=d["BCRT"];}if(this.E["X"]-b["X"]!=0&&this.E["Y"]-b["Y"]!=0){var c=b["X"]-this.SW[4];var a=b["Y"]-this.SW[5];if(c<this.SW[1]){c=this.SW[1];}else{if(c>this.SW[2]){c=this.SW[2];}}if(a<this.SW[0]){a=this.SW[0];}else{if(a>this.SW[3]){a=this.SW[3];}}$(this.SO).addAttrArray({"style":{"left":c+"px","top":a+"px"}});this.E=b;}},up:function(){U.CD.L.ConMUp(this.SO,this.E);this.SO.releaseCapture();this.W.document.onmousemove=this.W.document.onmouseup=document.onmousemove=document.onmouseup=null;}};U.CD.L.OpenOrCloseList=function(a){a.style.display=a.style.display=="none"?"block":"none";};Namespace.register("U.CD.O");U.CD.O.UPFile=function(b){var a=b.parentNode;U.UP.uploading([b],U.CD.O.UPFileAsyn,(["UCD_UP"]),"http://disk.1473.cn/USupfile.ashx?iframename=UseStudioEditor",true);a.appendChild(b);};U.CD.O.UPFileAsyn=function(a){var c=a.context[0];a=a.value;if(a!=null&&isNaN(a[0])){var b=$("#UCD_FB_NR_IMG")[0];b.src=US.fs+a[2];b.title=US.fs+a[0];b.onclick=U.M.apply(this,[[U.UF.EV.stopBubble],[U.Img.Create,[([{"Thm":US.fs+a[2],"Img":US.fs+a[0]}])]]]);}else{alert("你现在使用图片大小是�?+a[0]+"KB,已经超过50KB,请重新选择图片不超�?0KB�?);}};U.CD.O.TreeUPFile=function(c){var b=c.parentNode;var a=U.UP.GetUpName(c.value);var d=U.CD.O.Loading("图片上传速度比较慢,请耐心等�?....");U.UP.uploading([c],U.CD.O.TreeUpAsyn,([a,d]),"http://disk.1473.cn/USupfile.ashx?iframename=UseStudioEditor",true);b.appendChild(c);};U.CD.O.TreeUpAsyn=function(c){var b=c.context[0];var d=c.context[1];d.parentNode.removeChild(d);c=c.value;if(c!=null&&isNaN(c[0])){var a=c[2]+"|"+c[0];U.CD.O.TreeImg(b[0],a);}else{alert("你现在使用图片大小是�?+c[0]+"KB,已经超过5M,请重新选择图片不超�?M�?);}};U.CD.O.TreeImg=function(b,e){var f=U.CD.U.IsUSelf();if(!f){U.CD.U.LoginApply();return;}var c=f.userid;var a=U.CD.U.CUser.CurrentNode,h=U.CD.U.CUser.CurrentSO;var d=Guid.newGuid(),i;if(!U.CD.RT.VName(c,b,"file")){alert("名字不符合规范或者存在同名文件!");return;}i={"Name":b,"CreateDate":new Date(),"Type":"file","ID":d,"Deep":parseInt(a.Deep)+1,"IsPublic":true,"Content":e};var g=[];g.push(i);a.TNode.push(i);U.CD.RT.LV(g,h,c);U.A.Request(U.CD.AjaxUrl,(["Add_File",c,a.ID,a.Deep,i.ID,i.Name,e]),U.CD.RT.CP_OKAsyn,([""]));};U.CD.O.Loading=function(a){var b=U.CD.Loading.cloneNode(true);b.style.display="none";b.innerHTML=a;b.uscustom=true;$$("span",{"className":"UCD_LC_X","innerHTML":"X",onclick:function(){this.parentNode.parentNode.removeChild(this.parentNode);}},b);document.body.appendChild(b);U.D.PopupWindow(b);return b;};Namespace.register("U.CD.RT");U.CD.RT.Init=function(){};U.CD.RT.LUDataAsyn=function(r){U.CD.LO.OpenZY();var i,_pnum=0;if(r.value==""||r.value=="null"){U.UF.UI.Confirm("没取到该用户数据,确认重新获取!",[U.CD.RT.LUDReload,([""])],"");return;}var _u=eval("("+r.value+")");U.CD.U.CUser=U.CD.U.AUsers[_u.UserID]=_u;var L=_u.TNode[0].TNode;var _mdiv=$("#UCD_RTree")[0];_mdiv.innerHTML="";var _zygl=$$("div",{"className":"UCD_RT_Root"},_mdiv);var _gl=$$("div",{"className":"UCD_RT_Root_TJ"},_zygl);for(i=0;i<L.length;i++){if(!L[i].IsDelete){_pnum++;}}$$("div",{"className":"UCD_RT_Root_TJ_NR","innerHTML":"共有"+_pnum+"个项�?},_gl);$$("div",{"className":"UCD_RT_Root_TJ_X","innerHTML":"X","onclick":[[U.CD.LO.CloseZY]]},_gl);var _zy=$$("div",{"className":"UCD_RT_Root_ZY"},_zygl);$$("div",{"className":"UCD_RT_Root_Z","innerHTML":"资源管理�?},_zy);if(U.CD.U.IsUSelf()){$$("div",{"className":"UCD_RT_Root_C","innerHTML":"创建项目","onclick":[[U.CD.RT.CProject,([_u.UserID,_u.TNode[0]])]]},_zy);}if(!U.CD.U.IsUSelf()){U.CD.Url.ForbUser();}var _cp=r.context[1],_sel,_cso;if(_cp){for(i=0;i<L.length;i++){if(L[i].ID==_cp){_sel=L[i];L=[];L.push(_sel);break;}}}else{for(i=0;i<L.length;i++){if(!L[i].IsDelete){_sel=L[i];break;}}}var TreeDiv=$$("div",{"id":"UCD_RT_Tree"},_mdiv);for(i=0;i<L.length;i++){U.CD.RT.F_L_Node(L[i],_u.UserID,TreeDiv);}if(!_sel){return;}_cso=TreeDiv.getElementsByTagName("div")["UCD_Tree"+_sel.ID];if(_sel){U.CD.RT.SM(_cso,_u.UserID,_sel);}var _ffile=null;for(i=0;i<_sel.TNode.length;i++){if(!_sel.TNode[i].IsDelete&&_sel.TNode[i].Type=="file"){_ffile=_sel.TNode[i];break;}}if(_ffile){_ffile.Content=unescape(_ffile.Content);U.CD.R.LoadFC(_ffile);}};U.CD.RT.LUDReload=function(){U.CD.Init();};U.CD.RT.CLV=function(a,b,e){var d=document.createDocumentFragment();for(var c=0;c<a.length;c++){U.CD.RT.F_L_Node(a[c],e,d);}b.appendChild(d);};U.CD.RT.F_L_Node=function(d,g,b){var a,f,e,c;if(d.IsDelete){return;}if(d.Deep=="2"){a="UCD_RT_ProIcon";}else{a="UCD_RT_FolderIcon";}if(d.Type=="file"){if(U.UP.IsImg(d.Name)){a="UCD_RT_USTreeAlbumIcon";}else{a="UCD_RT_FileIcon";}}f=$$("div",{"className":"UCD_RT_USTreecontainA","onclick":[[U.UF.EV.stopBubble],[U.CD.RT.DBC,([d.ID])]]},b);_UDSD=$$("div",{"className":"UCD_RT_USTTitle","id":"UCD_Tree"+d.ID,"onclick":[U.CD.RT.SM,(["retElement",g,d])]},f);$$("div",{"className":"UCD_RT_DiskGE UCD_RT_I_D_E UCD_RT_USTreesign"},_UDSD);c=$$("a",{"className":"UCD_RT_USTreeusestudiodisktreeA","title":d.Name},_UDSD);if(U.CD.U.IsUSelf()){U.CD.RT.F_OP(_UDSD,g,d);}$$("i",{"className":"UCD_RT_TreeIcon "+a},c);$$("span",{"innerHTML":d.Name},c);};U.CD.RT.F_OP=function(e,b,c){var d=$$("div",{"className":"UCD_RT_ZSCG"},e);var a=$$("div",{"className":"UCD_RT_ZSCG_T","title":"发布项目�?,"innerHTML":"�?,"onclick":[[U.UF.EV.stopBubble],[U.CD.RT.Panel,(["retElement",b,c])]]},d);};U.CD.RT.SM=function(f,h,d){if(d.Type=="folder"){U.CD.U.CUser.CurrentSO=f.parentNode;U.CD.U.CUser.CurrentNode=d;}var e=U.CD.U.CUser.PreClickNode;if(e){e.style.backgroundColor="White";}if(d.Type=="file"){d.Content=unescape(d.Content);U.CD.R.LoadFC(d);return;}var b=$("div",f)[0];var c=$("div",f.parentNode).length-3;var g="UCD_RT_DiskGE UCD_RT_I_D_E UCD_RT_USTreesign";if(c>1){f.parentNode.removeChild(f.parentNode.lastChild);}else{var a=d.TNode;if(a!=null){U.CD.RT.LV(a,f.parentNode,h);g="UCD_RT_DiskGE UCD_RT_I_D_S UCD_RT_USTreesign";}}b.className=g;U.CD.RT.VM(f,h,d);};U.CD.RT.LV=function(b,c,d){var a=$$("div",{"style":{"marginLeft":"10px"}},c);U.CD.RT.CLV(b,a,d);};U.CD.RT.VM=function(c,a,b){c.style.backgroundColor="#dee6ef";U.CD.U.CUser.PreClickNode=c;};U.CD.RT.DBC=function(){};U.CD.RT.Panel=function(g,c,e){var a=$("#UCD_RT_FUP")[0],f=$("#UCD_RT_FUPCT")[0];var b=$("#UCD_RT_FUPCC")[0];b.innerHTML="";f.innerHTML="当前目录�?span style='color:red;'>"+e.Name+"</span>�?;if(e.Type=="folder"){$$("div",{"className":"UCD_RT_Com","innerHTML":"✿新建子文件�?,"onclick":[[U.UF.EV.stopBubble],[U.CD.RT.CP_CF,([g,c,e])]]},b);$$("div",{"className":"UCD_RT_Com","innerHTML":"✿修改文件夹","onclick":[[U.UF.EV.stopBubble],[U.CD.RT.CP_M,([g,c,e])]]},b);$$("div",{"className":"UCD_RT_Com","innerHTML":"✿删除文件夹","onclick":[[U.UF.EV.stopBubble],[U.CD.RT.CP_DF,([g,c,e])]]},b);$$("div",{"className":"UCD_RT_Com","innerHTML":"✿新建文�?,"onclick":[[U.UF.EV.stopBubble],[U.CD.RT.CP_NF,([g,c,e])]]},b);var d=$$("div",{"className":"UCD_RT_Com_U UCD_RT_TreeIcon"},b);$$("input",{"id":"UCD_RT_Com_Up","name":"UCD_RT_Com_Up","type":"file","multiple":"true","accept":"image/gif,image/jpeg,image/png","onchange":[[U.CD.O.TreeUPFile,(["retElement"])]]},d);if(e.Deep==2){$$("div",{"className":"UCD_RT_Com","innerHTML":"✿发布此项目","onclick":[[U.UF.EV.stopBubble],[U.CD.SL.Publish,([g,c,e])]]},b);}}else{$$("div",{"className":"UCD_RT_Com","innerHTML":"✿修改文件名","onclick":[[U.UF.EV.stopBubble],[U.CD.RT.CP_M,([g,c,e])]]},b);$$("div",{"className":"UCD_RT_Com","innerHTML":"✿删除文�?,"onclick":[[U.UF.EV.stopBubble],[U.CD.RT.CP_DF,([g,c,e])]]},b);}if(a.style.display=="none"){U.D.PopupWindow(a);}};U.CD.RT.CProject=function(a,b){U.CD.RT.NDialog("创建新项�?,U.CD.RT.CP_OK,([$("#UCD_RT_Tree")[0],a,b,"Add_Folder"]));};U.CD.RT.CP_CF=function(c,a,b){U.CD.RT.NDialog("新建文件�?,U.CD.RT.CP_OK,([c,a,b,"Add_Folder"]));};U.CD.RT.CP_NF=function(c,a,b){U.CD.RT.NDialog("新建文件,请自己添加扩展名�?,U.CD.RT.CP_OK,([c,a,b,"Add_File"]));};U.CD.RT.NDialog=function(c,f,e){var d=$$("div",{"className":"UCD_TR_CP"});$$("div",{"className":"UCD_TR_CP_T","innerHTML":"您操作的当前目录为:<span style='color:red;'>"+e[2].Name+"</span>"},d);$$("div",{"className":"UCD_TR_CP_MS","innerHTML":"请输入名称:"},d);var a=$$("input",{"className":"UCD_RT_CP_Input"},d);e.push(a);var b=new U.UF.UI.Dialog(null,null,c,350,"","","","","",U.M.apply(d,[[f,e]]),d,"");U.D.PopupWindow(b.Create());};U.CD.RT.CP_OK=function(g,c,a,h,i,e){var b=i.value,d=Guid.newGuid(),j;if(!U.CD.RT.VName(c,b,h)){alert("名字不符合规范或者存在同名文件!");return;}if(h=="Add_File"){j={"Name":b,"CreateDate":new Date(),"Type":"file","Content":"","ID":d,"Deep":parseInt(a.Deep)+1,"IsPublic":true};}else{j={"Name":b,"CreateDate":new Date(),"Type":"folder","ID":d,"Deep":parseInt(a.Deep)+1,"TNode":[],"IsPublic":true};}var f=[];f.push(j);if(a.Deep>1&&g.className!="UCD_RT_USTreecontainA"){g=g.parentNode.parentNode.parentNode;}a.TNode.push(j);if(a.Deep=="1"){U.CD.RT.CLV(f,$("#UCD_RT_Tree")[0],c);}else{if(g.childNodes.length==2){U.CD.RT.CLV(f,g.lastChild,c);}else{U.CD.RT.LV(f,g,c);}}if(j.Deep==2){U.CD.U.CUser.CurrentSO=g.lastChild;U.CD.U.CUser.CurrentNode=j;}U.A.Request(U.CD.AjaxUrl,([h,c,a.ID,a.Deep,j.ID,j.Name]),U.CD.RT.CP_OKAsyn,([""]));};U.CD.RT.CP_OKAsyn=function(r){if(r.value=="false"||r.value==""){alert("添加失败,点此反馈信�?);return;}var _node=eval("("+r.value+")");if(_node.Type=="file"){U.CD.R.LoadFC(_node);}alert("添加成功");};U.CD.RT.CP_DF=function(c,a,b){U.UF.UI.Confirm("你确定删�?<span style='color:blue;'>"+b.Name+"</span>分组吗?",[U.CD.RT.CP_D,([c,a,b])],"");};U.CD.RT.CP_D=function(c,a,b){c=c.parentNode.parentNode.parentNode;c.parentNode.removeChild(c);U.A.Request(U.CD.AjaxUrl,(["Delete_Folder",a,"0",b.ID]),U.CD.RT.CP_DAsyn,(["",b]));};U.CD.RT.CP_DAsyn=function(c){var b=c.context[1];if(c.value){var d=$("#UCD_CT_Top_Tab")[0].getElementsByTagName("ul")[0];var a=d.getElementsByTagName("li")["Tab"+b.ID];if(a){U.CD.CloseEdit(d,a,b);alert("删除节点"+b.Name+"成功�?);}else{alert("删除成功");}}else{alert("删除失败");}};U.CD.RT.CP_M=function(c,a,b){U.CD.RT.NDialog("修改操作!!�?,U.CD.RT.CP_MOK,([c,a,b]));};U.CD.RT.CP_MOK=function(e,b,d,a){var c=a.value;if(!U.CD.RT.VName(b,c)){alert("名字不符合规范或者存在同名文件!");return;}e.parentNode.parentNode.getElementsByTagName("span")[0].innerHTML=c;U.A.Request(U.CD.AjaxUrl,(["Update_Folder",b,"0",d.ID,c]),U.CD.RT.CP_MOKAsyn,([""]));};U.CD.RT.CP_MOKAsyn=function(a){a.value?alert("修改成功"):alert("修改失败");};U.CD.RT.VName=function(b,d,c){var a=U.CD.U.AUsers[b];if(!U.UF.S.ZWFileName.test(d)){return;}false;if(a.TNode.Select({"Name":d})[0]){return false;}return true;};Namespace.register("U.CD.SL");U.CD.SL.MySQL="mysql";U.CD.SL.Data=null;U.CD.SL.PrePD=null;U.CD.SL.Init=function(){U.D.AD.BDGG($("#UCD_SL_N_F_R")[0],"897767");var b=$("#UCD_SL_N_F")[0].getElementsByTagName("div"),a;for(a=0;a<b.length;a++){if(b[a].innerHTML!="HTML5语言"){b[a].onclick=U.M.apply(this,[[alert,(["有空看看http://www.1473.cn,有惊喜!"])]]);}}var d=$("#UCD_SL")[0];d.style.width="960px";d.style.left=(document.body.clientWidth-parseInt(d.style.width))/2+"px";d.style.height=document.body.clientHeight-20-20-80+"px";d.style.display="block";if(!U.CD.SL.Data){try{U.A.Request(U.CD.AjaxUrl,([U.CD.SL.MySQL,"Select_All",1,U.CD.USLang]),U.CD.SL.Display,([""]));}catch(c){alert("数据库连接暂时不成功,但不影响客户端操作");}}};U.CD.SL.Display=function(g){if(g.value==""){U.CD.SL.Init();}var h=U.CD.SL.Data=g.value[0];var b=$("#UCD_SL_N_N")[0],f,e;e=U.CD.SL.Flowlayout(b,140,7);for(f=0;f<h.length;f++){var a=b.childNodes[f%e];var d=$$("div",{"className":"UCD_SL_N_N_C","onmouseover":[[U.CD.SL.DisReply,(["retElement",h[f]])]],"onclick":[[U.CD.SL.DisOther,([h[f]])]]},a);$$("div",{"className":"UCD_SL_N_N_C_T","title":h[f].DName,"innerHTML":h[f].DName},d);$$("img",{"className":"UCD_SL_N_N_C_I","src":h[f].DSmallImg,"onerror":[U.MD.C.imgError,(["this",1])]},d);var c=$$("div",{"className":"UCD_SL_N_N_C_RD"},d);$$("div",{"className":"UCD_SL_N_N_C_R","innerHTML":"评论","onclick":[[U.UF.EV.stopBubble],[U.CD.SL.reply,([h[f]])]]},c);if(U.CD.U.IsUSelf().userid=="baa5e5ae-0fc2-4eab-ba44-cd993d6ce5a1"){$$("div",{"className":"UCD_SL_N_N_C_S","innerHTML":"审核","onclick":[[U.UF.EV.stopBubble],[U.CD.SL.VerConfirm,([h[f]])]]},c);}$$("div",{"className":"UCD_SL_N_N_C_D","innerHTML":"大图","onclick":[[U.UF.EV.stopBubble],[U.Img.Create,([{"Img":h[f].DImg,"Thm":h[f].DSmallImg}])]]},c);h[f].DBrief=h[f].DBrief.replace(/\r\n/g,"<br/>");$$("div",{"className":"UCD_SL_N_N_C_N","innerHTML":h[f].DBrief},d);}};U.CD.SL.reply=function(){alert("敬请期待");};U.CD.SL.DisReply=function(d,b){var c,a;if(U.CD.SL.PrePD){c=U.CD.SL.PrePD.childNodes[2].childNodes;for(a=0;a<c.length;a++){c[a].style.display="none";}}c=d.childNodes[2].childNodes;for(a=0;a<c.length;a++){c[a].style.display="block";}U.CD.SL.PrePD=d;};U.CD.SL.VerConfirm=function(a){U.UF.UI.Confirm("你确定取�?span style='color:blue;'>"+a.DName+"</span>在首页中的显示吗�?,[U.CD.SL.Verify,([a])],"");};U.CD.SL.Verify=function(a){U.A.Request(U.CD.AjaxUrl,([U.CD.SL.MySQL,"Add_Develop",a.DID,a.UserID,a.UserName,a.DName,a.DBrief,a.DSmallImg,a.DImg,a.DPrice,"0"]),U.CD.SL.VerifyAsyn,([""]));};U.CD.SL.VerifyAsyn=function(a){a.value[0].length?alert("审核成功"):alert("审核失败");};U.CD.SL.DisOther=function(a){window.open("http://d.1473.cn/"+"#!/"+encodeURI(a.DID+"|"+a.UserID));};U.CD.SL.Flowlayout=function(e,a,f){var d=e.clientWidth,c;var b=Math.floor(d/(a+2*f));for(c=0;c<b;c++){$$("div",{"style":{"width":a+"px","margin":f+"px"},"className":"UCD_SL_N_N_L"},e);}return b;};U.CD.SL.Publish=function(c,a,b){U.A.Request(U.CD.AjaxUrl,([U.CD.SL.MySQL,"Select_One",b.ID]),U.CD.SL.ISPub,(["",c,a,b]));};U.UF.UI.RadioList=function(c,b){var a=new U.UF.UI.RadioListT(c,b);a.init();return a;};U.UF.UI.RadioListT=function(b,a){if(U.M.GetType(a)!="Object"){return;}b.innerHTML="";this.D=b;this.S=a;this.A=[];};U.UF.UI.RadioListT.prototype={init:function(){var a=this.S,d,e;for(var b in a){if(a.hasOwnProperty(b)){d=$$("div",{"innerHTML":a[b],"style":{"cssText":"margin-left:5px;"}},this.D);e=$$("input",{"type":"radio","value":b,"onclick":[this.radiochecked,([this,"retElement"])]},d);this.A.push(e);}}this.A[0].checked=true;},radiochecked:function(b,c){var a;for(a=0;a<b.A.length;a++){b.A[a].checked=false;}c.checked=true;},value:function(){var a;for(a=0;a<this.A.length;a++){if(this.A[a].checked==true){return this.A[a].value;}}return this.A[0].value;}};U.CD.SL.ISPub=function(d){var g=d.context[1],b=d.context[2],c=d.context[3];var f=d.value[0];if(f.length==0){$("#UCD_FB_N_N_Name")[0].value="",$("#UCD_FB_N_N_T")[0].value="",$("#UCD_FB_NR_IMG")[0].value="",$("#UCD_FB_N_N_P")[0].value="";}else{f=f[0];$("#UCD_FB_N_N_Name")[0].value=f.DName,$("#UCD_FB_N_N_T")[0].value=f.DBrief,$("#UCD_FB_NR_IMG")[0].src=f.DSmallImg,$("#UCD_FB_N_N_P")[0].value=f.DPrice;}var a=$("#UCD_FB")[0];if(f.DName){$("#UCD_FB_N_T")[0].innerHTML="您已经发不过"+c.Name+"了?但还可以修改相应信息";}else{$("#UCD_FB_N_T")[0].innerHTML="您将要发�?+c.Name+"吗?此项目将对所有人可见�?;}$("#UCD_FB_N_N_Name")[0].value=c.Name;var e=U.UF.UI.RadioList($("#UCD_FB_N_CK_CK")[0],U.CD.DType);$("#UCD_FB_NR_IMG")[0].onclick=U.M.apply(this,[[U.UF.EV.stopBubble],[U.Img.Create,[([{"Thm":f.DSmallImg,"Img":f.DImg}])]]]);$("#UCD_FB_N_N_N_S")[0].onclick=U.M.apply(this,[[U.CD.SL.PSubmit,([g,b,c,e])]]);if(a.style.display=="none"){U.D.PopupWindow(a);}};U.CD.SL.PSubmit=function(g,e,c,a){var f=U.CD.U.IsUSelf();if(!f){U.CD.U.LoginApply();return;}var b=$("#UCD_FB_N_N_Name")[0].value,h=$("#UCD_FB_N_N_T")[0].value;var i=$("#UCD_FB_NR_IMG")[0].title;_i=$("#UCD_FB_NR_IMG")[0].src,_p=$("#UCD_FB_N_N_P")[0].value;var d=f.username;U.A.Request(U.CD.AjaxUrl,([U.CD.SL.MySQL,"Add_Develop",c.ID,e,d,b,h,i,_i,_p,"1",a.value(),U.CD.USLang]),U.CD.SL.PSubAsyn,([""]));};U.CD.SL.PSubAsyn=function(a){a.value[0].length?alert("发布项目成功"):alert("发布项目失败");};U.CD.SL.PubPro=function(){var a=U.CD.U.IsUSelf();if(!a){U.CD.U.LoginApply();return;}alert("请在右边项目区域单击操作图标,发布自己的项目,谢谢!!!�?);};Namespace.register("U.CD.Tip");U.CD.Tip.d=["getElementById","getElementsByTagName","toString","valueOf","appendChild","apply","call","removeChild","style","getElementsByTagName","getElementsByTagName","getElementsByTagName"];U.CD.Tip.d.style=["width","height","top","left","backgroundColor","color","","",""];U.CD.Tip.Init=function(){var a=$$("div",{"id":"UCD_TP_TB","style":{"display":"none"}},document.body);for(var b=0;b<U.CD.Tip.d.length;b++){var c=$$("div",{"className":"UCD_TP_TB_N"},a);$$("div",{"className":"UCD_TP_TB_N_T","innerHTML":"�?},c);$$("div",{"className":"UCD_TP_TB_N_D","innerHTML":U.CD.Tip.d[b],"onmouseover":[U.CD.Tip.Active,([b])],"onmousedown":[U.CD.Tip.SI,([U.CD.Tip.d[b]])]},c);}};U.CD.Tip.Show=function(){var b=$("#UCD_TP_TB")[0];var d=U.CD.TipR;var c=d.Parent();var e=d.GetGBWZ(c);var a=U.M.GetElementInfo(c);if(b.style.display=="none"){b.style.display="block";b.style.left=a.BCRL+U.CD.Tip.GetStrWidth(e)+"px";b.style.top=a.BCRT+10+"px";b.firstChild.style.backgroundColor="silver";b.firstChild.focus();b.onkeydown=U.M.apply(this,[[U.CD.Tip.KeyDown,([d])]]);}};U.CD.Tip.YPosition=function(){};U.CD.Tip.GetStrWidth=function(d){var c,e="";for(c=0;c<d;c++){e+="a";}var b,a=$$("div",{"innerHTML":e,"style":{"cssText":"font-family:Consolas; font-size:14px; position:absolute;top:5000px;left:0px;"}},document.body);b=a.offsetWidth;document.body.removeChild(a);return b;};U.CD.Tip.HidTip=function(){$("#UCD_TP_TB")[0].style.display="none";};U.CD.Tip.Active=function(d){var c=$("#UCD_TP_TB")[0],a=c.childNodes;for(var b=0;b<a.length;b++){if(b==d){a[b].style.backgroundColor="rgb(255,236,181)";}else{a[b].style.backgroundColor="";}}};U.CD.Tip.CurPosition=function(){var c=$("#UCD_TP_TB")[0],a=c.childNodes;for(var b=0;b<a.length;b++){if(a[b].style.backgroundColor!=""){return b;}}return 0;};U.CD.Tip.SI=function(a){var c=U.CD.TipR;var b=c.Replace(a);$("#UCD_TP_TB")[0].style.display="none";};U.CD.Tip.KeyDown=function(f){var c=event.keyCode,e=0,d=$("#UCD_TP_TB")[0],b=d.childNodes.length,a;e=U.CD.Tip.CurPosition();if(d.style.display!="none"){if(c==38){if(e>0){e--;}}if(c==40){if(e<b){e++;}else{e=b-1;}}if(c==10||c==13){f.Replace("");a=d.childNodes[e];U.CD.Tip.SI(U.CD.Tip.d[e],f);U.M.StopDefault();return;}if(c==8||c==27){U.CD.Tip.HidTip();f.Replace("");}U.CD.Tip.Active(e);}};U.CD.Tip.IsJs=function(b){var f;var d=U.CD.TipR;var c=d.Parent();var e=d.GetGBWZ(c);var a=b.innerText.substr(0,e).TrimAll();if(a.length<=0){return false;}while(b.previousSibling!=null){b=b.previousSibling,f=b.innerText.TrimAll();if(f.substr(0,9).toLowerCase()=="<\/script>"){break;}if(f.substr(0,7).toLowerCase()=="<script"){return true;}}return false;};U.CD.Tip.IsCss=function(){return false;};Namespace.register("U.CD.T");U.CD.T.MPerInfo=function(){U.UF.UI.Confirm("修改个人信息请到www.1473.cn主站,确认将跳转!",[U.CD.T.MPIAsyn,([""])],"");};U.CD.T.MPIAsyn=function(){window.open("http://www.1473.cn");};U.CD.T.ReDo=function(){U.UF.UI.Confirm("确认清空吗?代码将清除,但不会保存到数据库,刷新页面可还原以前的内容�?,[U.CD.T.ReDoAsyn,([""])],"");};U.CD.T.ReDoAsyn=function(){if(U.CD.U.CUser.CTab==null){U.CD.CD.Init();}else{U.CD.CD.Init(U.CD.U.CUser.CTab.Data);}};U.CD.T.SY=function(){U.CD.SL.Init();};Namespace.register("U.CD.U");U.CD.U.AUsers={};U.CD.U.CUser=null;U.CD.U.LoginApply=function(a){var b=$("#UCD_LR")[0];U.D.PopupWindow(b);$("#UCD_LR").animate({"left":document.body.clientWidth/2-597/2+"px","top":document.body.clientHeight/2-484/2+"px","display":"block"},100);};U.CD.U.Login=function(){var b=$("#UCD_LR_L_A_T")[0].value;var a=$("#UCD_LR_L_P_T")[0].value;var d="编程端登�?;var c=U.CD.Loading.cloneNode();c.innerHTML="正在登陆中,请稍后!";U.A.Request("UseStudioManage.uploadUserinfo",([b,a,d||"",3]),U.CD.U.LoginAsyn,([c]));};U.CD.U.LoginAsyn=function(b){var a=b.context;b=b.value;if(b==null){alert("系统繁忙!请重试");}else{if(b==false){alert("用户名密码错�?);}else{if(b[0].IsShielding==1){alert("该用户已被屏蔽,无法访问");}else{if(b[0].IsShielding==2){alert("该用户不允许被访问!");}else{US.userInfo=b[0][0];document.title=US.userInfo.UserName;$("#UCD_TOP_L_TX")[0].src=US.fs+US.userInfo.UserThumbnailImageHead;$("#UCD_TOP_L_TX")[0].onerror=U.MD.C.imgError;$("#UCD_TOP_L_UI")[0].innerHTML=US.userInfo.UserName;$("#UCD_LR").animate({"left":222+"px"},200,function(){$("#UCD_LR")[0].style.display="none";});US.userInfo["OnUserId"]=U.CD.U.GLID(US.userInfo.UserId).Loginid;U.CD.U.LUData(US.userInfo);$("#UCD_TOP_L_DL")[0].style.display="none";$("#UCD_TOP_AL")[0].innerHTML="";$("#UCD_RTree")[0].style.display=$("#UCD_TOP_L_UI")[0].style.display=$("#UCD_TOP_L_TX")[0].style.display=$("#UCD_TOP_L_TC")[0].style.display="block";U.CD.Url.AllowUser();}}}}};U.CD.U.GLID=function(UID){var i,_AID,_L,_ULL=document.cookie.lastIndexOf("Loginid");if(_ULL>-1){_AID=eval('[{"'+document.cookie.substring((document.cookie.indexOf("usestudiosso")+13),(document.cookie.lastIndexOf("Loginid")+44)).replace(/=/gm,'":"').replace(/&/gm,'"},{"')+'"}]'),_L=(_AID.length/3);if(UID){for(i=0;i<_AID.length;i++){if(_AID[i]["userid"]==UID){return{"userid":UID,"username":_AID[i+_L].username,"Loginid":_AID[i+(_L*2)].Loginid};}}}else{return{"userid":_AID[_L-1].userid,"username":_AID[_L*2-1].username,"Loginid":_AID[_L*3-1].Loginid};}}};U.CD.U.IsUSelf=function(){if(U.CD.U.CUser==null){return false;}var a=U.CD.U.GLID(U.CD.U.CUser.UserID);if(!a){return false;}if(a.userid!=U.CD.U.CUser.UserID){return false;}else{return a;}};U.CD.U.CookieL=function(){if(U.M.GetUF()){return;}var a=U.CD.U.GLID();if(a&&a.userid&&a.userid.length==36){U.A.Request("UseStudioManage.LoginByCookie",([a.userid,a.username,Guid.newGuid(),"",0]),U.CD.U.LoginAsyn,([""]));}};U.CD.U.Logout=function(){if(US.userInfo.UserId&&confirm("是否退�?+US.userInfo.UserName+"账号")){if(US.userInfo.UserId){U.A.Request("UseStudioManage.DUser",([US.userInfo.UserId,US.userInfo["OnUserId"]]),U.M.apply(),([]));U.CD.U.UL();}U.CD.R.ClearTab();$("#UCD_RTree")[0].innerHTML="";U.CD.LO.CloseZY();}};U.CD.U.UL=function(){$("#UCD_TOP_L_DL")[0].style.display="block";$("#UCD_RTree")[0].style.display=$("#UCD_TOP_L_UI")[0].style.display=$("#UCD_TOP_L_TX")[0].style.display=$("#UCD_TOP_L_TC")[0].style.display="none";};U.CD.U.RSRW=function(){SO=$("#UCD_LR_R_I")[0];if(SO.getAttribute("stat")=="block"){$("#UCD_LR_RegisterButton").animate({"left":"420px"},100);$("#UCD_LR_R_I").animate({"left":"460px"},100);SO.setAttribute("stat","none");}else{$("#UCD_LR_RegisterButton").animate({"left":"160px"},100);$("#UCD_LR_R_I").animate({"left":"203px"},100);SO.style.display="block";SO.setAttribute("stat","block");}};U.CD.AddUserInfo=function(a){var b=a.UserId;var c=a.UserName;};U.CD.U.LUData=function(a){U.A.Request(U.CD.AjaxUrl,(["Select_OneUserByID",a.UserId,U.CD.USLang]),U.CD.RT.LUDataAsyn,([""]));};Namespace.register("U.CD.Url");U.CD.Url.UrlGuide=function(){var a=U.M.GetUF();if(a){U.A.Request(U.CD.AjaxUrl,([U.CD.SL.MySQL,"Select_One",a[1]]),U.CD.Url.AsynUrlGuide,([""]));}};U.CD.Url.AsynUrlGuide=function(a){a=decodeURI(a[1]).split("|");var b=U.CD.O.Loading("正在装载该示例数据,请稍后。。。。。�?);U.A.Request(U.CD.AjaxUrl,(["Select_OneUserByID",a[1],U.CD.USLang]),U.CD.RT.LUDataAsyn,([b,a[0]]));};U.CD.Url.ForbUser=function(){$("#UCD_TOP_L_CZ")[0].style.display=$("#UCD_TOP_L_BC")[0].style.display="none";$("#UCD_TOP_AL")[0].innerHTML="查看他人项目模式!无操作权限�?;$("#UCD_TOP_AL")[0].style.backgroundColor="white";};U.CD.Url.AllowUser=function(){$("#UCD_TOP_L_CZ")[0].style.display=$("#UCD_TOP_L_BC")[0].style.display="block";$("#UCD_TOP_AL")[0].innerHTML="";$("#UCD_TOP_AL")[0].style.backgroundColor="rgb(0,136,204)";};U.CD.Url.Guide=function(d,a,c){var b=true;switch(d){case"disk":case"photo":case"video":c=d=="disk"?US.DG:(d=="photo"?US.PG:US.VG);U.M.divdoubleClick("UseStudioUserDiskDiv",c,a,null);break;case"file":U.Dk.GetDsikFID(c);break;case"Office":break;default:break;}};U.CD.Url.UrlWrite=function(b,a){document.location.hash="!/"+b;document.title=a+" - 云操作系�?;};Namespace.register("U.CD.UC");U.CD.UC.Confirm=function(){var a=$$("div",{"onclick":"U.UF.UI.Confirm('你确定删除分组吗?单击确定删�?)","style":{"cssText":"width:120px; height:25px; position:absolute; background-color:silver;"},"innerHTML":"点我弹出确认�?});return a;};