Web UI for ARGUS server
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.

93 lines
2.7 KiB

​
​
​
​
​
​
​
​
​
4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. {
  2. //ALS-LGS sensor
  3. xtype: 'form',
  4. labelWidth: 40, // label settings here cascade unless overridden
  5. frame: false,
  6. bodyStyle:'padding:5px 5px 0',
  7. defaultType: 'textfield',
  8. items: [{
  9. xtype: 'panel',
  10. height: 100,
  11. html: '<p align="center"><img src="/style/assets/1_node.png"><br/>%%%DEV_LABEL%%%<br/></p>'
  12. },{
  13. xtype: 'button',
  14. text: 'Change Settings',
  15. width: '100%',
  16. handler: function(){
  17. LRF2D2_settings();
  18. }
  19. },{
  20. xtype:'fieldset',
  21. //checkboxToggle:true,
  22. collapsible: true,
  23. title: 'Device',
  24. autoHeight: true,
  25. defaults: {
  26. //width: 180
  27. },
  28. collapsed: false,
  29. items :[{
  30. xtype: 'hidden',
  31. id: 'dev_name',
  32. name: 'dev_name',
  33. value: '%%%DEV_LABEL%%%'
  34. },{
  35. xtype: 'hidden',
  36. id: 'max_range',
  37. name: 'max_range',
  38. value: %%%MAX_RANGE%%%
  39. },{
  40. xtype: 'hidden',
  41. id: 'dev_id',
  42. name: 'dev_id',
  43. value: %%%DEVICE_ID%%%
  44. },{
  45. xtype: 'panel',
  46. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Range: %%%MAX_RANGE%%%</p>'
  47. },{
  48. xtype: 'panel',
  49. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Dev Address: %%%DEVICE_ID%%%</p>'
  50. }]
  51. },{
  52. xtype:'fieldset',
  53. title: 'Master LRF',
  54. collapsible: true,
  55. autoHeight: true,
  56. defaults: {
  57. //width: 168
  58. },
  59. items :[{
  60. xtype: 'panel',
  61. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Order: %%%M_ORDER%%%</p>'
  62. },{
  63. xtype: 'panel',
  64. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Offset: %%%M_OFFSET%%%</p>'
  65. },{
  66. xtype: 'panel',
  67. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Width: %%%M_WIDTH%%%</p>'
  68. },{
  69. xtype: 'panel',
  70. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">SST: %%%M_SST%%%</p>'
  71. }]
  72. },{
  73. xtype:'fieldset',
  74. title: 'Slave LRF',
  75. collapsible: true,
  76. autoHeight: true,
  77. defaults: {
  78. //width: 168
  79. },
  80. items :[{
  81. xtype: 'panel',
  82. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Order: %%%S_ORDER%%%</p>'
  83. },{
  84. xtype: 'panel',
  85. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Offset: %%%S_OFFSET%%%</p>'
  86. },{
  87. xtype: 'panel',
  88. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">Width: %%%S_WIDTH%%%</p>'
  89. },{
  90. xtype: 'panel',
  91. html: '<p align="center" style="padding: 5px; color: yellow; background-color: green;">SST: %%%S_SST%%%</p>'
  92. }]
  93. }]
  94. }