EXT富客戶端后臺管理系統(tǒng) 初步代碼第1/2頁
更新時間:2008年09月27日 18:01:45 作者:
EXT富客戶端后臺管理系統(tǒng) 初步代碼提供給大家
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<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 資源文件 -- 結(jié)束*%>
<%*執(zhí)行塊的JS區(qū)域 -- 開始*%>
<script type="text/javascript">
//具體開發(fā) -- 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();
}
/*對出現(xiàn)的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>'
};
/*左側(cè)菜單項操作 -- 開始*/
//定義初始話狀態(tài)時的菜單條對象
BJExtreme.prototype.ui.menuBar = {
xtype: 'treepanel' ,
title: '菜單',region: 'west',width: 200 ,collapsible: true ,
loader: null , root: null ,rootVisible: true , listeners: null
};
//旅游相關(guān)
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: ''}
];
//藏醫(yī)相關(guān)
BJExtreme.prototype.ui.menuBar.Mibetdoctor = {
text: '藏醫(yī)' ,
leaf: false ,
children: null
};
BJExtreme.prototype.ui.menuBar.Mibetdoctor.children = [
{text: '藏醫(yī)歷史',leaf: true},
{text: '藏醫(yī)理論' ,leaf: true},
{text: '診斷' ,leaf: true},
{text: '病癥' ,leaf: true},
{text: '治療',leaf: true}
];
<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 資源文件 -- 結(jié)束*%>
<%*執(zhí)行塊的JS區(qū)域 -- 開始*%>
<script type="text/javascript">
//具體開發(fā) -- 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();
}
/*對出現(xiàn)的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>'
};
/*左側(cè)菜單項操作 -- 開始*/
//定義初始話狀態(tài)時的菜單條對象
BJExtreme.prototype.ui.menuBar = {
xtype: 'treepanel' ,
title: '菜單',region: 'west',width: 200 ,collapsible: true ,
loader: null , root: null ,rootVisible: true , listeners: null
};
//旅游相關(guān)
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: ''}
];
//藏醫(yī)相關(guān)
BJExtreme.prototype.ui.menuBar.Mibetdoctor = {
text: '藏醫(yī)' ,
leaf: false ,
children: null
};
BJExtreme.prototype.ui.menuBar.Mibetdoctor.children = [
{text: '藏醫(yī)歷史',leaf: true},
{text: '藏醫(yī)理論' ,leaf: true},
{text: '診斷' ,leaf: true},
{text: '病癥' ,leaf: true},
{text: '治療',leaf: true}
];
相關(guān)文章
YUI 讀碼日記之 YAHOO.util.Dom - Part.1
DOM 操作是學習 Javascript 很重點的一塊。YUI 提供了豐富的 DOM 操作接口,它們定義在 %BUILD%/dom/dom.js 中(封裝成 YAHOO.util.Dom)。由于 DOM 操作比較重要,我計劃將其分成幾個 Part 分析。2008-03-03
Javascript YUI 讀碼日記之 YAHOO.util.Dom - Part.2 0
繼續(xù)在 YAHOO.util.Dom 中徘徊。由于 YAHOO.util.Dom 多次調(diào)用 batch 方法,所以先看看這個函數(shù)是怎么寫的。有關(guān) batch 的用法,可以參見這里,相關(guān)的代碼如下2008-03-03
yui3的AOP(面向切面編程)和OOP(面向?qū)ο缶幊?
這篇文章主要介紹了yui3的AOP(面向切面編程)和OOP(面向?qū)ο缶幊?,需要的朋友可以參考下2015-05-05

