Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var win = new Ext.Window({
- title: 'User Copy',
- id: 'win-usercopy',
- width: 400,
- height: 180,
- closable: true,
- resizable: false,
- modal: true,
- iconCls: 'icon-user-copy',
- items: new Ext.FormPanel({
- xtype: 'form',
- id: 'usercopy-form',
- layout: 'form',
- border: false,
- url: 'edituser.php',
- defaults: {
- type: 'textfield',
- anchor:'-10',
- allowBlank: false,
- required: true,
- labelWidth: 100,
- minLength: 3
- },
- items: [{
- name:'username',
- id: 'username',
- bodyStyle: 'color:#FFCCDD',
- value: copyfrom,
- fieldLabel:'Copy From',
- blankText: 'Username tidak boleh kosong.'
- },{
- name:'copyto',
- id: 'copyto',
- fieldLabel:'Copy To',
- blankText: 'Username tidak boleh kosong.'
- }] //eo items
- }),
- buttonAlign: 'center',
- buttons:[{
- text: 'Copy',
- //iconCls:'icon-user-add',
- handler:function() {
- copy();
- }
- },{
- text:'Close',
- //iconCls:'icon-user-add',
- handler:function() {
- Ext.getCmp('win-usercopy').close();
- }
- }] //eo buttons
- }); // eo new Ext.Window
- win.show();
Add Comment
Please, Sign In to add comment