Ext.onReady(function() {
Ext.BLANK_IMAGE_URL = 'images/s.gif';
Ext.QuickTips.init();
Ext.lib.Ajax.defaultPostHeader += ";charset=utf-8";
// 1、创建head部分
var tb=new Ext.Toolbar({
height: 29,
margins:"0 10 0 10",
items:[
{text:"摘机"},
{xtype:"tbseparator"},
{text:"挂机"},
{xtype:"tbseparator"},
{text:"复位"},
{xtype:"tbseparator"},
{xtype:"tbfill"},//加上这句,后面的就显示到右边去了
{xtype:"tbtext",text:"服务器状态: "},
{xtype:"tbtext",text:"正常"},
{xtype:"tbseparator"},
{xtype:"tbtext",text:"线路状态: "},
{xtype:"tbtext",text:"正常"},
{xtype:"tbseparator"},
{xtype:"tbtext",text:"坐席状态: "},
{xtype:"tbtext",text:"正常"},
{xtype:"tbseparator"},
{xtype:"tbtext",text:"本机号码: "},
{xtype:"tbtext",text:"106"},
{xtype:"tbseparator"},
{xtype:"tbtext",text:"队列等待数:"},
{xtype:"tbtext",text:"10"},
{xtype:"tbseparator"},
{xtype:"tbtext",text:"来电号码: "},
{xtype:"tbtext",text:"83110320",width:100},
{xtype:"tbseparator"}
]
});
var head = new Ext.Panel( {
region : 'north',
border : false,
height : 65,
items :[{
html : '<div style="background:url(images/bg_bar.gif) repeat-x; height:36px;">'
+'<div style="background: url(images/bg_logo.gif) no-repeat 0 0;height:36px;">'
+ '<div style="float:right;margin:10px;font:normal 12px tahoma, arial, sans-serif, 宋体;" >'
+ '<a href="#" onclick="javascript:window.close(); return false;" style="color: white">修改密码</a> '
+ '<a href="#" onclick="javascript:window.close(); return false;" style="color: white">注销</a> '
+ '<a href="#" onclick="javascript:window.close(); return false;" style="color: white">关闭</a> '
+'</div></div></div>'
},
tb
]
});
// 2、创建foot部分
var foot = new Ext.Panel( {
region : 'south',
html : '<div style="height:25px; ">'
+'<div style="float:left;font:normal 12px tahoma, arial, sans-serif, 宋体;margin:6px;">'
+ '上次登录IP: 192.168.18.201 上次登录时间: 2010-05-01 14:32:21</div>'
+ '<div style="float:right;margin:7px;font:normal 12px tahoma, arial, sans-serif, 宋体;" >'
+ '版权所有:南京广建科技有限公司</a></div>'
+ '</div>',
height : 25
});
// 3、创建leftMenu部分
// var leftmenu = new Ext.Panel( {
// region : 'west',
// html : '<div>导航菜单</div>',
// width : 200
// });
// 4、创建主内容部分
// var mainTab = new Ext.Panel( {
// region : 'center',
// html : '<div>主内容部分</div>'
// });
var loader = new Ext.tree.TreeLoader({
url:'treedata.js'
});
var t1 = new Ext.tree.TreePanel( {
border : false,
rootVisible : false,
root : new Ext.tree.AsyncTreeNode( {
text : "我的办公桌",
expanded : true,
loader:loader
})
});
var t2 = new Ext.tree.TreePanel( {
border : false,
rootVisible : false,
root : new Ext.tree.AsyncTreeNode( {
text : "主数据管理",
expanded : true,
children : [ {
id : "department",
text : "部门管理",
leaf : true
}, {
id : "company",
text : "公司管理",
leaf : true
}, {
id : "permissions",
text : "权限管理",
children : [ {
id : "permission",
text : "权限管理",
leaf : true
}, {
id : "permissionType",
text : "权限类别",
leaf : true
}]
}]
})
});
var leftmenu = new Together.Office.LeftMenu( {
title : '功能菜单',
trees : [t1, t2]
});
var mainTab = new Together.Office.MainingPanel( {
style : 'padding:0 6px 0 0',
autoScroll : true,
region : 'center',
deferredRender : false,
activeTab : 0,
resizeTabs : true,
inTabWidth : 100,
tabWidth : 90,
enableTabScroll : true,
items : [{
title : '首页',
iconCls:'index',
html : '<div style="background:url(images/main.gif) no-repeat center middle; height:508px;"></div>'
}]
});
// 5、建立leftmenu和mainTab两者之间的关系
leftmenu.on("nodeClick", function(nodeAttr) {
mainTab.loadTab(nodeAttr);
});
// 6、创建布局
var viewport = new Ext.Viewport( {
layout : 'border',
style : 'border:#024459 2px solid;',
items : [head, foot, leftmenu, mainTab]
});
});
分享到:
相关推荐
MainController.js # The `Ext.app.ViewController` for the Main View Application.js # The `Ext.app.Application` class packages/ # Sencha Cmd packages build/ # The folder where build output is ...
│ │ ├─main │ │ │ ├─java │ │ │ │ ├─com │ │ │ │ │ └─tr │ │ │ │ │ └─geda │ │ │ │ │ └─evm │ │ │ │ │ ├─common │ │ │ │ │ │ ├─entity │ │ │ │ │ │ │ ...
Ext JS 4 First Look teaches you the main functional areas of Ext JS 4 that have significant new features, explains the new features and how to use them, while highlighting the differences between Ext ...
- Ext-JS intensive use User management - Administrator can set user passwords without sending it by email. Utilities (extra system) - XLS to XML generator for Test Cases and Requirements API - new ...
- main.js es6入口 - src webpack示例 - server.js webpack入口 - webpack. * .js webpack配置文件 - package.json 依赖管理 - php - demo 各种栗子 - ext php扩展包应用 - container 容器 - level 面试...
然后看看是不是main下面多了一个 config.w32.h 第四步、在C:/phpsrc/ext下建立文件夹eaccelerator将eAccelerator v0.9.6.1(源文件)解压后里面的全部文件复制到C:/phpsrc/ext/eaccelerator文件夹内,启动Visual ...
则将面包屑的事件处理程序替换为 > 文件说明: /index.html is a quick example of how to use breadcrumbs./js/app.js is a quick example of how to use breadcrumbs./js/ux/breadCrumbs.js main code/css/...
4、在工程中找到“main.js”文档,该文档中是控制应用显示GridPanel和TreePanel示例的开关 5、在IE的地址栏输入“http://localhost:8080/GridPanel”之后回车 6、如果一切正常,你会看到可以分页的表格;调整main.js...
4. See the app/view/*, there are view(main.js), viewModel(MainModel.js), viewController(MainController.js). 5. ViewModel Binding & update automatically sample, you can see the Method->updateData() of ...
-|main.js ---主程序脚本 |memcache.class.php ---memcache数据库缓存加速类 |next_run.php ---暂无具体功能 -r ---URL重定向目录 -|httpd.ini ---模拟静态INI配置文件 -|rewrite.dll ---IIS ISAPI模拟静态...
环境:Window XP Sp3、IE 7、FireFox、Tomcat 6.0、Eclipse 3.3 使用步骤: 1、下载解压缩之后,使用IDE导入工程...3、一一注释main.js中的演示方法,可以看到11种Ext常用的布局方式 阅读:本中心学习Ext框架开发的学员
一组的纯JS扩展 使用JS解析命令行参数并构建静态命令行实用程序(请参阅 ) 异步执行外部流程(请参阅 ...const main = async ( ) => { const commands = [ 'date' , 'uptime' , 'which sh' ] ; const promises
一种了解Web应用程序是什么的编程语言。 WaSP(W EB一个pplication SP ecification语言)是一种可扩展建设用更少的代码现代Web应用程序... fn: import { getTasks } from "@ext/queries.js" } entity Task { = psl
目标是创建没有JavaScript,没有CSS,没有UpdatePanel,没有WebServices的Web应用程序。 支持的浏览器: IE 7.0+, Firefox 3.0+, Chrome 2.0+, Opera 9.5+, Safari 3.0+ 注:ExtAspNet基于一些开源的程序ExtJS, ...
this.mainBody) { return; // not rendered } var g = this.grid; var c = g.getGridEl(); var csize = c.getSize(true); var vw = csize.width; if (!g.hideHeaders && (vw < 20 || csize.height < 20)) { //...
//解释:如果自动化的代码直接写在一个js文件中直接全局的引入main.js 中也是没有问题的, //但是这里是按照自定义插件的方式写下global文件中的就要使用vue的use方法 自定义global插件,通过全局的Vue.use(global)来...
entry : 'src/main.js' , dest : 'dist/bundle.js' , plugins : [ riot ( ) ] } 选项 您可以指定一些options : import riot from 'rollup-plugin-riot' const options = { ext : 'html' } export defaul
目标是创建没有ViewState,没有JavaScript,没有CSS,没有UpdatePanel,没有WebServices的Web应用程序。 支持的浏览器: IE 7.0+, Firefox 3.0+, Chrome 2.0+, Opera 9.5+, Safari 3.0+ 注:ExtAspNet基于一些开源...
public class ExtDemo2 { public static void main(String args[]) { Student stu = new Student(); stu.setName("张三"); stu.setAge(19); stu.setSchool("ZZU"); System.out.println(" : " + stu.getName()...
向您的app.js(aka main.js)应用程序文件中添加下一个字符串:app.set(“ view engine”,“ ejs”); //用于在不使用“ ejs”的情况下使用ejs文件ext app.use(express.static(“ public”)); //对于CSS和...