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.

49 lines
999 B

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. <?php
  2. require_once('../ajax_asm.php');
  3. require_once('../php/argus/server.php');
  4. ob_start();
  5. $UID = intval( $CUser->Data['id'] );
  6. $ACCESS = intval( $CUser->Data['access'] );
  7. if( $UID > 1 ){
  8. $Data['content'] =<<<DATA_BOUNDARY
  9. {
  10. xtype: 'panel',
  11. layout: 'vbox',
  12. border: false,
  13. frame: false,
  14. width: '100%',
  15. tbar:[{
  16. xtype: 'button',
  17. text: 'Map Level',
  18. enableToggle: true,
  19. pressed: true,
  20. allowDepress: false
  21. },'->',{
  22. xtype: 'button',
  23. id: 'aer_button',
  24. text: 'Event Auto Rise',
  25. enableToggle: true,
  26. pressed: autoRiseEvent,
  27. handler: function( t ){
  28. autoRiseEvent = t.pressed;
  29. }
  30. }],
  31. items: [{
  32. xtype: 'panel',
  33. id: 'metro_map',
  34. height: PanelH+16,
  35. listeners:{
  36. afterrender: function(){
  37. initMonitoringMap('metro_map', 2057,1474 );
  38. }
  39. }
  40. }]
  41. }
  42. DATA_BOUNDARY;
  43. $Data['status'] = 'ok';
  44. $Data['messages'] = ob_get_clean();
  45. echo json_encode( $Data );
  46. } else {
  47. header('location: /');
  48. };
  49. ?>