js 파일

3492 단어 ext
Ext.onReady(function() {
	Ext.get("pane").addListener("click",sumbit);
	function sumbit(){
	var register=Ext.get("register").getValue();// 
	var register_time=Ext.get("register_time").getValue();// 
	var remark=Ext.get("remark").getValue();// 

        var top = new Ext.FormPanel({
        labelWidth: 60, 
        frame:true,
        defaults: {width: 380},
        defaultType: 'textfield',
        
        items: [{                                                                        
  				xtype: 'checkboxgroup',                                          
 				 items: [                                                
   				   {boxLabel: ' ', name: 'cbxa', inputValue:1,checked: true},                           
   				   {boxLabel: ' ', name: 'cbxb', inputValue:2},            
  				    {boxLabel: ' ', name: 'cbxc',inputValue:3}                           
 				 ]                           
				},{
                fieldLabel: '     ',
                name: 'name',
                value:register
            },{
                    fieldLabel: ' ',
                    name: 'time',
                    value:register_time
                },{
                    xtype:'textfield',
                    fieldLabel: ' ',
                    name: 'title',
                    value:'xxxx',
                    allowBlank:false
                },{
                    xtype:'textfield',
                    fieldLabel: 'Email ',
                    name: 'email',
                    value:'[email protected]',
                    vtype:'email'
                },{
            	  xtype:'htmleditor',
            	  fieldLabel:' ',
            	  htight:130,
           		  id:'bio',
          		  value:remark
      		  }
     		],
        buttons: [{
            text: ' ' ,
            type: 'submit',
            handler: function(){
                 if(top.getForm().isValid()){
	                top.getForm().submit({
	                    url: '../../fund_apply_pay_expenses_check_oka',
	                    waitMsg: ' ...',
	                    success: function(top, o){
	                   Ext.Msg.alert(' ',o.result.file);
	                   window.close();
	                    }
	                });
                }
		}
        },{
            text: ' ',
            handler: function(){
                 //window.close();--- 
                 top.form.reset();//               
             }
        }]
    });
	var window = new Ext.Window({
        title: ' ',
        width: 500,
        height:420,
       // closable:false,---- 
        layout: 'fit',
        plain:true,
        bodyStyle:'padding:1px;',// 
        buttonAlign:'center',
        items: top
    });
 	window.show();
	};
});

좋은 웹페이지 즐겨찾기