|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><%$sitename%></title>
<%*加載的Extjs 資源文件 -- 開始*%>
<link rel="stylesheet" type="text/css" href="<%$extjs_res%>" />
<script type="text/Javascript" src="<%$extjs_adapter%>"></script>
<script type="text/Javascript" src="<%$extjs_laction%>"></script>
<%*加載的Extjs 資源文件 -- 結束*%>
<%*執行塊的JS區域 -- 開始*%>
<script type="text/Javascript">
//具體開發 -- BJExtreme類
BJExtreme= function(){} ;
BJExtreme.prototype.getAuthor = function(){
return '許消寒' ;
}
BJExtreme.prototype.getVersion = function(){
return '2008年08月13日 17:00' ;
}
BJExtreme.prototype.getController = function(){
return 'index.php' ;
}
BJExtreme.prototype.buildLinkStr = function(ctl,act){
if (ctl == undefined)
return BJExtreme.prototype.getController() ;
if (act == undefined)
act = null ;
return BJExtreme.prototype.getController() + '?ctl=' + ctl + '&act=' + act ;
}
BJExtreme.prototype.showWindow = function(title1,width1,height1,html1){
if (this.win == undefined){
this.win = new Ext.Window({
title: title1,
width: width1 ,
height: height1 ,
html: html1
});
}
else {
this.win.close();
this.win = new Ext.Window({
title: title1,
width: width1 ,
height: height1 ,
html: html1
});
}
this.win.show();
}
/*對出現的UI組件單獨封裝*/
BJExtreme.prototype.ui = function(){} ;
BJExtreme.prototype.ui.mainTopic = {
title: 'Beijing Extreme 后臺管理', region: 'north' ,
html: '<embed src="<%$prj_dir%>/swf/top_title.swf" quality="high" type="application/x-shockwave-flash" width="450" height="50"></embed>'
};
/*左側菜單項操作 -- 開始*/
//定義初始話狀態時的菜單條對象
BJExtreme.prototype.ui.menuBar = {
xtype: 'treepanel' ,
title: '菜單',region: 'west',width: 200 ,collapsible: true ,
loader: null , root: null ,rootVisible: true , listeners: null
};
//旅游相關
BJExtreme.prototype.ui.menuBar.Traveling = {
text: '旅游' ,
leaf: false , // 這個設為false 則顯示文件夾圖標 , true 則顯示單項圖標
children: null
};
BJExtreme.prototype.ui.menuBar.Traveling.children = [
{text: '北京',leaf: true ,ctl: 'Peking',act: ''},
{text: '西藏' ,leaf: true ,ctl: 'Tibet' ,act: ''},
{text: '泰國' ,leaf: true},
{text: '香格里拉',leaf: true,ctl:'Shangrila',act: ''}
];
//藏醫相關
BJExtreme.prototype.ui.menuBar.Mibetdoctor = {
text: '藏醫' ,
leaf: false ,
children: null
};
BJExtreme.prototype.ui.menuBar.Mibetdoctor.children = [
{text: '藏醫歷史',leaf: true},
{text: '藏醫理論' ,leaf: true},
{text: '診斷' ,leaf: true},
{text: '病癥' ,leaf: true},
{text: '治療',leaf: true}
];
JavaScript技術:EXT富客戶端后臺管理系統 初步代碼第1/2頁,轉載需保留來源!
鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。