日期:2014-05-16 浏览次数:21005 次
<script type="text/javascript"> var center=new Ext.TabPanel({ style:"padding:0 5px 0 5px", region:"center", activeItem:0, enableTabScroll:true, layoutOnTabChange:true, autoScroll:true, items:[{ xtype:"panel", id:"index", iconCls:"homemanage", title:"测试", html:"<iframe src='http://www.geg.cn'scrolling='yes' frameborder=0 width=100% height=100%></iframe>" }] }); Ext.onReady(function(){ var vp=new Ext.Viewport({ layout:"border", items:[center] }); }) </script>
------解决方案--------------------
一个简单的弹出新窗口框,附带url
<script>
//弹出窗口方法function
function showadd(){
var buttons=[{text:"确定",tooltip:'确认添加',id:"subok",handler:function(){top.Its.getWinFrame().upload();}},{text:"取消",tooltip:'取消添加',handler:function() {top.Its.CloseWin();}}] ;
top.Its.OpenWin({
url:'连接路径',
width:700,
height:500,
title:'预定',
scrolling:'no',
srcObj:window,
autorefresh:false,
buttons:buttons
});
}
Ext.onReady(function(){
new Ext.Panel({
layout:'column',
region:'north',
height:60,
columnWidth:1,
frame:true,
title:Its.titleInfoArr(['会议室管理','预定清单']),
items:[{
xtype:'button',
text:'上一周',
listeners:{
'click':function (){
showadd();
}
}
}]
}
</script>