<%@ page language= "java" contentType ="text/html; charset=UTF-8"
pageEncoding="UTF-8" %>
<!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> OCS对接</title >
<script src="../../../resources/ext5/ext-all.js" ></script>
<script src="../../../resources/ext5/packages/ext-locale/ext-locale-zh_CN.js" ></script>
<link href="../../../resources/ext5/packages/ext-theme-access/build/resources/ext-theme-access-all.css" rel="stylesheet" />
<!-- example code -->
<link rel="stylesheet" type="text/css" href="../../../resources/ext5/warnConfig.css" >
<script src="../../../resources/ext5/treefilter.js"></script >
<script type="text/javascript" >
//
// This is the main layout definition.
//
//
// Note that these are all defined as panel configs, rather than instantiated
// as panel objects. You could just as easily do this instead:
//
// var absolute = Ext.create('Ext.Panel', { ... });
//
// However, by passing configs into the main container instead of objects, we can defer
// layout AND object instantiation until absolutely needed. Since most of these panels
// won't be shown by default until requested, this will save us some processing
// time up front when initially rendering the page.
//
// Since all of these configs are being added into a layout container, they are
// automatically assumed to be panel configs, and so the xtype of 'panel' is
// implicit. To define a config of some other type of component to be added into
// the layout, simply provide the appropriate xtype config explicitly.
//
function getBasicLayouts() {
// This is a fake CardLayout navigation function. A real implementation would
// likely be more sophisticated, with logic to validate navigation flow. It will
// be assigned next as the handling function for the buttons in the CardLayout example.
var cardNav = function(incr){
var l = Ext.getCmp('card-wizard-panel' ).getLayout();
var i = l.activeItem.id.split('card-' )[1];
var next = parseInt(i, 10) + incr;
l.setActiveItem(next);
// Ext.getCmp('card-prev').setDisabled(next===0);
// Ext.getCmp('card-next').setDisabled(next===2);
};
return {
/*
* ================ Start page config =======================
*/
// The default start page, also a simple example of a FitLayout.
start: {
id: 'mainPanel',
title: 'OCS系统点号对接配置' ,
layout: 'fit',
bodyPadding: 25
}
};
}
Ext.onReady(function(){
Ext.tip.QuickTipManager.init();
var detailsCmp;
// Gets all layouts examples
/*
var layoutExamples = [];
Ext.Object.each(getBasicLayouts(), function(name, example) {
layoutExamples.push(example);
});
*/
// Ext.Object.each(getCombinationLayouts(), function(name, example){
// layoutExamples.push(example);
// });
// Ext.Object.each(getCustomLayouts(), function(name, example){
// layoutExamples.push(example);
// });
// This is the main content center region that will contain each example layout panel.
// It will be implemented as a CardLayout since it will contain multiple panels with
// only one being visible at any given time.
<%-- var contentPanel = {--%>
<%-- id: 'content-panel',--%>
<%-- // region: 'border', // this is what makes this panel into a region within the containing layout--%>
<%-- margins: '2 5 5 0',--%>
<%-- fit:true,--%>
<%-- activeItem: 0,--%>
<%-- border: false,--%>
<%-- items: layoutExamples--%>
<%-- };--%>
var store = Ext.create( 'Ext.data.TreeStore', {
root: {
expanded: true,
text: "My Root",
children: [
{ text: "Child 1", leaf: true },
{ text: "Child 2", expanded: true, children: [
{ text: "GrandChild", leaf: true }
] }
]
}
/*
proxy: {
actionMethods: {
create: "POST", read: "POST", update: "POST", destroy: "POST"
},
type: 'ajax',
autoLoad : true,
noCache: false,
// url: '${pageContext.request.contextPath}/sysLoginAction/getTreeAction_ext.action',
extraParams:{pid:'1'}
}
*/
});
// Go ahead and create the TreePanel now so that we can use it below
var tab1 = Ext.create( 'MyTreePanel', {
id: 'tab1',
title: 'tab1',
region: 'center',
split: true,
height: 360,
minSize: 150,
rootVisible: false,
autoScroll: true,
store: store
});
var tab2 = Ext.create( 'MyTreePanel', {
id: 'tab2',
title: 'tab2',
region: 'center',
split: true,
height: 360,
minSize: 150,
rootVisible: false,
autoScroll: true
});
/*
treePanel.getSelectionModel().on('select', function(selModel, record) {
if (record.get('leaf')) {
// Ext.getCmp('content-panel').layout.setActiveItem(record.getId() + '-panel');
//
// detailsCmp = Ext.getCmp('details-panel');
// detailsCmp.body.hide().slideIn('l', {stopAnimation:true,duration: 200});
// detailsCmp.update(Ext.getDom(record.getId() + '-details').innerHTML);
// detailsCmp.doLayout();
}
});
*/
// This is the Details panel that contains the description for each example layout.
var tabs = Ext.widget('tabpanel' , {
resizeTabs: true,
enableTabScroll: true,
items: [tab1,tab2]
});
<%--{--%>
<%-- id: 'tabsPanel',--%>
<%-- region: 'center', // this is what makes this panel into a region within the containing layout--%>
<%-- border: false,--%>
<%-- layout: 'fit' ,--%>
<%-- items:tabs--%>
<%--//tabs为tab页,在items中增加fit即可--%>
<%-- // height:500,--%>
<%-- //bodyStyle: 'background:#fff;' --%>
<%--}--%>
var detailsPanel = {
id: 'main',
region: 'center',
title: 'Details',
border: false,
layout: 'fit' ,
items:tabs
};
// Finally, build the main layout once all the pieces are ready. This is also a good
// example of putting together a full-screen BorderLayout within a Viewport.
Ext.create('Ext.Viewport', {
layout: 'border',
title: 'Ext Layout Browser',
items: [
detailsPanel
]
});
<%-- var field = Ext.get('textfieldid'); --%>
<%-- field.on('keyup', function(e) { --%>
<%-- // alert(Ext.getCmp('textfieldid').getValue());--%>
<%-- treePanel.filterByText(Ext.getCmp('textfieldid').getValue()) ; --%>
<%-- }); --%>
});
</script>
</head>
<body>
</body>
</html>
- javascript面向对象——tabs实例
面向过程—>面向对象 之前在未学习面向对象时,我们都是面向过程编程的.它的优点就是简单,明了,下面就来把面向过程的tabs切换改写成面向对象的方式. html: <div class=&q ...
- 最近学习工作流 推荐一个activiti 的教程文档
全文地址:http://www.mossle.com/docs/activiti/ Activiti 5.15 用户手册 Table of Contents 1. 简介 协议 下载 源码 必要的软件 ...
- [ExtJS5学习笔记]第十一节 Extjs5MVVM模式下系统登录实例
本文地址:http://blog.csdn.net/sushengmiyan/article/details/38815923 实例代码下载地址: http://download.csdn.net/d ...
- jQuery EasyUI 选项卡面板tabs使用实例精讲
1. 对选项卡面板区域 div 设置 class=”easyui-tabs” 2. 对选项卡面板区域添加多个 div,每个 div 就是一个选项卡(每个面板一定设置 title) 3. 设置面板 fi ...
- 微信小程序实例:实现tabs选项卡效果
最近微信应用号是炒的如火如荼,热门满满,但是也可以发现搜索关键词出来,各类网站出现的还都是微信的官方文档解释.正好赶上这个热潮,这几天先把小程序技术文档看了个遍,就直接着手写案例了.很多组件微信内部已 ...
- Android应用底部导航栏(选项卡)实例
现在很多android的应用都采用底部导航栏的功能,这样可以使得用户在使用过程中随意切换不同的页面,现在我采用TabHost组件来自定义一个底部的导航栏的功能. 我们先看下该demo实例的框架图: 其 ...
- ASP.NET MVC+EF框架+EasyUI实现权限管理系列(23)-设置角色遗留问题和为权限设置角色以及EasyUI Tabs的使用
ASP.NET MVC+EF框架+EasyUI实现权限管系列 (开篇) (1):框架搭建 (2):数据库访问层的设计Demo (3):面向接口编程 (4 ):业务逻辑层的封装 ...
- 多iframe使用tab标签方式添加、删除、切换的处理实例
紧接着上一篇随笔iframe的内容增高或缩减时设置其iframe的高度的处理方案 如果采用iframe来切换显示内容的方式来展现办公Web.那么需要解决几个问题 1.tab标签需要和显示的iframe ...
- Qt StyleSheet样式表实例(转)
QT论坛看到的,收藏一下! 在涉及到Qt 美工的时候首先需要掌握CSS 级联样式表. 下面将通过几个例子来介绍一下怎样使用Qt中的部件类型设计.自定义的前台背景与后台背景的颜色: 如果需要一个文本编辑 ...
随机推荐
- Android Starting Window(Preview Window)
当打开一个Activity时,如果这个Activity所属的应用还没有在运行,系统会为这个Activity所属的应用创建一个进程,但进程的创建与初始化都需要时间,在这个动作完成之前系统要做什么呢?如果 ...
- Python学习--05函数
Python函数 函数是组织好的,可重复使用的,用来实现单一,或相关联功能的代码段. 函数能提高应用的模块性,和代码的重复利用率.我们已经知道Python提供了许多内建函数,比如print().但我们 ...
- ActiveMQ5.14.1+Zookeeper3.4.9高可用伪分布式部署
本文借鉴http://www.cnblogs.com/gossip/p/5977489.html,在此基础上进行了完善,使之成为一个完整版的伪分布式部署说明,在此记录一下! 一.本文目的 ...
- 使用Newtonsoft.Json.dll(JSON.NET)动态解析JSON、.net 的json的序列化与反序列化(一)
在开发中,我非常喜欢动态语言和匿名对象带来的方便,JSON.NET具有动态序列化和反序列化任意JSON内容的能力,不必将它映射到具体的强类型对象,它可以处理不确定的类型(集合.字典.动态对象和匿名对象 ...
- JavaScript语言精粹--Function,类,this,对象
1.类与对象 在JS中,创建对象(Create Object)并不完全是我们时常说的创建类对象,JS中的对象强调的是一种复合类型,JS中创建对象及对对象的访问是极其灵活的. JS对象是一种复合类型,它 ...
- .Net MVC 网站中配置文件的读写
网站中有很多需要设置的内容,像网站信息,注册设置,上传设置等.如果保存在数据库中需要单独建张表,表中只有一条记录,这样会让数据库很臃肿,而且频繁存取数据库的效率也是个问题.而保存在config文件里是 ...
- .NET Core采用的全新配置系统[4]: “Options模式”下各种类型的Options对象是如何绑定的?
旨在生成Options对象的配置绑定实现在IConfiguration接口的扩展方法Bind上.配置绑定的目标类型可以是一个简单的基元类型,也可以是一个自定义数据类型,还可以是一个数组.集合或者字典类 ...
- 学习ASP.NET Core,你必须了解无处不在的“依赖注入”
ASP.NET Core的核心是通过一个Server和若干注册的Middleware构成的管道,不论是管道自身的构建,还是Server和Middleware自身的实现,以及构建在这个管道的应用,都需要 ...
- 理解 Neutron FWaaS - 每天5分钟玩转 OpenStack(117)
前面我们学习了安全组,今天学习另一个与安全相关的服务 -- FWaaS.理解概念 Firewall as a Service(FWaaS)是 Neutron 的一个高级服务.用户可以用它来创建和管理防 ...
- 从零开始编写自己的C#框架(12)——T4模板在逻辑层中的应用(一)(附源码)
对于T4模板很多朋友都不太熟悉,它在项目开发中,会帮我们减轻很大的工作量,提升我们的开发效率,减少出错概率.所以学好T4模板的应用,对于开发人员来说是非常重要的. 园子里对于T4模板的介绍与资料已经太 ...