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.

118 lines
2.5 KiB

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