<%@ 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中的部件类型设计.自定义的前台背景与后台背景的颜色: 如果需要一个文本编辑 ...
随机推荐
- 闲话Promise机制
Promise的诞生与Javascript中异步编程息息相关,js中异步编程主要指的是setTimout/setInterval.DOM事件机制.ajax,通过传入回调函数实现控制反转.异步编程为js ...
- Bash 脚本编程语言中的美学与哲学
我承认,我再一次地当了标题党.但是不可否认,这一定是一篇精华随笔.在这一篇中,我将探讨 Bash 脚本语言中的美学与哲学. 这不是一篇 Bash 脚本编程的教程,但是却能让人更加深入地了解 Bash ...
- [转]Java实现定时任务的三种方法
在应用里经常都有用到在后台跑定时任务的需求.举个例子,比如需要在服务后台跑一个定时任务来进行非实时计算,清除临时数据.文件等.在本文里,我会给大家介绍3种不同的实现方法: 普通thread实现 Tim ...
- Android,适合Restful网络请求封装
借助volley.Gson类库. 优点 网络请求集中处理,返回值直接为预期的对象,不需要手动反序列,提高效率,使用时建立好model类即可. 使用效果 DataProess.Request(true, ...
- Entity Framework 6 Recipes 2nd Edition(10-8)译 - >映射插入、修改、删除操作到存储过程
10-8. 映射插入.修改.删除操作到存储过程 问题 想要映射插入.修改.删除操作到存储过程 解决方案 假设已有运动员实体模型,如Figure 10-8所示. 对应的数据库表如Figure 10-9所 ...
- Entity Framework 6 Recipes 2nd Edition(13-9)译 -> 避免Include
问题 你想不用Include()方法,立即加载一下相关的集合,并想通过EF的CodeFirst方式实现. 解决方案 假设你有一个如Figure 13-14所示的模型: Figure 13-14. A ...
- JavaScript中函数函数的定义与变量的声明<基础知识一>
1.JavaScript中函数的三种构造方式 a.function createFun(){ } b.var createFun=function (){ } c.var createFun=new ...
- Linux epoll
一. epoll函数集 epoll主要有三个函数: 1. int epoll_create(int size); 创建一个epoll的句柄,size用来告诉内核这个监听的数目一共有多大.这个参数不同于 ...
- .NET Core采用的全新配置系统[4]: “Options模式”下各种类型的Options对象是如何绑定的?
旨在生成Options对象的配置绑定实现在IConfiguration接口的扩展方法Bind上.配置绑定的目标类型可以是一个简单的基元类型,也可以是一个自定义数据类型,还可以是一个数组.集合或者字典类 ...
- 微信扫描下载提示以及js判断用户手机系统
今天抽空也写一下这个教程吧,这里面涉及到就是一个APP的页面下载.公司有这个需求,让做一个页面,就是二维码扫描下载.一开始我做的版本是只能是通过浏览器来下载的,但是实际应用中,很多用户 ...