-
11.gitignore
-
2index.php
-
12lib/controller/dash/node_13.js
-
88lib/controller/dash/node_3.js
-
4lib/controller/getDashBoardItems.php
-
55lib/controller/getDashBoardStatus.php
-
204lib/controller/getDeviceDraw.php
-
19lib/controller/getLocationNodes.php
-
16lib/controller/getNetworkNodeProps.php
-
46lib/controller/getNetworkServerProps.php
-
1lib/controller/props/1_node_prop.js
-
24lib/controller/props/2_node_prop.js
-
24lib/controller/props/3_node_prop.js
-
23lib/controller/props/4_node_prop.js
-
5lib/controller/props/loc_prop.js
-
116lib/javascript/jsapi_dynamic/rgoose_dashboard.js
-
413lib/javascript/jsapi_dynamic/rgoose_devices_module.js
-
349lib/javascript/jsapi_dynamic/rgoose_location_editor.js
-
66lib/javascript/jsapi_dynamic/rgoose_main.js
-
105lib/javascript/jsapi_dynamic/rgoose_sysmap_editor.js
-
12lib/javascript/jsapi_dynamic/rgoose_timeline.js
-
5lib/php/sys/r-goose_sys.php
-
BINstyle/assets/Untitled-1.psd
-
BINstyle/assets/Untitled-2.psd
-
BINstyle/assets/lfs_draw_empty_100.png
-
BINstyle/assets/lfs_draw_empty_12.png
-
BINstyle/assets/lfs_draw_empty_25.png
-
BINstyle/assets/lfs_draw_empty_50.png
-
BINstyle/assets/loading (1).gif
-
BINstyle/assets/loading.gif
-
BINstyle/assets/offline.png
-
BINstyle/assets/online.gif
-
7style/style.css
@ -1,8 +1,9 @@ |
|||||
*.mp4 |
*.mp4 |
||||
*.ogg |
*.ogg |
||||
*.webm |
*.webm |
||||
/temp/* |
|
||||
/storage/* |
|
||||
/saved_images/* |
|
||||
/lib/javascript/extjs/* |
|
||||
/lib/error.log |
|
||||
|
temp/* |
||||
|
storage/* |
||||
|
saved_images/* |
||||
|
lib/javascript/extjs/* |
||||
|
lib/error.log |
||||
|
lib/controller/data/* |
||||
@ -0,0 +1,88 @@ |
|||||
|
{ |
||||
|
id: 'db_node_%%%NODEID%%%', |
||||
|
width: 258, |
||||
|
height: 320, |
||||
|
title: '%%%NODENAME%%%', |
||||
|
listeners:{ |
||||
|
afterrender: function(){ |
||||
|
cleanupDraw( %%%NODEID%%% ); |
||||
|
drawZoomLevels[%%%NODEID%%%]=100; |
||||
|
} |
||||
|
}, |
||||
|
items:[{ |
||||
|
html: '<center><img id="draw_img_%%%NODEID%%%" src="/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%"><canvas id="targ_canvas_%%%NODEID%%%" style="display: none;" width="200" height="210"></canvas></center>', |
||||
|
height: '260px' |
||||
|
},{ |
||||
|
id: 'status_%%%NODEID%%%', |
||||
|
border: true, |
||||
|
frame: true, |
||||
|
height: 36, |
||||
|
html: '' |
||||
|
}], |
||||
|
bbar:[{ |
||||
|
xtype: 'button', |
||||
|
text: '12.5%', |
||||
|
enableToggle: true, |
||||
|
id: 'zoom_bt12_%%%NODEID%%%', |
||||
|
toggleGroup: 'zoom_tg_%%%NODEID%%%', |
||||
|
toggleHandler: function( bt, st ){ |
||||
|
if( st ){ |
||||
|
drawZoomLevels[%%%NODEID%%%]=12; |
||||
|
var img = document.getElementById('draw_img_%%%NODEID%%%'); |
||||
|
img.src = "/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=12"; |
||||
|
img.onload = function(){ |
||||
|
cleanupDraw( %%%NODEID%%% ); |
||||
|
}; |
||||
|
}; |
||||
|
} |
||||
|
},{ |
||||
|
xtype: 'button', |
||||
|
text: '25%', |
||||
|
enableToggle: true, |
||||
|
id: 'zoom_bt25_%%%NODEID%%%', |
||||
|
toggleGroup: 'zoom_tg_%%%NODEID%%%', |
||||
|
toggleHandler: function( bt, st ){ |
||||
|
if( st ){ |
||||
|
drawZoomLevels[%%%NODEID%%%]=25; |
||||
|
var img = document.getElementById('draw_img_%%%NODEID%%%'); |
||||
|
img.src = "/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=25"; |
||||
|
img.onload = function(){ |
||||
|
cleanupDraw( %%%NODEID%%% ); |
||||
|
}; |
||||
|
}; |
||||
|
} |
||||
|
},{ |
||||
|
xtype: 'button', |
||||
|
text: '50%', |
||||
|
enableToggle: true, |
||||
|
id: 'zoom_bt50_%%%NODEID%%%', |
||||
|
toggleGroup: 'zoom_tg_%%%NODEID%%%', |
||||
|
toggleHandler: function( bt, st ){ |
||||
|
if( st ){ |
||||
|
drawZoomLevels[%%%NODEID%%%]=50; |
||||
|
var img = document.getElementById('draw_img_%%%NODEID%%%'); |
||||
|
img.src = "/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=50"; |
||||
|
img.onload = function(){ |
||||
|
cleanupDraw( %%%NODEID%%% ); |
||||
|
}; |
||||
|
}; |
||||
|
} |
||||
|
},{ |
||||
|
xtype: 'button', |
||||
|
text: '100%', |
||||
|
pressed: true, |
||||
|
enableToggle: true, |
||||
|
id: 'zoom_bt100_%%%NODEID%%%', |
||||
|
toggleGroup: 'zoom_tg_%%%NODEID%%%', |
||||
|
toggleHandler: function( bt, st ){ |
||||
|
if( st ){ |
||||
|
drawZoomLevels[%%%NODEID%%%]=100; |
||||
|
var img = document.getElementById('draw_img_%%%NODEID%%%'); |
||||
|
img.src = "/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=100"; |
||||
|
img.onload = function(){ |
||||
|
cleanupDraw( %%%NODEID%%% ); |
||||
|
}; |
||||
|
}; |
||||
|
} |
||||
|
}] |
||||
|
} |
||||
@ -0,0 +1,55 @@ |
|||||
|
<?php |
||||
|
require_once('../ajax_asm.php'); |
||||
|
if( $CUser->Data['id'] > 1 ){ |
||||
|
$SiteID = intval( $_POST['SITE'] ); |
||||
|
$UID = intval( $CUser->Data['id'] ); |
||||
|
$Data = array(); |
||||
|
$Data['nodes'] = array(); |
||||
|
$QS = "SELECT * FROM nodes WHERE site_id = {$SiteID}"; |
||||
|
$result = $DATABASE->Query( $QS, false ); |
||||
|
if( count( $result ) > 0 ){ |
||||
|
foreach( $result as $R ){ |
||||
|
$CN = array(); |
||||
|
$CN['id'] = $R['id']; |
||||
|
$CN['status'] = intval($R['online']); |
||||
|
switch( $R['type'] ){ |
||||
|
case ARGUS_SERVER:{ |
||||
|
break; |
||||
|
}; |
||||
|
case 3: |
||||
|
case ARGUS_2D_SENSOR:{ |
||||
|
if( $CN['status'] ){ |
||||
|
// check Targets
|
||||
|
$CN['targets'] = array(); |
||||
|
$QS="SELECT * FROM events_cloud WHERE node_id={$CN['id']} AND ( evt_type=13 OR evt_type=14) AND (UNIX_TIMESTAMP(NOW())-ts)<60 ORDER BY id DESC LIMIT 32"; |
||||
|
//$QS="SELECT * FROM events_cloud WHERE node_id={$CN['id']} AND ( evt_type=13 OR evt_type=14) ORDER BY ts, ts_ms DESC LIMIT 32";
|
||||
|
//echo $QS . "\n\n";
|
||||
|
$zult = $DATABASE->Query( $QS ); |
||||
|
if( count( $zult ) ){ |
||||
|
$CN['status'] = 2; // Alarmed
|
||||
|
$CT = array(); |
||||
|
foreach( $zult as $Z ){ |
||||
|
$CT['digital'] = $Z['range_digital']; |
||||
|
$CT['az'] = $Z['azimuth']; |
||||
|
$CN['targets'][] = $CT; |
||||
|
}; |
||||
|
}; |
||||
|
}; |
||||
|
break; |
||||
|
}; |
||||
|
case ARGUS_3D_SENSOR:{ |
||||
|
break; |
||||
|
}; |
||||
|
case ARGUS_IP_PTZ_CAMERA:{ |
||||
|
break; |
||||
|
}; |
||||
|
}; |
||||
|
$index++; |
||||
|
$Data['nodes'][] = $CN; |
||||
|
}; |
||||
|
}; |
||||
|
echo json_encode( $Data ); |
||||
|
} else { |
||||
|
echo '[]'; |
||||
|
}; |
||||
|
?>
|
||||
@ -0,0 +1,19 @@ |
|||||
|
<?php |
||||
|
require_once('../ajax_asm.php'); |
||||
|
if( $CUser->Data['id'] > 1 ){ |
||||
|
$GID = intval($_POST['SITE']); |
||||
|
$QS = "SELECT * FROM nodes WHERE site_id={$GID}"; |
||||
|
$Result = $DATABASE->Query( $QS, false ); |
||||
|
$Data = "{ xtype: 'panel', frame: false, bodyStyle:'padding:5px 5px 0', items: ["; |
||||
|
foreach( $Result as $CD ){ |
||||
|
$cid = intval($CD['id']); |
||||
|
$ct = intval($CD['type']); |
||||
|
if( in_array( $ct, array( 2, 3, 5, 13 ) ) ){ |
||||
|
$Data .= "{ xtype: 'button', text: '{$CD['name']}', width: '100%', handler: function(){ loadNodeLocationProps({$cid}); } },"; |
||||
|
}; |
||||
|
}; |
||||
|
echo $Data . "{}] }"; |
||||
|
} else { |
||||
|
echo "{}"; |
||||
|
}; |
||||
|
?>
|
||||
|
After Width: 200 | Height: 200 | Size: 12 KiB |
|
After Width: 200 | Height: 200 | Size: 7.8 KiB |
|
After Width: 200 | Height: 200 | Size: 10 KiB |
|
After Width: 200 | Height: 200 | Size: 11 KiB |
|
After Width: 128 | Height: 128 | Size: 61 KiB |
|
After Width: 200 | Height: 200 | Size: 111 KiB |
|
After Width: 16 | Height: 16 | Size: 2.8 KiB |
|
After Width: 128 | Height: 128 | Size: 50 KiB |