EXT 리치 클라이언트 백엔드 관리 시스템 예비 코드를 모두에게 제공합니다 html> <제목><%$ 사이트 이름%> <%*로드된 Extjs 리소스 파일--시작*%> <스크립트 유형 = "text/javascript" src="<%$extjs_laction%>"> <%*로드된 Extjs 리소스 파일 -- end*%> 실행 블록 영역--Start*%> <br>//특정 개발--BJExtreme 클래스<br>BJExtreme= function(){}; <br>BJExtreme.prototype.getAuthor = function(){ <br>return 'Xu Xiaohan' ; <br>} <br>BJExtreme.prototype.getVersion = function(){ <br>return '2008년 8월 13일 17: 00'; <br>} <br>BJExtreme.prototype.getController = function(){ <br>return 'index.php' ; <br>} <br>BJExtreme.prototype.buildLinkStr = function(ctl, act) <br>if (ctl == 정의되지 않음) <br>return BJExtreme.prototype.getController() ; <br>if (act == undefine) <br>act = null <br>return BJExtreme.prototype() '?ctl=' ctl '&act=' act ; <br>} <br>BJExtreme.prototype.showWindow = function(title1,width1,height1,html1){ <br>if (this.win == 정의되지 않음){ <br>this.win = new Ext.Window({ <br>title: title1, <br>width: width1, <br>height: height1, <br>html: html1 <br>}) <br>else { <br>this.win.close(); <br>this.win = new Ext.Window({ <br>title: title1, <br>width: width1, <br>height: height1 , <br>html: html1 <br>}); <br>} <br>this.win.show(); <br>} <br>/*별도로 나타나는 UI 구성요소 캡슐화*/ <br> BJExtreme.prototype .ui = function(){} ; <br>BJExtreme.prototype.ui.mainTopic = { <br>title: 'Beijing Extreme Backend Management', 지역: 'north' , <br>html: '< "<%$prj_dir%>/swf/top_title.swf" quality="high" type="application/x-shockwave-flash" width="450" height="50"></ 삽입> ;' <br/>}; <br/>/*왼쪽 메뉴 항목 작업--시작*/ <br/>//초기 상태에서 메뉴 표시줄 객체 정의 <br/>BJExtreme.prototype.ui.menuBar = { <br/> xtype: 'treepanel' , <br/>title: 'menu',region: 'west',width: 200 ,collapsible: true , <br/>loader: null , root: null ,rootVisible: true , 청취자: null <br/> }; <br/>//여행 관련<br/>BJExtreme.prototype.ui.menuBar.Traveling = { <br/>text: 'Travel' , <br/>leaf: false , // Clip 파일을 표시하려면 false로 설정하세요. icon, true는 단일 항목 아이콘을 표시합니다 <br/>children: null <br/>BJExtreme.prototype.ui.menuBar.Traveling.children = [ <br/>{text: 'Beijing',leaf: true ,ctl : 'Peking',act: ''}, <br/>{text: 'Tibet' ,leaf: true ,ctl: 'Tibet' ,act: ''}, <br/>{text: 'Thailand' ,leaf: true }, <br/>{text: 'Shangrila',leaf: true,ctl:'Shangrila',act: ''} <br/>] <br/>//티베트 의학 관련<br/>BJExtreme.prototype.ui.menuBar . Mibetdoctor = { <br/>text: '티베트 의학' , <br/>leaf: false , <br/>children: null <br/>} <br/>BJExtreme.prototype.ui.menuBar.Mibetdoctor.children = [ <br/>{ text: '티베트 의학의 역사',leaf: true}, <br/>{text: '티베트 의학 이론' ,leaf: true}, <br/>{text: '진단' ,leaf: true}, <br/>{text: '질병',leaf: true}, <br/>{text: 'Treatment',leaf: true} <br/>] <br/><br/>//Dive<br/>BJExtreme.prototype.ui. menuBar.ping = { <br/>text: 'Diving' , <br/>leaf: false , <br/>children: null <br/>} <br/>//등산<br/>BJExtreme.prototype.ui.menuBar. Mountain = { <br/> text: 'Mountain climb' , <br/>leaf: false , <br/>children: null <br/>} <br/>//Rock climb<br/>BJExtreme.prototype.ui.menuBar.Rockclimbe = { <br/>text: '암벽등반' , <br/>leaf: false , <br/>children: null <br/>} <br/>//Hiking<br/>BJExtreme.prototype.ui.menuBar.Onfoot = { <br/>text: 'Hiking' , <br/>leaf: false , <br/>children: null <br/>} <br/>//Motorcycle<br/>BJExtreme.prototype.ui.menuBar.Motorcycle = { <br/> text: 'Motorcycle' , <br/>leaf: false , <br/>children: null <br/>}//프로젝트에 통합된 모듈<br/>BJExtreme.prototype.ui.menuBar.ModuleInProject = { <br/>text: '프로젝트 모듈에 통합됨' , <br/>leaf: false , <br/>children: null <br/>} <br/>BJExtreme.prototype.ui.menuBar.ModuleInProject.children = [ <br/>{ <br/>text: '대화형 프롬프트 스트립',leaf: true,ctl: 'ExtjsStudy',act: 'linkTips', <br/>//이 작업은 아래의 일반 수신 컨트롤러보다 우선순위가 높습니다<br/>listeners:{click: function (n){window.open(BJExtreme.prototype.buildLinkStr(n.attributes.ctl,n.attributes.act)) ;return false ;}} <br/>} <br/>]; <br/>//메뉴 항목 요소 정보 초기화--이 항목에 있어야 합니다--현재 메뉴는 비동기 트리 구성 요소를 사용하여 생성되며 다른 메뉴도 가능합니다. <br/>BJExtreme.prototype.ui.menuBar.loader = new Ext.tree.TreeLoader() <br/>BJExtreme.prototype.ui.menuBar.root = new Ext.tree.AsyncTreeNode({ <의 향후 구현에 추가됨 🎜>확장: true, <br/>어린이: [ <br/>BJExtreme.prototype.ui.menuBar.Traveling, <br/>BJExtreme.prototype.ui.menuBar.Mibetdoctor, <br/>BJExtreme.prototype.ui.menuBar.ping , <br/> BJExtreme.prototype.ui.menuBar.Mountain , <br/>BJExtreme.prototype.ui.menuBar.Rockclimbe , <br/>BJExtreme.prototype.ui.menuBar.Onfoot , <br/>BJExtreme.prototype.ui.menuBar .Motorcycle , <br/>BJExtreme.prototype.ui.menuBar.ModuleInProject <br/>] <br/>}) <br/>//간단한 응답 이벤트 정의<br/>BJExtreme.prototype.ui.menuBar.listeners = { <br/>click : 함수 (n) //n.attributes는 AsyncTreeNode <br/>{ <br/>if (n.attributes.leaf == true) //Leaf 옵션 <br/>{ <br/>//n .attributes.text n.attributes.leaf <br/>var ctlStr = BJExtreme.prototype.buildLinkStr(n.attributes.ctl,n.attributes.act) <br/>myextreme.showWindow('현재 컨트롤러', 400,300,ctlStr ) ; <br/>} <br/>else //하위 메뉴 포함<br/>{ <br/>//하지 말아야 할 일 <br/>} <br/>}//메뉴 끝 options<br/>//주 콘텐츠 패널 <br/>BJExtreme.prototype.ui.contentPane = { <br/>id: "main_content", xtype: "tabpanel" , 지역: 'center' ,items: [{title: 'Main 콘텐츠 패널' }] <br/>}; <br/>//상태 표시줄<br/>BJExtreme.prototype.ui.statusBar = { <br/>xtype: "tabpanel" , 지역: 'south' ,items: [{title: 'Status Bar'}] <br/>}; <br/>BJExtreme.prototype.buildMainPane = function(BJExtremeObj){ <br/>//Ext.Viewport는 페이지의 본문 블록에 개체를 렌더링하는 데 사용되며 자동으로 변경됩니다. 각 페이지마다 하나만 <br/>this.mainPane = new Ext.Viewport({ <br/>enableTabScroll: true , <br/>layout: 'border', //맞춤으로 설정하면 복합 패널을 표시할 수 없습니다. <br/> 항목: [ <br/>BJExtremeObj.ui.mainTopic, <br/>BJExtremeObj.ui.menuBar , <br/>BJExtremeObj.ui.contentPane, <br/>BJExtremeObj.ui.statusBar <br/>] <br/>}) <br/>} <br/> var myextreme = new BJExtreme(); <br/>Ext.onReady( <br/>function(){ <br/>//Ext.MessageBox.alert('BJExtreme Version',myextreme.getVersion()); <br/>// Ext.MessageBox.alert('BJExtreme Version',myextreme.buildLinkStr('t','b')) <br/>myextreme.buildMainPane(myextreme) <br/>} <br/>); 🎜></ script> <br><%*JS 영역--end*%> <br><body> -- //페이지 중성자 탐색 메뉴--> <br><br></body> <br></html><br></p>