GetLabel('_CAM_FIXEDZ_')}'],
- [1,'{$Labels->GetLabel('_CAM_VARIOZ_')}'],
- [2,'{$Labels->GetLabel('_CAM_CUSTOMZ_')}']
+ [1,'{$Labels->GetLabel('_CAM_CUSTOMZ_')}'],
+ [2,'{$Labels->GetLabel('_CAM_VARIOZ_')}']
]
}),
valueField: 'zm',
@@ -747,10 +771,18 @@ CHUPAKABRA;
select: function( a, c, b ){
doCamOperation( {$CID}, 5, b );
if( b > 0 ){
- if( b != 3 ){
+ Ext.getCmp('cam_drive_par').show();
+ if(({$Cam['type']}==13)||({$Cam['type']}==11)){
+ Ext.getCmp('cam_ptz_par').show();
+ } else {
+ Ext.getCmp('cam_ptz_par').hide();
+ };
+ if( b == 1 || b == 2 ){
+ Ext.getCmp('cam_uart_par').show();
Ext.getCmp('uart_id').enable();
Ext.getCmp('prot_id').enable();
} else {
+ Ext.getCmp('cam_uart_par').hide();
Ext.getCmp('uart_id').disable();
Ext.getCmp('prot_id').disable();
};
@@ -759,6 +791,9 @@ CHUPAKABRA;
Ext.getCmp('pan_ang').enable();
Ext.getCmp('tilt_ang').enable();
} else {
+ Ext.getCmp('cam_ptz_par').hide();
+ Ext.getCmp('cam_drive_par').hide();
+ Ext.getCmp('cam_uart_par').hide();
Ext.getCmp('uart_id').disable();
Ext.getCmp('prot_id').disable();
Ext.getCmp('pan_mode').disable();
@@ -770,7 +805,23 @@ CHUPAKABRA;
}
},{
html: ' '
- },{
+ }]
+ },{
+ layout: 'table',
+ id: 'cam_uart_par',
+ frame: false,
+ border: false,
+ hidden: (({$Cam['protocol']}!=1) || ({$Cam['protocol']}!=2)),
+ layoutConfig: {
+ columns: 3
+ },
+ defaults: {
+ frame: false,
+ bodyStyle: 'padding:10px',
+ border: false
+ },
+ items:[{
+ width: 200,
html: '{$Labels->GetLabel('_UART_PORT_')}'
},{
xtype: 'combo',
@@ -814,7 +865,370 @@ CHUPAKABRA;
}
},{
html: ' '
+ }]
+ },{
+ layout: 'table',
+ id: 'cam_drive_par',
+ frame: false,
+ border: false,
+ hidden: ({$Cam['protocol']}<1),
+ layoutConfig: {
+ columns: 3
+ },
+ defaults: {
+ frame: false,
+ bodyStyle: 'padding:10px',
+ border: false
+ },
+ items:[{
+ width: 200,
+ html: '{$Labels->GetLabel('_CAM_PTZ_MODE_')}'
},{
+ xtype: 'combo',
+ fieldLabel: '{$Labels->GetLabel('_CAM_PTZ_MODE_')}',
+ lazyRender: true,
+ id: 'cam_ptz_mode',
+ mode: 'local',
+ forceSelection: true,
+ triggerAction: 'all',
+ editable: false,
+ disableKeyFilter: true,
+ store: new Ext.data.ArrayStore({
+ fields: ['momo','momo_txt'],
+ data: [[0,'Absolute'],[1,'Presetets']]
+ }),
+ valueField: 'momo',
+ displayField: 'momo_txt',
+ value: ((({$Cam['type']}==13)||({$Cam['type']}==11))?0:1),
+ listeners:{
+ select: function( a, c, b ){
+ doCamOperation( {$CID}, 27, b );
+ if( b == 1 ){
+ Ext.getCmp('cam_ed_preset').enable();
+ Ext.getCmp('cam_ptz_par').hide();
+ } else {
+ Ext.getCmp('cam_ed_preset').disable();
+ Ext.getCmp('cam_ptz_par').show();
+ };
+ }
+ }
+ },{
+ xtype: 'button',
+ id: 'cam_ed_preset',
+ //disabled: (({$Cam['type']}==13)||({$Cam['type']}==11)),
+ text: '{$Labels->GetLabel('_CAM_PRES_EDIT_')}',
+ handler: function(){
+ var zaza = new Ext.Window({
+ title: '{$Labels->GetLabel('_CAM_PRES_EDITOR_')}',
+ modal: true,
+ resizable: false,
+ width: 800,
+ height: 804,
+ sukaMineWidth: -1,
+ items:[{
+ id: 'db_node_{$Node['id']}_pic',
+ border: true,
+ width: '100%',
+ html: ''
+ },{
+ layout: 'table',
+ layoutConfig: {
+ columns: 3
+ },
+ defaults: {
+ frame: false,
+ bodyStyle: 'padding:10px',
+ border: false
+ },
+ items:[{
+ width: 200,
+ html: '{$Labels->GetLabel('_CAM_PRES_SSELECT_')}'
+ },{
+ xtype: 'combo',
+ lazyRender: true,
+ id: 'sensor_id',
+ mode: 'local',
+ forceSelection: true,
+ triggerAction: 'all',
+ editable: false,
+ disableKeyFilter: true,
+ //disabled: (({$Cam['protocol']}!=1 ) && ( {$Cam['protocol']}!=2 )),
+ store: new Ext.data.ArrayStore({
+ fields: ['sens','sens_txt'],
+ data: {$SENSORS}
+ }),
+ valueField: 'sens',
+ displayField: 'sens_txt',
+ value: {$SENSOID},
+ listeners:{
+ select: function( a, c, b ){
+ selectedPresetsBackgroundSensor = c.data.sens;
+ }
+ }
+ },{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('_CAM_PRES_LOBACK_')}',
+ width: 240,
+ handler: function(){
+ if( selectedPresetsBackgroundSensor == 0 ){
+ selectedPresetsBackgroundSensor = Ext.getCmp( 'sensor_id' ).getValue();
+ //selectedPresetsBackgroundSensor = {$SENSOID};
+ };
+ if( selectedPresetsBackgroundSensor ) preview2DDraw( selectedPresetsBackgroundSensor, 'ptz_presets_');
+ }
+ },{
+ html: ''
+ },{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('_CAM_PRES_DELALL_')}',
+ width: 230,
+ handler: function(){
+ doCamOperation( {$CID}, 34, 0 );
+ window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+{$Cam['id']}+" );", 1000 );
+ }
+ },{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('_CAM_PRES_REMBG_')}',
+ width: 240,
+ handler: function(){
+ selectedPresetsBackgroundSensor = 0;
+ showCameraPresets( 'ptz_presets_0', {$Cam['id']} );
+ }
+ },{
+ html: '{$Labels->GetLabel('_CAM_PRES_COUNT_')}'
+ },{
+ xtype: 'numberfield',
+ id: 'pres_count',
+ width: 240
+ },{
+ xtype: 'button',
+ text: 'Set',
+ width: 240,
+ handler: function(){
+ var vv = Ext.getCmp('pres_count').getValue();
+ if( vv ){
+ doCamOperation( {$CID}, 31, vv );
+ };
+ }
+ },{
+ html: '{$Labels->GetLabel('_CAM_PRES_COLS_')}'
+ },{
+ xtype: 'numberfield',
+ id: 'pres_p_seg',
+ width: 240
+ },{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('__SET__')}',
+ width: 240,
+ handler: function(){
+ var vv = Ext.getCmp('pres_p_seg').getValue();
+ if( vv ){
+ doCamOperation( {$CID}, 32, vv );
+ window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+{$Cam['id']}+" );", 300 );
+ };
+ }
+ },{
+ html: '{$Labels->GetLabel('_CAM_PRES_ROWS_')}'
+ },{
+ xtype: 'numberfield',
+ id: 'pres_z_seg',
+ width: 240
+ },{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('__SET__')}',
+ width: 240,
+ handler: function(){
+ var vv = Ext.getCmp('pres_z_seg').getValue();
+ if( vv ){
+ doCamOperation( {$CID}, 33, vv );
+ window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+{$Cam['id']}+" );", 300 );
+ };
+ }
+ },{
+ html: '{$Labels->GetLabel('_CAM_PRES_IROFF_')}'
+ },{
+ xtype: 'numberfield',
+ id: 'pres_iroff',
+ width: 240
+ },{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('__SET__')}',
+ width: 240,
+ handler: function(){
+ var vv = Ext.getCmp('pres_iroff').getValue();
+ doCamOperation( {$CID}, 35, vv );
+ }
+ },{
+ html: '{$Labels->GetLabel('_CAM_PRES_IRON_')}'
+ },{
+ xtype: 'numberfield',
+ id: 'pres_iron',
+ width: 240
+ },{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('__SET__')}',
+ width: 240,
+ handler: function(){
+ var vv = Ext.getCmp('pres_iron').getValue();
+ doCamOperation( {$CID}, 36, vv );
+ }
+ },{
+ html: '{$Labels->GetLabel('_CAM_PRES_IRAUTO_')}'
+ },{
+ xtype: 'numberfield',
+ id: 'pres_irauto',
+ width: 240
+ },{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('__SET__')}',
+ width: 240,
+ handler: function(){
+ var vv = Ext.getCmp('pres_irauto').getValue();
+ doCamOperation( {$CID}, 37, vv );
+ }
+ },{
+ html: '{$Labels->GetLabel('_CAM_PRES_IRWIPER_')}'
+ },{
+ xtype: 'numberfield',
+ id: 'pres_wiper',
+ width: 240
+ },{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('__SET__')}',
+ width: 240,
+ handler: function(){
+ var vv = Ext.getCmp('pres_wiper').getValue();
+ doCamOperation( {$CID}, 38, vv );
+ }
+ }]
+ }],
+ listeners:{
+ resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){
+ if( rawWidth!= undefined ){
+ if( p.sukaMineWidth != adjWidth ){
+ p.sukaMineWidth = adjWidth;
+ var XX = p.sukaMineWidth * 9 / 16;
+ //p.setHeight( XX + 32 );
+ var z = Ext.getCmp('db_node_{$Node['id']}_pic');
+ z.setHeight( XX );
+ };
+ };
+ },
+ afterrender: function( p ){
+ var xx = p.getWidth() * 9 / 16;
+ //p.setHeight( xx + 32 );
+ var z = Ext.getCmp('db_node_{$Node['id']}_pic');
+ z.setHeight( xx );
+ document.getElementById('img_btn_010_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_010_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_011_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_011_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_027_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_027_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_028_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_028_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_029_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_029_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_030_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_030_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_031_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_031_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_032_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_032_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_033_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_033_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_034_{$Node['id']}').addEventListener( 'mouseup', makePtzStop );
+ document.getElementById('img_btn_034_{$Node['id']}').addEventListener( 'mousedown', makePtzMove );
+ document.getElementById('img_btn_020_{$Node['id']}').addEventListener( 'mousedown', makePtzStop );
+ showCameraPresets( 'ptz_presets_0', {$Cam['id']} );
+ }
+ }
+ });
+ zaza.show();
+ }
+ },{
+ html: '{$Labels->GetLabel('_CAM_IR_ECO_')}'
+ },{
+ xtype: 'checkbox',
+ id: 'ptz_ir_eco',
+ checked: ({$Cam['eco_ir']} > 0 ),
+ listeners:{
+ check: function( a, c ){
+ if( c ){
+ doCamOperation( {$CID}, 39, 1 );
+ } else {
+ doCamOperation( {$CID}, 39, 0 );
+ };
+ }
+ }
+ },{
+ html: ' '
+ },{
+ html: '{$Labels->GetLabel('_CAM_PTZ_AAC_')}'
+ },{
+ xtype: 'checkbox',
+ id: 'ptz_axel_c',
+ disabled: ({$Cam['protocol']} == 0),
+ checked: ({$Cam['ptz_axel']} < 6 ),
+ listeners:{
+ check: function( a, c ){
+ if( c ){
+ doCamOperation( {$CID}, 13, 0 );
+ var zz = Ext.getCmp('ptz_axel');
+ zz.disable();
+ } else {
+ var zz = Ext.getCmp('ptz_axel');
+ zz.enable();
+ var vava = zz.getValue();
+ if( vava < 5 ){
+ vava = 5;
+ zz.setValue( vava, true );
+ } else {
+ doCamOperation( {$CID}, 13, vava );
+ };
+ var jj = Ext.getCmp('ptz_axel_d');
+ if( jj.rendered ) jj.update('X '+ vava + '
');
+ };
+ }
+ }
+ },{
+ html: ' '
+ },{
+ html: '{$Labels->GetLabel('_CAM_PTZ_MAC_')}'
+ },{
+ xtype: 'slider',
+ id: 'ptz_axel',
+ disabled: (({$Cam['protocol']} == 0)||({$Cam['ptz_axel']} < 6)),
+ minValue: 5,
+ maxValue: 20,
+ value: {$Cam['ptz_axel']},
+ listeners:{
+ change: function( a, c, b ){
+ doCamOperation( {$CID}, 13, c );
+ var zz = Ext.getCmp('ptz_axel_d');
+ if( zz.rendered ) zz.update('X '+ c + '
');
+ }
+ }
+ },{
+ id: 'ptz_axel_d',
+ html: 'X '+ {$Cam['ptz_axel']} + '
'
+ }]
+ },{
+ layout: 'table',
+ id: 'cam_ptz_par',
+ hidden: (({$Cam['protocol']}<1) || ({$Cam['type']}>13)),
+ frame: false,
+ border: false,
+ layoutConfig: {
+ columns: 3
+ },
+ defaults: {
+ frame: false,
+ bodyStyle: 'padding:10px',
+ border: false
+ },
+ items:[{
+ width: 200,
html: '{$Labels->GetLabel('_CAM_PANMOD_')}'
},{
xtype: 'combo',
@@ -910,56 +1324,22 @@ CHUPAKABRA;
}
},{
html: ' '
- },{
- html: '{$Labels->GetLabel('_CAM_PTZ_AAC_')}'
- },{
- xtype: 'checkbox',
- id: 'ptz_axel_c',
- disabled: ({$Cam['protocol']} == 0),
- checked: ({$Cam['ptz_axel']} < 6 ),
- listeners:{
- check: function( a, c ){
- if( c ){
- doCamOperation( {$CID}, 13, 0 );
- var zz = Ext.getCmp('ptz_axel');
- zz.disable();
- } else {
- var zz = Ext.getCmp('ptz_axel');
- zz.enable();
- var vava = zz.getValue();
- if( vava < 5 ){
- vava = 5;
- zz.setValue( vava, true );
- } else {
- doCamOperation( {$CID}, 13, vava );
- };
- var jj = Ext.getCmp('ptz_axel_d');
- if( jj.rendered ) jj.update('X '+ vava + '
');
- };
- }
- }
- },{
- html: ' '
- },{
- html: '{$Labels->GetLabel('_CAM_PTZ_MAC_')}'
- },{
- xtype: 'slider',
- id: 'ptz_axel',
- disabled: (({$Cam['protocol']} == 0)||({$Cam['ptz_axel']} < 6)),
- minValue: 5,
- maxValue: 20,
- value: {$Cam['ptz_axel']},
- listeners:{
- change: function( a, c, b ){
- doCamOperation( {$CID}, 13, c );
- var zz = Ext.getCmp('ptz_axel_d');
- if( zz.rendered ) zz.update('X '+ c + '
');
- }
- }
- },{
- id: 'ptz_axel_d',
- html: 'X '+ {$Cam['ptz_axel']} + '
'
- },{
+ }]
+ },{
+ layout: 'table',
+ id: 'cam_loc_ori',
+ frame: false,
+ border: false,
+ layoutConfig: {
+ columns: 3
+ },
+ defaults: {
+ frame: false,
+ bodyStyle: 'padding:10px',
+ border: false
+ },
+ items:[{
+ width: 200,
html: '| {$Labels->GetLabel('_AXIS_ROT_')} |  |
'
},{
xtype: 'numberfield',
@@ -1102,6 +1482,26 @@ CHUPAKABRA;
}
},{
xtype: 'spacer'
+ },{
+ width: 200,
+ html: '{$Labels->GetLabel('_CAM_PREF_ONLY_')}'
+ },{
+ xtype: 'checkbox',
+ id: 'cam_pref_only',
+ fieldLabel: '',
+ width: 200,
+ checked: {$Cam['prefered_events_only']},
+ listeners:{
+ check: function( a, c ){
+ if( c ){
+ doCamOperation( {$CID}, 40, 1 );
+ } else {
+ doCamOperation( {$CID}, 40, 0 );
+ };
+ }
+ }
+ },{
+ xtype: 'spacer'
},{
width: 200,
html: '{$Labels->GetLabel('_CAM_AUTO_HOMING_')}'
diff --git a/lib/controller/getCameraPresets.php b/lib/controller/getCameraPresets.php
new file mode 100644
index 0000000..2414b1a
--- /dev/null
+++ b/lib/controller/getCameraPresets.php
@@ -0,0 +1,72 @@
+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: /');
+ };
+?>
diff --git a/lib/controller/getDashBoardItems.php b/lib/controller/getDashBoardItems.php
index f5217a8..4e34228 100644
--- a/lib/controller/getDashBoardItems.php
+++ b/lib/controller/getDashBoardItems.php
@@ -180,7 +180,7 @@ _DATA_BOUNDARY;
$OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
};
};
- $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1";
+ $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1";
$R = $DATABASE->Query( $QS );
$idx = 0;
if( count( $R ) ){
@@ -197,7 +197,7 @@ _DATA_BOUNDARY;
$TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL );
$QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
$Z=$DATABASE->Query( $QS );
- $QS="SELECT * FROM `module_eve` WHERE `id`=1";
+ $QS="SELECT * FROM `module_eve` LIMIT 1";
$S=$DATABASE->Query( $QS );
$MODULE_DATA = $S[0];
$TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
@@ -208,7 +208,7 @@ _DATA_BOUNDARY;
$TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
$TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
$TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL );
- if( $DD['type'] == 13 || $DD['type'] == 11 ){
+ if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){
$QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}";
$JUA = $DATABASE->Query( $QS );
$CAMDATA = $JUA[0];
@@ -296,7 +296,7 @@ _DATA_BOUNDARY;
$OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
};
};
- $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1";
+ $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1";
$R = $DATABASE->Query( $QS );
$idx = 0;
if( count( $R ) ){
@@ -313,7 +313,7 @@ _DATA_BOUNDARY;
$TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL );
$QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
$Z=$DATABASE->Query( $QS );
- $QS="SELECT * FROM `module_eve` WHERE `id`=1";
+ $QS="SELECT * FROM `module_eve` LIMIT 1";
$S=$DATABASE->Query( $QS );
$MODULE_DATA = $S[0];
$TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
@@ -324,7 +324,7 @@ _DATA_BOUNDARY;
$TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
$TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
$TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL );
- if( $DD['type'] == 13 || $DD['type'] == 11 ){
+ if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){
$QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}";
$JUA = $DATABASE->Query( $QS );
$CAMDATA = $JUA[0];
@@ -412,7 +412,7 @@ _DATA_BOUNDARY;
$OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
};
};
- $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1";
+ $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1";
$CAMS = $DATABASE->Query( $QS );
$idx = 0;
if( count( $CAMS ) ){
@@ -429,7 +429,7 @@ _DATA_BOUNDARY;
$TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL );
$QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
$Z=$DATABASE->Query( $QS );
- $QS="SELECT * FROM `module_eve` WHERE `id`=1";
+ $QS="SELECT * FROM `module_eve` LIMIT 1";
$S=$DATABASE->Query( $QS );
$MODULE_DATA = $S[0];
$TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
@@ -440,7 +440,7 @@ _DATA_BOUNDARY;
$TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
$TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
$TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL );
- if( $DD['type'] == 13 || $DD['type'] == 11 ){
+ if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){
$QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}";
$JUA = $DATABASE->Query( $QS );
$CAMDATA = $JUA[0];
@@ -492,7 +492,7 @@ _DATA_BOUNDARY;
$OUT[]= $STA[0] . $DUMMY['map'] . $END;
- $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1";
+ $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1";
$R = $DATABASE->Query( $QS );
$idx = 0;
if( count( $R ) ){
@@ -509,7 +509,7 @@ _DATA_BOUNDARY;
$TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL );
$QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
$Z=$DATABASE->Query( $QS );
- $QS="SELECT * FROM `module_eve` WHERE `id`=1";
+ $QS="SELECT * FROM `module_eve` LIMIT 1";
$S=$DATABASE->Query( $QS );
$MODULE_DATA = $S[0];
$TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
@@ -520,7 +520,7 @@ _DATA_BOUNDARY;
$TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
$TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
$TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL );
- if( $DD['type'] == 13 || $DD['type'] == 11 ){
+ if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){
$QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}";
$JUA = $DATABASE->Query( $QS );
$CAMDATA = $JUA[0];
@@ -616,7 +616,7 @@ _DATA_BOUNDARY;
$OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END;
};
};
- $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1";
+ $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1";
$R = $DATABASE->Query( $QS );
$idx = 0;
if( count( $R ) ){
@@ -633,7 +633,7 @@ _DATA_BOUNDARY;
$TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL );
$QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
$Z=$DATABASE->Query( $QS );
- $QS="SELECT * FROM `module_eve` WHERE `id`=1";
+ $QS="SELECT * FROM `module_eve` LIMIT 1";
$S=$DATABASE->Query( $QS );
$MODULE_DATA = $S[0];
$TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
@@ -644,7 +644,7 @@ _DATA_BOUNDARY;
$TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
$TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
$TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL );
- if( $DD['type'] == 13 || $DD['type'] == 11 ){
+ if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){
$QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}";
$JUA = $DATABASE->Query( $QS );
$CAMDATA = $JUA[0];
diff --git a/lib/controller/getLocationNodeProps.php b/lib/controller/getLocationNodeProps.php
index 98105ac..c31873d 100644
--- a/lib/controller/getLocationNodeProps.php
+++ b/lib/controller/getLocationNodeProps.php
@@ -172,7 +172,9 @@ _DATA_BOUNDARY;
case 10:
case 11:
case 12:
- case 13:{
+ case 13:
+ case 14:
+ case 15:{
$QS="SELECT * FROM cameras WHERE id={$Props['aux_id']}";
$RR = $DATABASE->Query( $QS );
$C = $RR[0];
diff --git a/lib/controller/getLocationNodes.php b/lib/controller/getLocationNodes.php
index cc0f9a6..3b10a3d 100644
--- a/lib/controller/getLocationNodes.php
+++ b/lib/controller/getLocationNodes.php
@@ -10,7 +10,7 @@
$cid = intval($CD['id']);
$ct = intval($CD['type']);
$cname = urldecode( $CD['name'] );
- if( in_array( $ct, array( 1, 2, 3, 5, 6, 10, 11, 12, 13 ) ) ){
+ if( in_array( $ct, array( 1, 2, 3, 5, 6, 10, 11, 12, 13, 14, 15 ) ) ){
$DL[] = "{ xtype: 'button', text: '{$cname}', width: '100%', handler: function(){ locationSelectedNode={$cid}; loadNodeLocationProps({$cid}); } }";
};
};
diff --git a/lib/controller/getModuleEditor.php b/lib/controller/getModuleEditor.php
index 51f9d9a..a58ecf6 100644
--- a/lib/controller/getModuleEditor.php
+++ b/lib/controller/getModuleEditor.php
@@ -390,10 +390,8 @@ EFUFU;
echo $TPL;
break;
case 9: //Modem
- //$QS="SELECT * FROM `modules_kafka` WHERE `module_id`={$CR['aux_id']}";
- //$II = $DATABASE->Query( $QS );
- //$CI = $II[0];
- $R_nfo = 'Broker Node:'. $CI['brocker_address'].':'.$CI['brocker_port'].((intval($CI['use_ssl'])>0)?'
':'
');
+
+ $R_nfo = '';
$TPL =<< | %%%NAME%%% |
| %%%INFO%%% |
'
+ html: ' | %%%NAME%%% |
| %%%INFO%%% |
'
},{
xtype: 'spacer',
height: 5
@@ -412,7 +410,7 @@ $TPL =<<| %%%LOINFO%%% |
'
+ html: ''
},{
xtype: 'spacer',
height: 5
@@ -466,7 +464,7 @@ $TPL =<<GetLabel('_MODEM_DESC_SHO_') . 'JAJA' , $TPL );
+ $TPL = str_ireplace( '%%%NAME%%%',$Labels->GetLabel('_MODEM_DESC_SHO_'), $TPL );
$TPL = str_ireplace( '%%%INFO%%%', $Labels->GetLabel('_MODEM_DESC_LOO_'), $TPL );
$TPL = str_ireplace( '%%%LOINFO%%%',$R_nfo , $TPL );
$TPL = str_ireplace( '%%%ENA_VAL%%%',$CR['enabled'], $TPL );
diff --git a/lib/controller/getModuleSettings.php b/lib/controller/getModuleSettings.php
index 33f77db..5e5e365 100644
--- a/lib/controller/getModuleSettings.php
+++ b/lib/controller/getModuleSettings.php
@@ -580,8 +580,7 @@ EFUFU;
value: {$CI['output_mode']},
listeners:{
select: function( t, r, i ){
- //alert( "NS1:"+i );
- doModuleOperation( {$CR['aux_id']}, 3, i+1 );
+ doModuleOperation( {$EID}, 3, r.data.moId, false );
}
}
},{
@@ -897,6 +896,22 @@ EFUFU;
echo $TPL; //json_encode($Data);
break;
case 9: //Modem
+ $MANU = json_decode( `mmcli -L -J`, true );
+ //$TA = explode( "\n", $MANU );
+ $MODEMS_PARTS=array();
+ $MODEMS_PARTS[] ="[ -1, '-NO-MODEM-ASSIGNED-']";
+ foreach( $MANU['modem-list'] as $A ){
+ $CA = explode('/', $A );
+ $MID = intval( $CA[count($CA)-1] );
+ $MANU = json_decode( `mmcli -m $MID -J`, true );
+ //$CMD = "echo \"terrarium\" | sudo -S mmcli -m {$MID} --location-get -J";
+ //$LOFO = json_decode( `$CMD`, true );
+ //print_r( $MANU );
+ //exit();
+ $MODEMS_PARTS[] = '['.$MID.',\''. $MANU['modem']['generic']['model'].'\']';
+ };
+ $MODEMS = '[' . implode( ',', $MODEMS_PARTS ) .']';
+
$QS="SELECT * FROM `module_modem` WHERE `id`={$CR['aux_id']}";
$II = $DATABASE->Query( $QS );
$CI = $II[0];
@@ -915,41 +930,48 @@ $TPL =<<'
- },{
- xype: 'panel',
- layout: 'vbox',
- frame: false,
- height: 120,
- items:[{
- xtype: 'panel',
- layout: 'table',
- width: '100%',
- defaults: {
- // applied to each contained panel
- bodyStyle:'padding:20px'
- },
- layoytConfig:{
- columns: 4
- },
- items: [{
- xtype: 'spacer',
- html: 'New Phone Number:
'
- },{
- xtype: 'textfield',
- id: 'n_ph_n',
- name: 'n_ph_n'
- },{
- xtype: 'spacer',
- html: 'Custom Message:
'
- },{
- xtype: 'textarea',
- id: 'n_ph_l',
- name: 'n_ph_l',
- fieldLabel: 'Custom Message',
- }]
- },{
- xtype: 'button',
- width: '100%',
- text: 'Add Phone Number',
- handler: function(){
-
- }
- }]
+ height: 5
}],
listeners:{
afterrender: loadPhoneBook
diff --git a/lib/controller/getPhoneBook.php b/lib/controller/getPhoneBook.php
index 2fd53d5..a828566 100644
--- a/lib/controller/getPhoneBook.php
+++ b/lib/controller/getPhoneBook.php
@@ -3,6 +3,11 @@
if( $CUser->Data['id'] > 1 ){
$Data = array();
+ $QS = "SELECT * FROM `module_modem_phonebook`";
+ $RV = $DATABASE->Query( $QS );
+ if( count( $RV ) ){
+ $DATA = $RV;
+ };
echo json_encode( $Data );
exit();
};
diff --git a/lib/controller/getReportLayout.php b/lib/controller/getReportLayout.php
index a265d63..ce2f5d9 100644
--- a/lib/controller/getReportLayout.php
+++ b/lib/controller/getReportLayout.php
@@ -179,7 +179,7 @@ _DATA_BOUNDARY;
$TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL );
$QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
$Z=$DATABASE->Query( $QS );
- $QS="SELECT * FROM `module_eve` WHERE `id`=1";
+ $QS="SELECT * FROM `module_eve` LIMIT 1";
$S=$DATABASE->Query( $QS );
$MODULE_DATA = $S[0];
$TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
@@ -216,8 +216,66 @@ _DATA_BOUNDARY;
$OUT[]= $STA[3] . $DUMMY['log'] . $END;
break;
};
+ case 2:{
+ //Muazot A
+ $STA[0]="{ columnWidth: .50, stylse:'padding:10px 0 10px 10px', items:[";
+ $STA[1]="{ columnWidth: .50, stylse:'padding:10px 0 10px 10px', items:[";
+ $STA[2]="{ columnWidth: .40, stylse:'padding:10px 0 10px 10px', items:[";
+ $STA[3]="{ columnWidth: .60, stylse:'padding:10px 0 10px 10px', items:[";
+ $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1";
+ $R = $DATABASE->Query( $QS );
+ $idx = 0;
+ if( count( $R ) ){
+ foreach( $R as $DD ){
+ if( $idx < 2 ){
+ $TFN = 'report/node_' . $DD['type'] . '.js';
+ if(!file_exists( $TFN )) continue;
+ $TPL = file_get_contents( $TFN );
+ $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL );
+ $TPL = str_replace('%%%NODENAME%%%', ''.urldecode($DD['name']) , $TPL );
+ $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL );
+ $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
+ $Z=$DATABASE->Query( $QS );
+ $QS="SELECT * FROM `module_eve` LIMIT 1";
+ $S=$DATABASE->Query( $QS );
+ $MODULE_DATA = $S[0];
+ $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
+ //$FU = 'http://' . $_SERVER['SERVER_ADDR'].':' . $MODULE_DATA['web_port'] .'/stream?id='. $Z[0]['aux_parameter'];
+ $FU = '/video_feed/stream?id='. $Z[0]['aux_parameter'];
+ $CS[] = '[' . $Z[0]['aux_parameter'] . ',\'[ 120x120] Video\',\''. $FU .'\']';
+ $TPL = str_replace( '%%%URLS%%%', '[' . implode( ',', $CS ) . ']' , $TPL );
+ $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL );
+ $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL );
+ $TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL );
+
+ $FK = $MODULE_DATA['height'] /$MODULE_DATA['width'];
+ $W = 244;
+ $H = $W * $FK;
+
+ $TPL = str_replace( '%%%WIDTH%%%', $W, $TPL );
+ $TPL = str_replace( '%%%HEIGHT%%%', $H, $TPL );
+ $OUT[]= $STA[$idx] . $TPL . $END;
+ } else break;
+ $idx++;
+ };
+ if( $idx < 2 ){
+ for( ;$idx<2;$idx++ ){
+ $T = str_replace( '%%ID%%', 2+$idx , $DUMMY['camera'] );
+ $OUT[]= $STA[$idx] . $T . $END;
+ };
+ };
+ } else {
+ for( ;$idx<2;$idx++ ){
+ $T = str_replace( '%%ID%%', 4+$idx , $DUMMY['camera'] );
+ $OUT[]= $STA[$idx] . $T . $END;
+ };
+ };
+ $OUT[]= $STA[2] . $DUMMY['map'] . $END;
+ $OUT[]= $STA[3] . $DUMMY['log'] . $END;
+ break;
+ };
case 4:{
- //Metro
+ //Mekorot
$STA[0]="{ columnWidth: .20, stylse:'padding:10px 0 10px 10px', items:[";
$STA[1]="{ columnWidth: .20, stylse:'padding:10px 0 10px 10px', items:[";
$STA[2]="{ columnWidth: .20, stylse:'padding:10px 0 10px 10px', items:[";
@@ -263,7 +321,7 @@ _DATA_BOUNDARY;
$TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL );
$QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
$Z=$DATABASE->Query( $QS );
- $QS="SELECT * FROM `module_eve` WHERE `id`=1";
+ $QS="SELECT * FROM `module_eve` LIMIT 1";
$S=$DATABASE->Query( $QS );
$MODULE_DATA = $S[0];
$TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
@@ -326,7 +384,7 @@ _DATA_BOUNDARY;
$TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL );
$QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}";
$Z=$DATABASE->Query( $QS );
- $QS="SELECT * FROM `module_eve` WHERE `id`=1";
+ $QS="SELECT * FROM `module_eve` LIMIT 1";
$S=$DATABASE->Query( $QS );
$MODULE_DATA = $S[0];
$TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL );
diff --git a/lib/controller/getSensorEditor.php b/lib/controller/getSensorEditor.php
index d02baf0..fc24a36 100644
--- a/lib/controller/getSensorEditor.php
+++ b/lib/controller/getSensorEditor.php
@@ -72,19 +72,33 @@ JOJOKA;
$QS = "INSERT INTO `lrf_ini_settings`(`sensor_id`,`AUTORESET_ENABLE`,`AUTORESET_INTERLEAVE`,`AUTORESET_TIMEOUT`,`BOARD_TEMPERATURE`,`BOARD_ZEROSHIFT`,`BOARD_SPEED`,`RUN_DIR`,`NO_BLACK_TARGETS`,`JUST_MOVING_TARGETS`,`JUST_MOVING_RADIAL`,`JUST_MOVING_DISTANCE`,`FREEZ_FIRST_TH`,`SAVE_FIRST_TH`) VALUES({$EID},0,0,0,0,0,4,2,0,0,0,0,{$INI_S['FREEZ_FIRST_TH']},{$INI_S['SAVE_FIRST_TH']})";
$DATABASE->Query( $QS );
};
+
+ $QS = "SELECT `id`, `name` FROM `nodes` WHERE `type` IN (10,11,12,13,14,15)";
+ $KD = $DATABASE->Query( $QS );
+ if( count( $KD ) ){
+ $CO = array();
+ $CO[] = "[0,'{$Labels->GetLabel('__DISABLED__')}']";
+ foreach( $KD as $CK ){
+ $CO[] = "[{$CK['id']},'{$CK['name']}']";
+ };
+ $SYSTEM_CAMERAS = '['.implode( ',', $CO ).']';
+ } else {
+ $SYSTEM_CAMERAS = "[[0,'{$Labels->GetLabel('__DISABLED__')}']]";
+ };
+
if( ( stripos( $CR['version'], 'FD' )!== false ) || ( stripos( $CR['version'], 'FS' )!== false ) || ( stripos( $CR['version'], 'FF' )!== false ) ){
//Frozen TH
if( stripos( $CR['version'], 'FD' )!== false ){
- $THF_OPERATION = ",{
- xtype: 'button',
- text: '{$Labels->GetLabel('_SENS_ENA_FROTH_')}',
- width: '100%',
- iconCls: 'srv_op_fth_ble',
- scale: 'large',
- handler: function(){
- doSensorOperation( {$CR['id']}, 21, 0, true );
- }
- }";
+ $THF_OPERATION = ",{
+ xtype: 'button',
+ text: '{$Labels->GetLabel('_SENS_ENA_FROTH_')}',
+ width: '100%',
+ iconCls: 'srv_op_fth_ble',
+ scale: 'large',
+ handler: function(){
+ doSensorOperation( {$CR['id']}, 21, 0, true );
+ }
+ }";
} else {
if( stripos( $CR['version'], 'FS' )!== false ){
$THF_OPERATION = ",{
@@ -327,6 +341,29 @@ JOJOKA;
doSensorOperation( {$CR['id']}, 26, b, true );
}
}
+ },{
+ xtype: 'combo',
+ id: 'sens_bindcam',
+ fieldLabel: "{$Labels->GetLabel('_SENS_BOCAM_')}",
+ lazyRender: true,
+ mode: 'local',
+ forceSelection: true,
+ triggerAction: 'all',
+ editable: false,
+ disableKeyFilter: true,
+ store: new Ext.data.ArrayStore({
+ fields: ['mode','mode_txt'],
+ data: {$SYSTEM_CAMERAS}
+ }),
+ valueField: 'mode',
+ displayField: 'mode_txt',
+ value: {$CR['prefered_camera_id']},
+ width: 200,
+ listeners:{
+ select: function( a, c, b ){
+ doSensorOperation( {$CR['id']}, 36, c.data.mode, true );
+ }
+ }
}]
},{
xtype: 'form',
diff --git a/lib/controller/getStatus.php b/lib/controller/getStatus.php
index 7ca1072..34a1fa2 100644
--- a/lib/controller/getStatus.php
+++ b/lib/controller/getStatus.php
@@ -50,7 +50,7 @@
};
}
//$QS = "SELECT * FROM nodes ORDER BY `type`";
- $QS = "SELECT * FROM nodes WHERE `type` > 0 AND `type` < 14";
+ $QS = "SELECT * FROM nodes WHERE `type` > 0 AND `type` < 16";
$result = $DATABASE->Query( $QS, false );
if( count( $result ) > 0 ){
@@ -240,7 +240,9 @@
case ARGUS_ANALOG_STATIC_CAMERA:
case ARGUS_ANALOG_PTZ_CAMERA:
case ARGUS_IP_STATIC_CAMERA:
- case ARGUS_IP_PTZ_CAMERA:{
+ case ARGUS_IP_PTZ_CAMERA:
+ case 14:
+ case 15:{
if( $ServerIsOnLine ){
$QS="SELECT * FROM `media_streams` WHERE `id`={$R['aux_parameter']}";
$SR=$DATABASE->Query( $QS );
diff --git a/lib/controller/report/node_14.js b/lib/controller/report/node_14.js
new file mode 100644
index 0000000..a7c91cb
--- /dev/null
+++ b/lib/controller/report/node_14.js
@@ -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: '
'
+ }],
+ 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();
+ */
+ }
+ }
+}
\ No newline at end of file
diff --git a/lib/controller/report/node_15.js b/lib/controller/report/node_15.js
new file mode 100644
index 0000000..a7c91cb
--- /dev/null
+++ b/lib/controller/report/node_15.js
@@ -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: '
'
+ }],
+ 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();
+ */
+ }
+ }
+}
\ No newline at end of file
diff --git a/lib/javascript/jsapi_dynamic/mojo_dashboard.js b/lib/javascript/jsapi_dynamic/mojo_dashboard.js
index c1a4213..3ad8297 100644
--- a/lib/javascript/jsapi_dynamic/mojo_dashboard.js
+++ b/lib/javascript/jsapi_dynamic/mojo_dashboard.js
@@ -546,7 +546,7 @@ function Donut(cx, cy, radius, data) {
var tmp = {};
//var p = (((item.value + 1) / total) * 100).floor( 2 );
- var p = Math.floor(((item.value + 1) / total) * 100);
+ var p = Math.floor(((item.value + 1) / total) * 100, decimals );
count += p;
@@ -562,7 +562,7 @@ function Donut(cx, cy, radius, data) {
var e = arcradius(cx, cy, radius, beg);
var la = (end - beg) <= 180 ? 0 : 1;
- tmp.d = ['M', Math.floor( b.x ), Math.floor( b.y ), 'A', radius, radius, 0, la, 0, Math.floor( e.x ), Math.floor( e.y ) ].join(' ');
+ tmp.d = ['M', Math.floor( b.x, decimals ), Math.floor( b.y, decimals ), 'A', radius, radius, 0, la, 0, Math.floor( e.x, decimals ), Math.floor( e.y, decimals ) ].join(' ');
arr.push(tmp);
beg = end;
}
@@ -743,8 +743,9 @@ function cleanup2DTargets( a ){
targets_2d_el[a] = [];
};
-function cleanup2DDraw( a ){
- var csvg = document.getElementById( 'draw_svg_' + a );
+function cleanup2DDraw( a , zzz = '' ){
+ if( zzz == '') zzz = 'draw_svg_';
+ var csvg = document.getElementById( zzz + a );
if( csvg!= undefined ){
if( targets_2d_el[a] != undefined ){
if( targets_2d_el[a] ){
@@ -942,8 +943,9 @@ function load2DMasks( a ){
});
};
-function remove2DDraw( a ){
- var csvg = document.getElementById( 'draw_svg_' + a );
+function remove2DDraw( a, zzz = '' ){
+ if( zzz == '') zzz = 'draw_svg_';
+ var csvg = document.getElementById( zzz + a );
if( csvg != undefined ){
var draw = csvg.getElementById( "draw" );
if( draw != null ) csvg.removeChild( draw );
@@ -955,14 +957,14 @@ function remove2DDraw( a ){
function draw2DDraw( a, zzz = '' ){
var p2 = 2.0*Math.PI;
var so = 0;//-10 * p2 / 360.0;
- cleanup2DDraw( a );
- remove2DDraw( a );
+ cleanup2DDraw( a, zzz );
+ remove2DDraw( a, zzz );
if( draws_2d[a] != undefined ){
if( zzz == '') zzz = 'draw_svg_';
var csvg = document.getElementById( zzz + a );
if( csvg != undefined ){
- var cpath = csvg.getElementById( "svg_mask_"+a );
+ //var cpath = csvg.getElementById( "svg_mask_"+a );
//var bBox;
//if( cpath!=undefined){
// bBox = cpath.getBBox();
@@ -1039,6 +1041,80 @@ function load2DDraw( a, id='' ){
});
};
+function preview2DDraw( a, id='' ){
+ //if( draws_2d[0] == undefined ) draws_2d[0]=[];
+ Ext.Ajax.request({
+ url: '/lib/controller/getDeviceDraw.php',
+ params: {
+ UID: =$UserID;?>,
+ SID: '=$Session;?>',
+ NID: a
+ },
+ success: function( response, opts ){
+ var data = Ext.decode(response.responseText);
+ if( data.count > 0 ){
+ //draws_2d[0] = data.data;
+
+ var p2 = 2.0*Math.PI;
+ var so = 0;//-10 * p2 / 360.0;
+ //cleanup2DDraw( a, zzz );
+ //remove2DDraw( a, zzz );
+ if( data.data != undefined ){
+ if( id == '') id = 'draw_svg_';
+ var csvg = document.getElementById( id + '0' );
+
+ if( csvg != undefined ){
+ var newpath = document.createElementNS('http://www.w3.org/2000/svg', "polygon");
+ var ak = p2/data.data.length;
+ var cpx = csvg.clientWidth / 2.0;
+ var cpy = csvg.clientHeight / 2.0;
+ var maxr = cpx - 30.0;
+ var max = 1024.0;
+ switch( drawZoomLevels[a] ){
+ case 50: max = 512.0; break;
+ case 25: max = 256.0; break;
+ case 12: max = 128.0; break;
+ };
+ var rk = maxr / max; var pp = ''; var jj = '';
+ for( i=0;iGetLabel('_SOURCE_');?>", width: 100, renderer: log_sn_Renderer, align: 'left', css: 'vertical-align: middle;', dataIndex: 'number' },
+ {header: "=$Labels->GetLabel('_TYPE_');?>", width: 180, renderer: log_et_Renderer, fixed: false, align: 'center', css: 'vertical-align: middle;', dataIndex: 'mode' },
+ {header: "=$Labels->GetLabel('_RANGE_');?>", width: 100, dataIndex: 'label', renderer: no_target_filter }
+ ],
+ defaults: {
+ sortable: false,
+ fixed: true,
+ menuDisabled: true,
+ width: 100
+ }
+};
+var selected_pb_id = 0;
+var modem_pb_SelModel_ops = {
+ singleSelect: true,
+ listeners: {
+ rowselect: function(sm, row, rec ) {
+ //alert( rec.data.id );
+ //loadEventProperties( rec.data );
+ selected_pb_id = rec.data.id;
+ //alert( SelectedEvent );
+ //var CB = Ext.getCmp('con_to_src');
+ //CB.enable();
+ //selectedArchiveRecord = rec;
+ //if( rec.data.bk_type!=3 ){
+ //
+ //} else {
+ //
+ //};
+ }
+ }
+};
function loadPhoneBook(){
Ext.Ajax.request({
url: '/lib/controller/getPhoneBook.php',
@@ -353,6 +400,8 @@ function loadPhoneBook(){
},
success: function( response, opts ){
var data = Ext.decode(response.responseText);
+
+ modem_pb_store.Load( data );
//var tPanel = Ext.getCmp('main_portal');
//tPanel.removeAll(true);
//for( i=0; i < data.length; i++) tPanel.add( data[i] );
@@ -680,7 +729,7 @@ function editModule( mid ){
};
};
-function doModuleOperation( ID, OPO, OPCO ){
+function doModuleOperation( ID, OPO, OPCO, reload ){
Ext.Ajax.request({
url: '/lib/controller/doModuleOperation.php',
params: {
@@ -691,18 +740,17 @@ function doModuleOperation( ID, OPO, OPCO ){
SID: '=$Session;?>'
},
success: function(){
- //showSettings( SelectedNodeID, 2 );
- loadModules();
+ if( reload ) loadModules();
}
});
};
function enableModule( ID ){
- doModuleOperation( ID, 2, 1 );
+ doModuleOperation( ID, 2, 1, true );
};
function disableModule( ID ){
- doModuleOperation( ID, 2, 0 );
+ doModuleOperation( ID, 2, 0, true );
};
@@ -2246,6 +2294,7 @@ function showSettingsVideo(){
content_lvl1 = 1;
content_lvl2 = 4;
+ content_lvl3 = 0;
var tPanel = Ext.getCmp('main_content');
tPanel.removeAll( true );
tPanel.add({
@@ -2256,25 +2305,19 @@ function showSettingsVideo(){
activeTab: content_lvl3,
items: [{
xtype: 'panel',
- title: "=$Labels->GetLabel('_CAM_DET_LIST_');?>",
- id: 'cam_det_tab',
+ id: 'cam_ass_tab',
+ title: "=$Labels->GetLabel('_CAM_ASS_LIST_');?>",
layout: 'hbox',
items:[{
xtype: 'panel',
- id: 'dcam_container',
+ id: 'acam_container',
flex: 1,
height: PanelH-15,
autoScroll: 'auto',
- tbar:[{
- text: "=$Labels->GetLabel( '_MANUADD_CAMERA_' );?>",
- handler: function(){
- addDetectedIPCam();
- }
- }],
items:[]
},{
xtype: 'panel',
- id: 'dcam_op_small',
+ id: 'acam_op_small',
flex: 1,
height: PanelH-15,
layout: 'fit',
@@ -2284,19 +2327,25 @@ function showSettingsVideo(){
}]
},{
xtype: 'panel',
- id: 'cam_ass_tab',
- title: "=$Labels->GetLabel('_CAM_ASS_LIST_');?>",
+ title: "=$Labels->GetLabel('_CAM_DET_LIST_');?>",
+ id: 'cam_det_tab',
layout: 'hbox',
items:[{
xtype: 'panel',
- id: 'acam_container',
+ id: 'dcam_container',
flex: 1,
height: PanelH-15,
autoScroll: 'auto',
+ tbar:[{
+ text: "=$Labels->GetLabel( '_MANUADD_CAMERA_' );?>",
+ handler: function(){
+ addDetectedIPCam();
+ }
+ }],
items:[]
},{
xtype: 'panel',
- id: 'acam_op_small',
+ id: 'dcam_op_small',
flex: 1,
height: PanelH-15,
layout: 'fit',
@@ -3323,4 +3372,208 @@ function initSettingsView(){
};
};
-};
\ No newline at end of file
+};
+
+function zdonut(cx, cy, radius, data) {
+
+ function arcradius(cx, cy, radius, degrees) {
+ var radians = (degrees - 90) * Math.PI / 180.0;
+ return { x: cx + (radius * Math.cos(radians)), y: cy + (radius * Math.sin(radians)) };
+ }
+
+ var decimals = 4;
+ var total = 0;
+ var arr = [];
+ var beg = 0;
+ var end = 0;
+ var count = 0;
+
+ var half = radius / 2;
+ var midpoint = radius / 2.4;
+
+ for( var i = 0; i < data.length; i++) total += data[i].value;
+
+ for( var i = 0; i < data.length; i++) {
+ var item = data[i];
+ var tmp = {};
+
+ //var p = Math.floor((((item.value + 1) / total) * 100), decimals );
+ var p = (( item.value / total ) * 100.0 );
+
+ count += p;
+
+ if( i === length - 1 && count < 100 ) p = p + (100 - count);
+
+ end = beg + ((360 / 100) * p);
+ tmp.index = i;
+ tmp.value = item.value;
+ tmp.data = item;
+
+ var b = arcradius(cx, cy, radius, end);
+ var e = arcradius(cx, cy, radius, beg);
+ var la = (end - beg) <= 180 ? 0 : 1;
+
+ tmp.d = ['M', Math.floor( b.x, decimals ), Math.floor( b.y, decimals ), 'A', radius, radius, 0, la, 0, Math.floor( e.x, decimals ), Math.floor( e.y, decimals ) ].join(' ');
+ arr.push(tmp);
+ beg = end;
+ };
+ return arr;
+};
+
+var selectedPresetsBackgroundSensor = 0;
+
+function altPTZCmd( me ){
+ var name = me.target.id;
+ const myArray = name.split("_");
+ Ext.Ajax.request({
+ url: '/lib/controller/doCameraOperation.php',
+ params: {
+ UID: =$UserID;?>,
+ SID: '=$Session;?>',
+ CMD: 11,
+ CID: myArray[3],
+ MOV: myArray[2]
+ },
+ failure: failureAJAXFunction
+ });
+};
+
+function showCameraPresets( AA, camID ){
+ Ext.Ajax.request({
+ url: '/lib/controller/getCameraPresets.php',
+ params: {
+ CID: camID,
+ UID: =$UserID;?>,
+ SID: '=$Session;?>',
+ },
+ success: function( response, opts ){
+ var data = Ext.decode(response.responseText);
+ var hgy = Ext.getCmp('pres_count');
+ if( hgy!= undefined ) hgy.setValue( data.count );
+ var hgy = Ext.getCmp('pres_p_seg');
+ if( hgy!= undefined ) hgy.setValue( data.pres_cols );
+ var hgy = Ext.getCmp('pres_z_seg');
+ if( hgy!= undefined ) hgy.setValue( data.pres_rows );
+ if( data.special_iron != undefined ){
+ var hgy = Ext.getCmp('pres_iron');
+ if( hgy!= undefined ) hgy.setValue( data.special_iron );
+ var juja = document.getElementById('img_btn_035_'+camID );
+ if( juja != undefined ){
+ juja.classList.add('ptz_ctrl_btn');
+ juja.classList.remove('ptz_ctrl_btn_hdn');
+ juja.addEventListener( 'mousedown', altPTZCmd );
+ };
+ } else {
+ var juja = document.getElementById('img_btn_035_'+camID );
+ if( juja != undefined ){
+ juja.classList.add('ptz_ctrl_btn_hdn');
+ juja.classList.remove('ptz_ctrl_btn');
+ juja.removeEventListener( 'mousedown', altPTZCmd );
+ };
+ };
+ if( data.special_iroff != undefined ){
+ var hgy = Ext.getCmp('pres_iroff');
+ if( hgy!= undefined ) hgy.setValue( data.special_iroff );
+ var juja = document.getElementById('img_btn_036_'+camID );
+ if( juja != undefined ){
+ juja.classList.add('ptz_ctrl_btn');
+ juja.classList.remove('ptz_ctrl_btn_hdn');
+ juja.addEventListener( 'mousedown', altPTZCmd );
+ };
+ } else {
+ var juja = document.getElementById('img_btn_036_'+camID );
+ if( juja != undefined ){
+ juja.classList.add('ptz_ctrl_btn_hdn');
+ juja.classList.remove('ptz_ctrl_btn');
+ juja.removeEventListener( 'mousedown', altPTZCmd );
+ };
+ };
+ if( data.special_irauto != undefined ){
+ var hgy = Ext.getCmp('pres_irauto');
+ if( hgy!= undefined ) hgy.setValue( data.special_irauto );
+ };
+ if( data.special_wiper != undefined ){
+ var hgy = Ext.getCmp('pres_wiper');
+ if( hgy!= undefined ) hgy.setValue( data.special_wiper );
+ var juja = document.getElementById('img_btn_037_'+camID );
+ if( juja != undefined ){
+ juja.classList.add('ptz_ctrl_btn');
+ juja.classList.remove('ptz_ctrl_btn_hdn');
+ juja.addEventListener( 'mousedown', altPTZCmd );
+ };
+ } else {
+ var juja = document.getElementById('img_btn_037_'+camID );
+ if( juja != undefined ){
+ juja.classList.add('ptz_ctrl_btn_hdn');
+ juja.classList.remove('ptz_ctrl_btn');
+ juja.removeEventListener( 'mousedown', altPTZCmd );
+ };
+ };
+
+ var svg = document.getElementById( AA );
+ svg.innerHTML = "";
+ var centerX = svg.clientWidth / 2.0;
+ var centerY = svg.clientHeight / 2.0;
+ var radius = svg.clientHeight / 2.0 - (data.pres_rows*2.0);
+ var color = ['#F6BB42', '#8CC152', '#3BAFDA', '#967ADC', '#DA4453'];
+ var max_lines = data.pres_rows;
+ for( var cl = max_lines; cl > 0; cl--){
+ var segnum = data.pres_cols * Math.pow( 2, ( cl-1 ) );
+ var dta = [];
+ for( var j = 0; j< segnum; j++) dta[j]={ value: (180/segnum) };
+ var crad = cl * ( radius/(max_lines+1));
+ var arr = zdonut(centerX, centerY, crad, dta );
+ for (var i = 0; i < arr.length; i++) {
+ var item = arr[i];
+ var tP = document.createElementNS( 'http://www.w3.org/2000/svg', 'path' );
+ tP.setAttribute( 'd', item.d );
+ var test = false;
+ var ll = [];
+ if( data.presets.length ){
+ for( var z = 0; z < data.presets.length; z++)
+ if( data.presets[z].row == cl && data.presets[z].column == i ){
+ ll = data.presets[z];
+ test = true;
+ break;
+ };
+ };
+ if( test ){
+ tP.setAttribute( 'stroke', '#000000' );
+ tP.setAttribute( 'class', 'preset_ctrl_btn_a' );
+ tP.setAttribute( 'onclick', 'triggerPreset('+camID+','+ll.id+')' );
+ tP.setAttribute( 'oncontextmenu', 'removePreset('+camID+','+ll.id+')' );
+ } else {
+ tP.setAttribute( 'stroke', color[(i+cl)%5] );
+ tP.setAttribute( 'class', 'preset_ctrl_btn' );
+ tP.setAttribute( 'ondblclick', 'setPreset('+camID+','+i+','+cl+')' );
+ };
+ tP.setAttribute( 'fill', 'none' );
+ tP.setAttribute( 'stroke-width', ( radius/(max_lines+1)) );
+ svg.appendChild( tP );
+ }
+ };
+ if( selectedPresetsBackgroundSensor ) preview2DDraw( selectedPresetsBackgroundSensor, 'ptz_presets_');
+ },
+ failure: failureAJAXFunction
+ });
+};
+
+function triggerPreset( camID, presetID ){
+ //alert( "Call Preset["+presetID+"] for camera["+camID+"]" );
+ doCamOperation( camID, 30, presetID );
+ return false;
+};
+
+function removePreset( camID, presetID ){
+ //alert( "Remove Preset["+presetID+"] for camera["+camID+"]" );
+ doCamOperation( camID, 29, presetID );
+ window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+camID+" );", 500 );
+ return false;
+};
+
+function setPreset( camID, colID, rowID ){
+ //alert( "Set new Preset for camera["+camID+"] x:"+colID+" y:"+rowID );
+ doCamOperation( camID, 28, colID+"_"+rowID );
+ window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+camID+" );", 500 );
+ return false;
+};
diff --git a/style/assets/14_node.png b/style/assets/14_node.png
new file mode 100644
index 0000000..1f4751c
Binary files /dev/null and b/style/assets/14_node.png differ
diff --git a/style/assets/15_node.png b/style/assets/15_node.png
index 49e32b8..1f4751c 100644
Binary files a/style/assets/15_node.png and b/style/assets/15_node.png differ
diff --git a/style/assets/no-signal.png b/style/assets/no-signal.png
index d697958..ffff0d5 100644
Binary files a/style/assets/no-signal.png and b/style/assets/no-signal.png differ
diff --git a/style/assets/no-signal_d.png b/style/assets/no-signal_d.png
deleted file mode 100644
index ffff0d5..0000000
Binary files a/style/assets/no-signal_d.png and /dev/null differ
diff --git a/style/assets/no-signal_d.png.png b/style/assets/no-signal_d.png.png
new file mode 100644
index 0000000..d697958
Binary files /dev/null and b/style/assets/no-signal_d.png.png differ
diff --git a/style/png/player/ir_off.png b/style/png/player/ir_off.png
new file mode 100644
index 0000000..bc47dfe
Binary files /dev/null and b/style/png/player/ir_off.png differ
diff --git a/style/png/player/ir_on.png b/style/png/player/ir_on.png
new file mode 100644
index 0000000..913b9d6
Binary files /dev/null and b/style/png/player/ir_on.png differ
diff --git a/style/png/player/washer.png b/style/png/player/washer.png
new file mode 100644
index 0000000..7862bff
Binary files /dev/null and b/style/png/player/washer.png differ
diff --git a/style/style.css b/style/style.css
index d116795..0faeee0 100644
--- a/style/style.css
+++ b/style/style.css
@@ -504,6 +504,28 @@ object:hover {
border: 2px solid red;
cursor: pointer;
}
+
+.preset_ctrl_btn{
+ opacity: 0.3;
+ cursor: pointer;
+}
+.preset_ctrl_btn:hover{
+ opacity: 1.0;
+ cursor: pointer;
+}
+.preset_ctrl_btn:active{
+ opacity: 1.0;
+ cursor: pointer;
+}
+.ptz_ctrl_btn_hdn{
+ display: none;
+}
+.preset_ctrl_btn_a{
+ opacity: 1.0;
+ border: 2px solid orange;
+ cursor: pointer;
+}
+
/* Correct Style */
.x-form-text{
@@ -743,6 +765,10 @@ A.CalendarDS:hover {
color: yellow;
background-color: black;
}
+.setEd_infoPanel#MODEM{
+ color: yellow;
+ background-color: darkviolet;
+}
.setEd_infoPanel#NUNU{
color: yellow;
height: 100%;