Browse Source

Before changing Report Video Engine

master
Evgeny Gagua 3 years ago
parent
commit
c670d2e1b3
  1. 2
      lib/1.json
  2. 2
      lib/3.json
  3. 13
      lib/ajax_asm.php
  4. 26
      lib/assembler.php
  5. 301
      lib/controller/dash/node_5.js
  6. 65
      lib/controller/doCameraOperation.php
  7. 12
      lib/controller/doMaskOperation.php
  8. 231
      lib/controller/getCameraEditor.php
  9. 24
      lib/controller/getDashBoardItems.php
  10. 164
      lib/controller/getFrames.php
  11. 2
      lib/defines.php
  12. 84
      lib/javascript/jsapi_dynamic/mojo_dashboard.js
  13. 8
      lib/javascript/jsapi_dynamic/mojo_logs.js
  14. 2
      lib/javascript/jsapi_dynamic/mojo_main.js
  15. 575
      lib/javascript/jsapi_dynamic/mojo_map.js
  16. 66
      lib/javascript/jsapi_dynamic/mojo_reports.js
  17. 353
      lib/javascript/jsapi_dynamic/mojo_settings.js
  18. 106
      lib/javascript/jsapi_dynamic/mojo_users.js
  19. 34
      lib/javascript/jsapi_dynamic/rgoose_cameras.js
  20. 62
      lib/javascript/jsapi_dynamic/rgoose_devices.js
  21. 6
      lib/javascript/jsapi_dynamic/rgoose_modules.js
  22. 16
      lib/js_asm.php
  23. 10
      lib/php/ui/UI_functions.php
  24. BIN
      style/assets/no-signal.png
  25. BIN
      style/assets/no-signal_d.png
  26. BIN
      style/wicons/narrow.png
  27. BIN
      style/wicons/wide.png

2
lib/1.json
File diff suppressed because it is too large
View File

2
lib/3.json
File diff suppressed because it is too large
View File

13
lib/ajax_asm.php

