Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function() {
  8. var form = new Ext.form.FormPanel({
  9. baseCls: 'x-plain',
  10. labelWidth: 55,
  11. url:'save-form.php',
  12. defaultType: 'textfield',
  13. items: [{
  14. fieldLabel: 'Send To',
  15. name: 'to',
  16. anchor:'100%' // anchor width by percentage
  17. },{
  18. fieldLabel: 'Subject',
  19. name: 'subject',
  20. anchor: '100%' // anchor width by percentage
  21. }, {
  22. xtype: 'textarea',
  23. hideLabel: true,
  24. name: 'msg',
  25. anchor: '100% -53' // anchor width by percentage and height by raw adjustment
  26. }]
  27. });
  28. var window = new Ext.Window({
  29. title: 'Resize Me',
  30. width: 500,
  31. height:300,
  32. minWidth: 300,
  33. minHeight: 200,
  34. layout: 'fit',
  35. plain:true,
  36. bodyStyle:'padding:5px;',
  37. buttonAlign:'center',
  38. items: form,
  39. buttons: [{
  40. text: 'Send'
  41. },{
  42. text: 'Cancel'
  43. }]
  44. });
  45. window.show();
  46. });