EXT富客户端后台管理系统 初步代码 -- vb2005xu自己动手系列

12 篇文章 0 订阅
11 篇文章 0 订阅


<!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 资源文件 -- 结束*%>

<%*执行块的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}
];

//潜水
BJExtreme.prototype.ui.menuBar.Diving = {
	text: '潜水' ,  					
    leaf: false , 
    children: null
};
//登山
BJExtreme.prototype.ui.menuBar.Mountain = {
	text: '登山' ,  					
    leaf: false , 
    children: null
};
//攀岩
BJExtreme.prototype.ui.menuBar.Rockclimbe = {
	text: '攀岩' ,  					
    leaf: false , 
    children: null
};
//徒步
BJExtreme.prototype.ui.menuBar.Onfoot = {
	text: '徒步' ,  					
    leaf: false , 
    children: null
};
//摩托车
BJExtreme.prototype.ui.menuBar.Motorcycle = {
	text: '摩托车' ,  					
    leaf: false , 
    children: null
};

//项目中集成的模块
BJExtreme.prototype.ui.menuBar.ModuleInProject = {
	text: '项目中集成的模块' ,  					
    leaf: false , 
    children: null 
};

BJExtreme.prototype.ui.menuBar.ModuleInProject.children = [
    {
    	text: '互动提示条',leaf: true,ctl: 'ExtjsStudy',act: 'linkTips',
    	//这个运行的优先级高于下面的那个通用的监听控制器
    	listeners:{click: function (n){window.open(BJExtreme.prototype.buildLinkStr(n.attributes.ctl,n.attributes.act));return false ;}} 
    }
];

//初始化 菜单项元素 信息 -- 这个必须在 -- 当前菜单是使用异步树组件生成的 , 以后可以添加其他不同的实现
BJExtreme.prototype.ui.menuBar.loader = new Ext.tree.TreeLoader();
BJExtreme.prototype.ui.menuBar.root = new Ext.tree.AsyncTreeNode({
	expanded: true ,
	children: [
		BJExtreme.prototype.ui.menuBar.Traveling ,
		BJExtreme.prototype.ui.menuBar.Mibetdoctor ,
		BJExtreme.prototype.ui.menuBar.Diving ,
		BJExtreme.prototype.ui.menuBar.Mountain ,
		BJExtreme.prototype.ui.menuBar.Rockclimbe ,
		BJExtreme.prototype.ui.menuBar.Onfoot ,
		BJExtreme.prototype.ui.menuBar.Motorcycle ,
		BJExtreme.prototype.ui.menuBar.ModuleInProject
	]
});

//定义一个简单的响应事件
BJExtreme.prototype.ui.menuBar.listeners = {
	click: function (n) //n.attributes 可以获得AsyncTreeNode的children中的对象
	{
		if (n.attributes.leaf == true) //叶选项
		{
			//n.attributes.text n.attributes.leaf
			var ctlStr = BJExtreme.prototype.buildLinkStr(n.attributes.ctl,n.attributes.act);   					
			myextreme.showWindow('当前控制器',400,300,ctlStr) ;   					
		}
		else //包含子菜单
		{
			//not to do
		}
	}
};


//菜单选项结束


//主内容面板
BJExtreme.prototype.ui.contentPane = {
	id: "main_content", xtype: "tabpanel" ,	region: 'center' ,items: [{title: '主内容面板'}]
};
//状态条
BJExtreme.prototype.ui.statusBar = {
	xtype: "tabpanel" ,	region: 'south' ,items: [{title: '状态条'}]
};

BJExtreme.prototype.buildMainPane = function(BJExtremeObj){
	//Ext.Viewport 用来将对象渲染到页面中的body块中,会自动改变,每个页面仅限一个
	this.mainPane = new Ext.Viewport({
		enableTabScroll: true ,
		layout: 'border', //设为fit则不能显示复合面板
		items: [
			BJExtremeObj.ui.mainTopic,
			BJExtremeObj.ui.menuBar ,        	
        	BJExtremeObj.ui.contentPane	,
        	BJExtremeObj.ui.statusBar
		]
	}) ;
	
}


