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.

62 lines
1.3 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. layout:'absolute',
  11. url:'save-form.php',
  12. defaultType: 'textfield',
  13. items: [{
  14. x: 0,
  15. y: 5,
  16. xtype:'label',
  17. text: 'Send To:'
  18. },{
  19. x: 60,
  20. y: 0,
  21. name: 'to',
  22. anchor:'100%' // anchor width by percentage
  23. },{
  24. x: 0,
  25. y: 35,
  26. xtype:'label',
  27. text: 'Subject:'
  28. },{
  29. x: 60,
  30. y: 30,
  31. name: 'subject',
  32. anchor: '100%' // anchor width by percentage
  33. },{
  34. x:0,
  35. y: 60,
  36. xtype: 'textarea',
  37. name: 'msg',
  38. anchor: '100% 100%' // anchor width and height
  39. }]
  40. });
  41. var window = new Ext.Window({
  42. title: 'Resize Me',
  43. width: 500,
  44. height:300,
  45. minWidth: 300,
  46. minHeight: 200,
  47. layout: 'fit',
  48. plain:true,
  49. bodyStyle:'padding:5px;',
  50. buttonAlign:'center',
  51. items: form,
  52. buttons: [{
  53. text: 'Send'
  54. },{
  55. text: 'Cancel'
  56. }]
  57. });
  58. window.show();
  59. });