Dialog_Page.js
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:7k
源码类别:

OA系统

开发平台:

C#

  1. var OxO721e=["Table1","Table2","inp_title","inp_doctype","inp_description","inp_keywords","PageLanguage","HTMLEncoding","bgcolor","bgcolor_Preview","fontcolor","fontcolor_Preview","Backgroundimage","btnbrowse","TopMargin","BottomMargin","LeftMargin","RightMargin","MarginWidth","MarginHeight","btnok","btncc","editor","window","document","body","head","title","innerHTML","value","DOCTYPE","meta","length","name","keywords","content","description","httpEquiv","content-type","content-language","background","color","style","backgroundColor","bgColor","topMargin","bottomMargin","leftMargin","rightMargin","marginWidth","marginHeight","onclick","[[ValidNumber]]","","Please enter a valid color number.","text","childNodes","parentNode","http-equiv","Content-Type","Content-Language","x3CMETA ","=x22","x22 CONTENT=x22","x22x3E","META"];var Table1=Window_GetElement(window,OxO721e[0x0],true);var Table2=Window_GetElement(window,OxO721e[0x1],true);var inp_title=Window_GetElement(window,OxO721e[0x2],true);var inp_doctype=Window_GetElement(window,OxO721e[0x3],true);var inp_description=Window_GetElement(window,OxO721e[0x4],true);var inp_keywords=Window_GetElement(window,OxO721e[0x5],true);var PageLanguage=Window_GetElement(window,OxO721e[0x6],true);var HTMLEncoding=Window_GetElement(window,OxO721e[0x7],true);var bgcolor=Window_GetElement(window,OxO721e[0x8],true);var bgcolor_Preview=Window_GetElement(window,OxO721e[0x9],true);var fontcolor=Window_GetElement(window,OxO721e[0xa],true);var fontcolor_Preview=Window_GetElement(window,OxO721e[0xb],true);var Backgroundimage=Window_GetElement(window,OxO721e[0xc],true);var btnbrowse=Window_GetElement(window,OxO721e[0xd],true);var TopMargin=Window_GetElement(window,OxO721e[0xe],true);var BottomMargin=Window_GetElement(window,OxO721e[0xf],true);var LeftMargin=Window_GetElement(window,OxO721e[0x10],true);var RightMargin=Window_GetElement(window,OxO721e[0x11],true);var MarginWidth=Window_GetElement(window,OxO721e[0x12],true);var MarginHeight=Window_GetElement(window,OxO721e[0x13],true);var btnok=Window_GetElement(window,OxO721e[0x14],true);var btncc=Window_GetElement(window,OxO721e[0x15],true);var obj=Window_GetDialogArguments(window);var editor=obj[OxO721e[0x16]];var editwin=obj[OxO721e[0x17]];var editdoc=obj[OxO721e[0x18]];var body=editdoc[OxO721e[0x19]];var head=obj[OxO721e[0x1a]];var title=head.getElementsByTagName(OxO721e[0x1b])[0x0];if(title){ inp_title[OxO721e[0x1d]]=title[OxO721e[0x1c]] ;} ; inp_doctype[OxO721e[0x1d]]=obj[OxO721e[0x1e]] ;var metas=head.getElementsByTagName(OxO721e[0x1f]);for(var m=0x0;m<metas[OxO721e[0x20]];m++){if(metas[m][OxO721e[0x21]].toLowerCase()==OxO721e[0x22]){ inp_keywords[OxO721e[0x1d]]=metas[m][OxO721e[0x23]] ;} ;if(metas[m][OxO721e[0x21]].toLowerCase()==OxO721e[0x24]){ inp_description[OxO721e[0x1d]]=metas[m][OxO721e[0x23]] ;} ;if(metas[m][OxO721e[0x25]].toLowerCase()==OxO721e[0x26]){ HTMLEncoding[OxO721e[0x1d]]=metas[m][OxO721e[0x23]] ;} ;if(metas[m][OxO721e[0x25]].toLowerCase()==OxO721e[0x27]){ PageLanguage[OxO721e[0x1d]]=metas[m][OxO721e[0x23]] ;} ;} ;if(editdoc[OxO721e[0x19]][OxO721e[0x28]]){ Backgroundimage[OxO721e[0x1d]]=editdoc[OxO721e[0x19]][OxO721e[0x28]] ;} ;if(editdoc[OxO721e[0x19]][OxO721e[0x2a]][OxO721e[0x29]]){ fontcolor[OxO721e[0x1d]]=editdoc[OxO721e[0x19]][OxO721e[0x2a]][OxO721e[0x29]] ; fontcolor[OxO721e[0x2a]][OxO721e[0x2b]]=fontcolor[OxO721e[0x1d]] ; fontcolor_Preview[OxO721e[0x2a]][OxO721e[0x2b]]=fontcolor[OxO721e[0x1d]] ;} ;var body_bgcolor=editdoc[OxO721e[0x19]][OxO721e[0x2a]][OxO721e[0x2b]]||editdoc[OxO721e[0x19]][OxO721e[0x2c]];if(body_bgcolor){ bgcolor[OxO721e[0x1d]]=body_bgcolor ; bgcolor[OxO721e[0x2a]][OxO721e[0x2b]]=body_bgcolor ; bgcolor_Preview[OxO721e[0x2a]][OxO721e[0x2b]]=body_bgcolor ;} ;if(body[OxO721e[0x2d]]){ TopMargin[OxO721e[0x1d]]=body[OxO721e[0x2d]] ;} ;if(body[OxO721e[0x2e]]){ BottomMargin[OxO721e[0x1d]]=body[OxO721e[0x2e]] ;} ;if(body[OxO721e[0x2f]]){ LeftMargin[OxO721e[0x1d]]=body[OxO721e[0x2f]] ;} ;if(body[OxO721e[0x30]]){ RightMargin[OxO721e[0x1d]]=body[OxO721e[0x30]] ;} ;if(body[OxO721e[0x31]]){ MarginWidth[OxO721e[0x1d]]=body[OxO721e[0x31]] ;} ;if(body[OxO721e[0x32]]){ MarginHeight[OxO721e[0x1d]]=body[OxO721e[0x32]] ;} ; btnok[OxO721e[0x33]]=function btnok_onclick(){try{ body[OxO721e[0x2d]]=TopMargin[OxO721e[0x1d]] ; body[OxO721e[0x2e]]=BottomMargin[OxO721e[0x1d]] ; body[OxO721e[0x2f]]=LeftMargin[OxO721e[0x1d]] ; body[OxO721e[0x30]]=RightMargin[OxO721e[0x1d]] ;if(MarginWidth[OxO721e[0x1d]]){ body[OxO721e[0x31]]=MarginWidth[OxO721e[0x1d]] ;} ;if(MarginHeight[OxO721e[0x1d]]){ body[OxO721e[0x32]]=MarginHeight[OxO721e[0x1d]] ;} ;} catch(er){ alert(OxO721e[0x34]) ;return ;} ;try{if(bgcolor[OxO721e[0x1d]]){if(editdoc[OxO721e[0x19]][OxO721e[0x2c]]!=OxO721e[0x35]){ editdoc[OxO721e[0x19]][OxO721e[0x2c]]=bgcolor[OxO721e[0x1d]] ;} else { editdoc[OxO721e[0x19]][OxO721e[0x2a]][OxO721e[0x2b]]=bgcolor[OxO721e[0x1d]] ;} ;} ;if(fontcolor[OxO721e[0x1d]]){ editdoc[OxO721e[0x19]][OxO721e[0x2a]][OxO721e[0x29]]=fontcolor[OxO721e[0x1d]] ;} ;if(Backgroundimage[OxO721e[0x1d]]){ editdoc[OxO721e[0x19]][OxO721e[0x28]]=Backgroundimage[OxO721e[0x1d]] ;} ;} catch(er){ alert(OxO721e[0x36]) ;return ;} ;if(!title){ title=document.createElement(OxO721e[0x1b]) ; head.appendChild(title) ;} ;if(Browser_IsWinIE()){ title[OxO721e[0x37]]=inp_title[OxO721e[0x1d]] ;} else {var Ox351=document.createTextNode(inp_title.value);try{ title.removeChild(title[OxO721e[0x38]].item(0x0)) ;} catch(x){} ; title.appendChild(Ox351) ;} ;for(var m=0x0;m<metas[OxO721e[0x20]];m++){var Ox119=metas[m];if(Ox119){if(Ox119[OxO721e[0x21]].toLowerCase()==OxO721e[0x22]||Ox119[OxO721e[0x21]].toLowerCase()==OxO721e[0x24]||Ox119[OxO721e[0x21]].toLowerCase()==OxO721e[0x26]||Ox119[OxO721e[0x21]].toLowerCase()==OxO721e[0x27]){ Ox119[OxO721e[0x39]].removeChild(Ox119) ; Ox119=null ;} ;} ;} ;try{if(inp_keywords[OxO721e[0x1d]]){ Ox352(OxO721e[0x21],OxO721e[0x22],inp_keywords.value) ;} ;if(inp_description[OxO721e[0x1d]]){ Ox352(OxO721e[0x21],OxO721e[0x24],inp_description.value) ;} ;if(HTMLEncoding[OxO721e[0x1d]]){ Ox352(OxO721e[0x3a],OxO721e[0x3b],HTMLEncoding.value) ;} ;if(PageLanguage[OxO721e[0x1d]]){ Ox352(OxO721e[0x3a],OxO721e[0x3c],PageLanguage.value) ;} ;} catch(x){} ; function Ox352(Ox353,name,Ox95){var Ox354;if(Browser_IsWinIE()){ Ox354=editdoc.createElement(OxO721e[0x3d]+Ox353+OxO721e[0x3e]+name+OxO721e[0x3f]+Ox95+OxO721e[0x40]) ;} else {var Ox354=editdoc.createElement(OxO721e[0x41]); Ox354.setAttribute(Ox353,name) ; Ox354.setAttribute(OxO721e[0x23],Ox95) ;} ; head.appendChild(Ox354) ;}  ; editor[OxO721e[0x1e]]=inp_doctype[OxO721e[0x1d]] ; Window_CloseDialog(window) ;}  ; btnbrowse[OxO721e[0x33]]=function btnbrowse_onclick(){ function Ox20e(Ox330){if(Ox330){ Backgroundimage[OxO721e[0x1d]]=Ox330 ;} ;}  ; editor.SetNextDialogWindow(window) ;if(Browser_IsSafari()){ editor.ShowSelectFileDialog(Ox20e,Backgroundimage.value,Backgroundimage) ;} else { editor.ShowSelectFileDialog(Ox20e,Backgroundimage.value) ;} ;}  ; btncc[OxO721e[0x33]]=function btncc_onclick(){ Window_CloseDialog(window) ;}  ;if(!Browser_IsWinIE()){ fontcolor[OxO721e[0x33]]=fontcolor_Preview[OxO721e[0x33]]=function fontcolor_onclick(){ SelectColor(fontcolor,fontcolor_Preview) ;}  ; bgcolor[OxO721e[0x33]]=bgcolor_Preview[OxO721e[0x33]]=function bgcolor_onclick(){ SelectColor(bgcolor,bgcolor_Preview) ;}  ;} ;