var myextreme = new BJExtreme() ; 

Ext.onReady(
	function(){
		//Ext.MessageBox.alert('BJExtreme Version',myextreme.getVersion());		
		//Ext.MessageBox.alert('BJExtreme Version',myextreme.buildLinkStr('t','b'));	
		myextreme.buildMainPane(myextreme) ;
	}
);
</script>
<%*执行块的JS区域 -- 结束*%>

</head>
<body>
<!-- //页面中子导航菜单 -->





</body>
</html>


  • 描述: 项目抓图 其中的互动提示条 可以实现网络抓取 实时屏幕取词功能
  • 大小: 126.7 KB
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
本系统采用EXT技术构建页面并与MySql数据库有机结合,实现了网上订单管理的功能。具有前台数据更新和后台管理的功能,主要采用了struts和hibernate框架,以MVC设计模式为基础,大多数页面采用了EXT技术实现。主要开发的工具有MyEclipse 6.0 ,数据库为Mysql,应用服务器为tomcat5.X,对EXT的使用参考了官方网站上的EXT2.0版本。该平台的实现过程中,涉及的工作包括:(1)页面设计,总体设计的讨论; (2)网站公告的管理;(3)网站用户的管理;(4)企业用户的功能;(5)各类用户权限的管理;(6)公告,用户的搜索功能。 摘 要 2 Abstract 4 第一章 绪论 1 1.1 网上订单系统建设的背景 1 1.2 网上订单系统实现的目标 1 1.3 网上订单系统实现的意义 2 1.4 网上订单系统实现的现状 4 第二章 系统开发环境和采用的技术 7 2.1 EXT技术简介 7 2.2 J2EE开源框架的选取 8 2.2.1Struts框架 8 2.2.2Hibernate框架 9 2.3 系统开发选用的数据库 10 第三章 网上订单管理系统总体分析与设计 11 3.1 系统的设计思想和原则 11 3.1.1 设计思想 11 3.1.2 设计原则 11 3.2 体系结构设计 11 3.2.1 系统的体系结构 11 3.2.2 JDBC配置 12 3.3 网站系统分析 13 3.4 网站流程分析 15 3.5 网站总体结构 17 3.6 业务功能表 18 3.7 数据库设计 19 第四章 网上订单管理系统总体分析与设计 20 4.1 用户登陆 20 4.1.1 功能 20 4.1.2 组成部分 21 4.1.3界面设计和重点、难点代码的设计 22 4.1.4数据库结构设计 24 4.2 商品管理 24 4.2.1功能 24 4.2.2组成部分 25 4.2.3界面设计和重点、难点代码的设计 26 4.2.4数据库结构设计 29 4.3 订单处理 29 4.3.1功能 29 4.3.2组成部分 30 4.3.3界面设计和重点、难点代码的设计 31 4.3.4数据库结构设计 31 4.4 报表处理 32 4.4.1功能 32 4.4.2组成部分 33 4.4.3界面设计和重点、难点代码的设计 33 4.4.4数据库结构设计 34 4.5 用户权限管理 34 4.5.1功能 34 4.5.2组成部分 35 4.6 用户管理 35 4.6.1功能 35 4.6.2组成部分 36 4.6.3界面设计和重点、难点代码的设计 37 4.6.4数据库结构设计 38 4.7 公告管理 39 4.7.1功能 39 4.7.2组成部分 40 4.7.3界面设计和重点、难点代码的设计 40 4.7.4数据库结构设计 41 4.8 后台查询管理 41 4.8.1功能 41 4.8.2界面设计和重点、难点代码的设计 41 4.9 系统运行环境 42 第六章 总结与思考 42 5.1 问题提出与解决 43 5.1 总结与思考 44 参考文献 45 致谢 47 附录 48 附录1 毕业设计文献综述 48 附件2 毕业设计开题报告 48 附件3 毕业设计外文翻译(中文译文与外文原文) 48
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值