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.

123 lines
2.8 KiB

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //<?php require_once('../../js_asm.php'); ?>
  2. Ext.onReady(function(){
  3. var viewport = new Ext.Viewport({
  4. layout:'border',
  5. items: [{
  6. xtype: 'panel',
  7. region: 'north',
  8. baseCls: 'x-plain',
  9. height: 50,
  10. items:[{
  11. xtype: 'panel',
  12. id:'top',
  13. baseCls: 'x-plain',
  14. html: '<p style="padding:10px;color:#556677;font-size:11px;"><img src="/style/img/logo32.png"> R-Goose Security System</p>'
  15. }]
  16. },{
  17. xtype: 'panel',
  18. id:'btns',
  19. region:'west',
  20. baseCls:'x-plain',
  21. split:true,
  22. width:150,
  23. minWidth: 100,
  24. maxWidth: 250,
  25. layout:'fit',
  26. margins: '5 0 5 5',
  27. items: [{
  28. xtype: 'panel',
  29. //baseCls: 'x-plain',
  30. height: 400,
  31. title: 'R-Goose System',
  32. layout:'accordion',
  33. defaults: {
  34. // applied to each contained panel
  35. bodyStyle: 'padding:5px'
  36. },
  37. layoutConfig: {
  38. // layout-specific configs go here
  39. titleCollapse: false,
  40. animate: true//,
  41. //activeOnTop: true
  42. },
  43. items: [{
  44. title: 'Dashboard',
  45. layout: 'vbox',
  46. height: 120,
  47. pack: 'center',
  48. align : 'strech',
  49. items:[{
  50. xtype: 'button',
  51. width: '100%',
  52. id:'go_home',
  53. text: 'Go Home',
  54. handler: function( b, e ){
  55. loadDashBoard();
  56. }
  57. },{
  58. xtype: 'button',
  59. width: '100%',
  60. id:'go_monitor',
  61. text: 'Monitor Events',
  62. handler: function( b, e ){
  63. loadTimeLine();
  64. }
  65. },{
  66. xtype: 'button',
  67. width: '100%',
  68. id:'go_out',
  69. text: 'Logout',
  70. handler: function( b, e ){
  71. window.location = '/login.php?UID=1';
  72. }
  73. }]
  74. },{
  75. title: 'System Settings',
  76. layout: 'vbox',
  77. height: 120,
  78. pack: 'center',
  79. align : 'strech',
  80. items:[{
  81. xtype: 'button',
  82. width: '100%',
  83. id:'sys_edit',
  84. text: 'Edit Connections',
  85. handler: function( b, e ){
  86. loadSystemEditor();
  87. }
  88. },{
  89. xtype: 'button',
  90. width: '100%',
  91. id:'map_edit',
  92. text: 'Edit Locations',
  93. handler: function( b, e ){
  94. loadLocationEditor();
  95. }
  96. },{
  97. xtype: 'button',
  98. width: '100%',
  99. id:'logout',
  100. text: 'Logout',
  101. handler: function( b, e ){
  102. window.location = '/login.php?UID=1';
  103. }
  104. }]
  105. },{
  106. title: 'Profile Settings',
  107. html: '<p>Panel content!</p>'
  108. }]
  109. }]
  110. },{
  111. region:'center',
  112. margins: '5 5 5 0',
  113. id: 'main_content',
  114. layout: 'fit',
  115. items:[{
  116. xtype: 'panel',
  117. html: '<p style="padding:10px;color:#556677;font-size:11px;"><center><img src="/style/img/logo.png"></center></p>'
  118. }]
  119. }]
  120. });
  121. loadDashBoard();
  122. });