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.

31 lines
873 B

6 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
​
​
6 years ago
​
​
6 years ago
6 years ago
​
​
​
​
​
​
  1. //<?php require_once('../../js_asm.php'); ?>
  2. function loadDashBoard(){
  3. if( tlInterval!= null ){
  4. window.clearInterval( tlInterval );
  5. tlInterval = null;
  6. timelineObj = null;
  7. };
  8. Ext.Ajax.request({
  9. url: '/lib/controller/getDashBoardItems.php',
  10. params: {
  11. SITE: <?=$SiteID;?>,
  12. UID: <?=$UserID;?>,
  13. SID: '<?=$Session;?>'
  14. },
  15. success: function( response, opts ){
  16. var data = Ext.decode(response.responseText);
  17. var tPanel = Ext.getCmp('main_portal');
  18. tPanel.removeAll(true);
  19. for( i=0; i < data.length; i++) tPanel.add( data[i] );
  20. tPanel.doLayout();
  21. },
  22. failure: function( response, opts ) {
  23. var tPanel = Ext.getCmp('main_portal');
  24. tPanel.remove(0);
  25. tPanel.add( { html: 'Failed to load dashboard!' } );
  26. tPanel.doLayout();
  27. }
  28. });
  29. };