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.

33 lines
894 B

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_content');
  18. tPanel.remove(0);
  19. tPanel.add( data );
  20. tPanel.doLayout();
  21. var player = videojs('hls-example');
  22. player.play();
  23. },
  24. failure: function( response, opts ) {
  25. var tPanel = Ext.getCmp('main_content');
  26. tPanel.remove(0);
  27. tPanel.add( { html: 'Failed to load dashboard!' } );
  28. tPanel.doLayout();
  29. }
  30. });
  31. };