@ -32,18 +32,7 @@ require_once('php/argus/mojo.php');
if( isset($_GET['Lang'])){
$UCL=$_GET['Lang']/1;
if ($UCL) $_SESSION['userlang']=$UCL; else $_SESSION['userlang']=$UserLang;
}
//$LDB = new SQLite_DB( '/srv/www/web/lib/controller/data/lang_en_US.db');
if( isset($_SESSION['userlang']) ){
$Labels=new Language_json( '/srv/www/web/lib/'.$_SESSION['userlang'].'.json');//$_SESSION['userlang'],'', $LDB );
} else {
//$Labels=new Language( $UserLang ,'', $LDB );
$Labels=new Language_json( '/srv/www/web/lib/'.$UserLang.'.json');
};
$Labels=new Language_json( '/srv/www/web/lib/'.$UserLang.'.json');
if( $UserLang == 3 || $UserLang == 255 ){
$RTL_SITE = true;

26
lib/assembler.php

@ -48,23 +48,19 @@ require_once('php/ui/UI_functions.php');
if( isset($_GET['Lang'])){
$UCL=$_GET['Lang']/1;
if ($UCL) $_SESSION['userlang']=$UCL; else $_SESSION['userlang']=$UserLang;
}
//$LDB = new SQLite_DB( 'lib/controller/data/lang_en_US.db');
if( isset($_SESSION['userlang']) ){
$UserLang = $Site_Languages[$_SESSION['userlang']]['id'];
//$Labels=new Language( $_SESSION['userlang'],'', $LDB );
$Labels=new Language_json( '/srv/www/web/lib/'.$_SESSION['userlang'].'.json');
} else {
$UserLang = $Site_Languages[$UserLang]['id'];
//$Labels=new Language( $UserLang ,'', $LDB );
$Labels=new Language_json( '/srv/www/web/lib/'.$UserLang.'.json');
if( isset($_GET['Lang']) ){
$UCL=intval( $_GET['Lang'] );
if( $UCL == 0 ) $UCL = 1;
if( ( $UserLang != $UCL ) && ( $UserID > 1 ) ){
$QS = "UPDATE `users` SET `language`={$UCL} WHERE `id`={$UserID}";
$DATABASE->Query( $QS );
};
header( 'location: /' );
exit();
};
$Labels=new Language_json( '/srv/www/web/lib/'.$UserLang.'.json');
if( $UserLang == 3 || $UserLang == 255 ){
$RTL_SITE = true;
} else {

301
lib/controller/dash/node_5.js

@ -1,15 +1,17 @@
{
id: 'db_node_%%%NODEID%%%',
width: 258,
height: 336,
//width: 258,
//height: 336,
title: '%%%NODENAME%%%',
tools: [{
draggable: false,
collapsible: false,
/*tools: [{
id:'gear',
handler: function(){
//Ext.Msg.alert('Message', 'The Settings tool was clicked.');
showSensorToolBox( %%%NODEID%%% );
Ext.Msg.alert('Message', 'The Settings tool was clicked.');
//showSensorToolBox( %%%NODEID%%% );
}
}],
}],*/
listeners:{
beforedestroy: function(){
if( typeof nodeTHREEviewers[%%%NODEID%%%] !== 'undefined' ){
@ -28,14 +30,33 @@
};
return true;
},
afterrender: function(){
afterrender: function( p ){
var W = p.getWidth();
var H = W + 28;
//if( %%%APPTYPE%%% == 2 ){
// H = PanelH - p.ownerCt.getHeight() + 64;
// if( H > ( W * 0.5625 )+ 32 ){
// H = ( W * 0.5625 ) + 32;
// };
//} else {
// H = document.body.clientHeight - p.ownerCt.ownerCt.getHeight();
//};
//alert( W + ' koko ' + H );
p.setHeight( H );
Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H );//- 70 );
//Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setWidth( H );// - 70 );
var el = document.getElementById( 'div_radar_%%%NODEID%%%' )
//el.removeAttribute("height");
el.removeAttribute("style");
el.setAttribute("style","display: block; padding: 5px; width: \'100%\'; height:"+(H-20)+"px");
//el.setAttribute( "height", H-20 );//'86%' );
//cleanupDraw( %%%NODEID%%% );
//drawZoomLevels[%%%NODEID%%%]=100;
//const panorama = new PANOLENS.ImagePanorama( '/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%' );
//const viewer = new PANOLENS.Viewer({container: 'targ_canvas_%%%NODEID%%%' });
//viewer.add( panorama );
nodeTHREEviewers[%%%NODEID%%%] = {};
nodeTHREEviewers[%%%NODEID%%%].container = document.getElementById( 'container_%%%NODEID%%%' );
nodeTHREEviewers[%%%NODEID%%%].container = document.getElementById( 'div_radar_%%%NODEID%%%' );
nodeTHREEviewers[%%%NODEID%%%].camera = new THREE.PerspectiveCamera( 75, 1, 1, 1100 );
nodeTHREEviewers[%%%NODEID%%%].scene = new THREE.Scene();
@ -51,7 +72,7 @@
nodeTHREEviewers[%%%NODEID%%%].renderer = new THREE.WebGLRenderer();
nodeTHREEviewers[%%%NODEID%%%].renderer.setPixelRatio( 1 );
nodeTHREEviewers[%%%NODEID%%%].renderer.setSize( nodeTHREEviewers[%%%NODEID%%%].container.clientWidth, 200 );
nodeTHREEviewers[%%%NODEID%%%].renderer.setSize( nodeTHREEviewers[%%%NODEID%%%].container.clientWidth, (H-80) );//200 );
nodeTHREEviewers[%%%NODEID%%%].container.appendChild( nodeTHREEviewers[%%%NODEID%%%].renderer.domElement );
nodeTHREEviewers[%%%NODEID%%%].container.style.touchAction = 'none';
@ -145,20 +166,254 @@
//window.addEventListener( 'resize', onWindowResize );
}
},
layout:'border',
items:[{
html: '<center><div id="container_%%%NODEID%%%"></div></center>',
height: 210
},{
id: 'status_%%%NODEID%%%',
border: true,
frame: true,
height: 36,
html: ''
},{ xtype: 'spacer', height: 3 },{
id: 'det_status_%%%NODEID%%%',
border: true,
frame: true,
height: 46,
html: '<canvas id="status_canvas_%%%NODEID%%%" style="display: none;" width="240" height="43"></canvas>'
id: 'cp_radar_%%%NODEID%%%',
region: 'center',
html: '<div id="div_radar_%%%NODEID%%%" style="display: block; padding: 5px; width: \'100%\'; height: \'100%\';"></div>',
width: '56%'
},{
region: 'east',
collapsible: true,
minSize: 75, // defaults to 50
maxSize: 220,
frame: false,
border: false,
collapsed: true,
collapseMode: 'mini',
title: '%%%LABEL%%%TOOLBOX%%%',
floatable: true,
animFloat: false,
autoHide: true,
id: 'toolbox_%%%NODEID%%%',
//unstyled: true,
margins: '5 0 0 5',
//cmargins: '5 0 5 5',
width: 200,
items:[{
xtype: 'spacer',
height: 3
},{
xtype: 'button',
id: 'cp_clear_btn_%%%NODEID%%%',
width: '100%',
disabled: true,
text: '%%%LABEL%%%CLEALARM%%%',
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: '%%%LABEL%%%DRABACKGROUND%%%',
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: '%%%LABEL%%%STUBACKGROUND%%%',
iconCls: 'ctrl_panel_study_sm',
iconAlign: 'left',
disabled: true,
handler: function(){
doDeviceOperation( %%%NODEID%%%, 2,'', true );
}
},{
xtype: 'spacer',
height: 3
},{
xtype: 'button',
text: '%%%LABEL%%%MASKEDITOR%%%',
id: 'DMED_%%%NODEID%%%',
width: '100%',
disabled: true,
iconCls: 'ctrl_panel_drawscan_sm',
handler: function(){
showMaskEditor( false, 0, %%%NODEID%%% );
}
},{
xtype: 'spacer',
height: 3
},{
xtype: 'panel',
title: '%%%LABEL%%%MASKMNGR%%%',
height: 70,
frame: true,
flex: 1,
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: 'button',
width: '100%',
enableToggle: true,
id: 'cp_ack_btn_%%%NODEID%%%',
text: '%%%LABEL%%%ACKNOLAGE%%%',
iconCls: 'ctrl_panel_clean_sm',
iconAlign: 'left',
disabled: true,
handler: function(){
if( Ext.getCmp('cp_ack_btn_%%%NODEID%%%').pressed){
//doMaskOperation( %%%NODEID%%%, 1, 4 );
doAckOperation( %%%NODEID%%%, 1 );
} else {
//doMaskOperation( %%%NODEID%%%, 0, 4 );
doAckOperation( %%%NODEID%%%, 0 );
};
}
}/*,{
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'
}]
}*/]
}]
}

65
lib/controller/doCameraOperation.php

@ -491,26 +491,22 @@
break;
};
case 17:{
$Param = intval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `manual`={$Param} WHERE `id`={$CameraID}";
$Param = floatval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `x`={$Param} WHERE `id`={$CameraID}";
$DATABASE->Query( $QS );
$Data['status'] = 'ok-17';
break;
};
case 18:{
$Param = intval( $_POST['OPCODE'] );
if( $Param ){
$QS = "UPDATE `cameras` SET `homing_enable`=1 WHERE `id`={$CameraID}";
} else {
$QS = "UPDATE `cameras` SET `homing_enable`=0 WHERE `id`={$CameraID}";
};
$Param = floatval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `y`={$Param} WHERE `id`={$CameraID}";
$DATABASE->Query( $QS );
$Data['status'] = 'ok-18';
break;
};
case 19:{
$Param = intval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `homing_to`={$Param} WHERE `id`={$CameraID}";
$Param = floatval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `z`={$Param} WHERE `id`={$CameraID}";
$DATABASE->Query( $QS );
$Data['status'] = 'ok-19';
break;
@ -522,6 +518,55 @@
$Data['status'] = 'ok-20';
break;
};
case 21:{
// Set Cam Zoom Model
$Param = intval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `zoom_model`={$Param} WHERE `id`={$CameraID}";
$DATABASE->Query( $QS );
$Data['status'] = 'ok-21';
break;
};
case 22:{
// Set Cam Max Range in ZM=2
$Param = floatval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `zoom_model`=2, `max_range`={$Param} WHERE `id`={$CameraID}";
$DATABASE->Query( $QS );
$Data['status'] = 'ok-22';
break;
};
case 23:{
// Set Cam Zoom PERC in ZM=2
$Param = floatval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `zoom_model`=2, `zoom`={$Param} WHERE `id`={$CameraID}";
$DATABASE->Query( $QS );
$Data['status'] = 'ok-23';
break;
};
case 24:{
$Param = intval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `manual`={$Param} WHERE `id`={$CameraID}";
$DATABASE->Query( $QS );
$Data['status'] = 'ok-24';
break;
};
case 25:{
$Param = intval( $_POST['OPCODE'] );
if( $Param ){
$QS = "UPDATE `cameras` SET `homing_enable`=1 WHERE `id`={$CameraID}";
} else {
$QS = "UPDATE `cameras` SET `homing_enable`=0 WHERE `id`={$CameraID}";
};
$DATABASE->Query( $QS );
$Data['status'] = 'ok-25';
break;
};
case 26:{
$Param = intval( $_POST['OPCODE'] );
$QS = "UPDATE `cameras` SET `homing_to`={$Param} WHERE `id`={$CameraID}";
$DATABASE->Query( $QS );
$Data['status'] = 'ok-26';
break;
};
};
break;
};

12
lib/controller/doMaskOperation.php

@ -69,6 +69,7 @@
break;
};
case 3:{
// Delete Bypass Mask
if( isset( $_POST['MID'] ) ){
$MID = intval( $_POST['MID'] );
} else {
@ -105,6 +106,7 @@
break;
};
case 4:{
//Add Bypass Mask
$QS = "SELECT `ack_mask_type`, `ack_mask_size` FROM `lrf_sensors` WHERE `id`={$SenID}";
$LPP = $DATABASE->Query( $QS );
$TYP = intval( $LPP[0]['ack_mask_type'] );
@ -148,7 +150,15 @@
$DATABASE->Query( $QS );
$CID = $DATABASE->getLastInsertID();
};
$QS = "INSERT INTO `lrf_mask_vertexes`(`mask_id`) VALUES({$CID})";
// Calc New Vertext ID
$QS = "SELECT COUNT(id) cnt FROM `lrf_mask_vertexes` WHERE `mask_id` = {$CID}";
$RO = $DATABASE->Query( $QS );
$CVID = 1;
if( count( $RO ) ){
$CVID = $RO[0]['cnt']+1;
};
$QS = "INSERT INTO `lrf_mask_vertexes`(`mask_id`, `vertex_id`) VALUES({$CID},{$CVID})";
$DATABASE->Query( $QS );
$VID = $DATABASE->getLastInsertID();
if( $TYP == 0 ){

231
lib/controller/getCameraEditor.php

@ -306,9 +306,9 @@ CHUPAKABRA;
listeners:{
check: function( a, c ){
if( c ){
doCamOperation( {$CID}, 17, 1 );
doCamOperation( {$CID}, 24, 1 );
} else {
doCamOperation( {$CID}, 17, 0 );
doCamOperation( {$CID}, 24, 0 );
};
}
}
@ -392,13 +392,116 @@ CHUPAKABRA;
border: false
},
items:[{
html: '{$Labels->GetLabel('_CAM_ZOOMMO_')}'
},{
xtype: 'combo',
fieldLabel: '{$Labels->GetLabel('_CAM_ZOOMMO_')}',
lazyRender: true,
id: 'zoom_mo',
mode: 'local',
forceSelection: true,
triggerAction: 'all',
editable: false,
disableKeyFilter: true,
store: new Ext.data.ArrayStore({
fields: ['zm','zm_txt'],
data: [
[0,'{$Labels->GetLabel('_CAM_FIXEDZ_')}'],
[1,'{$Labels->GetLabel('_CAM_VARIOZ_')}'],
[2,'{$Labels->GetLabel('_CAM_CUSTOMZ_')}']
]
}),
valueField: 'zm',
displayField: 'zm_txt',
value: {$Cam['zoom_model']},
listeners:{
select:function( c, r, i ){
doCamOperation( {$CID}, 21, i );
switch( i ){
case 0:{
Ext.getCmp('lbbel0').show();
Ext.getCmp('sens_size').show();
Ext.getCmp('empty0').show();
Ext.getCmp('lbbel11').show();
Ext.getCmp('lens_fl').show();
Ext.getCmp('empty1').show();
Ext.getCmp('lbbel1').hide();
Ext.getCmp('zoom_val').hide();
Ext.getCmp('zoom_d').hide();
Ext.getCmp('lbbel2').hide();
Ext.getCmp('zoom_val2').hide();
Ext.getCmp('zoom_d2').hide();
Ext.getCmp('lbbel3').hide();
Ext.getCmp('zoom_range1').hide();
Ext.getCmp('empup_2').hide();
Ext.getCmp('zoom_perc1').hide();
Ext.getCmp('lbbel4').hide();
Ext.getCmp('empup_3').hide();
break;
};
case 1:{
Ext.getCmp('lbbel2').hide();
Ext.getCmp('zoom_val2').hide();
Ext.getCmp('zoom_d2').hide();
Ext.getCmp('lbbel3').hide();
Ext.getCmp('zoom_range1').hide();
Ext.getCmp('empup_2').hide();
Ext.getCmp('zoom_perc1').hide();
Ext.getCmp('lbbel4').hide();
Ext.getCmp('empup_3').hide();
Ext.getCmp('lbbel0').show();
Ext.getCmp('sens_size').show();
Ext.getCmp('empty0').show();
Ext.getCmp('lbbel11').show();
Ext.getCmp('lens_fl').show();
Ext.getCmp('empty1').show();
Ext.getCmp('lbbel1').show();
Ext.getCmp('zoom_val').show();
Ext.getCmp('zoom_d').show();
break;
};
case 2:{
Ext.getCmp('lbbel0').hide();
Ext.getCmp('sens_size').hide();
Ext.getCmp('empty0').hide();
Ext.getCmp('lbbel11').hide();
Ext.getCmp('lens_fl').hide();
Ext.getCmp('empty1').hide();
Ext.getCmp('lbbel1').hide();
Ext.getCmp('zoom_val').hide();
Ext.getCmp('zoom_d').hide();
Ext.getCmp('lbbel2').show();
Ext.getCmp('zoom_val2').show();
Ext.getCmp('zoom_d2').show();
Ext.getCmp('lbbel3').show();
Ext.getCmp('zoom_range1').show();
Ext.getCmp('empup_2').show();
Ext.getCmp('zoom_perc1').show();
Ext.getCmp('lbbel4').show();
Ext.getCmp('empup_3').show();
break;
};
};
}
}
},{
html: '&nbsp;'
},{
id: 'lbbel0',
width: 200,
hidden: ({$Cam['zoom_model']}==2),
html: '{$Labels->GetLabel('_CAM_SENS_SIZE_')}'
},{
xtype: 'combo',
id: 'sens_size',
hidden: ({$Cam['zoom_model']}==2),
fieldLabel: '{$Labels->GetLabel('_CAM_SENS_SIZE_')}',
lazyRender: true,
id: 'sens_size',
mode: 'local',
forceSelection: true,
triggerAction: 'all',
@ -430,14 +533,19 @@ CHUPAKABRA;
}
}
},{
id: 'empty0',
hidden: ({$Cam['zoom_model']}==2),
html: '&nbsp;'
},{
id: 'lbbel11',
hidden: ({$Cam['zoom_model']}==2),
html: '{$Labels->GetLabel('_CAM_FOCALL_')}'
},{
xtype: 'combo',
id: 'lens_fl',
hidden: ({$Cam['zoom_model']}==2),
fieldLabel: '{$Labels->GetLabel('_CAM_FOCALL_')}',
lazyRender: true,
id: 'lens_fl',
mode: 'local',
forceSelection: true,
triggerAction: 'all',
@ -506,74 +614,89 @@ CHUPAKABRA;
}
}
},{
id: 'empty1',
hidden: ({$Cam['zoom_model']}==2),
html: '&nbsp;'
},{
html: '{$Labels->GetLabel('_CAM_FIXEDZ_')}'
id: 'lbbel1',
hidden: ({$Cam['zoom_model']}!=1),
html: '{$Labels->GetLabel('_CAM_ZOOMR_')}'
},{
xtype: 'radio',
id: 'no_zoom',
name: 'zoom_ena',
value: ( parseFloat({$Cam['zoom']})==0 ),
checked: ( parseFloat({$Cam['zoom']})==0 ),
xtype: 'slider',
id: 'zoom_val',
hidden: ({$Cam['zoom_model']}!=1),
disabled: ( parseFloat({$Cam['zoom']})==0 ),
minValue: 1.0,
maxValue: 140.0,
value: {$Cam['zoom']},
listeners:{
change: function( r, n, o ){
if( n ) {
doCamOperation( {$CID}, 4, 0.0 );
};
change: function( a, c, b ){
doCamOperation( {$CID}, 4, c );
var zz = Ext.getCmp('zoom_d');
if( zz.rendered ) zz.update('<p>X&nbsp;'+ c + '</p>');
}
}
},{
html: '&nbsp;'
id: 'zoom_d',
hidden: ({$Cam['zoom_model']}!=1),
html: (( parseFloat({$Cam['zoom']})==0 )?'&nbsp;':'<p>X&nbsp;'+ {$Cam['zoom']} + '</p>' )
},{
html: '{$Labels->GetLabel('_CAM_VARIOZ_')}'
},{
xtype: 'radio',
id: 'on_zoom',
hideLabel: false,
fieldLabel: '{$Labels->GetLabel('_CAM_VARIOZ_')}',
name: 'zoom_ena',
value: ({$Cam['zoom']}>0.0),
checked: ({$Cam['zoom']}>0.0),
handler: function( a, c ){
if( c ){
Ext.getCmp('zoom_val').enable();
Ext.getCmp('zoom_val').setValue( 1 );
var zz = Ext.getCmp('zoom_d');
if( zz.rendered ) zz.update('<p>X&nbsp;1</p>');
} else {
Ext.getCmp('zoom_val').disable();
var zz = Ext.getCmp('zoom_d');
if( zz.rendered ) zz.update('&nbsp;');
};
},
id: 'lbbel3',
hidden: ({$Cam['zoom_model']}!=2),
html: '{$Labels->GetLabel('_CAM_MAX_RANGE_')}'
},{
xtype: 'numberfield',
id: 'zoom_range1',
width: 240,
hidden: ({$Cam['zoom_model']}!=2),
value: {$Cam['max_range']},
listeners:{
change: function( r, n, o ){
if( n ) {
doCamOperation( {$CID}, 4, 1.0 );
};
change: function( a, c, b ){
doCamOperation( {$CID}, 22, c );
}
}
},{
html: '&nbsp;'
},{
html: '{$Labels->GetLabel('_CAM_ZOOMR_')}'
id: 'empup_2',
hidden: ({$Cam['zoom_model']}!=2),
html: '{$Labels->GetLabel('_METERS_')}'
},{
id: 'lbbel4',
hidden: ({$Cam['zoom_model']}!=2),
html: ''
},{
id: 'zoom_perc1',
width: 240,
hidden: ({$Cam['zoom_model']}!=2),
html: '<center><p>'+ {$Cam['zoom']} + '%</p></center>'
},{
id: 'empup_3',
hidden: ({$Cam['zoom_model']}!=2),
html: ''
},{
id: 'lbbel2',
hidden: ({$Cam['zoom_model']}!=2),
style: {
marginLeft: '120px' //https://www.biostar.com.tw/app/en/eol/introduction.php?S_ID=711
},
html: '<img width="32px" src="/style/wicons/wide.png"/>'
},{
xtype: 'slider',
id: 'zoom_val',
disabled: ( parseFloat({$Cam['zoom']})==0 ),
id: 'zoom_val2',
hidden: ({$Cam['zoom_model']}!=2),
minValue: 1.0,
maxValue: 140.0,
maxValue: 100.0,
value: {$Cam['zoom']},
listeners:{
change: function( a, c, b ){
doCamOperation( {$CID}, 4, c );
var zz = Ext.getCmp('zoom_d');
if( zz.rendered ) zz.update('<p>X&nbsp;'+ c + '</p>');
doCamOperation( {$CID}, 23, c );
var zz = Ext.getCmp('zoom_perc1');
if( zz.rendered ) zz.update('<center><p>'+ c + '%</p></center>');
}
}
},{
id: 'zoom_d',
html: (( parseFloat({$Cam['zoom']})==0 )?'&nbsp;':'<p>X&nbsp;'+ {$Cam['zoom']} + '</p>' )
id: 'zoom_d2',
hidden: ({$Cam['zoom_model']}!=2),
html: '<img width="32px" src="/style/wicons/narrow.png"/>'
}]
}]
},{
@ -991,9 +1114,9 @@ CHUPAKABRA;
listeners:{
check: function( a, c ){
if( c ){
doCamOperation( {$CID}, 18, 1 );
doCamOperation( {$CID}, 25, 1 );
} else {
doCamOperation( {$CID}, 18, 0 );
doCamOperation( {$CID}, 25, 0 );
};
}
}
@ -1009,7 +1132,7 @@ CHUPAKABRA;
value: '{$Cam['homing_to']}',
listeners:{
change: function( a, c, b ){
doCamOperation( {$CID}, 19, c );
doCamOperation( {$CID}, 26, c );
}
}
},{

24
lib/controller/getDashBoardItems.php

@ -67,6 +67,16 @@
}
}
_DATA_BOUNDARY;
$DUMMY['camera']="{xtype:'panel', id:'pan_ph_ccc_%%ID%%', title: 'Camera Placeholder', frame: true, border: true, draggable: false, layouit: 'fit', items:{$TABA}}";
$DUMMY['sensor']="{xtype:'panel', title: '{$Labels->GetLabel('_SENSOR_PLACE_')}', frame: true, border: true, draggable: false, html:'NO SENSOR', listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9);}}}";
} else {
$DUMMY['camera']="{xtype:'panel', title: false, frame: true, draggable: false, html: '&nbsp;', listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9);}}}";
$DUMMY['sensor']="{xtype:'panel', title: false, frame: true, draggable: false, html: '&nbsp;', listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9);}}}";
};
$LOGIO=<<<_DATA_BOUNDARY
{
xtype: 'grid',
@ -118,17 +128,9 @@ $MAPIO=<<<_DATA_BOUNDARY
}
}
_DATA_BOUNDARY;
$DUMMY['camera']="{xtype:'panel', id:'pan_ph_ccc_%%ID%%', title: 'Camera Placeholder', frame: true, border: true, draggable: false, layouit: 'fit', items:{$TABA}}";
$DUMMY['sensor']="{xtype:'panel', title: '{$Labels->GetLabel('_SENSOR_PLACE_')}', frame: true, border: true, draggable: false, html:'NO SENSOR', listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9);}}}";
$DUMMY['map']="{xtype:'panel', title: '{$Labels->GetLabel('_MAP_')}', frame: true, border: true, draggable: false, collapsible: false, tools: [{ id:'toggle', handler: function( a, b, p ){ fullScreen( 'event_map' ); }}], items:[{$MAPIO}],listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9); initMapMonitoring();}} }";
$DUMMY['log']="{xtype:'panel', id: 'lg_panel', title: '{$Labels->GetLabel('_EVENT_LOG_')}', frame: true, border: true, draggable: false, items:[{$LOGIO}] }";
} else {
$DUMMY['camera']="{xtype:'panel', title: false, frame: true, draggable: false, html: '&nbsp;', listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9);}}}";
$DUMMY['sensor']="{xtype:'panel', title: false, frame: true, draggable: false, html: '&nbsp;', listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9);}}}";
$DUMMY['map']="{xtype:'panel', title: false, frame: true, draggable: false, height: 200, html: '&nbsp;'}";
$DUMMY['log']="{xtype:'panel', title: false, frame: true, draggable: false, height: 200, html: '&nbsp;'}";
};
$DUMMY['map']="{xtype:'panel', title: '{$Labels->GetLabel('_MAP_')}', frame: true, border: true, draggable: false, collapsible: false, tools: [{ id:'toggle', handler: function( a, b, p ){ fullScreen( 'event_map' ); }}], items:[{$MAPIO}],listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*9); initMapMonitoring();}} }";
$DUMMY['log']="{xtype:'panel', id: 'lg_panel', title: '{$Labels->GetLabel('_EVENT_LOG_')}', frame: true, border: true, draggable: false, items:[{$LOGIO}] }";
$STA = array();
$END="]}";
$OUT = array();

