-
2lib/1.json
-
2lib/controller/addModule.php
-
33lib/controller/dash/node_10.js
-
3lib/controller/dash/node_11.js
-
42lib/controller/dash/node_12.js
-
19lib/controller/dash/node_13.js.bk2
-
22lib/controller/dash/node_14.js
-
62lib/controller/dash/node_15.js
-
320lib/controller/dash/node_1_ccc.js
-
95lib/controller/dash/node_3 - Copy.js
-
473lib/controller/doCameraOperation.php
-
21lib/controller/doModuleOperation.php
-
6lib/controller/doSensorOperation.php
-
514lib/controller/getCameraEditor.php
-
72lib/controller/getCameraPresets.php
-
30lib/controller/getDashBoardItems.php
-
4lib/controller/getLocationNodeProps.php
-
2lib/controller/getLocationNodes.php
-
12lib/controller/getModuleEditor.php
-
123lib/controller/getModuleSettings.php
-
5lib/controller/getPhoneBook.php
-
66lib/controller/getReportLayout.php
-
57lib/controller/getSensorEditor.php
-
6lib/controller/getStatus.php
-
80lib/controller/report/node_14.js
-
80lib/controller/report/node_15.js
-
98lib/javascript/jsapi_dynamic/mojo_dashboard.js
-
293lib/javascript/jsapi_dynamic/mojo_settings.js
-
BINstyle/assets/14_node.png
-
BINstyle/assets/15_node.png
-
BINstyle/assets/no-signal.png
-
BINstyle/assets/no-signal_d.png
-
BINstyle/assets/no-signal_d.png.png
-
BINstyle/png/player/ir_off.png
-
BINstyle/png/player/ir_on.png
-
BINstyle/png/player/washer.png
-
26style/style.css
2
lib/1.json
File diff suppressed because it is too large
View File
@ -1,39 +1,40 @@ |
|||
{ |
|||
id: 'db_node_%%%NODEID%%%', |
|||
//xtype: 'portlet',
|
|||
layout:'fit', |
|||
//width: 258,
|
|||
//height: %%%HEIGHT%%%+40,
|
|||
layout:'vbox', |
|||
tools: [{ |
|||
id:'gear', |
|||
handler: function(){ |
|||
//editAnalogStream( %%%STREAMID%%%, 1 );
|
|||
} |
|||
}], |
|||
id:'gear', |
|||
handler: function(){ |
|||
} |
|||
}], |
|||
frame: true, |
|||
draggable: false, |
|||
collapsible: false, |
|||
bodyStyle: 'padding: 0px;', |
|||
title: '%%%NODENAME%%%', |
|||
sukaMineWidth: -1, |
|||
items:[{ |
|||
id: 'db_node_%%%NODEID%%%_pic', |
|||
html: '', |
|||
border: true, |
|||
width: '100%', |
|||
html: '<div id="img-%%%NODEID%%%" style="display: flex;align-items: center;" ><img id="img-img-%%%NODEID%%%" ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" src="%%%SELURL%%%" width="100%" /></div>' |
|||
}], |
|||
sukaMineWidth: -1, |
|||
listeners:{ |
|||
resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ |
|||
if( rawWidth!= undefined ){ |
|||
if( p.sukaMineWidth != adjWidth ){ |
|||
p.sukaMineWidth = adjWidth; |
|||
var XX = 32 + p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( XX ); |
|||
var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( XX + 32 ); |
|||
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); |
|||
z.setHeight( XX ); |
|||
}; |
|||
}; |
|||
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); |
|||
z.update('<img data-enlargeable000 ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" id="img-%%%NODEID%%%" src="%%%SELURL%%%" width="100%" />'); |
|||
}, |
|||
afterrender: function( p ){ |
|||
var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( xx+32 ); |
|||
p.setHeight( xx + 32 ); |
|||
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); |
|||
z.setHeight( xx ); |
|||
} |
|||
} |
|||
} |
|||
@ -1,18 +1,40 @@ |
|||
{ |
|||
id: 'db_node_%%%NODEID%%%', |
|||
xtype: 'portlet', |
|||
width: 258, |
|||
height: %%%HEIGHT%%%+40, |
|||
layout:'vbox', |
|||
tools: [{ |
|||
id:'gear', |
|||
handler: function(){ |
|||
editAnalogStream( %%%STREAMID%%%, 1 ); |
|||
} |
|||
}], |
|||
id:'gear', |
|||
handler: function(){ |
|||
} |
|||
}], |
|||
frame: true, |
|||
draggable: false, |
|||
collapsible: false, |
|||
bodyStyle: 'padding: 0px;', |
|||
title: '%%%NODENAME%%%', |
|||
sukaMineWidth: -1, |
|||
items:[{ |
|||
html: '<img data-enlargeable000 ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" id="img-%%%NODEID%%%" src="%%%SELURL%%%" width="%%%WIDTH%%%" height="%%%HEIGHT%%%"/>', |
|||
}] |
|||
id: 'db_node_%%%NODEID%%%_pic', |
|||
border: true, |
|||
width: '100%', |
|||
html: '<div id="img-%%%NODEID%%%" style="display: flex;align-items: center;" ><img id="img-img-%%%NODEID%%%" ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" src="%%%SELURL%%%" width="100%" /></div>' |
|||
}], |
|||
listeners:{ |
|||
resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ |
|||
if( rawWidth!= undefined ){ |
|||
if( p.sukaMineWidth != adjWidth ){ |
|||
p.sukaMineWidth = adjWidth; |
|||
var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( XX + 32 ); |
|||
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); |
|||
z.setHeight( XX ); |
|||
}; |
|||
}; |
|||
}, |
|||
afterrender: function( p ){ |
|||
var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( xx + 32 ); |
|||
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); |
|||
z.setHeight( xx ); |
|||
} |
|||
} |
|||
} |
|||
@ -1,19 +0,0 @@ |
|||
{ |
|||
id: 'db_node_%%%NODEID%%%', |
|||
xtype: 'panel', |
|||
width: 400, |
|||
height: 400, |
|||
frame: true, |
|||
title: 'Camera %%%NODEID%%%', |
|||
items:[{ |
|||
html: '<video id="hls-example" class="video-js vjs-default-skin" width="400" height="300"><source type="application/x-mpegURL" src="http://192.168.0.116:8081/d7d823703f68ba05c04efdb7474c2de5/7/hls.m3u8"></video>', |
|||
}], |
|||
listeners:{ |
|||
afterrender: function(){ |
|||
var player = videojs('hls-example',{ |
|||
autoplay: 'muted' |
|||
}); |
|||
return true; |
|||
}, |
|||
} |
|||
} |
|||
@ -0,0 +1,62 @@ |
|||
{ |
|||
id: 'db_node_%%%NODEID%%%', |
|||
layout:'vbox', |
|||
tools: [{ |
|||
id:'gear', |
|||
handler: function(){ |
|||
} |
|||
}], |
|||
frame: true, |
|||
draggable: false, |
|||
collapsible: false, |
|||
bodyStyle: 'padding: 0px;', |
|||
title: '%%%NODENAME%%%', |
|||
sukaMineWidth: -1, |
|||
items:[{ |
|||
id: 'db_node_%%%NODEID%%%_pic', |
|||
border: true, |
|||
width: '100%', |
|||
html: '<div id="img-%%%NODEID%%%" style="display: flex;align-items: center;" ><img id="img-img-%%%NODEID%%%" ondblclick="fullScreen(\'img-%%%NODEID%%%\');" style="cursor: zoom-in" src="%%%SELURL%%%" width="100%" /><div style="float: left; position: absolute; left: 30px; bottom: 50px; z-index: 1000;"><table width="100%" border=0><tr><td width="24"><img id="img_btn_010_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/010.png"></td><td width="24"><img id="img_btn_032_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/032.png"></td><td width="24"><img id="img_btn_033_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/033.png"></td><td width="24"><img id="img_btn_034_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/034.png"></td><td> </td></tr><tr><td><img id="img_btn_011_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/011.png"></td><td><img id="img_btn_031_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/031.png"></td><td><img id="img_btn_020_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/basic/020.png"></td><td><img id="img_btn_027_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/027.png"></td><td> </td></tr><tr><td>%%%HBTN%%%</td><td><img id="img_btn_030_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/030.png"></td><td><img id="img_btn_029_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/029.png"></td><td><img id="img_btn_028_%%%NODEID%%%" class="ptz_ctrl_btn" src="/style/png/player/028.png"></td><td> </td></tr></table></div></div>' |
|||
}], |
|||
listeners:{ |
|||
resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ |
|||
if( rawWidth!= undefined ){ |
|||
if( p.sukaMineWidth != adjWidth ){ |
|||
p.sukaMineWidth = adjWidth; |
|||
var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( XX + 32 ); |
|||
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); |
|||
z.setHeight( XX ); |
|||
}; |
|||
}; |
|||
}, |
|||
afterrender: function( p ){ |
|||
var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( xx + 32 ); |
|||
var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); |
|||
z.setHeight( xx ); |
|||
document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); |
|||
document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); |
|||
document.getElementById('img_btn_020_%%%NODEID%%%').addEventListener( 'mousedown', makePtzStop ); |
|||
%%%CAM_CTRL_HOME_BTN_BIND%%% |
|||
} |
|||
} |
|||
} |
|||
@ -1,320 +0,0 @@ |
|||
{ |
|||
id: 'db_node_%%%NODEID%%%', |
|||
title: '%%%NODENAME%%%', |
|||
draggable: false, |
|||
collapsible: false, |
|||
tools: [{ |
|||
id:'toggle', |
|||
handler: function( a, b, p ){ |
|||
fsDrawID = %%%NODEID%%%; |
|||
fullScreen( 'div_radar_%%%NODEID%%%' ); |
|||
var el = document.getElementById('draw_svg_'+fsDrawID ); |
|||
var nW = Math.floor( ( window.screen.height/window.screen.width ) * 100 ); |
|||
el.removeAttribute("width"); |
|||
el.setAttribute( "width", nW+'%' ); |
|||
} |
|||
}], |
|||
listeners:{ |
|||
afterrender: function(p){ |
|||
masks_statuses[%%%NODEID%%%] = 0; |
|||
masks_exist[%%%NODEID%%%] = 0; |
|||
|
|||
var W=p.getWidth(); |
|||
var H=9*(W/16); |
|||
p.setHeight( H + 32 ); |
|||
Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 18 ); |
|||
//document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-45 );
|
|||
set2DZoomLevel( %%%NODEID%%%, 100 ); |
|||
var el = document.getElementById('div_radar_%%%NODEID%%%'); |
|||
el.addEventListener( "fullscreenchange", ( evt )=>{ |
|||
if( document.fullscreenElement ){ |
|||
} else { |
|||
if( fsDrawID ){ |
|||
var el = document.getElementById('draw_svg_'+fsDrawID ); |
|||
el.removeAttribute("width"); |
|||
el.setAttribute( "width", '86%' ); |
|||
fsDrawID = 0; |
|||
}; |
|||
}; |
|||
}); |
|||
window.setTimeout( load2DDraw, 10*%%%NODEID%%%, %%%NODEID%%% ); |
|||
} |
|||
}, |
|||
layout: 'hbox', |
|||
items:[{ |
|||
id: 'cp_radar_%%%NODEID%%%', |
|||
html: '<div id="div_radar_%%%NODEID%%%" style="display: block; padding: 5px; width: \'100%\'; height: \'100%\';"><center><svg id="draw_svg_%%%NODEID%%%" opacity="0.3" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" width="86%" version="1.1" onclick="select2DROI( %%%NODEID%%%, event );" style="shape-rendering:geometricPrecision; text-rendering:geometricPrecision; image-rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd; cursor: crosshair;" viewBox="0 0 574 574" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><clipPath id="svg_mask_%%%NODEID%%%"><circle cx="287" cy="287" r="284"/></clipPath></defs><text id="g_txt_%%%NODEID%%%" text-anchor="left" transform="rotate(0,35,35)" x="35" y="35" fill="#FFF212" style="font: 30px sans-serif">100 m.</text><circle fill="#00A859" stroke="none" cx="287" cy="287" r="284"/><circle id="border_%%%NODEID%%%" fill="none" stroke="#373435" stroke-width="5.92139" cx="287" cy="287" r="284"/><circle id="r50_%%%NODEID%%%" fill="none" stroke="#FFF212" stroke-width="3.94741" cx="287" cy="287" r="142"/><text id="50_txt_%%%NODEID%%%" text-anchor="left" transform="rotate(45,140,140)" x="140" y="140" fill="#FFF212" style="font: 25px sans-serif">50</text><circle id="r25_%%%NODEID%%%" fill="none" stroke="#FFF212" stroke-width="2.96042" cx="287" cy="287" r="71"/><text id="25_txt_%%%NODEID%%%" text-anchor="left" transform="rotate(45,210,210)" x="210" y="210" fill="#FFF212" style="font: 15px sans-serif">25</text><circle id="r12_%%%NODEID%%%" fill="none" stroke="#FFF212" stroke-width="1.47993" cx="287" cy="287" r="34"/><text id="12_txt_%%%NODEID%%%" text-anchor="left" transform="rotate(45,245,245)" x="245" y="245" fill="#FFF212" style="font: 10px sans-serif">12.5</text><line fill="none" stroke="#FFF212" stroke-width="3.94741" x1="287" y1="3" x2="287" y2="571"/><line fill="none" stroke="#FFF212" stroke-width="3.94741" x1="3" y1="287" x2="571" y2="287"/><circle fill="none" stroke="#373435" stroke-width="5.92139" cx="287" cy="287" r="284"/></svg></center></div>', |
|||
width: '56%' |
|||
},{ |
|||
frame: false, |
|||
border: false, |
|||
width: '44%', |
|||
items:[{ |
|||
xtype: 'button', |
|||
id: 'cp_clear_btn_%%%NODEID%%%', |
|||
width: '100%', |
|||
disabled: true, |
|||
text: 'Clear Alarm', |
|||
iconCls: 'ctrl_panel_clean_sm', |
|||
iconAlign: 'left', |
|||
handler: function(){ |
|||
doDeviceOperation( 1, 125,'', true ); |
|||
} |
|||
},{ |
|||
xtype: 'spacer', |
|||
height: 3 |
|||
},{ |
|||
xtype: 'button', |
|||
id: 'cp_draw_btn_%%%NODEID%%%', |
|||
width: '100%', |
|||
text: 'Draw Background', |
|||
iconCls: 'ctrl_panel_drawscan_sm', |
|||
iconAlign: 'left', |
|||
disabled: true, |
|||
handler: function(){ |
|||
doDeviceOperation( %%%NODEID%%%, 3,'', true ); |
|||
} |
|||
},{ |
|||
xtype: 'spacer', |
|||
height: 3 |
|||
},{ |
|||
xtype: 'button', |
|||
id: 'cp_study_btn_%%%NODEID%%%', |
|||
width: '100%', |
|||
text: 'Study Background', |
|||
iconCls: 'ctrl_panel_study_sm', |
|||
iconAlign: 'left', |
|||
disabled: true, |
|||
handler: function(){ |
|||
doDeviceOperation( %%%NODEID%%%, 2,'', true ); |
|||
} |
|||
},{ |
|||
xtype: 'spacer', |
|||
height: 3 |
|||
},{ |
|||
xtype: 'panel', |
|||
title: 'Masking Management', |
|||
height: 145, |
|||
frame: true, |
|||
flex: 1, |
|||
layout: 'vbox', |
|||
items:[{ |
|||
xtype: 'button', |
|||
text: 'Mask Editor', |
|||
id: 'DMED_%%%NODEID%%%', |
|||
width: '100%', |
|||
disabled: true, |
|||
handler: function(){ |
|||
showMaskEditor( false, 0, %%%NODEID%%% ); |
|||
} |
|||
},{ |
|||
xtype: 'spacer', |
|||
height: 3 |
|||
},{ |
|||
xtype: 'panel', |
|||
id: 'DMEBB_%%%NODEID%%%', |
|||
frame: true, |
|||
border: false, |
|||
flex: 1, |
|||
width: '100%', |
|||
height: 53, |
|||
layout: 'hbox', |
|||
items:[{ |
|||
xtype: 'button', |
|||
enableToggle: true, |
|||
width: '20%', |
|||
scale: 'medium',//scale: 'small',
|
|||
id: 'mz_btn_%%%NODEID%%%_0', |
|||
iconCls: 'mask_zone1_btn', |
|||
iconAlign: 'top', |
|||
pressed: false, |
|||
disabled: true, |
|||
handler: function(){ |
|||
if( Ext.getCmp('mz_btn_%%%NODEID%%%_0').pressed){ |
|||
doMaskOperation( %%%NODEID%%%, 1, 0 ); |
|||
} else { |
|||
doMaskOperation( %%%NODEID%%%, 0, 0 ); |
|||
}; |
|||
} |
|||
},{ |
|||
xtype: 'button', |
|||
enableToggle: true, |
|||
width: '20%', |
|||
scale: 'medium', |
|||
id: 'mz_btn_%%%NODEID%%%_1', |
|||
iconCls: 'mask_zone2_btn', |
|||
iconAlign: 'top', |
|||
pressed: false, |
|||
disabled: true, |
|||
handler: function(){ |
|||
if( Ext.getCmp('mz_btn_%%%NODEID%%%_1').pressed){ |
|||
doMaskOperation( %%%NODEID%%%, 1, 1 ); |
|||
} else { |
|||
doMaskOperation( %%%NODEID%%%, 0, 1 ); |
|||
}; |
|||
} |
|||
},{ |
|||
xtype: 'button', |
|||
enableToggle: true, |
|||
width: '19%', |
|||
scale: 'medium',//scale: 'large',
|
|||
id: 'mz_btn_%%%NODEID%%%_2', |
|||
iconCls: 'mask_zone3_btn', |
|||
iconAlign: 'top', |
|||
pressed: false, |
|||
disabled: true, |
|||
handler: function(){ |
|||
if( Ext.getCmp('mz_btn_%%%NODEID%%%_2').pressed){ |
|||
doMaskOperation( %%%NODEID%%%, 1, 2 ); |
|||
} else { |
|||
doMaskOperation( %%%NODEID%%%, 0, 2 ); |
|||
}; |
|||
} |
|||
},{ |
|||
xtype: 'button', |
|||
enableToggle: true, |
|||
width: '20%', |
|||
scale: 'medium',//scale: 'large',
|
|||
id: 'mz_btn_%%%NODEID%%%_3', |
|||
iconCls: 'mask_zone4_btn', |
|||
iconAlign: 'top', |
|||
pressed: false, |
|||
disabled: true, |
|||
handler: function(){ |
|||
if( Ext.getCmp('mz_btn_%%%NODEID%%%_3').pressed){ |
|||
doMaskOperation( %%%NODEID%%%, 1, 3 ); |
|||
} else { |
|||
doMaskOperation( %%%NODEID%%%, 0, 3 ); |
|||
}; |
|||
} |
|||
},{ |
|||
xtype: 'button', |
|||
enableToggle: true, |
|||
width: '20%', |
|||
scale: 'medium',//scale: 'large',
|
|||
id: 'mz_btn_%%%NODEID%%%_4', |
|||
iconCls: 'mask_zone5_btn', |
|||
iconAlign: 'top', |
|||
pressed: false, |
|||
disabled: true, |
|||
handler: function(){ |
|||
if( Ext.getCmp('mz_btn_%%%NODEID%%%_4').pressed){ |
|||
doMaskOperation( %%%NODEID%%%, 1, 4 ); |
|||
} else { |
|||
doMaskOperation( %%%NODEID%%%, 0, 4 ); |
|||
}; |
|||
} |
|||
}] |
|||
}] |
|||
},{ |
|||
xtype: 'spacer', |
|||
height: 3 |
|||
}/*,{ |
|||
xtype: 'panel', |
|||
title: 'Detection Sensitivity', |
|||
height: 95, |
|||
frame: true, |
|||
flex: 1, |
|||
layout: 'hbox', |
|||
items:[{ |
|||
xtype: 'button', |
|||
text: 'Factory', |
|||
id: 'DDSPBTN0', |
|||
width: 80, |
|||
iconCls: 'detection_btn_factory', |
|||
enableToggle: true, |
|||
toggleGroup: 'det_sens_btn_grp', |
|||
disabled: true, |
|||
scale: 'large', |
|||
iconAlign: 'top' |
|||
},{ |
|||
xtype: 'button', |
|||
text: 'Low', |
|||
id: 'DDSPBTN1', |
|||
width: 80, |
|||
iconCls: 'detection_btn_low', |
|||
enableToggle: true, |
|||
toggleGroup: 'det_sens_btn_grp', |
|||
disabled: true, |
|||
scale: 'large', |
|||
iconAlign: 'top' |
|||
},{ |
|||
xtype: 'button', |
|||
text: 'Meduim', |
|||
id: 'DDSPBTN2', |
|||
width: 80, |
|||
iconCls: 'detection_btn_medium', |
|||
enableToggle: true, |
|||
toggleGroup: 'det_sens_btn_grp', |
|||
disabled: true, |
|||
scale: 'large', |
|||
iconAlign: 'top' |
|||
},{ |
|||
xtype: 'button', |
|||
text: 'High', |
|||
id: 'DDSPBTN3', |
|||
width: 80, |
|||
iconCls: 'detection_btn_high', |
|||
enableToggle: true, |
|||
toggleGroup: 'det_sens_btn_grp', |
|||
disabled: true, |
|||
scale: 'large', |
|||
iconAlign: 'top' |
|||
}] |
|||
}*/] |
|||
}], |
|||
bbar:[{ |
|||
xtype: 'button', |
|||
text: '12.5%', |
|||
enableToggle: true, |
|||
id: 'zoom_bt12_%%%NODEID%%%', |
|||
toggleGroup: 'zoom_tg_%%%NODEID%%%', |
|||
toggleHandler: function( bt, st ){ |
|||
if( st ){ |
|||
set2DZoomLevel( %%%NODEID%%%, 12 ); |
|||
}; |
|||
} |
|||
},{ |
|||
xtype: 'button', |
|||
text: '25%', |
|||
enableToggle: true, |
|||
id: 'zoom_bt25_%%%NODEID%%%', |
|||
toggleGroup: 'zoom_tg_%%%NODEID%%%', |
|||
toggleHandler: function( bt, st ){ |
|||
if( st ){ |
|||
set2DZoomLevel( %%%NODEID%%%, 25 ); |
|||
}; |
|||
} |
|||
},{ |
|||
xtype: 'button', |
|||
text: '50%', |
|||
enableToggle: true, |
|||
id: 'zoom_bt50_%%%NODEID%%%', |
|||
toggleGroup: 'zoom_tg_%%%NODEID%%%', |
|||
toggleHandler: function( bt, st ){ |
|||
if( st ){ |
|||
set2DZoomLevel( %%%NODEID%%%, 50 ); |
|||
}; |
|||
} |
|||
},{ |
|||
xtype: 'button', |
|||
text: '100%', |
|||
pressed: true, |
|||
enableToggle: true, |
|||
id: 'zoom_bt100_%%%NODEID%%%', |
|||
toggleGroup: 'zoom_tg_%%%NODEID%%%', |
|||
toggleHandler: function( bt, st ){ |
|||
if( st ){ |
|||
set2DZoomLevel( %%%NODEID%%%, 100 ); |
|||
}; |
|||
} |
|||
},{ |
|||
xtype: 'panel', |
|||
id: 'status_%%%NODEID%%%', |
|||
border: false, |
|||
frame: false, |
|||
width: 800, |
|||
height: 28, |
|||
html: '' |
|||
}] |
|||
} |
|||
@ -1,95 +0,0 @@ |
|||
{ |
|||
id: 'db_node_%%%NODEID%%%', |
|||
width: 258, |
|||
height: 320, |
|||
title: '%%%NODENAME%%%', |
|||
tools: [{ |
|||
id:'gear', |
|||
handler: function(){ |
|||
//Ext.Msg.alert('Message', 'The Settings tool was clicked.');
|
|||
showSensorToolBox( %%%NODEID%%% ); |
|||
} |
|||
}], |
|||
listeners:{ |
|||
afterrender: function(){ |
|||
cleanup2DDraw( %%%NODEID%%% ); |
|||
drawZoomLevels[%%%NODEID%%%]=100; |
|||
} |
|||
}, |
|||
items:[{ |
|||
html: '<center><img id="draw_img_%%%NODEID%%%" src="/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=100" style="cursor: crosshair;"><canvas id="targ_canvas_%%%NODEID%%%" style="display: none; cursor: crosshair;" onclick="DrawClicker( %%%NODEID%%%, event );" 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(){ |
|||
cleanup2DDraw( %%%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(){ |
|||
cleanup2DDraw( %%%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(){ |
|||
cleanup2DDraw( %%%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(){ |
|||
cleanup2DDraw( %%%NODEID%%% ); |
|||
}; |
|||
}; |
|||
} |
|||
}] |
|||
} |
|||
@ -0,0 +1,72 @@ |
|||
<?php |
|||
require_once('../ajax_asm.php'); |
|||
ob_start(); |
|||
$UID = intval( $CUser->Data['id'] ); |
|||
$ACCESS = intval( $CUser->Data['access'] ); |
|||
if( $UID > 1 ){ |
|||
$CID = intval( $_POST['CID'] ); |
|||
$QS = "SELECT * FROM `cameras` WHERE `id`={$CID}"; |
|||
$Result = $DATABASE->Query( $QS, false ); |
|||
$Data['status']='error'; |
|||
if( count( $Result ) ){ |
|||
$Cam = $Result[0]; |
|||
$QS = "SELECT * FROM `cameras_preset_sets` WHERE `camera_id`={$CID}"; |
|||
$RV = $DATABASE->Query( $QS ); |
|||
if( count( $RV ) ){ |
|||
$Data['status']='ok'; |
|||
$Data['count'] = intval( $RV[0]['maxCount'] ); |
|||
$Data['pres_cols'] = intval( $RV[0]['p_segs'] ); |
|||
$Data['pres_rows'] = intval( $RV[0]['z_segs'] ); |
|||
$Data['presets'] = array(); |
|||
$QS = "SELECT * FROM `cameras_presets` WHERE `preset_id`={$CID}"; |
|||
$ZZ = $DATABASE->Query( $QS ); |
|||
foreach( $ZZ as $Z ){ |
|||
$RO = intval( $Z['role'] ); |
|||
switch( $RO ){ |
|||
case 1:{ |
|||
$CP = array(); |
|||
$CP['id']= intval( $Z['id'] ); |
|||
$CP['role']= intval( $Z['role'] ); |
|||
$CP['row']= intval( $Z['row'] ); |
|||
$CP['column']= intval( $Z['column'] ); |
|||
$Data['presets'][] = $CP; |
|||
break; |
|||
}; |
|||
case 2:{ |
|||
$Data['special_home']=$Z['token']; |
|||
break; |
|||
}; |
|||
case 3:{ |
|||
$Data['special_irauto']=$Z['token']; |
|||
break; |
|||
}; |
|||
case 4:{ |
|||
$Data['special_iron']=$Z['token']; |
|||
break; |
|||
}; |
|||
case 5:{ |
|||
$Data['special_iroff']=$Z['token']; |
|||
break; |
|||
}; |
|||
case 6:{ |
|||
$Data['special_wiper']=$Z['token']; |
|||
break; |
|||
}; |
|||
}; |
|||
}; |
|||
} else { |
|||
// No Presets Defined! Create Default Preset Set
|
|||
$Data['status']='ok'; |
|||
$Data['count'] = 8; |
|||
$Data['pres_cols'] = 5; |
|||
$Data['pres_rows'] = 3; |
|||
$Data['presets'] = array(); |
|||
$QS = "INSERT INTO `cameras_preset_sets`(`camera_id`,`p_segs`,`z_segs`) VALUES({$CID},5,3)"; |
|||
$DATABASE->Query( $QS ); |
|||
}; |
|||
}; |
|||
echo json_encode( $Data ); |
|||
} else { |
|||
header('location: /'); |
|||
}; |
|||
?>
|
|||
@ -0,0 +1,80 @@ |
|||
{ |
|||
id: 'db_node_%%%NODEID%%%', |
|||
layout:'vbox', |
|||
tools: [{ |
|||
id:'gear', |
|||
handler: function(){ |
|||
} |
|||
}], |
|||
frame: true, |
|||
draggable: false, |
|||
collapsible: false, |
|||
bodyStyle: 'padding: 0px;', |
|||
title: '%%%NODENAME%%%', |
|||
sukaMineWidth: -1, |
|||
items:[{ |
|||
id: 'db_node_%%%NODEID%%%_pic', |
|||
border: true, |
|||
width: '100%', |
|||
html: '<div id="video-%%%STREAMID%%%" style="display: flex;align-items: center;" ><img id="video-img-%%%STREAMID%%%" ondblclick="fullScreen(\'video-%%%STREAMID%%%\');" style="cursor: zoom-in" src="/style/assets/no-signal.png" width="100%" /><div id="video-ctl-%%%STREAMID%%%" style="float: left; position: absolute; left: 30px; bottom: 30px; z-index: 1000;"></div></div>' |
|||
}], |
|||
listeners:{ |
|||
resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ |
|||
if( rawWidth!= undefined ){ |
|||
if( p.sukaMineWidth != adjWidth ){ |
|||
p.sukaMineWidth = adjWidth; |
|||
var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( XX + 32 ); |
|||
var z = document.getElementById( 'video-%%%STREAMID%%%' ); |
|||
z.height = XX; |
|||
}; |
|||
}; |
|||
}, |
|||
afterrender: function( p ){ |
|||
var xx = p.getWidth() * ( %%%HEIGHT%%% / %%%WIDTH%%% ); |
|||
p.setHeight( xx + 32 ); |
|||
videoElements[videoElements.length] = %%%STREAMID%%%; |
|||
var xx = new Ext.Panel({ |
|||
id: 'video-ctl-panel-%%%STREAMID%%%', |
|||
renderTo: 'video-ctl-%%%STREAMID%%%', |
|||
border: false, |
|||
hidden: true, |
|||
frame: false, |
|||
width: 400, |
|||
height: 42, |
|||
layout: 'hbox', |
|||
items:[{ |
|||
xtype: 'button', |
|||
width: 32, |
|||
iconCls: 'download', |
|||
scale: 'medium', |
|||
id: 'video-btn-download-%%%STREAMID%%%', |
|||
handler: function(){ |
|||
downloadCurrentVideo( %%%STREAMID%%% ); |
|||
} |
|||
},{ |
|||
xtype: 'spacer', |
|||
width: 20 |
|||
},{ |
|||
xtype: 'slider', |
|||
width: 250, |
|||
id: 'video-slider-%%%STREAMID%%%', |
|||
value: 0, |
|||
minValue: 0, |
|||
maxValue: 100, |
|||
listeners:{ |
|||
change: function( t, b, o ){ |
|||
setVideoSource( %%%STREAMID%%%, b ); |
|||
} |
|||
} |
|||
}] |
|||
}); |
|||
}, |
|||
beforedestroy: function(){ |
|||
var oldPlayer = document.getElementById( 'video-%%%STREAMID%%%' ); |
|||
/* |
|||
videojs( oldPlayer ).dispose(); |
|||
*/ |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,80 @@ |
|||
{ |
|||
id: 'db_node_%%%NODEID%%%', |
|||
layout:'vbox', |
|||
tools: [{ |
|||
id:'gear', |
|||
handler: function(){ |
|||
} |
|||
}], |
|||
frame: true, |
|||
draggable: false, |
|||
collapsible: false, |
|||
bodyStyle: 'padding: 0px;', |
|||
title: '%%%NODENAME%%%', |
|||
sukaMineWidth: -1, |
|||
items:[{ |
|||
id: 'db_node_%%%NODEID%%%_pic', |
|||
border: true, |
|||
width: '100%', |
|||
html: '<div id="video-%%%STREAMID%%%" style="display: flex;align-items: center;" ><img id="video-img-%%%STREAMID%%%" ondblclick="fullScreen(\'video-%%%STREAMID%%%\');" style="cursor: zoom-in" src="/style/assets/no-signal.png" width="100%" /><div id="video-ctl-%%%STREAMID%%%" style="float: left; position: absolute; left: 30px; bottom: 30px; z-index: 1000;"></div></div>' |
|||
}], |
|||
listeners:{ |
|||
resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ |
|||
if( rawWidth!= undefined ){ |
|||
if( p.sukaMineWidth != adjWidth ){ |
|||
p.sukaMineWidth = adjWidth; |
|||
var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; |
|||
p.setHeight( XX + 32 ); |
|||
var z = document.getElementById( 'video-%%%STREAMID%%%' ); |
|||
z.height = XX; |
|||
}; |
|||
}; |
|||
}, |
|||
afterrender: function( p ){ |
|||
var xx = p.getWidth() * ( %%%HEIGHT%%% / %%%WIDTH%%% ); |
|||
p.setHeight( xx + 32 ); |
|||
videoElements[videoElements.length] = %%%STREAMID%%%; |
|||
var xx = new Ext.Panel({ |
|||
id: 'video-ctl-panel-%%%STREAMID%%%', |
|||
renderTo: 'video-ctl-%%%STREAMID%%%', |
|||
border: false, |
|||
hidden: true, |
|||
frame: false, |
|||
width: 400, |
|||
height: 42, |
|||
layout: 'hbox', |
|||
items:[{ |
|||
xtype: 'button', |
|||
width: 32, |
|||
iconCls: 'download', |
|||
scale: 'medium', |
|||
id: 'video-btn-download-%%%STREAMID%%%', |
|||
handler: function(){ |
|||
downloadCurrentVideo( %%%STREAMID%%% ); |
|||
} |
|||
},{ |
|||
xtype: 'spacer', |
|||
width: 20 |
|||
},{ |
|||
xtype: 'slider', |
|||
width: 250, |
|||
id: 'video-slider-%%%STREAMID%%%', |
|||
value: 0, |
|||
minValue: 0, |
|||
maxValue: 100, |
|||
listeners:{ |
|||
change: function( t, b, o ){ |
|||
setVideoSource( %%%STREAMID%%%, b ); |
|||
} |
|||
} |
|||
}] |
|||
}); |
|||
}, |
|||
beforedestroy: function(){ |
|||
var oldPlayer = document.getElementById( 'video-%%%STREAMID%%%' ); |
|||
/* |
|||
videojs( oldPlayer ).dispose(); |
|||
*/ |
|||
} |
|||
} |
|||
} |
|||
|
After Width: 64 | Height: 64 | Size: 10 KiB |
|
Before Width: 64 | Height: 64 | Size: 9.7 KiB After Width: 64 | Height: 64 | Size: 10 KiB |
|
Before Width: 800 | Height: 600 | Size: 31 KiB After Width: 352 | Height: 296 | Size: 791 B |
|
Before Width: 352 | Height: 296 | Size: 791 B |
|
After Width: 800 | Height: 600 | Size: 31 KiB |
|
After Width: 123 | Height: 130 | Size: 5.1 KiB |
|
After Width: 123 | Height: 130 | Size: 8.4 KiB |
|
After Width: 40 | Height: 40 | Size: 873 B |