子界面,整体的FROM下窗体window调用另一个小form

Ext.QuickTips.init();//开启表单提示
        Ext.form.Field.prototype.msgTarget = 'side';//设置提示信息位置为边上

            var simple = new Ext.FormPanel({//初始化表单面板       
 
          id:'REG_FORM1',

                labelWidth: 80,  // 默认标签宽度板 
//                baseCls: 'x-plain',//不设置该值,表单将保持原样,设置后表单与窗体完全融合 

 

 

 layout:'form',

                  
                   
                  items : [{
                        fieldLabel: 'ID',
                        xtype : "textfield",
                        blankText:'企业ID不能为空',
                        allowBlank : false, // 验证字段是否能为空
                        id: 'EntID'
////                     
//                        value:rows[0].get("ID") ,
//                        readOnly:true
                    }]

 ,buttons: [{
                    text: '注册',
           type: 'submit',
           tooltip: '点击这个按钮注册',
              
           handler: regUser
                },{
                    text: 'Cancel'
                    ,handler  : function(){win1.close();}
                }]

 

var win1 = new Ext.Window({
                                            title    : 'Window',
                                            modal:true,
                                            closable : true,
                                            width    : 360,
                                            height   : 360,
                                            plain    : true
                                            ,items    : simple
                                             });
                                        win1.show();

posted on 2009-03-23 15:28  也风  阅读(1287)  评论(0编辑  收藏  举报