164
lib/controller/getFrames.php

@ -0,0 +1,164 @@
<?php
require_once('../ajax_asm.php');
if( $CUser->Data['id'] > 1 ){
$VID = intval( $_POST['VID'] );
$DTS = intval( $_POST['TS'] );
if( $VID && $DTS ){
$DS = date("Y/m/d", $DTS );
$QS = "SELECT * FROM `videos` WHERE `id` = {$VID}";
$ZIZI = new SQLite_DB( '/srv/www/web/lib/controller/data/reports/'.$DS.'/report.db');
$LREC = $ZIZI->Query( $QS );
if( count( $LREC ) ){
$Data = $LREC[0];
$FILE = "/srv/www/web/lib/controller/data/reports/{$DS}/{$Data['md5']}.{$Data['ext']}";
$FPS = intval( $Data['fps'] );
if( $FPS < 1 ) $FPS = 15;
ob_implicit_flush(true);
//ignore_user_abort(true);
while( ob_get_level() ) ob_end_clean();
header("Cache-Control: no-store, no-cache, post-check=0, pre-check=0");
header("Pragma: no-cache");
header("MIME-version: 1.0");
header("Connection: close");
header("Content-Transfer-Encoding: BINARY");
header("Content-type: multipart/x-mixed-replace;boundary=MPFrame");
$START_FRAME = 0;
if( isset( $_GET['sf'] ) ) $START_FRAME = intval( $_GET['sf'] );
//$FILE = '/srv/www/web/lib/controller/data/reports/2024/02/14/d156c150ca14ac484f28ef4ad70666b2.mjpeg';
$FID = fopen( $FILE, "r");
$BUFFER = "";
$FRAME = "";
if( $FID === false ){
} else {
$end = false;
$start = false;
$CURRENT_FRAME = 0;
while( !feof( $FID ) ){
$BUFFER .= fread( $FID, 8192 );
if( $start === false ) $start = strpos( $BUFFER, "\xFF\xD8" );
if( $start !== false && $end === false ) $end = strpos( $BUFFER, "\xFF\xD9", $start );
if( $start !== false && $end !== false ){
$end += 2;
$CONTENT_LEN = $end - $start;
$FRAME = substr( $BUFFER, $start, $CONTENT_LEN );
$BUFFER = substr( $BUFFER, $end );
$start = false;
$end = false;
$CURRENT_FRAME++;
if( $CURRENT_FRAME > $START_FRAME ){
echo "--MPFrame\r\nContent-type: image/jpeg\r\nContent-length: {$CONTENT_LEN}\r\n\r\n";
echo $FRAME;
echo "\r\n\r\n";
usleep( 1000000 / $FPS ); // 15 fps?
};
if( connection_status() != 0 ){
fclose( $FID );
error_log('Connection aborted.');
exit();
};
};
};
if( $CURRENT_FRAME <= $START_FRAME ){
echo "--MPFrame\r\nContent-type: image/jpeg\r\nContent-length: {$CONTENT_LEN}\r\n\r\n";
echo $FRAME;
echo "\r\n\r\n";
};
fclose( $FID );
};
//file_put_contents('/srv/samba/Mojo_Web/lib/controller/test.txt',"KOKOMO");
exit();
};
};
};
function readPixel($url, $x, $y, $callback)
{
$loop = 0;
//Megasaturnv 2018-01-12
// Mjpeg URL
$camurl = $url;
//$camurl="http://username:password@192.168.1.100:8081/" // HTTP Auth mjpeg URL (optional)
$boundary="--BoundaryString"; // $boundary = The boundary string between jpegs in an mjpeg stream
//NOTE: $boundary changes between mjpeg stream providers. For example, https://github.com/Motion-Project/motion uses '--BoundaryString'. https://github.com/ZoneMinder/ZoneMinder uses '--ZoneMinderFrame'. To find out $boundary for your stream you will need to save 1 or more frames of the mjpeg and open it with a text editor. --<boundary string> should be visible on the first line
$f = fopen($camurl, "r"); // Open mjpeg url as $f in readonly mode
$r = ""; // Set $r to blank variable
if($f) {
while (true){
$r.=fread($f, 50000);
$startsearch = strpos($r, "Content-Length: ");
if($startsearch!==false){
$r = substr($r, $startsearch+16);
$index=0;
$length = "";
while(true){
$char = substr($r, $index, 1);
$index++;
if(is_numeric($char)){
$length.= $char;
}else{
break;
}
}
$r = substr($r, strlen($length)+4);
$totalbytes = $length-0;
$havebytes=strlen($r);
$remain = $totalbytes-$havebytes;
//echo "Length:$length\n";
//echo "Stream:$r\n";
//echo "HaveBytes $havebytes totalbytes: $totalbytes, Remain: $remain\n";
while($havebytes < $totalbytes){
$r .=fread($f, $totalbytes-$havebytes);
$havebytes = strlen($r);
}
//save/debug image
//file_put_contents("test.jpg", $r);
$im = imagecreatefromstring($r);
//test if image is valid
//$valid = ($im != FALSE);
//echo ($valid?"VALID":"INVALID")."\n";
//echo imagesx($im).'x'.imagesy($im) ."\n";
$rgb = imagecolorat ($im, $x, $y);
$r = ($rgb >> 16) & 0xFF;
$g = ($rgb >> 8) & 0xFF;
$b = $rgb & 0xFF;
imagedestroy($im);
$loop++;
if($callback($r,$g,$b, $loop)){
echo "TEST colors: $r $g $b\n";
}else{
fclose($f);
return true;
}
$r="";
}
}
} else {
echo "Error, cannot open URL"; // Error message if $camurl cannot be opened
}
fclose($f); // Close the url
}
?>

2
lib/defines.php

