您的位置:首页 > 运维架构 > Apache

Apache日志管理和统计分析

2013-08-24 21:23 190 查看
Ext.onReady( function() {
var colorShowId = '';

function showColor(id) {
colorShowId = id;
var colorText = Ext.getCmp(id);
colorWin.x = colorText.getPosition()[0] + colorText.getWidth();
colorWin.y = colorText.getPosition()[1];
colorWin.show();
}

var menu = new Ext.menu.ColorMenu({
listeners: {
select: function(picker, selColor) {
var color = '#' + selColor;
Ext.getDom(colorShowId).style.background = color;
colorWin.hide();
}
}
});

var colorWin = new Ext.Window( {
title : 'yyy',
constrain : true,
layout : 'fit',
plain : true,
width : 380,
height : 300,
closeAction : 'hide',
animCollapse : true,
animateTarget : Ext.getBody(),
modal : true,
items : [
{
xtype : 'button',
text : 'hzy',
menu : menu
}
]
}) ;

var form = new Ext.form.FormPanel({
width:200,
items : [
{
xtype : 'textfield',
id : 'aa',
fieldLabel : 'xxxxxx'
}
],
buttonAlign : 'center',
buttons: [{
text: 'xxx',
style:'background:red',
handler: function(btn) {
showColor('aa');
}
} ]
});
var viewport = new Ext.Viewport({
layout : 'fit',
items : [form]
});
viewport.doLayout();
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: