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.
50 lines
999 B
50 lines
999 B
<?php
|
|
require_once('../ajax_asm.php');
|
|
require_once('../php/argus/server.php');
|
|
ob_start();
|
|
$UID = intval( $CUser->Data['id'] );
|
|
$ACCESS = intval( $CUser->Data['access'] );
|
|
if( $UID > 1 ){
|
|
$Data['content'] =<<<DATA_BOUNDARY
|
|
{
|
|
xtype: 'panel',
|
|
layout: 'vbox',
|
|
border: false,
|
|
frame: false,
|
|
width: '100%',
|
|
tbar:[{
|
|
xtype: 'button',
|
|
text: 'Map Level',
|
|
enableToggle: true,
|
|
pressed: true,
|
|
allowDepress: false
|
|
},'->',{
|
|
xtype: 'button',
|
|
id: 'aer_button',
|
|
text: 'Event Auto Rise',
|
|
enableToggle: true,
|
|
pressed: autoRiseEvent,
|
|
handler: function( t ){
|
|
autoRiseEvent = t.pressed;
|
|
}
|
|
}],
|
|
items: [{
|
|
xtype: 'panel',
|
|
id: 'metro_map',
|
|
height: PanelH+16,
|
|
listeners:{
|
|
afterrender: function(){
|
|
initMonitoringMap('metro_map', 2057,1474 );
|
|
}
|
|
}
|
|
}]
|
|
}
|
|
DATA_BOUNDARY;
|
|
$Data['status'] = 'ok';
|
|
$Data['messages'] = ob_get_clean();
|
|
echo json_encode( $Data );
|
|
} else {
|
|
header('location: /');
|
|
};
|
|
|
|
?>
|