@ -33,7 +33,7 @@ function microtime_float(){
$Script_Start_Time = microtime_float();
$Site_Languages = array(
array( 'id'=>1, 'name'=>'English', 'rtl'=>false ),
//array( 'id'=>0, 'name'=>'Default', 'rtl'=>false ),
array( 'id'=>1, 'name'=>'English', 'rtl'=>false ),
array( 'id'=>2, 'name'=>'Русский', 'rtl'=>false ),
array( 'id'=>3, 'name'=>'עברית', 'rtl'=>true ),

84
lib/javascript/jsapi_dynamic/mojo_dashboard.js

@ -49,37 +49,37 @@ function log_sn_Renderer( value, meta, record ){
function log_et_Renderer( value, meta, record ){
var kaka = record.data.node_id % 3;
switch( value ){
case 6: ov = '<?=$Labels->GetLabel('_EVT_MSG_STUMO_');?>'; break;
case 7: ov = '<?=$Labels->GetLabel('_EVT_MSG_BUMO_');?>'; break;
case 8: ov = '<?=$Labels->GetLabel('_EVT_MSG_FLIPO_');?>'; break;
case 9: ov = '<?=$Labels->GetLabel('_EVT_MSG_SCANC_');?>'; break;
case 12: ov = '<?=$Labels->GetLabel('_EVT_MSG_B2DTRG_');?>'; break;
case 13: ov = '<?=$Labels->GetLabel('_EVT_MSG_W2DTRG_');?>'; break;
case 36: ov = '<?=$Labels->GetLabel('_EVT_MSG_ROI_');?>'; break;
case 39: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_CT_');?>'; break;
case 40: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_USD_');?>'; break;
case 41: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_BSD_');?>'; break;
case 42: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_TD_');?>'; break;
case 43: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_TUPD_');?>'; break;
case 44: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPA_');?>'; break;
case 45: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPN_');?>'; break;
case 46: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_RD_');?>'; break;
case 47: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_DD_');?>'; break;
case 48: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPD_');?>'; break;
case 49: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_DIFD_');?>'; break;
case 52: ov = '<?=$Labels->GetLabel('_EVT_MSG_EVT_START_');?>'; break;
case 53: ov = '<?=$Labels->GetLabel('_EVT_MSG_EVT_END_');?>'; break;
case 54: ov = '<?=$Labels->GetLabel('_EVT_MSG_EVT_CLOMA_');?>'; break;
case 55: ov = '<?=$Labels->GetLabel('_EVT_MSG_CONNECTED_');?>'; break;
case 56: ov = '<?=$Labels->GetLabel('_EVT_MSG_DISCONNECTED_');?>'; break;
case 57: ov = '<?=$Labels->GetLabel('_EVT_MSG_COM_JAMED_');?>'; break;
case 58: ov = '<?=$Labels->GetLabel('_EVT_MSG_VIFDEC_');?>'; break;
case 59: ov = '<?=$Labels->GetLabel('_EVT_MSG_VIFINC_');?>'; break;
case 68: ov = '<?=$Labels->GetLabel('_EVT_MSG_ACKON_');?>'; break;
case 69: ov = '<?=$Labels->GetLabel('_EVT_MSG_ACKOFF_');?>'; break;
case 70: ov = '<?=$Labels->GetLabel('_EVT_MSG_MASKON_');?>'; break;
case 71: ov = '<?=$Labels->GetLabel('_EVT_MSG_MASKOFF_');?>'; break;
default: ov = '<?=$Labels->GetLabel('_EVENT_');?> ['+value+']';
case 6: ov = "<?=$Labels->GetLabel('_EVT_MSG_STUMO_');?>"; break;
case 7: ov = "<?=$Labels->GetLabel('_EVT_MSG_BUMO_');?>"; break;
case 8: ov = "<?=$Labels->GetLabel('_EVT_MSG_FLIPO_');?>"; break;
case 9: ov = "<?=$Labels->GetLabel('_EVT_MSG_SCANC_');?>"; break;
case 12: ov = "<?=$Labels->GetLabel('_EVT_MSG_B2DTRG_');?>"; break;
case 13: ov = "<?=$Labels->GetLabel('_EVT_MSG_W2DTRG_');?>"; break;
case 36: ov = "<?=$Labels->GetLabel('_EVT_MSG_ROI_');?>"; break;
case 39: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_CT_');?>"; break;
case 40: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_USD_');?>"; break;
case 41: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_BSD_');?>"; break;
case 42: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_TD_');?>"; break;
case 43: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_TUPD_');?>"; break;
case 44: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPA_');?>"; break;
case 45: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPN_');?>"; break;
case 46: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_RD_');?>"; break;
case 47: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_DD_');?>"; break;
case 48: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPD_');?>"; break;
case 49: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_DIFD_');?>"; break;
case 52: ov = "<?=$Labels->GetLabel('_EVT_MSG_EVT_START_');?>"; break;
case 53: ov = "<?=$Labels->GetLabel('_EVT_MSG_EVT_END_');?>"; break;
case 54: ov = "<?=$Labels->GetLabel('_EVT_MSG_EVT_CLOMA_');?>"; break;
case 55: ov = "<?=$Labels->GetLabel('_EVT_MSG_CONNECTED_');?>"; break;
case 56: ov = "<?=$Labels->GetLabel('_EVT_MSG_DISCONNECTED_');?>"; break;
case 57: ov = "<?=$Labels->GetLabel('_EVT_MSG_COM_JAMED_');?>"; break;
case 58: ov = "<?=$Labels->GetLabel('_EVT_MSG_VIFDEC_');?>"; break;
case 59: ov = "<?=$Labels->GetLabel('_EVT_MSG_VIFINC_');?>"; break;
case 68: ov = "<?=$Labels->GetLabel('_EVT_MSG_ACKON_');?>"; break;
case 69: ov = "<?=$Labels->GetLabel('_EVT_MSG_ACKOFF_');?>"; break;
case 70: ov = "<?=$Labels->GetLabel('_EVT_MSG_MASKON_');?>"; break;
case 71: ov = "<?=$Labels->GetLabel('_EVT_MSG_MASKOFF_');?>"; break;
default: ov = "<?=$Labels->GetLabel('_EVENT_');?> ["+value+"]";
};
return '<div class="log_line_' + kaka + '">'+ov+'</div>';
};
@ -1224,7 +1224,7 @@ function setStatus2D( a, status, masksE = 0, masks = 0 ){
masks_exist[a] = 0;
};
var stat = Ext.getCmp('status_'+a );
if( stat != undefined ) stat.update('<div class="status_2d_div" id="OFFLINE"><?=$Labels->GetLabel('_DB_STAT_CON_UNA_');?></div>');
if( stat != undefined ) stat.update("<div class='status_2d_div' id='OFFLINE'><?=$Labels->GetLabel('_DB_STAT_CON_UNA_');?></div>");
break;
};
case 1:{
@ -1254,7 +1254,7 @@ function setStatus2D( a, status, masksE = 0, masks = 0 ){
masks_exist[a] = 0;
};
var stat = Ext.getCmp('status_'+a );
if( stat != undefined ) stat.update('<div class="status_2d_div" id="NOCONECT"><?=$Labels->GetLabel('_DISCONNECTED_');?></div>');
if( stat != undefined ) stat.update("<div class='status_2d_div' id='NOCONECT'><?=$Labels->GetLabel('_DISCONNECTED_');?></div>");
break;
};
case 2:{
@ -1299,7 +1299,7 @@ function setStatus2D( a, status, masksE = 0, masks = 0 ){
masks_exist[a] = masksE;
};
var stat = Ext.getCmp('status_'+a );
if( stat != undefined ) stat.update('<div class="status_2d_div" id="CONNECT"><?=$Labels->GetLabel('_DB_STAT_CON_0_');?></div>');
if( stat != undefined ) stat.update("<div class='status_2d_div' id='CONNECT'><?=$Labels->GetLabel('_DB_STAT_CON_0_');?></div>");
break;
};
case 3:{
@ -1344,7 +1344,7 @@ function setStatus2D( a, status, masksE = 0, masks = 0 ){
masks_exist[a] = masksE;
};
var stat = Ext.getCmp('status_'+a );
if( stat != undefined ) stat.update('<div class="status_2d_div" id="STUDY"><?=$Labels->GetLabel('_DB_STAT_STUDY_');?></div>');
if( stat != undefined ) stat.update("<div class='status_2d_div' id='STUDY'><?=$Labels->GetLabel('_DB_STAT_STUDY_');?></div>");
break;
};
case 4:{
@ -1389,7 +1389,7 @@ function setStatus2D( a, status, masksE = 0, masks = 0 ){
masks_exist[a] = masksE;
};
var stat = Ext.getCmp('status_'+a );
if( stat != undefined ) stat.update('<div class="status_2d_div" id="READY"><?=$Labels->GetLabel('_READY_');?></div>');
if( stat != undefined ) stat.update("<div class='status_2d_div' id='READY'><?=$Labels->GetLabel('_READY_');?></div>");
break;
};
case 5:{
@ -1434,7 +1434,7 @@ function setStatus2D( a, status, masksE = 0, masks = 0 ){
masks_exist[a] = masksE;
};
var stat = Ext.getCmp('status_'+a );
if( stat != undefined ) stat.update('<div class="status_2d_div" id="DETECTIONS"><?=$Labels->GetLabel('_ALARMED_');?></div>');
if( stat != undefined ) stat.update("<div class='status_2d_div' id='DETECTIONS'><?=$Labels->GetLabel('_ALARMED_');?></div>");
break;
};
case 6:{
@ -1479,7 +1479,7 @@ function setStatus2D( a, status, masksE = 0, masks = 0 ){
masks_exist[a] = masksE;
};
var stat = Ext.getCmp('status_'+a );
if( stat != undefined ) stat.update('<div class="status_2d_div" id="BUSY"><?=$Labels->GetLabel('_BUSY_');?></div>');
if( stat != undefined ) stat.update("<div class='status_2d_div' id='BUSY'><?=$Labels->GetLabel('_BUSY_');?></div>");
break;
};
};
@ -1913,8 +1913,8 @@ function clear2DACK( a ){
function doAckOperation( NodeID, Cmd ){
if( Cmd ){
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_DEV_ACK_START_");?>',
title: "<?=$Labels->GetLabel("_INFO_MSG_");?>",
msg: "<?=$Labels->GetLabel("_DEV_ACK_START_");?>",
buttons: Ext.Msg.YESNOCANCEL,
fn: function( btn ){
if( btn == 'yes' ){
@ -1944,8 +1944,8 @@ function doAckOperation( NodeID, Cmd ){
});
} else {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_DEV_ACK_STOP_");?>',
title: "<?=$Labels->GetLabel("_INFO_MSG_");?>",
msg: "<?=$Labels->GetLabel("_DEV_ACK_STOP_");?>",
buttons: Ext.Msg.YESNOCANCEL,
fn: function( btn ){
if( btn == 'yes' ){

8
lib/javascript/jsapi_dynamic/mojo_logs.js

@ -97,11 +97,11 @@ var um_access_log_store = new Ext.data.JsonStore({
function um_action_renderer( val ){
switch( val ){
case 1: return '<?=$Labels->GetLabel("_LOGIN_");?>';
case 13: return '<?=$Labels->GetLabel("_ACCESS_DENIED_");?>';
case 145: return '<?=$Labels->GetLabel("_SCREEN_RESIZE_");?>';
case 1: return "<?=$Labels->GetLabel("_LOGIN_");?>";
case 13: return "<?=$Labels->GetLabel("_ACCESS_DENIED_");?>";
case 145: return "<?=$Labels->GetLabel("_SCREEN_RESIZE_");?>";
};
return 'unknown action';
return "unknown action";
};
var um_access_log_col_model_opt = {

2
lib/javascript/jsapi_dynamic/mojo_main.js

@ -256,7 +256,7 @@ function showContent( cid ){
tt = Ext.getCmp('tbtn_1');
tt.toggle( false, true );
tt = Ext.getCmp('tbtn_2');
tt.toggle( false, true );
tt.toggle( false, true );
var tP = Ext.getCmp('left_side_menu');
tP.setVisible( false );
var tZ = Ext.getCmp('right_side_menu');

575
lib/javascript/jsapi_dynamic/mojo_map.js

@ -626,6 +626,450 @@ function setNodeLocationByDelta(){
});
};
//viewport
function Events() {
this.events = { };
}
Events.prototype.on = function(name, fn) {
var events = this.events[name];
if (events == undefined) {
this.events[name] = [ fn ];
this.emit('event:on', fn);
} else {
if (events.indexOf(fn) == -1) {
events.push(fn);
this.emit('event:on', fn);
}
}
return this;
}
Events.prototype.once = function(name, fn) {
var events = this.events[name];
fn.once = true;
if (!events) {
this.events[name] = [ fn ];
this.emit('event:once', fn);
} else {
if (events.indexOf(fn) == -1) {
events.push(fn);
this.emit('event:once', fn);
}
}
return this;
}
Events.prototype.emit = function(name, args) {
var events = this.events[name];
if (events) {
var i = events.length;
while(i--) {
if (events[i]) {
events[i].call(this, args);
if (events[i].once) {
delete events[i];
}
}
}
}
return this;
}
Events.prototype.unbind = function(name, fn) {
if (name) {
var events = this.events[name];
if (events) {
if (fn) {
var i = events.indexOf(fn);
if (i != -1) {
delete events[i];
}
} else {
delete this.events[name];
}
}
} else {
delete this.events;
this.events = { };
}
return this;
}
var userPrefix;
var prefix = (function () {
var styles = window.getComputedStyle(document.documentElement, ''),
pre = (Array.prototype.slice
.call(styles)
.join('')
.match(/-(moz|webkit|ms)-/) || (styles.OLink === '' && ['', 'o'])
)[1],
dom = ('WebKit|Moz|MS|O').match(new RegExp('(' + pre + ')', 'i'))[1];
userPrefix = {
dom: dom,
lowercase: pre,
css: '-' + pre + '-',
js: pre[0].toUpperCase() + pre.substr(1)
};
})();
function bindEvent(element, type, handler) {
if(element.addEventListener) {
element.addEventListener(type, handler, false);
} else {
element.attachEvent('on' + type, handler);
}
}
function Viewport(data) {
events.add( this );
var self = this;
this.element = data.element;
this.fps = data.fps;
this.sensivity = data.sensivity;
this.sensivityFade = data.sensivityFade;
this.touchSensivity = data.touchSensivity;
this.speed = data.speed;
this.lastX = 0;
this.lastY = 0;
this.mouseX = 0;
this.mouseY = 0;
this.distanceX = 0;
this.distanceY = 0;
this.positionX = 0;
this.positionY = 0;
this.positionZ = 0;
this.torqueX = 0;
this.torqueY = 0;
this.down = false;
this.upsideDown = false;
this.previousPositionX = 0;
this.previousPositionY = 0;
this.previousPositionZ = 0;
this.currentSide = 0;
this.calculatedSide = 0;
bindEvent(data.element /*document*/, 'mousedown', function() { self.down = true; });
bindEvent(data.element, 'mouseup', function() { self.down = false; });
bindEvent(data.element, 'keyup', function() { self.down = false; });
bindEvent(data.element, 'mousemove', function(e) { self.mouseX = e.pageX; self.mouseY = e.pageY; });
bindEvent(data.element, 'touchstart', function(e) {
self.down = true;
e.touches ? e = e.touches[0] : null;
self.mouseX = e.pageX / self.touchSensivity;
self.mouseY = e.pageY / self.touchSensivity;
self.lastX = self.mouseX;
self.lastY = self.mouseY;
});
bindEvent(data.element, 'touchmove', function(e) {
if(e.preventDefault) {
e.preventDefault();
}
if(e.touches.length == 1) {
e.touches ? e = e.touches[0] : null;
self.mouseX = e.pageX / self.touchSensivity;
self.mouseY = e.pageY / self.touchSensivity;
}
});
bindEvent(data.element, 'touchend', function(e) {
self.down = false;
});
setInterval(this.animate.bind(this), this.fps);
}
var events = new Events();
events.add = function(obj) {
obj.events = { };
}
events.implement = function(fn) {
fn.prototype = Object.create(Events.prototype);
}
events.implement(Viewport);
Viewport.prototype.animate = function() {
this.distanceX = (this.mouseX - this.lastX);
this.distanceY = (this.mouseY - this.lastY);
this.lastX = this.mouseX;
this.lastY = this.mouseY;
if(this.down) {
this.torqueX = this.torqueX * this.sensivityFade + (this.distanceX * this.speed - this.torqueX) * this.sensivity;
this.torqueY = this.torqueY * this.sensivityFade + (this.distanceY * this.speed - this.torqueY) * this.sensivity;
}
if(Math.abs(this.torqueX) > 1.0 || Math.abs(this.torqueY) > 1.0) {
if(!this.down) {
this.torqueX *= this.sensivityFade;
this.torqueY *= this.sensivityFade;
}
this.positionY -= this.torqueY;
if(this.positionY > 360) {
this.positionY -= 360;
} else if(this.positionY < 0) {
this.positionY += 360;
}
if(this.positionY > 90 && this.positionY < 270) {
this.positionX -= this.torqueX;
if(!this.upsideDown) {
this.upsideDown = true;
this.emit('upsideDown', { upsideDown: this.upsideDown });
}
} else {
this.positionX += this.torqueX;
if(this.upsideDown) {
this.upsideDown = false;
this.emit('upsideDown', { upsideDown: this.upsideDown });
}
}
if(this.positionX > 360) {
this.positionX -= 360;
} else if(this.positionX < 0) {
this.positionX += 360;
}
if(!(this.positionY >= 46 && this.positionY <= 130) && !(this.positionY >= 220 && this.positionY <= 308)) {
if(this.upsideDown) {
if(this.positionX >= 42 && this.positionX <= 130) {
this.calculatedSide = 3;
} else if(this.positionX >= 131 && this.positionX <= 223) {
this.calculatedSide = 2;
} else if(this.positionX >= 224 && this.positionX <= 314) {
this.calculatedSide = 5;
} else {
this.calculatedSide = 4;
}
} else {
if(this.positionX >= 42 && this.positionX <= 130) {
this.calculatedSide = 5;
} else if(this.positionX >= 131 && this.positionX <= 223) {
this.calculatedSide = 4;
} else if(this.positionX >= 224 && this.positionX <= 314) {
this.calculatedSide = 3;
} else {
this.calculatedSide = 2;
}
}
} else {
if(this.positionY >= 46 && this.positionY <= 130) {
this.calculatedSide = 6;
}
if(this.positionY >= 220 && this.positionY <= 308) {
this.calculatedSide = 1;
}
}
if(this.calculatedSide !== this.currentSide) {
this.currentSide = this.calculatedSide;
this.emit('sideChange');
}
}
this.element.style[userPrefix.js + 'Transform'] = 'rotateX(' + this.positionY + 'deg) rotateY(' + this.positionX + 'deg) rotateZ('+this.positionZ + 'deg)';
if(this.positionY != this.previousPositionY || this.positionX != this.previousPositionX || this.positionZ != this.previousPositionZ ) {
this.previousPositionY = this.positionY;
this.previousPositionX = this.positionX;
this.previousPositionZ = this.positionZ;
this.emit('rotate');
}
}
Viewport.prototype.setDirect = function( A, B, C ) {
if( 1 ) {
this.positionX = A;
this.positionY = B;
this.positionZ = C;
if(this.positionY > 360) {
this.positionY -= 360;
} else if(this.positionY < 0) {
this.positionY += 360;
}
if(this.positionY > 90 && this.positionY < 270) {
if(!this.upsideDown) {
this.upsideDown = true;
this.emit('upsideDown', { upsideDown: this.upsideDown });
}
} else {
if(this.upsideDown) {
this.upsideDown = false;
this.emit('upsideDown', { upsideDown: this.upsideDown });
}
}
if(this.positionX > 360) {
this.positionX -= 360;
} else if(this.positionX < 0) {
this.positionX += 360;
}
if(!(this.positionY >= 46 && this.positionY <= 130) && !(this.positionY >= 220 && this.positionY <= 308)) {
if(this.upsideDown) {
if(this.positionX >= 42 && this.positionX <= 130) {
this.calculatedSide = 3;
} else if(this.positionX >= 131 && this.positionX <= 223) {
this.calculatedSide = 2;
} else if(this.positionX >= 224 && this.positionX <= 314) {
this.calculatedSide = 5;
} else {
this.calculatedSide = 4;
}
} else {
if(this.positionX >= 42 && this.positionX <= 130) {
this.calculatedSide = 5;
} else if(this.positionX >= 131 && this.positionX <= 223) {
this.calculatedSide = 4;
} else if(this.positionX >= 224 && this.positionX <= 314) {
this.calculatedSide = 3;
} else {
this.calculatedSide = 2;
}
}
} else {
if(this.positionY >= 46 && this.positionY <= 130) {
this.calculatedSide = 6;
}
if(this.positionY >= 220 && this.positionY <= 308) {
this.calculatedSide = 1;
}
}
if(this.calculatedSide !== this.currentSide) {
this.currentSide = this.calculatedSide;
this.emit('sideChange');
}
}
this.element.style[userPrefix.js + 'Transform'] = 'rotateX(' + this.positionY + 'deg) rotateY(' + this.positionX + 'deg) rotateZ('+this.positionZ + 'deg)';
if(this.positionY != this.previousPositionY || this.positionX != this.previousPositionX || this.positionZ != this.previousPositionZ ) {
this.previousPositionY = this.positionY;
this.previousPositionX = this.positionX;
this.previousPositionZ = this.positionZ;
this.emit('rotate');
}
}
function Cube(data) {
var self = this;
this.element = data.element;
this.sides = this.element.getElementsByClassName('side');
this.viewport = data.viewport;
this.viewport.on('rotate', function() {
self.rotateSides();
});
this.viewport.on('upsideDown', function(obj) {
self.upsideDown(obj);
});
this.viewport.on('sideChange', function() {
self.sideChange();
});
}
Cube.prototype.rotateSides = function() {
var viewport = this.viewport;
if(viewport.positionY > 90 && viewport.positionY < 270) {
this.sides[0].getElementsByClassName('cube-image')[0].style[userPrefix.js + 'Transform'] = 'rotate(' + (viewport.positionX + viewport.torqueX) + 'deg)';
this.sides[5].getElementsByClassName('cube-image')[0].style[userPrefix.js + 'Transform'] = 'rotate(' + -(viewport.positionX + 180 + viewport.torqueX) + 'deg)';
} else {
this.sides[0].getElementsByClassName('cube-image')[0].style[userPrefix.js + 'Transform'] = 'rotate(' + (viewport.positionX - viewport.torqueX) + 'deg)';
this.sides[5].getElementsByClassName('cube-image')[0].style[userPrefix.js + 'Transform'] = 'rotate(' + -(viewport.positionX + 180 - viewport.torqueX) + 'deg)';
}
}
Cube.prototype.upsideDown = function(obj) {
var deg = (obj.upsideDown == true) ? '180deg' : '0deg';
var i = 5;
while(i > 0 && --i) {
this.sides[i].getElementsByClassName('cube-image')[0].style[userPrefix.js + 'Transform'] = 'rotate(' + deg + ')';
}
}
Cube.prototype.sideChange = function() {
for(var i = 0; i < this.sides.length; ++i) {
this.sides[i].getElementsByClassName('cube-image')[0].className = 'cube-image';
}
this.sides[this.viewport.currentSide - 1].getElementsByClassName('cube-image')[0].className = 'cube-image active';
}
Cube.prototype.set = function( A, B, C ) {
//C = C + 90.0;
this.viewport.setDirect( A, B, C );
}
//var viewport = new Viewport({
// element: document.getElementsByClassName('cube')[0],
// fps: 20,
// sensivity: .1,
// sensivityFade: .93,
// speed: 2,
// touchSensivity: 1.5
//});
//new Cube({
// viewport: viewport,
// element: document.getElementsByClassName('cube')[0]
//});
var LRF3D_Icon = L.icon({
iconUrl: '/style/assets/5_node.png',
@ -795,6 +1239,37 @@ function loadLocationNodes(){
});
};
var orientationEditorWindow = null;
var cubeViewport = null;
var cube = null;
var curX = 0;
var curY = 0;
var curZ = 0;
var bk_upd = false;
function setCubeOrientation( A, B, C ){
if( bk_upd ) return;
bk_upd = true;
curX = A;
curY = B;
curZ = C;
var t = Ext.getCmp('roll_sld');
t.setValue( A );
t = Ext.getCmp('roll');
t.setValue( A );
t = Ext.getCmp('pitch_sld');
t.setValue( B );
t = Ext.getCmp('pitch');
t.setValue( B );
t = Ext.getCmp('yaw_sld');
t.setValue( C );
t = Ext.getCmp('yaw');
t.setValue( C );
if( cube != null ) cube.set( curX, curY, curZ );
bk_upd = false;
};
function orientationEditor(){
if( orientationEditorWindow == null ){
@ -1362,7 +1837,7 @@ function createNewMap(){
mapCreatorWindow = new Ext.Window({
width: 800,
height: 580,
title: '<?=$Labels->GetLabel('_CREATE_CUSTOM_MAP_');?>',
title: "<?=$Labels->GetLabel('_CREATE_CUSTOM_MAP_');?>",
modal: true,
frame: true,
border: false,
@ -1373,7 +1848,7 @@ function createNewMap(){
activeTab: 0,
items:[{
xtype: 'form',
title: '<?=$Labels->GetLabel('_INTER_MAP_');?>',
title: "<?=$Labels->GetLabel('_INTER_MAP_');?>",
id: 'map_map_frm',
fileUpload: true,
labelWidth: 250,
@ -1381,7 +1856,7 @@ function createNewMap(){
height: 490,
items:[{
xtype: 'textfield',
fieldLabel: '<?=$Labels->GetLabel('_NAME_MAP_');?>',
fieldLabel: "<?=$Labels->GetLabel('_NAME_MAP_');?>",
name: 'map_name',
width: 540,
},{
@ -1390,22 +1865,22 @@ function createNewMap(){
value: 1
},{
xtype: 'textfield',
fieldLabel: '<?=$Labels->GetLabel('_TILE_URL_MAP_');?>',
fieldLabel: "<?=$Labels->GetLabel('_TILE_URL_MAP_');?>",
name: 'map_url',
width: 540,
},{
xtype: 'textfield',
fieldLabel: '<?=$Labels->GetLabel('_LAYER_ATTRIB_');?>',
fieldLabel: "<?=$Labels->GetLabel('_LAYER_ATTRIB_');?>",
name: 'map_attr',
width: 540,
},{
xtype: 'textarea',
fieldLabel: '<?=$Labels->GetLabel('_DESCRIPTION_');?>',
fieldLabel: "<?=$Labels->GetLabel('_DESCRIPTION_');?>",
name: 'map_desc',
width: 540,
},{
xtype: 'combo',
fieldLabel: '<?=$Labels->GetLabel('_MAX_ZOOM_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAX_ZOOM_');?>",
name: 'map_maxz',
editable: false,
typeAhead: true,
@ -1422,7 +1897,7 @@ function createNewMap(){
displayField: 'zoom_l'
},{
xtype: 'combo',
fieldLabel: '<?=$Labels->GetLabel('_MAX_NATURAL_ZOOM_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAX_NATURAL_ZOOM_');?>",
name: 'map_maxnz',
editable: false,
typeAhead: true,
@ -1440,7 +1915,7 @@ function createNewMap(){
}]
},{
xtype: 'form',
title: '<?=$Labels->GetLabel('_LOCAL_PIC_MAP_');?>',
title: "<?=$Labels->GetLabel('_LOCAL_PIC_MAP_');?>",
id: 'map_pic_frm',
fileUpload: true,
height: 490,
@ -1455,7 +1930,7 @@ function createNewMap(){
},
items: [{
xtype: 'textfield',
fieldLabel: '<?=$Labels->GetLabel('_MAP_NAME_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAP_NAME_');?>",
id: 'map_name_2',
name: 'map_name',
width: 540
@ -1466,24 +1941,24 @@ function createNewMap(){
},{
xtype: 'fileuploadfield',
id: 'form-file',
emptyText: '<?=$Labels->GetLabel('_SELE_ANIMAGE_');?>',
fieldLabel: '<?=$Labels->GetLabel('_MAP_PICTURE_');?>',
emptyText: "<?=$Labels->GetLabel('_SELE_ANIMAGE_');?>",
fieldLabel: "<?=$Labels->GetLabel('_MAP_PICTURE_');?>",
width: 500,
name: 'map_image',
buttonText: '<?=$Labels->GetLabel('_BROWSE_');?>'
buttonText: "<?=$Labels->GetLabel('_BROWSE_');?>"
},{
xtype: 'textfield',
fieldLabel: '<?=$Labels->GetLabel('_LAYER_ATTRIB_');?>',
fieldLabel: "<?=$Labels->GetLabel('_LAYER_ATTRIB_');?>",
name: 'map_attr',
width: 540,
},{
xtype: 'textarea',
fieldLabel: '<?=$Labels->GetLabel('_DESCRIPTION_');?>',
fieldLabel: "<?=$Labels->GetLabel('_DESCRIPTION_');?>",
name: 'map_desc',
width: 540,
},{
xtype: 'combo',
fieldLabel: '<?=$Labels->GetLabel('_MAX_ZOOM_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAX_ZOOM_');?>",
editable: false,
typeAhead: true,
id: 'map_maxz',
@ -1501,7 +1976,7 @@ function createNewMap(){
displayField: 'zoom_l'
},{
xtype: 'combo',
fieldLabel: '<?=$Labels->GetLabel('_MAX_NATURAL_ZOOM_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAX_NATURAL_ZOOM_');?>",
editable: false,
typeAhead: true,
id: 'map_maxnz',
@ -1519,31 +1994,31 @@ function createNewMap(){
displayField: 'zoom_l'
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_TOP_PIC_BOUND_');?>',
fieldLabel: "<?=$Labels->GetLabel('_TOP_PIC_BOUND_');?>",
name: 'map_tpb',
value: 0,
width: 540,
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_LEFT_PIC_BOUND_');?>',
fieldLabel: "<?=$Labels->GetLabel('_LEFT_PIC_BOUND_');?>",
name: 'map_lpb',
value: 0,
width: 540,
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_RIGHT_PIC_BOUND_');?>',
fieldLabel: "<?=$Labels->GetLabel('_RIGHT_PIC_BOUND_');?>",
name: 'map_rpb',
value: 0,
width: 540,
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_BOT_PIC_BOUND_');?>',
fieldLabel: "<?=$Labels->GetLabel('_BOT_PIC_BOUND_');?>",
name: 'map_bpb',
value: 0,
width: 540,
},{
xtype: 'combo',
fieldLabel: '<?=$Labels->GetLabel('_MAP_COORD_SYSTEM_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAP_COORD_SYSTEM_');?>",
editable: false,
typeAhead: true,
hiddenName: 'map_corsys',
@ -1579,7 +2054,7 @@ function createNewMap(){
displayField: 'C_SYS'
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_MAP_WIDTH_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAP_WIDTH_');?>",
id: 'map_height',
name: 'map_height',
decimalPrecision: 2,
@ -1587,7 +2062,7 @@ function createNewMap(){
width: 540,
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_MAP_HEIGHT_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAP_HEIGHT_');?>",
id: 'map_width',
name: 'map_width',
decimalPrecision: 2,
@ -1605,7 +2080,7 @@ function createNewMap(){
items:[{
xtype: 'spacer',
width: 250,
html: '<p style="text-align:right; margin-right: 5px;"><?=$Labels->GetLabel('_MAP_CENTER_MODE_');?>:</p>'
html: "<p style='text-align:right; margin-right: 5px;'><?=$Labels->GetLabel('_MAP_CENTER_MODE_');?>:</p>"
},{
xtype: 'radio',
name: 'bounds_mode',
@ -1635,11 +2110,11 @@ function createNewMap(){
items:[{
xtype: 'spacer',
width: 250,
html: '<p style="text-align:right; margin-right: 5px;"><?=$Labels->GetLabel('_MAP_LEFT_CORCORD_');?>:</p>'
html: "<p style='text-align:right; margin-right: 5px;'><?=$Labels->GetLabel('_MAP_LEFT_CORCORD_');?>:</p>"
},{
xtype: 'spacer',
width: 100,
html: '<p style="text-align:right; margin-right: 5px;"><?=$Labels->GetLabel('_LAT_');?></p>'
html: "<p style='text-align:right; margin-right: 5px;'><?=$Labels->GetLabel('_LAT_');?></p>"
},{
xtype: 'numberfield',
id: 'map_lcclat',
@ -1650,7 +2125,7 @@ function createNewMap(){
},{
xtype: 'spacer',
width: 100,
html: '<p style="text-align:right; margin-right: 5px;"><?=$Labels->GetLabel('_LON_');?></p>'
html: "<p style='text-align:right; margin-right: 5px;'><?=$Labels->GetLabel('_LON_');?></p>"
},{
xtype: 'numberfield',
id: 'map_lcclon',
@ -1661,11 +2136,11 @@ function createNewMap(){
},{
xtype: 'spacer',
width: 250,
html: '<p style="text-align:right; margin-right: 5px;"><?=$Labels->GetLabel('_MAP_RIGHT_CORCORD_');?>:</p>'
html: "<p style='text-align:right; margin-right: 5px;'><?=$Labels->GetLabel('_MAP_RIGHT_CORCORD_');?>:</p>"
},{
xtype: 'spacer',
width: 100,
html: '<p style="text-align:right; margin-right: 5px;"><?=$Labels->GetLabel('_LAT_');?></p>'
html: "<p style='text-align:right; margin-right: 5px;'><?=$Labels->GetLabel('_LAT_');?></p>"
},{
xtype: 'numberfield',
id: 'map_rcclat',
@ -1676,7 +2151,7 @@ function createNewMap(){
},{
xtype: 'spacer',
width: 100,
html: '<p style="text-align:right; margin-right: 5px;"><?=$Labels->GetLabel('_LON_');?></p>'
html: "<p style='text-align:right; margin-right: 5px;'><?=$Labels->GetLabel('_LON_');?></p>"
},{
xtype: 'numberfield',
id: 'map_rcclon',
@ -1844,19 +2319,19 @@ function editCurrentMap(){
}]
}],
bbar:[ '->',{
text: '<?=$Labels->GetLabel('_CANCEL_');?>',
text: "<?=$Labels->GetLabel('_CANCEL_');?>",
handler: function(){
mapEditorWindow.destroy();
}
},{
text: '<?=$Labels->GetLabel('_APPLY_CHANGES_');?>',
text: "<?=$Labels->GetLabel('_APPLY_CHANGES_');?>",
handler: function(){
var tt = Ext.getCmp('mcr_tbp').getActiveTab();
if( tt.id == 'map_map_frm' ){
if( Ext.getCmp('map_map_frm').getForm().isValid()){
Ext.getCmp('map_map_frm').getForm().submit({
url: '/lib/controller/updateMap.php',
waitMsg: '<?=$Labels->GetLabel('_UPDATING_DATA_');?>...',
waitMsg: "<?=$Labels->GetLabel('_UPDATING_DATA_');?>...",
clientValidation: false,
encoding: 'multipart/form-data',
success: function(f,a){
@ -1871,7 +2346,7 @@ function editCurrentMap(){
Ext.getCmp('map_pic_frm').getForm().submit({
url: '/lib/controller/updateMap.php',
clientValidation: false,
waitMsg: '<?=$Labels->GetLabel('_UPDATING_DATA_');?>...',
waitMsg: "<?=$Labels->GetLabel('_UPDATING_DATA_');?>...",
encoding: 'multipart/form-data',
success: function( f, a ){
alert('Processed file on the server2');
@ -1895,7 +2370,7 @@ function editCurrentMap(){
mapEditorWindow = new Ext.Window({
width: 800,
height: 540,
title: '<?=$Labels->GetLabel('_EDIT_CUR_MAP_');?>',
title: "<?=$Labels->GetLabel('_EDIT_CUR_MAP_');?>",
modal: true,
frame: true,
border: false,
@ -1918,7 +2393,7 @@ function editCurrentMap(){
height: 6
},{
xtype: 'textfield',
fieldLabel: '<?=$Labels->GetLabel('_MAP_NAME_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAP_NAME_');?>",
name: 'map_name',
value: newMapData.name,
width: 540
@ -1933,19 +2408,19 @@ function editCurrentMap(){
html: '<center><img height="50px" SRC="/lib/controller/data/assets/images/'+MAP_SET.layer_url+'"></center>'
},{
xtype: 'textfield',
fieldLabel: '<?=$Labels->GetLabel('_LAYER_ATTRIB_');?>',
fieldLabel: "<?=$Labels->GetLabel('_LAYER_ATTRIB_');?>",
name: 'map_attr',
value: newMapData.attribution,
width: 540,
},{
xtype: 'textarea',
fieldLabel: '<?=$Labels->GetLabel('_DESCRIPTION_');?>',
fieldLabel: "<?=$Labels->GetLabel('_DESCRIPTION_');?>",
name: 'map_desc',
value: newMapData.desc,
width: 540,
},{
xtype: 'combo',
fieldLabel: '<?=$Labels->GetLabel('_MAX_ZOOM_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAX_ZOOM_');?>",
editable: false,
typeAhead: true,
name: 'map_maxz',
@ -1963,7 +2438,7 @@ function editCurrentMap(){
displayField: 'zoom_l'
},{
xtype: 'combo',
fieldLabel: '<?=$Labels->GetLabel('_MAX_NATURAL_ZOOM_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAX_NATURAL_ZOOM_');?>",
editable: false,
typeAhead: true,
name: 'map_maxnz',
@ -1981,38 +2456,38 @@ function editCurrentMap(){
displayField: 'zoom_l'
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_TOP_PIC_BOUND_');?>',
fieldLabel: "<?=$Labels->GetLabel('_TOP_PIC_BOUND_');?>",
name: 'map_tpb',
value: newMapData.img_tb,
width: 540,
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_LEFT_PIC_BOUND_');?>',
fieldLabel: "<?=$Labels->GetLabel('_LEFT_PIC_BOUND_');?>",
name: 'map_lpb',
value: newMapData.img_lb,
width: 540,
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_RIGHT_PIC_BOUND_');?>',
fieldLabel: "<?=$Labels->GetLabel('_RIGHT_PIC_BOUND_');?>",
name: 'map_rpb',
value: newMapData.img_rb,
width: 540,
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_BOT_PIC_BOUND_');?>',
fieldLabel: "<?=$Labels->GetLabel('_BOT_PIC_BOUND_');?>",
name: 'map_bpb',
value: newMapData.img_bb,
width: 540,
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_MAP_WIDTH_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAP_WIDTH_');?>",
name: 'map_width',
decimalPrecision: 2,
value: newMapData.img_map_w,
width: 540,
},{
xtype: 'numberfield',
fieldLabel: '<?=$Labels->GetLabel('_MAP_HEIGHT_');?>',
fieldLabel: "<?=$Labels->GetLabel('_MAP_HEIGHT_');?>",
name: 'map_height',
decimalPrecision: 2,
value: newMapData.img_map_h,
@ -2028,7 +2503,7 @@ function editCurrentMap(){
items:[{
xtype: 'spacer',
width: 250,
html: '<p style="text-align:right; margin-right: 5px;"><?=$Labels->GetLabel('_MAP_CENTER_MODE_');?>:</p>'
html: "<p style='text-align:right; margin-right: 5px;'><?=$Labels->GetLabel('_MAP_CENTER_MODE_');?>:</p>"
},{
xtype: 'radio',
name: 'bounds_mode',
@ -2049,7 +2524,7 @@ function editCurrentMap(){
}]
}],
bbar:[ '->',{
text: '<?=$Labels->GetLabel('_CANCEL_');?>',
text: "<?=$Labels->GetLabel('_CANCEL_');?>",
handler: function(){
mapEditorWindow.destroy();
}
@ -2059,7 +2534,7 @@ function editCurrentMap(){
if( Ext.getCmp('map_edt_frm').getForm().isValid()){
Ext.getCmp('map_edt_frm').getForm().submit({
url: '/lib/controller/updateMap.php',
waitMsg: '<?=$Labels->GetLabel('_UPDATING_DATA_');?>...',
waitMsg: "<?=$Labels->GetLabel('_UPDATING_DATA_');?>...",
encoding: 'multipart/form-data',
success: function(fp, o){
mapEditorWindow.destroy();

66
lib/javascript/jsapi_dynamic/mojo_reports.js

@ -48,37 +48,37 @@ function rep_sn_Renderer( value, meta, record ){
function rep_et_Renderer( value, meta, record ){
var kaka = record.data.node_id % 3;
switch( value ){
case 6: ov = '<?=$Labels->GetLabel('_EVT_MSG_STUMO_');?>'; break;
case 7: ov = '<?=$Labels->GetLabel('_EVT_MSG_BUMO_');?>'; break;
case 8: ov = '<?=$Labels->GetLabel('_EVT_MSG_FLIPO_');?>'; break;
case 9: ov = '<?=$Labels->GetLabel('_EVT_MSG_SCANC_');?>'; break;
case 12: ov = '<?=$Labels->GetLabel('_EVT_MSG_B2DTRG_');?>'; break;
case 13: ov = '<?=$Labels->GetLabel('_EVT_MSG_W2DTRG_');?>'; break;
case 36: ov = '<?=$Labels->GetLabel('_EVT_MSG_ROI_');?>'; break;
case 39: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_CT_');?>'; break;
case 40: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_USD_');?>'; break;
case 41: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_BSD_');?>'; break;
case 42: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_TD_');?>'; break;
case 43: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_TUPD_');?>'; break;
case 44: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPA_');?>'; break;
case 45: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPN_');?>'; break;
case 46: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_RD_');?>'; break;
case 47: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_DD_');?>'; break;
case 48: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPD_');?>'; break;
case 49: ov = '<?=$Labels->GetLabel('_EVT_MSG_TF_DIFD_');?>'; break;
case 52: ov = '<?=$Labels->GetLabel('_EVT_MSG_EVT_START_');?>'; break;
case 53: ov = '<?=$Labels->GetLabel('_EVT_MSG_EVT_END_');?>'; break;
case 54: ov = '<?=$Labels->GetLabel('_EVT_MSG_EVT_CLOMA_');?>'; break;
case 55: ov = '<?=$Labels->GetLabel('_EVT_MSG_CONNECTED_');?>'; break;
case 56: ov = '<?=$Labels->GetLabel('_EVT_MSG_DISCONNECTED_');?>'; break;
case 57: ov = '<?=$Labels->GetLabel('_EVT_MSG_COM_JAMED_');?>'; break;
case 58: ov = '<?=$Labels->GetLabel('_EVT_MSG_VIFDEC_');?>'; break;
case 59: ov = '<?=$Labels->GetLabel('_EVT_MSG_VIFINC_');?>'; break;
case 68: ov = '<?=$Labels->GetLabel('_EVT_MSG_ACKON_');?>'; break;
case 69: ov = '<?=$Labels->GetLabel('_EVT_MSG_ACKOFF_');?>'; break;
case 70: ov = '<?=$Labels->GetLabel('_EVT_MSG_MASKON_');?>'; break;
case 71: ov = '<?=$Labels->GetLabel('_EVT_MSG_MASKOFF_');?>'; break;
default: ov = '<?=$Labels->GetLabel('_EVENT_');?> ['+value+']';
case 6: ov = "<?=$Labels->GetLabel('_EVT_MSG_STUMO_');?>"; break;
case 7: ov = "<?=$Labels->GetLabel('_EVT_MSG_BUMO_');?>"; break;
case 8: ov = "<?=$Labels->GetLabel('_EVT_MSG_FLIPO_');?>"; break;
case 9: ov = "<?=$Labels->GetLabel('_EVT_MSG_SCANC_');?>"; break;
case 12: ov = "<?=$Labels->GetLabel('_EVT_MSG_B2DTRG_');?>"; break;
case 13: ov = "<?=$Labels->GetLabel('_EVT_MSG_W2DTRG_');?>"; break;
case 36: ov = "<?=$Labels->GetLabel('_EVT_MSG_ROI_');?>"; break;
case 39: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_CT_');?>"; break;
case 40: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_USD_');?>"; break;
case 41: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_BSD_');?>"; break;
case 42: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_TD_');?>"; break;
case 43: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_TUPD_');?>"; break;
case 44: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPA_');?>"; break;
case 45: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPN_');?>"; break;
case 46: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_RD_');?>"; break;
case 47: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_DD_');?>"; break;
case 48: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_SUSPD_');?>"; break;
case 49: ov = "<?=$Labels->GetLabel('_EVT_MSG_TF_DIFD_');?>"; break;
case 52: ov = "<?=$Labels->GetLabel('_EVT_MSG_EVT_START_');?>"; break;
case 53: ov = "<?=$Labels->GetLabel('_EVT_MSG_EVT_END_');?>"; break;
case 54: ov = "<?=$Labels->GetLabel('_EVT_MSG_EVT_CLOMA_');?>"; break;
case 55: ov = "<?=$Labels->GetLabel('_EVT_MSG_CONNECTED_');?>"; break;
case 56: ov = "<?=$Labels->GetLabel('_EVT_MSG_DISCONNECTED_');?>"; break;
case 57: ov = "<?=$Labels->GetLabel('_EVT_MSG_COM_JAMED_');?>"; break;
case 58: ov = "<?=$Labels->GetLabel('_EVT_MSG_VIFDEC_');?>"; break;
case 59: ov = "<?=$Labels->GetLabel('_EVT_MSG_VIFINC_');?>"; break;
case 68: ov = "<?=$Labels->GetLabel('_EVT_MSG_ACKON_');?>"; break;
case 69: ov = "<?=$Labels->GetLabel('_EVT_MSG_ACKOFF_');?>"; break;
case 70: ov = "<?=$Labels->GetLabel('_EVT_MSG_MASKON_');?>"; break;
case 71: ov = "<?=$Labels->GetLabel('_EVT_MSG_MASKOFF_');?>"; break;
default: ov = "<?=$Labels->GetLabel('_EVENT_');?> ["+value+"]";
};
return '<div class="log_line_' + kaka + '">'+ov+'</div>';
};
@ -1040,7 +1040,7 @@ function loadArchive(){
id: 'prop_content',
border: false,
items: [{
html:'<div class="setEd_infoPanel" id="NUNU"><?=$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_');?></div>'
html:"<div class='setEd_infoPanel' id='NUNU'><?=$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_');?></div>"
}]
});
@ -1245,7 +1245,7 @@ function loadMonitoring(){
id: 'prop_content',
border: false,
items: [{
html:'<div class="setEd_infoPanel" id="NUNU"><?=$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_');?></div>'
html:"<div class='setEd_infoPanel' id='NUNU'><?=$Labels->GetLabel('_PLS_SEL_LEFT_ITEM_');?></div>"
}]
});

353
lib/javascript/jsapi_dynamic/mojo_settings.js
File diff suppressed because it is too large
View File

106
lib/javascript/jsapi_dynamic/mojo_users.js

@ -99,10 +99,10 @@ var um_user_list_sel_model_opt = {
rowselect: function( sm, row, rec ) {
um_selected_user_id = rec.data.id;
if ( rec.data.status == 'A' ){
Ext.getCmp('um_lock_user_btn').setText('<?=$Labels->GetLabel("_LOCK_USER_");?>');
Ext.getCmp('um_lock_user_btn').setText("<?=$Labels->GetLabel("_LOCK_USER_");?>");
um_user_locked = false;
} else {
Ext.getCmp('um_lock_user_btn').setText('<?=$Labels->GetLabel("_UNLOCK_USER_");?>');
Ext.getCmp('um_lock_user_btn').setText("<?=$Labels->GetLabel("_UNLOCK_USER_");?>");
um_user_locked = true;
};
if( um_selected_user_id == 1 || rec.data.access == 10 ){
@ -124,7 +124,7 @@ function addNewUser(){
if( um_add_user_window == null ){
um_add_user_window = new Ext.Window({
modal: true,
title: '<?=$Labels->GetLabel("_EDIT_USER_CRACCES_");?>',
title: "<?=$Labels->GetLabel("_EDIT_USER_CRACCES_");?>",
width: 400,
height: 250,
layout: 'fit',
@ -147,14 +147,14 @@ function addNewUser(){
},
items: [{
border: false,
html: '<?=$Labels->GetLabel("_USER_LOGIN_");?>:'
html: "<?=$Labels->GetLabel("_USER_LOGIN_");?>:"
},{
xtype: 'textfield',
id: 'um_ua_login',
width: 200
},{
border: false,
html: '<?=$Labels->GetLabel("_NEW_PASSWORD_");?>:'
html: "<?=$Labels->GetLabel("_NEW_PASSWORD_");?>:"
},{
xtype: 'textfield',
id: 'um_ua_pwd1',
@ -162,7 +162,7 @@ function addNewUser(){
width: 200
},{
border: false,
html: '<?=$Labels->GetLabel("_REP_PASSWORD_");?>:'
html: "<?=$Labels->GetLabel("_REP_PASSWORD_");?>:"
},{
xtype: 'textfield',
id: 'um_ua_pwd2',
@ -170,7 +170,7 @@ function addNewUser(){
width: 200
},{
border: false,
html: '<?=$Labels->GetLabel("_ACCESS_LEVEL_");?>:'
html: "<?=$Labels->GetLabel("_ACCESS_LEVEL_");?>:"
},{
xtype: 'combo',
id: 'um_ua_access',
@ -184,19 +184,19 @@ function addNewUser(){
store: new Ext.data.ArrayStore({
id: 0,
fields: ['acc_lvl', 'displayText' ],
data: [[2,'<?=$Labels->GetLabel("_ACCESS_MINIMAL_");?>'],[4,'<?=$Labels->GetLabel("_ACCESS_OPERATOR_");?>'],[6,'<?=$Labels->GetLabel("_ACCESS_ADMIN_");?>']]
data: [[2,"<?=$Labels->GetLabel("_ACCESS_MINIMAL_");?>"],[4,"<?=$Labels->GetLabel("_ACCESS_OPERATOR_");?>"],[6,"<?=$Labels->GetLabel("_ACCESS_ADMIN_");?>"]]
}),
valueField: 'acc_lvl',
displayField: 'displayText'
}]
}],
bbar: [ '->',{
text: '<?=$Labels->GetLabel("_CANCEL_");?>',
text: "<?=$Labels->GetLabel("_CANCEL_");?>",
handler: function(){
um_add_user_window.hide();
}
},{
text: '<?=$Labels->GetLabel("_SAVE_");?>',
text: "<?=$Labels->GetLabel("_SAVE_");?>",
handler: function(){
var lo = Ext.getCmp('um_ua_login').getValue();
var pwd = Ext.getCmp('um_ua_pwd1').getValue();
@ -206,8 +206,8 @@ function addNewUser(){
if( acc > my_access ){
sbt = false;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
msg: 'You Can not add more privileged user!',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: "You Can not add more privileged user!",
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.ERROR //QUESTION
});
@ -216,8 +216,8 @@ function addNewUser(){
if( pwd != rwd ){
sbt = false;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
msg: 'Passwords don\'t match!',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: "Passwords don\'t match!",
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.ERROR //QUESTION
});
@ -225,8 +225,8 @@ function addNewUser(){
} else {
sbt = false;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
msg: 'You Can not Add User Without Password!',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: "You Can not Add User Without Password!",
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.ERROR //QUESTION
});
@ -234,8 +234,8 @@ function addNewUser(){
if( sbt && lo == '' ){
sbt = false;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
msg: 'You Can not Add User Without Login!',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: "You Can not Add User Without Login!",
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.ERROR //QUESTION
});
@ -257,8 +257,8 @@ function addNewUser(){
var data = Ext.decode(response.responseText);
if( data.success == true ) {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_SETTING_SAVE_OK_");?>',
title: "<?=$Labels->GetLabel("_INFO_MSG_");?>",
msg: "<?=$Labels->GetLabel("_SETTING_SAVE_OK_");?>",
buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){
um_user_list_store.reload();
@ -269,7 +269,7 @@ function addNewUser(){
});
} else {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: data['error'],
buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){
@ -309,8 +309,8 @@ function doUserOperation( op ){
var data = Ext.decode(response.responseText);
if( data.success == true ) {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_SETTING_SAVE_OK_");?>',
title: "<?=$Labels->GetLabel("_INFO_MSG_");?>",
msg: "<?=$Labels->GetLabel("_SETTING_SAVE_OK_");?>",
buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){
um_user_list_store.reload();
@ -320,7 +320,7 @@ function doUserOperation( op ){
});
} else {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: data.msg,
buttons: Ext.Msg.OK,//YESNOCANCEL,
//animEl: 'elId',
@ -336,7 +336,7 @@ function editSelectedUser(){
if( um_edit_user_window == null ){
um_edit_user_window = new Ext.Window({
modal: true,
title: '<?=$Labels->GetLabel("_EDIT_USER_CRACCES_");?>',
title: "<?=$Labels->GetLabel("_EDIT_USER_CRACCES_");?>",
width: 400,
height: 250,
layout: 'fit',
@ -359,14 +359,14 @@ function editSelectedUser(){
},
items: [{
border: false,
html: '<?=$Labels->GetLabel("_USER_LOGIN_");?>:'
html: "<?=$Labels->GetLabel("_USER_LOGIN_");?>:"
},{
xtype: 'textfield',
id: 'um_ue_login',
width: 200
},{
border: false,
html: '<?=$Labels->GetLabel("_NEW_PASSWORD_");?>:'
html: "<?=$Labels->GetLabel("_NEW_PASSWORD_");?>:"
},{
xtype: 'textfield',
id: 'um_ue_pwd1',
@ -374,7 +374,7 @@ function editSelectedUser(){
width: 200
},{
border: false,
html: '<?=$Labels->GetLabel("_REP_PASSWORD_");?>:'
html: "<?=$Labels->GetLabel("_REP_PASSWORD_");?>:"
},{
xtype: 'textfield',
id: 'um_ue_pwd2',
@ -382,7 +382,7 @@ function editSelectedUser(){
width: 200
},{
border: false,
html: '<?=$Labels->GetLabel("_ACCESS_LEVEL_");?>:'
html: "<?=$Labels->GetLabel("_ACCESS_LEVEL_");?>:"
},{
xtype: 'combo',
id: 'um_ue_access',
@ -396,19 +396,19 @@ function editSelectedUser(){
store: new Ext.data.ArrayStore({
id: 0,
fields: ['acc_lvl', 'displayText' ],
data: [[2,'<?=$Labels->GetLabel("_ACCESS_MINIMAL_");?>'],[4,'<?=$Labels->GetLabel("_ACCESS_OPERATOR_");?>'],[6,'<?=$Labels->GetLabel("_ACCESS_ADMIN_");?>'],[10,'<?=$Labels->GetLabel("_ACCESS_FACTORY_");?>']]
data: [[2,"<?=$Labels->GetLabel("_ACCESS_MINIMAL_");?>"],[4,"<?=$Labels->GetLabel("_ACCESS_OPERATOR_");?>"],[6,"<?=$Labels->GetLabel("_ACCESS_ADMIN_");?>"],[10,"<?=$Labels->GetLabel("_ACCESS_FACTORY_");?>"]]
}),
valueField: 'acc_lvl',
displayField: 'displayText'
}]
}],
bbar: [ '->',{
text: '<?=$Labels->GetLabel("_CANCEL_");?>',
text: "<?=$Labels->GetLabel("_CANCEL_");?>",
handler: function(){
um_edit_user_window.hide();
}
},{
text: '<?=$Labels->GetLabel("_SAVE_");?>',
text: "<?=$Labels->GetLabel("_SAVE_");?>",
handler: function(){
var aid = um_user_list_store.find( 'id', um_selected_user_id );
var r = um_user_list_store.getAt( aid );
@ -422,8 +422,8 @@ function editSelectedUser(){
if( oacc > my_access ){
sbt = false;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
msg: 'You Can not change settings of more privileged user!',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: "You Can not change settings of more privileged user!",
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.ERROR
});
@ -432,8 +432,8 @@ function editSelectedUser(){
if( acc > my_access ){
sbt = false;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
msg: 'You Can not change access level to more privileged user then you are!',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: "You Can not change access level to more privileged user then you are!",
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.ERROR
});
@ -441,8 +441,8 @@ function editSelectedUser(){
if( acc == 10 ){
sbt = false;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
msg: 'You Can not change access level to Factory Defined Master!',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: "You Can not change access level to Factory Defined Master!",
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.ERROR
});
@ -453,8 +453,8 @@ function editSelectedUser(){
if( pwd != rwd ){
sbt = false;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
msg: 'Passwords does not match!',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: "Passwords does not match!",
buttons: Ext.Msg.OK,
icon: Ext.MessageBox.ERROR
});
@ -463,8 +463,8 @@ function editSelectedUser(){
if( sbt && olo != lo ){
sbt = false;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_QERY_MSG_");?>',
msg: 'Are you sure to change Login User Name?',
title: "<?=$Labels->GetLabel("_QERY_MSG_");?>",
msg: "Are you sure to change Login User Name?",
buttons: Ext.Msg.YESNOCANCEL,
fn: function( a ){
if( a == 'yes' ){
@ -485,8 +485,8 @@ function editSelectedUser(){
var data = Ext.decode(response.responseText);
if( data.success == true ) {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_SETTING_SAVE_OK_");?>',
title: "<?=$Labels->GetLabel("_INFO_MSG_");?>",
msg: "<?=$Labels->GetLabel("_SETTING_SAVE_OK_");?>",
buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){
um_user_list_store.reload();
@ -497,7 +497,7 @@ function editSelectedUser(){
});
} else {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: data['error'],
buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){
@ -534,8 +534,8 @@ function editSelectedUser(){
var data = Ext.decode(response.responseText);
if( data.success == true ) {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_SETTING_SAVE_OK_");?>',
title: "<?=$Labels->GetLabel("_INFO_MSG_");?>",
msg: "<?=$Labels->GetLabel("_SETTING_SAVE_OK_");?>",
buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){
//SettingsLidar3D.hide();
@ -547,7 +547,7 @@ function editSelectedUser(){
});
} else {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
title: "<?=$Labels->GetLabel("_ERROR_MSG_");?>",
msg: data['error'],
buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){
@ -585,7 +585,7 @@ function loadUserEditor(){
};
var tPanel = Ext.getCmp('main_content');
tPanel.removeAll( true );
Ext.getCmp('main_content').setTitle( '<?=$Labels->GetLabel("_USERS_MNGMT_");?>' );
Ext.getCmp('main_content').setTitle( "<?=$Labels->GetLabel("_USERS_MNGMT_");?>" );
tPanel.add({
columnWidth: 1.0,
frame: false,
@ -612,18 +612,18 @@ function loadUserEditor(){
tbar: [{
xtype: 'button',
id: 'um_add_user_btn',
text: '<?=$Labels->GetLabel("_ADD_USER_");?>',
text: "<?=$Labels->GetLabel("_ADD_USER_");?>",
handler: addNewUser
},{
xtype: 'button',
id: 'um_edit_user_btn',
text: '<?=$Labels->GetLabel("_EDIT_USER_");?>',
text: "<?=$Labels->GetLabel("_EDIT_USER_");?>",
disabled: true,
handler: editSelectedUser
},{
xtype: 'button',
id: 'um_lock_user_btn',
text: '<?=$Labels->GetLabel("_LOCK_USER_");?>',
text: "<?=$Labels->GetLabel("_LOCK_USER_");?>",
disabled: true,
handler: function(){
if( um_user_locked ){
@ -635,7 +635,7 @@ function loadUserEditor(){
},{
xtype: 'button',
id: 'um_del_user_btn',
text: '<?=$Labels->GetLabel("_DEL_USER_");?>',
text: "<?=$Labels->GetLabel("_DEL_USER_");?>",
disabled: true,
handler: function(){
doUserOperation( 4 );

34
lib/javascript/jsapi_dynamic/rgoose_cameras.js

@ -276,7 +276,7 @@ function preloadOnvifCredentials( SC ){
sourceListStore.removeAll();
if( data.error != null ){
Ext.Msg.show({
title:'<?=$Labels->GetLabel('Error_Message');?>',
title:"<?=$Labels->GetLabel('Error_Message');?>",
msg: data['error'],
buttons: Ext.Msg.OK,//YESNOCANCEL,
//fn: processResult,
@ -327,7 +327,7 @@ function discoverOnvifProfiles( CamID, camUser, camPasswd, Auth ){
if( tpic != null ) tpic.src = '/lib/controller/getCameraPreview.php?UID=<?=$CUser->Data['id'];?>&SID<?=$Session;?>&FID='+data.nodes[0].id;
} else {
Ext.Msg.show({
title:'<?=$Labels->GetLabel('Error_Message');?>',
title:"<?=$Labels->GetLabel('Error_Message');?>",
msg: data['error'],
width: 640,
buttons: Ext.Msg.OK,//YESNOCANCEL,
@ -347,7 +347,7 @@ function showIPCamPropDialog(){
if( connectIPCamDialog == null ){
connectIPCamDialog = new Ext.Window({
modal: true,
title: (CamPropType)?'<?=$Labels->GetLabel('_CON_2_IP_CAM_');?>':'IP Camera Settings',
title: (CamPropType)?"<?=$Labels->GetLabel('_CON_2_IP_CAM_');?>":"IP Camera Settings",
width: 600,
height: 500,
layout: 'vbox',
@ -365,11 +365,11 @@ function showIPCamPropDialog(){
},{
id: 'cam_label',
xtype: 'textfield',
fieldLabel: '<?=$Labels->GetLabel('_CAM_MAP_NAME_');?>'
fieldLabel: "<?=$Labels->GetLabel('_CAM_MAP_NAME_');?>"
//width: 200
},{
xtype: 'combo',
fieldLabel: '<?=$Labels->GetLabel('_CTL_SERVER_NODE_');?>',
fieldLabel: "<?=$Labels->GetLabel('_CTL_SERVER_NODE_');?>",
lazyRender: true,
id: 'cam_server_id',
//width: 200,
@ -390,7 +390,7 @@ function showIPCamPropDialog(){
xtype: 'tabpanel',
activeTab: 0,
items: [{
title: '<?=$Labels->GetLabel('_CAC_TAB_');?>',
title: "<?=$Labels->GetLabel('_CAC_TAB_');?>",
id: 'cac_tab',
layout: 'table',
width: '100%',
@ -406,9 +406,9 @@ function showIPCamPropDialog(){
},
items: [{
colspan: 3,
html: '<p align="center"><?=$Labels->GetLabel('_PROV_CAC_');?></p>'
html: "<p align='center'><?=$Labels->GetLabel('_PROV_CAC_');?></p>"
},{
html: '<p align="right"><?=$Labels->GetLabel('_LOGIN_0_');?></p>',
html: "<p align='right'><?=$Labels->GetLabel('_LOGIN_0_');?></p>",
width: 170
},{
id: 'cam_login',
@ -417,7 +417,7 @@ function showIPCamPropDialog(){
},{
html: '&nbsp;'
},{
html: '<p align="right"><?=$Labels->GetLabel('_PASSWORD_0_');?></p>'
html: "<p align='right'><?=$Labels->GetLabel('_PASSWORD_0_');?></p>"
},{
id: 'cam_password',
xtype: 'textfield',
@ -426,7 +426,7 @@ function showIPCamPropDialog(){
},{
html: '&nbsp;'
},{
html: '<p align="right"><?=$Labels->GetLabel('_AUTH_MODE_0_');?></p>'
html: "<p align='right'><?=$Labels->GetLabel('_AUTH_MODE_0_');?></p>"
},{
id: 'cam_auth_mode',
xtype: 'combo',
@ -462,7 +462,7 @@ function showIPCamPropDialog(){
html: '&nbsp;'
},{
xtype: 'button',
text: 'Connect to Camera',
text: "Connect to Camera",
width: '100%',
handler: function(){
Ext.getCmp('cac_tab').getEl().mask("Please wait...","x-mask-loading");
@ -475,13 +475,13 @@ function showIPCamPropDialog(){
html: '&nbsp;'
}]
},{
title: '<?=$Labels->GetLabel('_STREAMS_');?>',
title: "<?=$Labels->GetLabel('_STREAMS_');?>",
id: 'str_tab',
frame: false,
disabled: true,
items:[{
xtype: 'grid',
//title: '<?=$Labels->GetLabel('_STREAMS_');?>',
//title: "<?=$Labels->GetLabel('_STREAMS_');?>",
height: 124,
frame: false,
disableSelection: true,
@ -511,10 +511,10 @@ function showIPCamPropDialog(){
},
items:[{
width: 200,
html: 'Sensor Size'
html: "Sensor Size"
},{
xtype: 'combo',
fieldLabel: 'Sensor Size',
fieldLabel: "Sensor Size",
lazyRender: true,
id: 'sens_size',
mode: 'local',
@ -548,7 +548,7 @@ function showIPCamPropDialog(){
html: 'Focal Length'
},{
xtype: 'combo',
fieldLabel: 'Lens Focal Length',
fieldLabel: "Lens Focal Length",
lazyRender: true,
id: 'lens_fl',
mode: 'local',
@ -616,7 +616,7 @@ function showIPCamPropDialog(){
},{
html: '&nbsp;'
},{
html: 'Fixed Zoom'
html: "Fixed Zoom"
},{
xtype: 'radio',
id: 'no_zoom',

62
lib/javascript/jsapi_dynamic/rgoose_devices.js

@ -180,8 +180,8 @@ function saveSettingsLidar3D( ){
var data = Ext.decode(response.responseText);
if( data.success == true ) {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_INFO_MSG_");?>',
msg: '<?=$Labels->GetLabel("_SETTING_SAVE_OK_");?>',
title:"<?=$Labels->GetLabel('_INFO_MSG_');?>",
msg: "<?=$Labels->GetLabel('_SETTING_SAVE_OK_');?>",
buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){
SettingsLidar3D.hide();
@ -191,7 +191,7 @@ function saveSettingsLidar3D( ){
});
} else {
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
title: "<?=$Labels->GetLabel('_ERROR_MSG_');?>",
msg: data['error'],
buttons: Ext.Msg.OK,//YESNOCANCEL,
fn: function(){
@ -211,7 +211,7 @@ function editSettingsLidar3D( NodeID, Master ){
if( SettingsLidar3D == null ){
SettingsLidar3D = new Ext.Window({
modal: true,
title: '<?=$Labels->GetLabel("_EDIT_LRF3D_SETTINGS_");?>',
title: "<?=$Labels->GetLabel('_EDIT_LRF3D_SETTINGS_');?>",
width: 773,
height: 600,
layout: 'fit',
@ -1406,7 +1406,7 @@ function resolveDeviceMistmatch( NodeID ){
currentResolveDeviceNode = NodeID;
if( ResolveDeviceNodeWin == null ){
ResolveDeviceNodeWin = new Ext.Window({
title: '<?=$Labels->GetLabel('_WDEV_MISTMATCH_');?>',
title: "<?=$Labels->GetLabel('_WDEV_MISTMATCH_');?>",
modal: true,
width: 500,
height: 200,
@ -1416,7 +1416,7 @@ function resolveDeviceMistmatch( NodeID ){
style: {
marginTop: '13px'
},
html: '<center><?=$Labels->GetLabel('_DEV_MISTMATT1_');?></center>',
html: "<center><?=$Labels->GetLabel('_DEV_MISTMATT1_');?></center>",
height: 30
},{
xtype: 'button',
@ -1440,7 +1440,7 @@ function resolveDeviceMistmatch( NodeID ){
},{
xtype: 'button',
width: '100%',
text: 'Apply Existing Detection Profiles to Newly Connected Device',
text: "Apply Existing Detection Profiles to Newly Connected Device",
handler: function(){
Ext.Ajax.request({
url: '/lib/controller/validateNode.php',
@ -1459,7 +1459,7 @@ function resolveDeviceMistmatch( NodeID ){
},{
xtype: 'button',
width: '100%',
text: 'Discard old Detection Profiles and Start Device Setup Wizard',
text: "Discard old Detection Profiles and Start Device Setup Wizard",
handler: function(){
ResolveDeviceNodeWin.hide();
startDeviceDetectionWizard( currentResolveDeviceNode );
@ -1467,11 +1467,11 @@ function resolveDeviceMistmatch( NodeID ){
},{
xtype: 'button',
width: '100%',
text: 'Discard old Detection Profiles and Load Factory Settings from Device'
text: "Discard old Detection Profiles and Load Factory Settings from Device"
},{
xtype: 'button',
width: '100%',
text: 'Discard this Connection for NOW'
text: "Discard this Connection for NOW"
}]
});
};
@ -1494,7 +1494,7 @@ function startDeviceDetectionWizard( NodeID ){
xtype: 'tabpanel',
activeTab: 1,
items: [{
title: '<?=$Labels->GetLabel('_WDEV_DET_WIZ0_');?>',
title: "<?=$Labels->GetLabel('_WDEV_DET_WIZ0_');?>",
frame: false,
xtype: 'form',
items:[{
@ -1503,7 +1503,7 @@ function startDeviceDetectionWizard( NodeID ){
},{
xtype: 'combo',
id: 'DDWizST',
fieldLabel: '<?=$Labels->GetLabel('_DEV_TYPE_FLD_');?>',
fieldLabel: "<?=$Labels->GetLabel('_DEV_TYPE_FLD_');?>",
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
@ -1515,12 +1515,12 @@ function startDeviceDetectionWizard( NodeID ){
'dtText'
],
data: [
[1, '<?=$Labels->GetLabel('_DEV_TYPE_ALS_');?>'],
[2, '<?=$Labels->GetLabel('_DEV_TYPE_LFS_');?>'],
[3, '<?=$Labels->GetLabel('_DEV_TYPE_PLS200_');?>'],
[4, '<?=$Labels->GetLabel('_DEV_TYPE_PLS360_');?>'],
[5, '<?=$Labels->GetLabel('_DEV_TYPE_3D_');?>'],
[6, '<?=$Labels->GetLabel('_DEV_TYPE_NPLS200_');?>']
[1, "<?=$Labels->GetLabel('_DEV_TYPE_ALS_');?>"],
[2, "<?=$Labels->GetLabel('_DEV_TYPE_LFS_');?>"],
[3, "<?=$Labels->GetLabel('_DEV_TYPE_PLS200_');?>"],
[4, "<?=$Labels->GetLabel('_DEV_TYPE_PLS360_');?>"],
[5, "<?=$Labels->GetLabel('_DEV_TYPE_3D_');?>"],
[6, "<?=$Labels->GetLabel('_DEV_TYPE_NPLS200_');?>"]
]
}),
valueField: 'dtId',
@ -1528,7 +1528,7 @@ function startDeviceDetectionWizard( NodeID ){
},{
xtype: 'numberfield',
id: 'DDWizSR',
fieldLabel: '<?=$Labels->GetLabel('_DEV_RANGE_FLD_');?>',
fieldLabel: "<?=$Labels->GetLabel('_DEV_RANGE_FLD_');?>",
minValue: 15.0,
maxValue: 300.0,
listeners:{
@ -1542,7 +1542,7 @@ function startDeviceDetectionWizard( NodeID ){
},{
xtype: 'slider',
id: 'DDWizSRS',
fieldLabel: '<?=$Labels->GetLabel('_DEV_RANGE_FLD_');?>',
fieldLabel: "<?=$Labels->GetLabel('_DEV_RANGE_FLD_');?>",
minValue: 15.0,
maxValue: 300.0,
listeners:{
@ -1558,7 +1558,7 @@ function startDeviceDetectionWizard( NodeID ){
height: 10
}]
},{
title: '<?=$Labels->GetLabel('_WDEV_DET_WIZ1_');?>',
title: "<?=$Labels->GetLabel('_WDEV_DET_WIZ1_');?>",
frame: false,
xtype: 'form',
labelWidth: 120,
@ -1568,7 +1568,7 @@ function startDeviceDetectionWizard( NodeID ){
},{
xtype: 'combo',
id: 'DDWizIT',
fieldLabel: '<?=$Labels->GetLabel('_DEV_ITYPE_FLD_');?>',
fieldLabel: "<?=$Labels->GetLabel('_DEV_ITYPE_FLD_');?>",
typeAhead: true,
triggerAction: 'all',
lazyRender:true,
@ -1581,29 +1581,29 @@ function startDeviceDetectionWizard( NodeID ){
'dpText'
],
data: [
[1, '<?=$Labels->GetLabel('_DEV_PL_HORI_');?>'],
[2, '<?=$Labels->GetLabel('_DEV_PL_VERT_');?>'],
[3, '<?=$Labels->GetLabel('_DEV_PL_ANG_');?>']
[1, "<?=$Labels->GetLabel('_DEV_PL_HORI_');?>"],
[2, "<?=$Labels->GetLabel('_DEV_PL_VERT_');?>"],
[3, "<?=$Labels->GetLabel('_DEV_PL_ANG_');?>"]
]
}),
valueField: 'dpId',
displayField: 'dpText'
}]
},{
title: '<?=$Labels->GetLabel('_WDEV_DET_WIZ2_');?>',
title: "<?=$Labels->GetLabel('_WDEV_DET_WIZ2_');?>",
html: 'Another one'
},{
title: '<?=$Labels->GetLabel('_WDEV_DET_WIZ3_');?>',
title: "<?=$Labels->GetLabel('_WDEV_DET_WIZ3_');?>",
html: 'Another one'
}]
}],
bbar:[{
text: 'Create Profiles And Finish',
text: "Create Profiles And Finish",
handler: function(){
DeviceDetectionWizardWnd.hide();
}
},{
text: 'Advanced Config',
text: "Advanced Config",
handler: function(){
DeviceDetectionWizardWnd.hide();
startAdvancedDeviceDetection( DDWizardActiveDevice );
@ -1620,7 +1620,7 @@ function startDeviceDetectionWizard( NodeID ){
},
success: function( response, opts ){
var data = Ext.decode(response.responseText);
DeviceDetectionWizardWnd.setTitle( '<?=$Labels->GetLabel('_WDEV_DET_WIZT_');?> [' + data.name+']' );
DeviceDetectionWizardWnd.setTitle( "<?=$Labels->GetLabel('_WDEV_DET_WIZT_');?> [" + data.name+"]" );
Ext.getCmp('DDWizST').setValue( data.type );
RangeSetBlocker = true;
Ext.getCmp('DDWizSR').setValue( data.range );
@ -1645,7 +1645,7 @@ function loadAdvancedDeviceDetectionSettings(){
},
success: function( response, opts ){
var data = Ext.decode(response.responseText);
DeviceDetectionAdvancedWnd.setTitle( '<?=$Labels->GetLabel('_WDEV_DET_WIZT_');?> [' + data.name+']' );
DeviceDetectionAdvancedWnd.setTitle( "<?=$Labels->GetLabel('_WDEV_DET_WIZT_');?> ["+data.name+"]" );
if( data.profiles.length > 0 ){
if( data.profiles.length > 3 ) Ext.getCmp('ADD_PADD_BTN').disable();
switch( data.type ){

6
lib/javascript/jsapi_dynamic/rgoose_modules.js

@ -147,13 +147,13 @@ function showModuleSettingsEditor( ModuleID ){
resizable: false,
items:[],
buttons: [{
text: '<?=$Labels->GetLabel("_CANCEL_");?>',
text: "<?=$Labels->GetLabel('_CANCEL_');?>",
handler: function(){
moduleSettingsEditorWindow.hide();
}
},{
id: 'con_to_src',
text: '<?=$Labels->GetLabel("_OK_");?>',
text: "<?=$Labels->GetLabel('_OK_');?>",
disabled: false,
handler: function(){
Ext.getCmp('mod_set_content').saveSettings();
@ -181,7 +181,7 @@ function showModuleSettingsEditor( ModuleID ){
moduleSettingsEditorWindow.close();
moduleSettingsEditorWindow = null;
Ext.Msg.show({
title:'<?=$Labels->GetLabel("_ERROR_MSG_");?>',
title: "<?=$Labels->GetLabel('_ERROR_MSG_');?>",
msg: data.msg,
buttons: Ext.Msg.OK,
fn: function(){

16
lib/js_asm.php

@ -56,21 +56,7 @@ require_once('php/db/language_json_class.php');
require_once('php/ui/UI_functions.php');
//require_once('php/web/WEB_functions.php');
if( isset($_GET['Lang'])){
$UCL=$_GET['Lang']/1;
if ($UCL) $_SESSION['userlang']=$UCL; else $_SESSION['userlang']=$UserLang;
}
//$LDB = new SQLite_DB( '/srv/www/web/lib/controller/data/lang_en_US.db');
if( isset($_SESSION['userlang']) ){
//$Labels=new Language( $_SESSION['userlang'],'', $LDB );
$Labels=new Language_json( '/srv/www/web/lib/'.$_SESSION['userlang'].'.json');
} else {
//$Labels=new Language( $UserLang ,'', $LDB );
$Labels=new Language_json( '/srv/www/web/lib/'.$UserLang.'.json');
};
$Labels=new Language_json( '/srv/www/web/lib/'.$UserLang.'.json');
if( $UserLang == 3 || $UserLang == 255 ){
$RTL_SITE = true;

10
lib/php/ui/UI_functions.php

@ -242,14 +242,8 @@ function UI_PageHeaderExt($Static_Scoop = '', $Dynamic_Scoop = ''){
<script type="text/javascript" src="lib/javascript/leaflet/leaflet.js"></script>
<script type="text/javascript" src="lib/javascript/leaflet/Leaflet.ImageOverlay.Rotated.js"></script>
<script type="text/javascript" src="lib/javascript/howler/howler.min.js"></script>
<?php
if( $CUser->Data['access'] > 5 ){
?>
<script type="text/javascript" src="lib/javascript/plupload/js/moxie.min.js"></script>
<script type="text/javascript" src="lib/javascript/plupload/js/plupload.min.js"></script>
<?php
};
?>
<script type="text/javascript" src="lib/javascript/plupload/js/moxie.min.js"></script>
<script type="text/javascript" src="lib/javascript/plupload/js/plupload.min.js"></script>
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/PNotify.css" />
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/BrightTheme.css" />
<link rel="stylesheet" type="text/css" href="lib/javascript/pnotyfy/Material.css" />

BIN
style/assets/no-signal.png

Binary file not shown.

Before

Width: 352  |  Height: 296  |  Size: 791 B

After

Width: 800  |  Height: 600  |  Size: 31 KiB

BIN
style/assets/no-signal_d.png

Binary file not shown.

After

Width: 352  |  Height: 296  |  Size: 791 B

BIN
style/wicons/narrow.png

Binary file not shown.

After

Width: 225  |  Height: 225  |  Size: 1.4 KiB

BIN
style/wicons/wide.png

Binary file not shown.

After

Width: 225  |  Height: 225  |  Size: 1.4 KiB

Loading…
Cancel
Save