function show(){ if(!grid.getSelectionModel().getSelected()){
parent.Ext.Msg.alert('提示信息','请选择发送信息');
}else{
var pan=new Ext.TabPanel({
applyTo: 'hello-tabs',
autoTabs:true,
activeTab:0,
deferredRender:false,
border:false,
items: [
{contentEl:'tab1', title:'发送内容信息'},
{contentEl:'tab2', title:'发送人员列表',html:'<iframe width=400 height=300 frameborder=0 scrolling=no src=showSendUsers.jsp?id='+grid.getSelectionModel().getSelected().data.id+'></iframe>'}
]
});
var win = new Ext.Window({
applyTo:'hello-win',
layout:'fit',
closeAction:'close',
width:417,
height:390,
resizable :false,
plain: true,
items: [pan],
buttons: [{
text: '关闭',
handler: function(){
win.close();
}
}]
});
win.show();
}
}
parent.Ext.Msg.alert('提示信息','请选择发送信息');
}else{
var pan=new Ext.TabPanel({
applyTo: 'hello-tabs',
autoTabs:true,
activeTab:0,
deferredRender:false,
border:false,
items: [
{contentEl:'tab1', title:'发送内容信息'},
{contentEl:'tab2', title:'发送人员列表',html:'<iframe width=400 height=300 frameborder=0 scrolling=no src=showSendUsers.jsp?id='+grid.getSelectionModel().getSelected().data.id+'></iframe>'}
]
});
var win = new Ext.Window({
applyTo:'hello-win',
layout:'fit',
closeAction:'close',
width:417,
height:390,
resizable :false,
plain: true,
items: [pan],
buttons: [{
text: '关闭',
handler: function(){
win.close();
}
}]
});
win.show();
}
}
win.destroy();