diff --git a/lib/1.json b/lib/1.json index 8fa5d14..6e5ed44 100644 --- a/lib/1.json +++ b/lib/1.json @@ -1 +1 @@ -{"Label ID":"Label Content","___ENABLED__":"Enabled","__ADD__":"Add","__DISABLED__":"Disabled","__LOGIN__":"Login","__LOGIN_ID__":"Login ID","__LOGOUT__":"Logout","__NARROWER__":"Narrower","__OFFLINE__":"Offline","__ONLINE__":"Online","__PAGEWASGENIN__":"The page was generated in","__PASSWORD__":"Password","__PTZ_CONTROL__":"PTZ Control","__SECOND__":"second","__SECONDS__":"seconds","__SSl_DOWNLOAD__":"Please Download our Root CA certificate and Install it into your System (see instructions below)","__SSl_NO_CERT__":"The Working Certificate for %IP% Not Installed.","__SSl_WELCOME__":"SSL Certificates required for security","__UPLOAD__":"Upload","__WIDER__":"Wider","__ZERO_SHIFT__":"Zero Shift","_ACC_LOG_":"Security Log","_ACCESS_ADMIN_":"Admin","_ACCESS_DENIED_":"Access Denied","_ACCESS_FACTORY_":"Factory Defined","_ACCESS_LEVEL_":"Access Level","_ACCESS_LOGIN_":"Access Login","_ACCESS_MINIMAL_":"Minimal Access","_ACCESS_OPERATOR_":"Operator","_ACCESS_PASSWORD_":"Access Password","_ACTION_":"Action","_ADD_":"Add","_ADD_CAM_DIAL_TTL_":"Add IP Camera","_ADD_CAMERA2SITE_":"Add Camera to Site","_ADD_CONNECTION_":"Add Connection","_ADD_E2U_DIAL_TTL_":"Add Ethernet To Serial Adapter","_ADD_EVT_FILTER_":"Add Event Filter","_ADD_FILTER_":"Add Filter","_ADD_IP_CAMERA_":"Add IP Camera","_ADD_MEDIA_SERVER_":"Add Media Server","_ADD_MODULE_":"Add Module","_ADD_NEW_PHN_":"Add New Phone Number","_ADD_NEW_WTR_":"Add New Record","_ADD_REMOTE_UART_":"Add Remote UART","_ADD_USER_":"Add User","_ADM_SETTINGS_":"Admin Settings","_ADMIN_":"Admin","_ADV_TAB_":"Advanced Settings","_AJX_REQFAILURE_":"Error: AJAX","_ALARMED_":"Alarmed","_ALT_SHORT_LBL_":"Alt","_ANAL_SOURCES_LST_":"Local Video Sources","_APLY_DBBACKUP_":"Restore","_APP_TITLE_":"TTIDS","_APPLICA_MNGMNT_":"Application Settings","_APPLY_CHANGES_":"Apply Changes","_APPLY_SETTINGS_":"Apply Settings","_AS_MODULE_":"Add Server Module","_ASSIGN_CAMERA_":"Assign Camera","_AUTH_MODE_0_":"Authorization Mode","_AXIS_ROT_":"Axis Rotation","_AZIMUTH_":"Azimuth","_BACKUP_SETTINGS_":"Backup\/Restore","_BOT_PIC_BOUND_":"Bottom Picture Boundary (pixels)","_BOTTOM_SENSOR_":"Bottom Sensor","_BROWSE_":"Browse","_BTN_CLR_AHIST_":"Clear All History","_BTN_CLR_SELECTED_":"Clear Selected","_BUSY_":"Busy","_CAC_TAB_":"Credentials","_CALL_ONLY_":"Call Only","_CAM_AH_TIME_":"Time After Alarm","_CAM_AH_TOKEN_":"Home Preset Token","_CAM_ASS_LIST_":"Assigned Cameras","_CAM_AUTO_HOMING_":"Enable Automatic Home Return","_CAM_CUSTOMZ_":"Custom Zoom","_CAM_DET_LIST_":"Detected Cameras","_CAM_FIXEDZ_":"Fixed Zoom","_CAM_FOCALL_":"Focal Length","_CAM_IP_ADDRESS_":"Camera IP Address","_CAM_LABEL_":"Camera Label","_CAM_LENS_SETTINGS_":"Lens Settings","_CAM_MAP_NAME_":"Camera Name","_CAM_MAX_RANGE_":"Maximal Range","_CAM_PANANGS_":"Total Pan Angles","_CAM_PANMOD_":"Pan Model","_CAM_PROTO_ID_":"Camera ID","_CAM_PTZ_AAC_":"PTZ Auto Acceleration","_CAM_PTZ_MAC_":"PTZ Manual Acceleration","_CAM_SENS_SIZE_":"Sensor Size","_CAM_TILTANGS_":"Total Tilt Angles","_CAM_TILTMOD_":"Tilt Model","_CAM_TM_ALL_":"All Targets","_CAM_TM_ALL_FAR_":"All Far","_CAM_TM_ALL_NEAR_":"All Near","_CAM_TM_REGULAR_":"Regular","_CAM_TM_REVERSED_":"Reversed","_CAM_TM_RSHIFTED_":"Rev-Shifted","_CAM_TM_SHIFTED_":"Shifted","_CAM_TM_STRICT_VISIBLE_":"Strict Visible Targets","_CAM_TRIGGERING_MODE_":"Alarm Triggering Mode","_CAM_VARIOZ_":"Simple Zoom","_CAM_ZOOM_PERC_":"Zoom Percents","_CAM_ZOOMMO_":"Zoom Mode","_CAM_ZOOMR_":"Zoom Ratio","_CAMERA_MNGMNT_":"Cameras","_CANCEL_":"Cancel","_CHOOSEF_":"Choose File","_CLEAR_":"Clear","_CLEAR_ALARM_":"Clear Alarm","_CLEAR_SITE_":"Delete All","_CLOSE_":"Close","_CON_2_IP_CAM_":"Connect to IP Camera","_CONNECT_2_":"Connect to","_CONNECT_2_SEL_":"Connect To Selected","_CREA_ANAL_CAM_":"Create Analog Camera","_CREATE_CUSTOM_MAP_":"Create Custom Map","_CREATE_NEW_LBL_":"Create New","_CREATED_":"Created","_CTL_SERVER_NODE_":"Control Server Node","_CUSTOM_MSG_":"Custom Message","_DASHBOARD_":"Dashboard","_DATETIME_":"Time","_DB_BACKUP_":"Select Restore File","_DB_FILE_HAS_DOWNLOADED_":"Settings File has been Downloaded","_DB_STAT_CON_0_":"Connected ... Sync in progress","_DB_STAT_CON_UNA_":"Connection is Unavailable","_DB_STAT_STUDY_":"Analyzing","_DB_UPLOAD_BACKUP_":"Uploading Settings","_DC_AUTO_ENA_":"Enable Dry Contact Control","_DC_CONTROL_SET_":"Dry Contact Control","_DC_TIME_WINDOW_":"Dry Contact Time Window","_DC_WM_NC_":"Normally Close","_DC_WM_NO_":"Normally Open","_DC_WORK_MODE_":"Dry Contact Work Mode","_DEBUGGING_MODE_":"Debugging Mode","_DEL_SELECTED_":"Delete Selected","_DEL_USER_":"Remove User","_DELETE_":"Delete","_DESCRIPTION_":"Description","_DET_GENWORKS_":"General Tasks","_DET_IP_CAMERA_LST_":"Detected IP Cameras List","_DET_SENSITIVITY_":"Detection Sensitivity Profile","_DET_SET_WIDTH_T_":"Width Table","_DET_SETTINGS_":"Detection Settings","_DEV_ACK_BTN_":"Detection Bypass","_DEV_ACK_BTN2_":"Detections Bypassed","_DEV_ACK_START_":"Are you sure want to Bypass current detections?","_DEV_ACK_STOP_":"Are you sure want to cancel detection Bypass?","_DEV_CTLPANEL_SHRT_":"Device Control","_DEV_ITYPE_FLD_":"Sensor Installed","_DEV_MISTMATT1_":"Please decide what to do","_DEV_PL_ANG_":"At an Angle","_DEV_PL_HORI_":"Horizontally","_DEV_PL_VERT_":"Vertically","_DEV_RANGE_FLD_":"Max Range","_DEV_TYPE_3D_":"3DLRF Sensor","_DEV_TYPE_ALS_":"ALS Sensor","_DEV_TYPE_FLD_":"Sensor Type","_DEV_TYPE_LFS_":"LFS Sensor","_DEV_TYPE_NPLS200_":"New PLS200 Sensor (Network)","_DEV_TYPE_PLS200_":"PLS200 Sensor","_DEV_TYPE_PLS360_":"PLS360 Sensor","_DEVICE_IP_":"IP Address","_DEVICE_NAME_":"Device Name","_DEVICE_PORT_":"Port","_DISCONNECTED_":"Disconnected","_DLG_ADD_3DSENS_":"Add 3DLRF Sensor","_DLG_ADD_ALS_":"Add ALS Sensor","_DLG_ADD_LFS_":"Add LFS Sensor","_DLG_ADD_PLS200_":"Add PLS200 Sensor","_DLG_ADD_PLS360_":"Add PLS360 Sensor","_DLG_CON_SEVER_NODE_":"Will be Connected to","_DOWNLOAD_SETTINGS_":"Download Current Settings","_DRAW_BACKGROUND_":"Draw Background","_EDIT_":"Edit","_EDIT_CUR_MAP_":"Edit Current Map","_EDIT_LRF3D_SETTINGS_":"Edit Lidar 3D Settings","_EDIT_USER_":"Edit User","_EDIT_USER_CRACCES_":"Edit User Credentials and Access","_EDIT_WTR_":"Edit Width Table Record","_EDT_CONNECTIONS_":"Edit Connections","_EDT_LOCATIONS_":"Edit Locations","_ELEVATION_":"Elevation","_EMBED_VIDEO_ENCODER_":"Embed Video Encoder Module","_ERROR_MSG_":"Error Message","_EVE_COMPRESS_QUA_":"Compression Quality","_EVE_DESC_LOO_":"Video Encoder Module provides Imaging Capture functionality to TTIDS server. Can capture Analog Video from USB grabber\/USB WebCam or Digital Stream from IP Camera","_EVE_DESC_SHO_":"LibAV(ffmpeg) Internal Video Encoder","_EVE_FONT_LBL_":"Font Type","_EVE_FONT_TS_":"Font Type","_EVE_LBL_FSCALE_":"Label Font Scale","_EVE_LBL_FTHICK_":"Label Font Thickness","_EVE_LBL_LINE_T_":"Label Line Type","_EVE_LBL_POSX_":"Label X","_EVE_LBL_POSY_":"Label Y","_EVE_LOGO_HEIGHT_":"Logo Height","_EVE_LOGO_POSX_":"Logo X","_EVE_LOGO_POSY_":"Logo Y","_EVE_LOGO_WIDTH_":"Logo Width","_EVE_PORT_":"Web Access Port","_EVE_SHOW_LBL_":"Show Label","_EVE_SHOW_LOGO_":"Show Custom Logo","_EVE_SHOW_TS_":"Show TimeStamp","_EVE_TRANSO_LBL_":"Transparent BG","_EVE_TRANSO_TS_":"Transparent BG","_EVE_TS_FSCALE_":"Font Scale","_EVE_TS_FTHICK_":"Font Thickness","_EVE_TS_LINE_T_":"Font Line Type","_EVE_TS_POSX_":"TimeStamp X","_EVE_TS_POSY_":"TimeStamp Y","_EVENT_":"Event","_EVENT_LOG_":"Event Log","_EVT_ARCHIVE_":"Events Archive","_EVT_MONITOR_":"Live Monitor","_EVT_MONITOR_IPI_":"SingleIPI Mode","_EVT_MSG_ACKOFF_":"Bypass Mask Deleted","_EVT_MSG_ACKON_":"Bypass Mask Added","_EVT_MSG_B2DTRG_":"Black 2D Target","_EVT_MSG_B3DTRG_":"Black 3D Target","_EVT_MSG_BUMO_":"Device Is BUSY","_EVT_MSG_COM_JAMED_":"Communication Jammed","_EVT_MSG_CONNECTED_":"Connected","_EVT_MSG_DISCONNECTED_":"Disconnected","_EVT_MSG_EVT_CLOMA_":"Event Closed Manual","_EVT_MSG_EVT_END_":"Event Ended","_EVT_MSG_EVT_START_":"Event Started","_EVT_MSG_FLIPO_":"Flip Complete","_EVT_MSG_MASKOFF_":"Turning Off Masking Area","_EVT_MSG_MASKON_":"Turning On Masking Area","_EVT_MSG_ROI_":"Point Of Interest","_EVT_MSG_SCANC_":"Scan Complete","_EVT_MSG_STUMO_":"Device Enters Into Study Mode","_EVT_MSG_TF_BSD_":"[LTF] Detection","_EVT_MSG_TF_CT_":"[TF] Check Target","_EVT_MSG_TF_DD_":"[LTF] Disabled","_EVT_MSG_TF_DIFD_":"[LTF] Differential Detection","_EVT_MSG_TF_RD_":"[LTF] Regular Detection","_EVT_MSG_TF_SUSPA_":"[LTF] Suspicious Start","_EVT_MSG_TF_SUSPD_":"[LTF] Suspicious Detection","_EVT_MSG_TF_SUSPN_":"[TF] Suspicious Mode End","_EVT_MSG_TF_TD_":"[UTF] Train Detected","_EVT_MSG_TF_TUPD_":"[UTF] Train Updated","_EVT_MSG_TF_USD_":"[UTF] Upper Sensor Detection","_EVT_MSG_VIFDEC_":"Video Framerate Decreased","_EVT_MSG_VIFINC_":"Video Framerate Increased","_EVT_MSG_W2DTRG_":"Wide Target","_EVT_MSG_W3DTRG_":"Wide Target","_FACT_DEFAULT_":"Set by Factory","_FACTORY_RESET_":"Reset to Factory Defaults","_FHM_PROPS_":"FH Module Properties","_FILE_NAME_":"File Name","_FISONMODULE_":"Files Saved on Module","_FOUNDER_":"Founder","_FRAME_FORMAT_":"Frame Format","_FRAME_SIZE_":"Frame Size","_FROM_ANCH_":"from Anchor","_FUSION_ENGINE_":"Fusion Engine","_GEN_INSTANCE_ID_":"Generate New Identity","_GENERAL_":"General","_GENERAL_NFO_":"General Info","_GEO_LOCATION_":"Geo Locations","_GO_HOME_":"Go Home","_GUEST_":"Guest","_HARDWARE_":"Hardware","_ID_":"id","_INFO_":"Information","_INFO_MSG_":"Information Message","_INSTANCE_ID_":"Instance Identity","_INTER_MAP_":"Internet Map","_ISSURES_":"Issue Reset","_KAFKA_BROKER_":"Kafka Broker","_KAFKA_DESC_LOO_":"Sends Events from TTIDS server to a KAFKA Broker Node","_KAFKA_DESC_SHO_":"KAFKA Broker Proxy","_KAFKA_TOP_EVTS_":"Kafka Topics and Events","_LAST_ACCESS_":"Last Access","_LAT_":"Latitude","_LAT_SHORT_LBL_":"Lat","_LAYER_ATTRIB_":"Layer Attribution","_LEFT_PIC_BOUND_":"Left Picture Boundary (pixels)","_Loading_Calo_":"Loading Dates","_LOC_MAP_LBL_":"Location Map","_LOC_TAB_":"Location\/Orientation","_LOCAL_PIC_MAP_":"Local Picture Map","_LOCK_USER_":"Lock User","_LOGIN_":"Login","_LOGIN_0_":"Login:","_LOGOUT_":"Logout","_LON_":"Longitude","_LON_SHORT_LBL_":"Lon","_MA_CIRCLE__":"Circular","_MA_ROUND_":"Square","_MAINTENENCE_":"Maintenance","_MANUADD_CAMERA_":"Manually add IP Camera","_MAP_":"Map","_MAP_CENTER_MODE_":"Map Centre Mode","_MAP_COORD_SYSTEM_":"Map Coordinate System","_MAP_CUST_LBL_":"Custom Map","_MAP_HEIGHT_":"Map Height (meters)","_MAP_LEFT_CORCORD_":"Left Upper Corner Coordinate","_MAP_MONITORING_":"Map Monitoring","_MAP_NAME_":"Map Name","_MAP_PICTURE_":"Map Picture","_MAP_REG_LBL_":"Regular WGS84 Map (requires Internet)","_MAP_RIGHT_CORCORD_":"Right Bottom Corner Coordinate","_MAP_TYP_LBL_":"Map Type","_MAP_WIDTH_":"Map Width (meters)","_MAS_LRF_DET_SET_":"Master LRF Detection Settings","_MASK_EDITOR_":"Mask Editor","_MASK_MANAGER_":"Masking Management","_MAX_NATURAL_ZOOM_":"Max Natural Zoom","_MAX_ZOOM_":"Max Zoom","_MEMO_":"Memo","_METERS_":"Meters","_METERS_RANGE_":"Meters","_MOD_NO_NEDCONF_":"Module does not need to be configured.","_MODEM_DESC_LOO_":"Provides WAN connectivity over cellular networks (UMTS, 4G, LTE). Also sends Events via SMS","_MODEM_DESC_SHO_":"Cellular Modem Manager","_MODULE_":"Module","_MONIT_LAYOUT_":"Monitoring Layout","_MONITORING_":"Monitoring","_MSG_CAM_NOT_ASS_":"Camera is Not Assigned to the System","_MSG_CAM_PROC_2_SET_":"Proceed to Cameras Settings to Assign One","_MSG_CAM_PROC_NOT_ASS_":"Camera is Not Assigned to the System Please Assign One","_MSG_SELITEMFROMMAP_":"Select Item From Map","_NAME_LABEL_":"Name\/Label","_NAME_MAP_":"Map Name","_NET_SETTINGS_":"Connections","_NEW_PASSWORD_":"New Password","_NO_PTZ_":"No PTZ Control","_NO_SENSORS_DEF_":"No Sensors Defined","_NO_UARTS_DEF_":"No UART Defined","_OK_":"Ok","_ONVIF_DESC_LOO_":"OnVif module allows you to discover and communicate with the network cameras which supports the ONVIF specifications on the same subnet.","_ONVIF_DESC_SHO_":"OnVif LAN Discovery Module","_ORIENTATION_":"Orientation","_OUTPUT_FRAME_SIZE_":"Output Frame Size","_PASSWORD_0_":"Password:","_PHONE_NUMBER_":"Phone Number","_Please_Wait_":"Please Wait","_PLS_CONFIRM_":"Please Confirm","_PLS_SEL_CAL_DATE_":"Please Select a Date from the Calendar from the right","_PLS_SEL_LEFT_ITEM_":"Please select item from the left to view more info.","_POINTER_":"[ptr]","_POSITION_":"Position","_PROF_SETTINGS_":"Profile Settings","_PROGRESS_":"Progress","_PROPERTIES_":"Properties","_PROTO_DEVICE_ID_":"Protocol ID","_PROV_CAC_":"Please Provide Camera Access Credentials.","_PTZ_TAB_":"PTZ Settings","_QERY_MSG_":"Question Message","_RANGE_":"Range","_READY_":"Ready","_READY_TO_UPLO_":"Ready to Upload","_REGULAR_":"Regular","_RELOAD_":"Reload","_REMOVE_CAMERA_":"Remove Camera","_REMOVE_SENSOR_":"Remove Sensor","_REP_PASSWORD_":"Repeat Password","_REPO_HISTORY_":"Reports\/History","_REPORT_STORAGE_":"Reports\/History Storage","_REQ_FAILURE_":"Failure","_RES_ETHERNET_DESC_":"Ethernet Network Adapter","_RES_EZ_UART_DESC_":"UART connected via Ethernet","_RES_HW_UART_DESC_":"UART connected to a Server Appliance","_RES_INFO_":"Resource Information","_RES_WAN_DESC_":"WAN Adapter (Broadband Internet)","_RES_WIFI_DESC_":"WiFi Network Adapter","_RESETSTATUS_":"Reset Status","_RESOURCES_":"Resources","_RIGHT_PIC_BOUND_":"Right Picture Boundary (pixels)","_RSET_CREDENTIALS_":"Reset Credentials","_RUS_DELETE_MODULE_":"Are you sure delete Module?","_SARE_SAVED_":"Settings Are Saved","_SAVE_":"Save","_SCREEN_RESIZE_":"Resize Screen","_SEC_SYSTEM_":"","_SELE_ANIMAGE_":"Select an image","_SELE_DBBACKUP_":"Restore Settings","_SENDTOSENS_":"Send to Sensor","_SENS_ACKS_":"Default Bypass Size","_SENS_ACKT_":"Default Bypass Shape","_SENS_APPLY_RES_":"Apply To Device and Reset","_SENS_AUTOR_ENA_":"Auto Reset Enabled","_SENS_AUTOR_INTER_":"Auto Reset Interleave","_SENS_AUTOR_TO_":"Auto Timeout","_SENS_BZSHIFT_":"Board Zero Shift","_SENS_DEL_FROTH_":"Delete Frozen Threshold","_SENS_DIS_FROTH_":"Disable Frozen Threshold","_SENS_DO_FULLR_":"Issue Sensor Full Reset","_SENS_DO_READALL_":"Read All Settings from Sensor","_SENS_DO_SAVEALL_":"Save All Settings to Sensor","_SENS_ENA_FROTH_":"Enable Frozen Threshold","_SENS_FFTH_":"Freeze First Threshold","_SENS_FIN_FROTH_":"Finish Frozen Threshold Study","_SENS_HTEMP_":"Heater Temperature","_SENS_JUMODI_":"Just Moving Distance","_SENS_JUMORA_":"Just Moving Radial","_SENS_JUMOTA_":"Just Moving Targets","_SENS_NOBLA_":"No Black Targets","_SENS_SCANSPEED_":"Scan Speed","_SENS_SFTH_":"Save First Threshold","_SENS_STATUS_":"Sensor's Status","_SENSOR_CONNECTION_":"Sensors","_SENSOR_MAX_RANGE_":"Max Range","_SENSOR_PLACE_":"Sensor Placeholder","_SERIAL_":"Serial","_SERV_CTLPANEL_SHRT_":"Server Control","_SERV_FACTORY_DESC_":"Restore factory settings, clear database and detection settings","_SERV_FACTORY_OP_":"Restore Factory Settings","_SERV_FACTORY_QM_":"All settings will be cleared The only admin user will be preserved.The Report History will be kept intact.","_SERV_HW_DET_DESC_":"Run a hardware discovery process to recognize recently connected devices such as a USB serial port or USB video.","_SERV_HW_DET_OP_":"Detect new Hardware","_SERV_HW_DET_QM_":"Are you sure to run a hardware discovery process.That will prevent detection events for few seconds.","_SERV_HW_DET_QT_":"Hardware Detection","_SERV_LOG_":"Server Log","_SERV_OSRESET_DESC_":"Restart the host operating system to apply any recent system configuration changes","_SERV_OSRESET_OP_":"Restart Host Computer","_SERV_RESTART_DESC_":"Restart the management application to initialize all components and apply any configuration changes.","_SERV_RESTART_OP_":"Restart Control Application","_SERV_RESTART_QM_":"Are you sure to restart control application?","_SERV_RESTART_QT_":"Restart Backend","_SERVER_MODULES_":"Modules","_SET_CHANGED_WOULD_SAVE_":"Some Settings are Changed They will be Unsaved!","_SET_CREDENTIALS_":"Set Credentials","_SETTING_SAVE_OK_":"All changes saved successfully","_SETTINGS_":"Settings","_SETTINGS_CHANGED_":"Settings Changed","_SITE_DEL_ALL_ABO_":"Are you sure to delete all devices and settings?","_SITE_PROP_LBL_":"Site Properties","_SITE_TITLE_":"TTIDS","_SIZE_":"Size","_SLV_LRF_DET_SET_":"Slave LRF Detection Settings","_SMM_ADD_ADDIT_":"Add Additional Equipment","_SMM_ADD_LSEN_":"Add Laser Sensor","_SMS_ONLY_":"SMS Only","_SND_FILES2_DEV__":"Send Files","_SOUND_":"Sound","_SOURCE_":"Source","_SSDP_DESC_LOO_":"SSDP announcer allows you announce on your LAN a TTIDS server","_SSDP_DESC_SHO_":"SSDP announcer daemon for UPnP\/DLNA","_SSL_CERT_INVALID__":"Provided Certificate is Invalid","_SSL_CERT_IP_NO_":"Provided Certificate Valid For Other IP Address","_SSL_CERT_VALID_INSTA":"The Certificate is Valid and will be applied intact (it will take few minutes). The System is going to reboot.","_SSL_NO_EXT_CERT_":"No x509 Extensions defined in Certificate","_SSL_NO_IP_CERT_":"No Ip Addresses in Certificate","_SSL_PROVIDE_CERT_":"Please Provide Valid Certificate for %IP% signed by Dr. Frucht Systems.You may request one at www.smartsecsystems.com","_SSL_VALID_BUT_":"The Certificate is Valid. However:","_STATIC_CONNECTION_":"Static Connection","_STATUS_":"Status","_STORE_DAYS_":"Keep Report History Days","_STORE_EMPTY_SPACE_":"Preserve Empty Space on System","_STREAMS_":"Streams","_STUDY_BACKGROUND_":"Study Background","_SUCCESS_":"Success","_SWU_DASHBOARD_":"Software Update Management","_SYS_ANCHORT_LBL_":"System Anchor","_SYS_DASHBOARD_":"System Overview","_SYS_GENERAL_":"General","_SYS_MAP_":"System Map","_SYS_SETTINGS_":"System Settings","_TARGET_FILTERS_":"Filters","_TARGETING_TAB_":"Alarm Settings","_TCP_CLIENT_":"TCP Client","_TCP_SERVER_":"TCP Server","_TILE_URL_MAP_":"Tiles URL Pattern","_TIME_":"Time","_TOOLBOX_":"Toolbox","_TOP_PIC_BOUND_":"Top Picture Boundary (pixels)","_TYPE_":"Type","_UART_PORT_":"UART Port","_UDP_CLIENT_":"UDP Client","_UDP_SERVER_":"UDP Server","_UNLOCK_USER_":"Unlock User","_UPDATE_LBL_":"Update","_UPDATING_DATA_":"Updating Data","_UPGRADE_MNGMNT_":"Upgrade\/Backup","_UPLO_DONE_":"Already Uploaded","_UPLO_IN_PROGRESS_":"Uploading","_UPLOA2MODULE_":"Upload to Module","_UPLOAD_PACKAGE_":"Upload Package","_UPPER_SENSOR_":"Upper Sensor","_USER_":"User","_USER_LOGIN_":"User Login","_USERS_MNGMT_":"Users Management","_VERSION_":"Version","_VIDEO_ENCODER_":"Video","_VIDEO_FILE_HAS_DOWNLOADED_":"Video File has been Downloaded","_WDEV_DET_WIZ0_":"Device Type","_WDEV_DET_WIZ1_":"Installation Type","_WDEV_DET_WIZ2_":"Environment","_WDEV_DET_WIZ3_":"Something Else","_WDEV_DET_WIZT_":"Sensor Setup Detection Wizard","_WDEV_MISTMATCH_":"Device Is Different","_WIDTH_":"Width","_WIDTH_CORRECT_":"Width Correction","_WORKING_MODE_":"Working Mode","_WRO_VAL_MSG_":"You Entered Wrong Values Please Correct and Continue.","_WRO_VALUES_":"Wrong Values","_ZL_MEDIA_DESC_LOO_":"Support multiple protocols (RTSP\/RTMP\/HLS\/HTTP-FLV\/WebSocket-FLV\/GB28181\/HTTP-TS\/WebSocket-TS\/HTTP-fMP4\/WebSocket-fMP4\/MP4\/WebRTC), support protocol interconversion.","_ZL_MEDIA_DESC_SHO_":"ZLMediaKit Server - Streaming Encoder","05b048d7242cb7b8b57cfa3b1d65ecea":"Gamma","0737d367234baa9eb0d7d93044d4cdcb":"AGC","0e6ebfbce4a1d380a356f7d0ca501db2":"Zoom Frame","1f9d92d5edaba165f934540a3525112a":"Tilt Frame","20e57f32ba12b9cd13ebe9ef5e32d949":"Invert","210ab9e731c9c36c2c38db15c28a8d1c":"Volume","3a5769e56038d8308b08f8741077d943":"Odd Field Offset","3b2d7435a9d67b3630988c398af85da5":"Sharpness","442348a3a2d4dc460bf2e86b1e97bd71":"Power Line","4cf296191801ec357d2aa0ad3a484cba":"Manual WB","5f458c0f2db08c33596b0e7a8dbc0e5b":"Manual Exp.","71a6b6f094346a8832df801c8428ea06":"Hue","885cd2552e1136cfd94ae863668e8942":"Even Field Offset","aa71a2ef3fb13c2642ea72645a698cb8":"Brightness","AUTO_DRAW":"Automatic Draw","b4e67baf7b29f6474d4ac44008dafed4":"BL Compensation","b914f4cdf61e27d144e5ceef61eec7a2":"Automute","bba4e31fa5d5b2fee356b87111a52aa3":"Horizontal Flip","c8fd07f040a8f2dc85f5b2d3804ea3db":"Contrast","cc0d5ee2cdb80bf82426e9def9f9bf7c":"Pan Frame","def9cbe59ce34853e7081f62b095e348":"Mute","ed063c64d46ede5916894e6ac2ab9ce1":"Auto WB","Error_Message":"Error Message","ETHERNET_PROP":"Ethernet","facdbb51cba54d1eccbdd8bd670e7b33":"Auto Exp.","fb520ff39848b91b70496ecf6c67f68e":"Compression Quality","fd71ed58ae07cc75900a5169e6f9c287":"Saturation","FILTER_AFP":"Authorised Persons Filter","FILTER_TRAIN":"Train Target Filter","FRAMEGRAB_PROP":"Analog Video","MOD_TYPE":"Module Type","MODE_ACCESS_POINT":"Access Point","MODE_DISABLED":"Disabled","MODE_ETHDYNAMIC":"Dynamic Address (DHCP)","MODE_ETHROUTER":"Static Address Router","MODE_ETHSTATIC":"Static Address","MODULE_DCBUSB":"USB Dry Contact Control Module","MODULE_EMB_VIDO":"Internal Video Encoder","MODULE_FLYHUNT":"FlyHunter Drone Control","MODULE_GPS":"GPS Time Sync Module","MODULE_KAFKA":"Kafka Data Proxy","MODULE_MODEM_MAN":"Modem Manager","MODULE_NETWORK":"Network Module [TBD]","MODULE_ONVIF_DIS":"OnVif Discovery","MODULE_SSDP":"Network Announcer","MODULE_ZLMEDIA":"ZLMedia Server","SENS_NAME":"Sensor's Name","SENS_RANGE":"Sensor Range","SENS_TYPE":"Sensor's Type","SERV_BLD_TAG":"Build Tag","SERV_NAME":"Server Name","SETIAL_TAG":"Serial Tag","SRV_STATUS_OFF":"Server is Offline","SRV_STATUS_ON":"Server is Online","SYS_MSG_DEVINV":"The Connected Device is Different from","SYS_SERVNAME":"TTIDS Server","UART_COM_BITS":"Bits","UART_COM_PARITY":"Parity","UART_COM_SBITS":"Stop Bits","UART_COM_SPEED":"Com Speed","UART_LINE_PROP":"UART","VIRTUALIP_PROP":"Virtual IP","VPN_TUN_PROP":"VPN Tunnel","WAN_LINE_PROP":"WAN Connection","WIFI_PROP":"WiFi","_EVT_MSG_TF_OM_DIS_":"[TF] Disabled by AUX Module","_EVT_MSG_TF_OM_TD_":"[TF] AUX Detects Train","_EVT_MSG_TF_OM_TG_":"[TF] AUX Train is Gone","_EVT_MSG_TF_OM_EXPIRED_":"[TF] AUX Status Expired","_SENS_DO_FULLDRAW_":"Request Full Draw","_REMOTE_SERVER_ADDRESS_":"Remote Server IPv4","_REMOTE_SERVER_PORT_":"Remote Server Port","_USE_REMOTE_SERVER_":"Use Remote Server","_SKIP_LOCAL_REPORTS_":"Skip Local Reports","_CAM_PTZ_MODE_":"PTZ Mode","_CAM_IR_ECO_":"IR Economode","_CAM_PRES_EDIT_":"Edit Presets","_CAM_PRES_EDITOR_":"Preset Editor","_CAM_PRES_SSELECT_":"Selected Sensor","_CAM_PRES_LOBACK_":"Load Background","_CAM_PRES_DELALL_":"Delete All Presets","_CAM_PRES_COUNT_":"Presets Count","_CAM_PRES_COLS_":"Presets Columns","_CAM_PRES_ROWS_":"Presets Rows","_CAM_PRES_IROFF_":"IR Off Preset","_CAM_PRES_IRON_":"IR ON Preset","_CAM_PRES_IRAUTO_":"IR Auto Preset","_CAM_PRES_IRWIPER_":"Wiper Preset","__SET__":"Set","_CAM_PRES_REMBG_":"Remove Sensor Draw","_CAM_PREF_ONLY_":"Only Targets from Bound Sensor","_SENS_BOCAM_":"Bind to Camera","_CHANGE_CREDENTIALS_":"Change Credentials","_CONNECTION_":"Connection","_SELD_MODEM_":"Selected Modem","_CALL_HU_DELAY_":"Call Hangup Delay (seconds)","__MODE__":"Mode","_AUTOMATIC_":"Automatic","_MULTI_LAYOUT_":"Multi Display Monitoring","_MULTYDIS_ENA_":"Multi Display Mode","_BACKUP_SERVER_ADDRESS_":"Backup Server IPv4","_BACKUP_SERVER_PORT_":"Backup Server Port","_EVT_MSG_TF_TD_EXPIRED_":"[UTF] Train is Gone","_EVT_MSG_TF_SUSP_EXPIRED_":"[TF] Suspicious Blocking End","_LBL_SCADA_":"SCADA","_CAM_FLIPMO_":"Image Flip Mode","_CAM_FLIPHO_":"Mirrored","_CAM_FLIPVE_":"Flip Vertically","_CAM_FLIPVEHO_":"Flip Vertical+Mirrored","_DEV_FILTERS_":"Filters","FILTER_APF":"Authorised Prsonel Filter","FILTER_BUBBLE":"Bubble Target Filter","FILTER_YOLO":"YoLo AI Video Filter","_EVT_MSG_TF_BUBBLE_CREATED_":"Bubble is Created","_EVT_MSG_TF_BUBBLE_POPPED_":"Bubble is Popped","_BUBBLE_ID_":"Bubble ID","_DEV_FRZ_BBL_BTN_":"Freeze","_DEV_DEL_BBL_BTN_":"Add/Delete","_EVT_MSG_TF_BUBBLE_BLOCK_T_":"Target Blocked by Temporary Bubble","_EVT_MSG_TF_BUBBLE_BLOCK_P_":"Target Blocked by Frozen Bubble","_MANUADD_ACAMERA_":"Manually Add Frame Grabber Device","_FAILURE_":"Failure","_BUBBLE_ANALYSIS_":"Bubble Analysis","_TARGET_COUNT_":"Target Count"} \ No newline at end of file +{"Label ID":"Label Content","___ENABLED__":"Enabled","__ADD__":"Add","__DISABLED__":"Disabled","__LOGIN__":"Login","__LOGIN_ID__":"Login ID","__LOGOUT__":"Logout","__NARROWER__":"Narrower","__OFFLINE__":"Offline","__ONLINE__":"Online","__PAGEWASGENIN__":"The page was generated in","__PASSWORD__":"Password","__PTZ_CONTROL__":"PTZ Control","__SECOND__":"second","__SECONDS__":"seconds","__SSl_DOWNLOAD__":"Please Download our Root CA certificate and Install it into your System (see instructions below)","__SSl_NO_CERT__":"The Working Certificate for %IP% Not Installed.","__SSl_WELCOME__":"SSL Certificates required for security","__UPLOAD__":"Upload","__WIDER__":"Wider","__ZERO_SHIFT__":"Zero Shift","_ACC_LOG_":"Security Log","_ACCESS_ADMIN_":"Admin","_ACCESS_DENIED_":"Access Denied","_ACCESS_FACTORY_":"Factory Defined","_ACCESS_LEVEL_":"Access Level","_ACCESS_LOGIN_":"Access Login","_ACCESS_MINIMAL_":"Minimal Access","_ACCESS_OPERATOR_":"Operator","_ACCESS_PASSWORD_":"Access Password","_ACTION_":"Action","_ADD_":"Add","_ADD_CAM_DIAL_TTL_":"Add IP Camera","_ADD_CAMERA2SITE_":"Add Camera to Site","_ADD_CONNECTION_":"Add Connection","_ADD_E2U_DIAL_TTL_":"Add Ethernet To Serial Adapter","_ADD_EVT_FILTER_":"Add Event Filter","_ADD_FILTER_":"Add Filter","_ADD_IP_CAMERA_":"Add IP Camera","_ADD_MEDIA_SERVER_":"Add Media Server","_ADD_MODULE_":"Add Module","_ADD_NEW_PHN_":"Add New Phone Number","_ADD_NEW_WTR_":"Add New Record","_ADD_REMOTE_UART_":"Add Remote UART","_ADD_USER_":"Add User","_ADM_SETTINGS_":"Admin Settings","_ADMIN_":"Admin","_ADV_TAB_":"Advanced Settings","_AJX_REQFAILURE_":"Error: AJAX","_ALARMED_":"Alarmed","_ALT_SHORT_LBL_":"Alt","_ANAL_SOURCES_LST_":"Local Video Sources","_APLY_DBBACKUP_":"Restore","_APP_TITLE_":"Argus","_APPLICA_MNGMNT_":"Application Settings","_APPLY_CHANGES_":"Apply Changes","_APPLY_SETTINGS_":"Apply Settings","_AS_MODULE_":"Add Server Module","_ASSIGN_CAMERA_":"Assign Camera","_AUTH_MODE_0_":"Authorization Mode","_AXIS_ROT_":"Axis Rotation","_AZIMUTH_":"Azimuth","_BACKUP_SETTINGS_":"Backup\/Restore","_BOT_PIC_BOUND_":"Bottom Picture Boundary (pixels)","_BOTTOM_SENSOR_":"Bottom Sensor","_BROWSE_":"Browse","_BTN_CLR_AHIST_":"Clear All History","_BTN_CLR_SELECTED_":"Clear Selected","_BUSY_":"Busy","_CAC_TAB_":"Credentials","_CALL_ONLY_":"Call Only","_CAM_AH_TIME_":"Time After Alarm","_CAM_AH_TOKEN_":"Home Preset Token","_CAM_ASS_LIST_":"Assigned Cameras","_CAM_AUTO_HOMING_":"Enable Automatic Home Return","_CAM_CUSTOMZ_":"Custom Zoom","_CAM_DET_LIST_":"Detected Cameras","_CAM_FIXEDZ_":"Fixed Zoom","_CAM_FOCALL_":"Focal Length","_CAM_IP_ADDRESS_":"Camera IP Address","_CAM_LABEL_":"Camera Label","_CAM_LENS_SETTINGS_":"Lens Settings","_CAM_MAP_NAME_":"Camera Name","_CAM_MAX_RANGE_":"Maximal Range","_CAM_PANANGS_":"Total Pan Angles","_CAM_PANMOD_":"Pan Model","_CAM_PROTO_ID_":"Camera ID","_CAM_PTZ_AAC_":"PTZ Auto Acceleration","_CAM_PTZ_MAC_":"PTZ Manual Acceleration","_CAM_SENS_SIZE_":"Sensor Size","_CAM_TILTANGS_":"Total Tilt Angles","_CAM_TILTMOD_":"Tilt Model","_CAM_TM_ALL_":"All Targets","_CAM_TM_ALL_FAR_":"All Far","_CAM_TM_ALL_NEAR_":"All Near","_CAM_TM_REGULAR_":"Regular","_CAM_TM_REVERSED_":"Reversed","_CAM_TM_RSHIFTED_":"Rev-Shifted","_CAM_TM_SHIFTED_":"Shifted","_CAM_TM_STRICT_VISIBLE_":"Strict Visible Targets","_CAM_TRIGGERING_MODE_":"Alarm Triggering Mode","_CAM_VARIOZ_":"Simple Zoom","_CAM_ZOOM_PERC_":"Zoom Percents","_CAM_ZOOMMO_":"Zoom Mode","_CAM_ZOOMR_":"Zoom Ratio","_CAMERA_MNGMNT_":"Cameras","_CANCEL_":"Cancel","_CHOOSEF_":"Choose File","_CLEAR_":"Clear","_CLEAR_ALARM_":"Clear Alarm","_CLEAR_SITE_":"Delete All","_CLOSE_":"Close","_CON_2_IP_CAM_":"Connect to IP Camera","_CONNECT_2_":"Connect to","_CONNECT_2_SEL_":"Connect To Selected","_CREA_ANAL_CAM_":"Create Analog Camera","_CREATE_CUSTOM_MAP_":"Create Custom Map","_CREATE_NEW_LBL_":"Create New","_CREATED_":"Created","_CTL_SERVER_NODE_":"Control Server Node","_CUSTOM_MSG_":"Custom Message","_DASHBOARD_":"Dashboard","_DATETIME_":"Time","_DB_BACKUP_":"Select Restore File","_DB_FILE_HAS_DOWNLOADED_":"Settings File has been Downloaded","_DB_STAT_CON_0_":"Connected ... Sync in progress","_DB_STAT_CON_UNA_":"Connection is Unavailable","_DB_STAT_STUDY_":"Analyzing","_DB_UPLOAD_BACKUP_":"Uploading Settings","_DC_AUTO_ENA_":"Enable Dry Contact Control","_DC_CONTROL_SET_":"Dry Contact Control","_DC_TIME_WINDOW_":"Dry Contact Time Window","_DC_WM_NC_":"Normally Close","_DC_WM_NO_":"Normally Open","_DC_WORK_MODE_":"Dry Contact Work Mode","_DEBUGGING_MODE_":"Debugging Mode","_DEL_SELECTED_":"Delete Selected","_DEL_USER_":"Remove User","_DELETE_":"Delete","_DESCRIPTION_":"Description","_DET_GENWORKS_":"General Tasks","_DET_IP_CAMERA_LST_":"Detected IP Cameras List","_DET_SENSITIVITY_":"Detection Sensitivity Profile","_DET_SET_WIDTH_T_":"Width Table","_DET_SETTINGS_":"Detection Settings","_DEV_ACK_BTN_":"Detection Bypass","_DEV_ACK_BTN2_":"Detections Bypassed","_DEV_ACK_START_":"Are you sure want to Bypass current detections?","_DEV_ACK_STOP_":"Are you sure want to cancel detection Bypass?","_DEV_CTLPANEL_SHRT_":"Device Control","_DEV_ITYPE_FLD_":"Sensor Installed","_DEV_MISTMATT1_":"Please decide what to do","_DEV_PL_ANG_":"At an Angle","_DEV_PL_HORI_":"Horizontally","_DEV_PL_VERT_":"Vertically","_DEV_RANGE_FLD_":"Max Range","_DEV_TYPE_3D_":"3DLRF Sensor","_DEV_TYPE_ALS_":"ALS Sensor","_DEV_TYPE_FLD_":"Sensor Type","_DEV_TYPE_LFS_":"LFS Sensor","_DEV_TYPE_NPLS200_":"New PLS200 Sensor (Network)","_DEV_TYPE_PLS200_":"PLS200 Sensor","_DEV_TYPE_PLS360_":"PLS360 Sensor","_DEVICE_IP_":"IP Address","_DEVICE_NAME_":"Device Name","_DEVICE_PORT_":"Port","_DISCONNECTED_":"Disconnected","_DLG_ADD_3DSENS_":"Add 3DLRF Sensor","_DLG_ADD_ALS_":"Add ALS Sensor","_DLG_ADD_LFS_":"Add LFS Sensor","_DLG_ADD_PLS200_":"Add PLS200 Sensor","_DLG_ADD_PLS360_":"Add PLS360 Sensor","_DLG_CON_SEVER_NODE_":"Will be Connected to","_DOWNLOAD_SETTINGS_":"Download Current Settings","_DRAW_BACKGROUND_":"Draw Background","_EDIT_":"Edit","_EDIT_CUR_MAP_":"Edit Current Map","_EDIT_LRF3D_SETTINGS_":"Edit Lidar 3D Settings","_EDIT_USER_":"Edit User","_EDIT_USER_CRACCES_":"Edit User Credentials and Access","_EDIT_WTR_":"Edit Width Table Record","_EDT_CONNECTIONS_":"Edit Connections","_EDT_LOCATIONS_":"Edit Locations","_ELEVATION_":"Elevation","_EMBED_VIDEO_ENCODER_":"Embed Video Encoder Module","_ERROR_MSG_":"Error Message","_EVE_COMPRESS_QUA_":"Compression Quality","_EVE_DESC_LOO_":"Video Encoder Module provides Imaging Capture functionality to Argus server. Can capture Analog Video from USB grabber\/USB WebCam or Digital Stream from IP Camera","_EVE_DESC_SHO_":"LibAV(ffmpeg) Internal Video Encoder","_EVE_FONT_LBL_":"Font Type","_EVE_FONT_TS_":"Font Type","_EVE_LBL_FSCALE_":"Label Font Scale","_EVE_LBL_FTHICK_":"Label Font Thickness","_EVE_LBL_LINE_T_":"Label Line Type","_EVE_LBL_POSX_":"Label X","_EVE_LBL_POSY_":"Label Y","_EVE_LOGO_HEIGHT_":"Logo Height","_EVE_LOGO_POSX_":"Logo X","_EVE_LOGO_POSY_":"Logo Y","_EVE_LOGO_WIDTH_":"Logo Width","_EVE_PORT_":"Web Access Port","_EVE_SHOW_LBL_":"Show Label","_EVE_SHOW_LOGO_":"Show Custom Logo","_EVE_SHOW_TS_":"Show TimeStamp","_EVE_TRANSO_LBL_":"Transparent BG","_EVE_TRANSO_TS_":"Transparent BG","_EVE_TS_FSCALE_":"Font Scale","_EVE_TS_FTHICK_":"Font Thickness","_EVE_TS_LINE_T_":"Font Line Type","_EVE_TS_POSX_":"TimeStamp X","_EVE_TS_POSY_":"TimeStamp Y","_EVENT_":"Event","_EVENT_LOG_":"Event Log","_EVT_ARCHIVE_":"Events Archive","_EVT_MONITOR_":"Live Monitor","_EVT_MONITOR_IPI_":"SingleIPI Mode","_EVT_MSG_ACKOFF_":"Bypass Mask Deleted","_EVT_MSG_ACKON_":"Bypass Mask Added","_EVT_MSG_B2DTRG_":"Black 2D Target","_EVT_MSG_B3DTRG_":"Black 3D Target","_EVT_MSG_BUMO_":"Device Is BUSY","_EVT_MSG_COM_JAMED_":"Communication Jammed","_EVT_MSG_CONNECTED_":"Connected","_EVT_MSG_DISCONNECTED_":"Disconnected","_EVT_MSG_EVT_CLOMA_":"Event Closed Manual","_EVT_MSG_EVT_END_":"Event Ended","_EVT_MSG_EVT_START_":"Event Started","_EVT_MSG_FLIPO_":"Flip Complete","_EVT_MSG_MASKOFF_":"Turning Off Masking Area","_EVT_MSG_MASKON_":"Turning On Masking Area","_EVT_MSG_ROI_":"Point Of Interest","_EVT_MSG_SCANC_":"Scan Complete","_EVT_MSG_STUMO_":"Device Enters Into Study Mode","_EVT_MSG_TF_BSD_":"[LTF] Detection","_EVT_MSG_TF_CT_":"[TF] Check Target","_EVT_MSG_TF_DD_":"[LTF] Disabled","_EVT_MSG_TF_DIFD_":"[LTF] Differential Detection","_EVT_MSG_TF_RD_":"[LTF] Regular Detection","_EVT_MSG_TF_SUSPA_":"[LTF] Suspicious Start","_EVT_MSG_TF_SUSPD_":"[LTF] Suspicious Detection","_EVT_MSG_TF_SUSPN_":"[TF] Suspicious Mode End","_EVT_MSG_TF_TD_":"[UTF] Train Detected","_EVT_MSG_TF_TUPD_":"[UTF] Train Updated","_EVT_MSG_TF_USD_":"[UTF] Upper Sensor Detection","_EVT_MSG_VIFDEC_":"Video Framerate Decreased","_EVT_MSG_VIFINC_":"Video Framerate Increased","_EVT_MSG_W2DTRG_":"Wide Target","_EVT_MSG_W3DTRG_":"Wide Target","_FACT_DEFAULT_":"Set by Factory","_FACTORY_RESET_":"Reset to Factory Defaults","_FHM_PROPS_":"FH Module Properties","_FILE_NAME_":"File Name","_FISONMODULE_":"Files Saved on Module","_FOUNDER_":"Founder","_FRAME_FORMAT_":"Frame Format","_FRAME_SIZE_":"Frame Size","_FROM_ANCH_":"from Anchor","_FUSION_ENGINE_":"Fusion Engine","_GEN_INSTANCE_ID_":"Generate New Identity","_GENERAL_":"General","_GENERAL_NFO_":"General Info","_GEO_LOCATION_":"Geo Locations","_GO_HOME_":"Go Home","_GUEST_":"Guest","_HARDWARE_":"Hardware","_ID_":"id","_INFO_":"Information","_INFO_MSG_":"Information Message","_INSTANCE_ID_":"Instance Identity","_INTER_MAP_":"Internet Map","_ISSURES_":"Issue Reset","_KAFKA_BROKER_":"Kafka Broker","_KAFKA_DESC_LOO_":"Sends Events from Argus server to a KAFKA Broker Node","_KAFKA_DESC_SHO_":"KAFKA Broker Proxy","_KAFKA_TOP_EVTS_":"Kafka Topics and Events","_LAST_ACCESS_":"Last Access","_LAT_":"Latitude","_LAT_SHORT_LBL_":"Lat","_LAYER_ATTRIB_":"Layer Attribution","_LEFT_PIC_BOUND_":"Left Picture Boundary (pixels)","_Loading_Calo_":"Loading Dates","_LOC_MAP_LBL_":"Location Map","_LOC_TAB_":"Location\/Orientation","_LOCAL_PIC_MAP_":"Local Picture Map","_LOCK_USER_":"Lock User","_LOGIN_":"Login","_LOGIN_0_":"Login:","_LOGOUT_":"Logout","_LON_":"Longitude","_LON_SHORT_LBL_":"Lon","_MA_CIRCLE__":"Circular","_MA_ROUND_":"Square","_MAINTENENCE_":"Maintenance","_MANUADD_CAMERA_":"Manually add IP Camera","_MAP_":"Map","_MAP_CENTER_MODE_":"Map Centre Mode","_MAP_COORD_SYSTEM_":"Map Coordinate System","_MAP_CUST_LBL_":"Custom Map","_MAP_HEIGHT_":"Map Height (meters)","_MAP_LEFT_CORCORD_":"Left Upper Corner Coordinate","_MAP_MONITORING_":"Map Monitoring","_MAP_NAME_":"Map Name","_MAP_PICTURE_":"Map Picture","_MAP_REG_LBL_":"Regular WGS84 Map (requires Internet)","_MAP_RIGHT_CORCORD_":"Right Bottom Corner Coordinate","_MAP_TYP_LBL_":"Map Type","_MAP_WIDTH_":"Map Width (meters)","_MAS_LRF_DET_SET_":"Master LRF Detection Settings","_MASK_EDITOR_":"Mask Editor","_MASK_MANAGER_":"Masking Management","_MAX_NATURAL_ZOOM_":"Max Natural Zoom","_MAX_ZOOM_":"Max Zoom","_MEMO_":"Memo","_METERS_":"Meters","_METERS_RANGE_":"Meters","_MOD_NO_NEDCONF_":"Module does not need to be configured.","_MODEM_DESC_LOO_":"Provides WAN connectivity over cellular networks (UMTS, 4G, LTE). Also sends Events via SMS","_MODEM_DESC_SHO_":"Cellular Modem Manager","_MODULE_":"Module","_MONIT_LAYOUT_":"Monitoring Layout","_MONITORING_":"Monitoring","_MSG_CAM_NOT_ASS_":"Camera is Not Assigned to the System","_MSG_CAM_PROC_2_SET_":"Proceed to Cameras Settings to Assign One","_MSG_CAM_PROC_NOT_ASS_":"Camera is Not Assigned to the System Please Assign One","_MSG_SELITEMFROMMAP_":"Select Item From Map","_NAME_LABEL_":"Name\/Label","_NAME_MAP_":"Map Name","_NET_SETTINGS_":"Connections","_NEW_PASSWORD_":"New Password","_NO_PTZ_":"No PTZ Control","_NO_SENSORS_DEF_":"No Sensors Defined","_NO_UARTS_DEF_":"No UART Defined","_OK_":"Ok","_ONVIF_DESC_LOO_":"OnVif module allows you to discover and communicate with the network cameras which supports the ONVIF specifications on the same subnet.","_ONVIF_DESC_SHO_":"OnVif LAN Discovery Module","_ORIENTATION_":"Orientation","_OUTPUT_FRAME_SIZE_":"Output Frame Size","_PASSWORD_0_":"Password:","_PHONE_NUMBER_":"Phone Number","_Please_Wait_":"Please Wait","_PLS_CONFIRM_":"Please Confirm","_PLS_SEL_CAL_DATE_":"Please Select a Date from the Calendar from the right","_PLS_SEL_LEFT_ITEM_":"Please select item from the left to view more info.","_POINTER_":"[ptr]","_POSITION_":"Position","_PROF_SETTINGS_":"Profile Settings","_PROGRESS_":"Progress","_PROPERTIES_":"Properties","_PROTO_DEVICE_ID_":"Protocol ID","_PROV_CAC_":"Please Provide Camera Access Credentials.","_PTZ_TAB_":"PTZ Settings","_QERY_MSG_":"Question Message","_RANGE_":"Range","_READY_":"Ready","_READY_TO_UPLO_":"Ready to Upload","_REGULAR_":"Regular","_RELOAD_":"Reload","_REMOVE_CAMERA_":"Remove Camera","_REMOVE_SENSOR_":"Remove Sensor","_REP_PASSWORD_":"Repeat Password","_REPO_HISTORY_":"Reports\/History","_REPORT_STORAGE_":"Reports\/History Storage","_REQ_FAILURE_":"Failure","_RES_ETHERNET_DESC_":"Ethernet Network Adapter","_RES_EZ_UART_DESC_":"UART connected via Ethernet","_RES_HW_UART_DESC_":"UART connected to a Server Appliance","_RES_INFO_":"Resource Information","_RES_WAN_DESC_":"WAN Adapter (Broadband Internet)","_RES_WIFI_DESC_":"WiFi Network Adapter","_RESETSTATUS_":"Reset Status","_RESOURCES_":"Resources","_RIGHT_PIC_BOUND_":"Right Picture Boundary (pixels)","_RSET_CREDENTIALS_":"Reset Credentials","_RUS_DELETE_MODULE_":"Are you sure delete Module?","_SARE_SAVED_":"Settings Are Saved","_SAVE_":"Save","_SCREEN_RESIZE_":"Resize Screen","_SEC_SYSTEM_":"","_SELE_ANIMAGE_":"Select an image","_SELE_DBBACKUP_":"Restore Settings","_SENDTOSENS_":"Send to Sensor","_SENS_ACKS_":"Default Bypass Size","_SENS_ACKT_":"Default Bypass Shape","_SENS_APPLY_RES_":"Apply To Device and Reset","_SENS_AUTOR_ENA_":"Auto Reset Enabled","_SENS_AUTOR_INTER_":"Auto Reset Interleave","_SENS_AUTOR_TO_":"Auto Timeout","_SENS_BZSHIFT_":"Board Zero Shift","_SENS_DEL_FROTH_":"Delete Frozen Threshold","_SENS_DIS_FROTH_":"Disable Frozen Threshold","_SENS_DO_FULLR_":"Issue Sensor Full Reset","_SENS_DO_READALL_":"Read All Settings from Sensor","_SENS_DO_SAVEALL_":"Save All Settings to Sensor","_SENS_ENA_FROTH_":"Enable Frozen Threshold","_SENS_FFTH_":"Freeze First Threshold","_SENS_FIN_FROTH_":"Finish Frozen Threshold Study","_SENS_HTEMP_":"Heater Temperature","_SENS_JUMODI_":"Just Moving Distance","_SENS_JUMORA_":"Just Moving Radial","_SENS_JUMOTA_":"Just Moving Targets","_SENS_NOBLA_":"No Black Targets","_SENS_SCANSPEED_":"Scan Speed","_SENS_SFTH_":"Save First Threshold","_SENS_STATUS_":"Sensor's Status","_SENSOR_CONNECTION_":"Sensors","_SENSOR_MAX_RANGE_":"Max Range","_SENSOR_PLACE_":"Sensor Placeholder","_SERIAL_":"Serial","_SERV_CTLPANEL_SHRT_":"Server Control","_SERV_FACTORY_DESC_":"Restore factory settings, clear database and detection settings","_SERV_FACTORY_OP_":"Restore Factory Settings","_SERV_FACTORY_QM_":"All settings will be cleared The only admin user will be preserved.The Report History will be kept intact.","_SERV_HW_DET_DESC_":"Run a hardware discovery process to recognize recently connected devices such as a USB serial port or USB video.","_SERV_HW_DET_OP_":"Detect new Hardware","_SERV_HW_DET_QM_":"Are you sure to run a hardware discovery process.That will prevent detection events for few seconds.","_SERV_HW_DET_QT_":"Hardware Detection","_SERV_LOG_":"Server Log","_SERV_OSRESET_DESC_":"Restart the host operating system to apply any recent system configuration changes","_SERV_OSRESET_OP_":"Restart Host Computer","_SERV_RESTART_DESC_":"Restart the management application to initialize all components and apply any configuration changes.","_SERV_RESTART_OP_":"Restart Control Application","_SERV_RESTART_QM_":"Are you sure to restart control application?","_SERV_RESTART_QT_":"Restart Backend","_SERVER_MODULES_":"Modules","_SET_CHANGED_WOULD_SAVE_":"Some Settings are Changed They will be Unsaved!","_SET_CREDENTIALS_":"Set Credentials","_SETTING_SAVE_OK_":"All changes saved successfully","_SETTINGS_":"Settings","_SETTINGS_CHANGED_":"Settings Changed","_SITE_DEL_ALL_ABO_":"Are you sure to delete all devices and settings?","_SITE_PROP_LBL_":"Site Properties","_SITE_TITLE_":"Argus","_SIZE_":"Size","_SLV_LRF_DET_SET_":"Slave LRF Detection Settings","_SMM_ADD_ADDIT_":"Add Additional Equipment","_SMM_ADD_LSEN_":"Add Laser Sensor","_SMS_ONLY_":"SMS Only","_SND_FILES2_DEV__":"Send Files","_SOUND_":"Sound","_SOURCE_":"Source","_SSDP_DESC_LOO_":"SSDP announcer allows you announce on your LAN a Argus server","_SSDP_DESC_SHO_":"SSDP announcer daemon for UPnP\/DLNA","_SSL_CERT_INVALID__":"Provided Certificate is Invalid","_SSL_CERT_IP_NO_":"Provided Certificate Valid For Other IP Address","_SSL_CERT_VALID_INSTA":"The Certificate is Valid and will be applied intact (it will take few minutes). The System is going to reboot.","_SSL_NO_EXT_CERT_":"No x509 Extensions defined in Certificate","_SSL_NO_IP_CERT_":"No Ip Addresses in Certificate","_SSL_PROVIDE_CERT_":"Please Provide Valid Certificate for %IP% signed by Dr. Frucht Systems.You may request one at www.smartsecsystems.com","_SSL_VALID_BUT_":"The Certificate is Valid. However:","_STATIC_CONNECTION_":"Static Connection","_STATUS_":"Status","_STORE_DAYS_":"Keep Report History Days","_STORE_EMPTY_SPACE_":"Preserve Empty Space on System","_STREAMS_":"Streams","_STUDY_BACKGROUND_":"Study Background","_SUCCESS_":"Success","_SWU_DASHBOARD_":"Software Update Management","_SYS_ANCHORT_LBL_":"System Anchor","_SYS_DASHBOARD_":"System Overview","_SYS_GENERAL_":"General","_SYS_MAP_":"System Map","_SYS_SETTINGS_":"System Settings","_TARGET_FILTERS_":"Filters","_TARGETING_TAB_":"Alarm Settings","_TCP_CLIENT_":"TCP Client","_TCP_SERVER_":"TCP Server","_TILE_URL_MAP_":"Tiles URL Pattern","_TIME_":"Time","_TOOLBOX_":"Toolbox","_TOP_PIC_BOUND_":"Top Picture Boundary (pixels)","_TYPE_":"Type","_UART_PORT_":"UART Port","_UDP_CLIENT_":"UDP Client","_UDP_SERVER_":"UDP Server","_UNLOCK_USER_":"Unlock User","_UPDATE_LBL_":"Update","_UPDATING_DATA_":"Updating Data","_UPGRADE_MNGMNT_":"Upgrade\/Backup","_UPLO_DONE_":"Already Uploaded","_UPLO_IN_PROGRESS_":"Uploading","_UPLOA2MODULE_":"Upload to Module","_UPLOAD_PACKAGE_":"Upload Package","_UPPER_SENSOR_":"Upper Sensor","_USER_":"User","_USER_LOGIN_":"User Login","_USERS_MNGMT_":"Users Management","_VERSION_":"Version","_VIDEO_ENCODER_":"Video","_VIDEO_FILE_HAS_DOWNLOADED_":"Video File has been Downloaded","_WDEV_DET_WIZ0_":"Device Type","_WDEV_DET_WIZ1_":"Installation Type","_WDEV_DET_WIZ2_":"Environment","_WDEV_DET_WIZ3_":"Something Else","_WDEV_DET_WIZT_":"Sensor Setup Detection Wizard","_WDEV_MISTMATCH_":"Device Is Different","_WIDTH_":"Width","_WIDTH_CORRECT_":"Width Correction","_WORKING_MODE_":"Working Mode","_WRO_VAL_MSG_":"You Entered Wrong Values Please Correct and Continue.","_WRO_VALUES_":"Wrong Values","_ZL_MEDIA_DESC_LOO_":"Support multiple protocols (RTSP\/RTMP\/HLS\/HTTP-FLV\/WebSocket-FLV\/GB28181\/HTTP-TS\/WebSocket-TS\/HTTP-fMP4\/WebSocket-fMP4\/MP4\/WebRTC), support protocol interconversion.","_ZL_MEDIA_DESC_SHO_":"ZLMediaKit Server - Streaming Encoder","05b048d7242cb7b8b57cfa3b1d65ecea":"Gamma","0737d367234baa9eb0d7d93044d4cdcb":"AGC","0e6ebfbce4a1d380a356f7d0ca501db2":"Zoom Frame","1f9d92d5edaba165f934540a3525112a":"Tilt Frame","20e57f32ba12b9cd13ebe9ef5e32d949":"Invert","210ab9e731c9c36c2c38db15c28a8d1c":"Volume","3a5769e56038d8308b08f8741077d943":"Odd Field Offset","3b2d7435a9d67b3630988c398af85da5":"Sharpness","442348a3a2d4dc460bf2e86b1e97bd71":"Power Line","4cf296191801ec357d2aa0ad3a484cba":"Manual WB","5f458c0f2db08c33596b0e7a8dbc0e5b":"Manual Exp.","71a6b6f094346a8832df801c8428ea06":"Hue","885cd2552e1136cfd94ae863668e8942":"Even Field Offset","aa71a2ef3fb13c2642ea72645a698cb8":"Brightness","AUTO_DRAW":"Automatic Draw","b4e67baf7b29f6474d4ac44008dafed4":"BL Compensation","b914f4cdf61e27d144e5ceef61eec7a2":"Automute","bba4e31fa5d5b2fee356b87111a52aa3":"Horizontal Flip","c8fd07f040a8f2dc85f5b2d3804ea3db":"Contrast","cc0d5ee2cdb80bf82426e9def9f9bf7c":"Pan Frame","def9cbe59ce34853e7081f62b095e348":"Mute","ed063c64d46ede5916894e6ac2ab9ce1":"Auto WB","Error_Message":"Error Message","ETHERNET_PROP":"Ethernet","facdbb51cba54d1eccbdd8bd670e7b33":"Auto Exp.","fb520ff39848b91b70496ecf6c67f68e":"Compression Quality","fd71ed58ae07cc75900a5169e6f9c287":"Saturation","FILTER_AFP":"Authorised Persons Filter","FILTER_TRAIN":"Train Target Filter","FRAMEGRAB_PROP":"Analog Video","MOD_TYPE":"Module Type","MODE_ACCESS_POINT":"Access Point","MODE_DISABLED":"Disabled","MODE_ETHDYNAMIC":"Dynamic Address (DHCP)","MODE_ETHROUTER":"Static Address Router","MODE_ETHSTATIC":"Static Address","MODULE_DCBUSB":"USB Dry Contact Control Module","MODULE_EMB_VIDO":"Internal Video Encoder","MODULE_FLYHUNT":"FlyHunter Drone Control","MODULE_GPS":"GPS Time Sync Module","MODULE_KAFKA":"Kafka Data Proxy","MODULE_MODEM_MAN":"Modem Manager","MODULE_NETWORK":"Network Module [TBD]","MODULE_ONVIF_DIS":"OnVif Discovery","MODULE_SSDP":"Network Announcer","MODULE_ZLMEDIA":"ZLMedia Server","SENS_NAME":"Sensor's Name","SENS_RANGE":"Sensor Range","SENS_TYPE":"Sensor's Type","SERV_BLD_TAG":"Build Tag","SERV_NAME":"Server Name","SETIAL_TAG":"Serial Tag","SRV_STATUS_OFF":"Server is Offline","SRV_STATUS_ON":"Server is Online","SYS_MSG_DEVINV":"The Connected Device is Different from","SYS_SERVNAME":"Argus Server","UART_COM_BITS":"Bits","UART_COM_PARITY":"Parity","UART_COM_SBITS":"Stop Bits","UART_COM_SPEED":"Com Speed","UART_LINE_PROP":"UART","VIRTUALIP_PROP":"Virtual IP","VPN_TUN_PROP":"VPN Tunnel","WAN_LINE_PROP":"WAN Connection","WIFI_PROP":"WiFi","_EVT_MSG_TF_OM_DIS_":"[TF] Disabled by AUX Module","_EVT_MSG_TF_OM_TD_":"[TF] AUX Detects Train","_EVT_MSG_TF_OM_TG_":"[TF] AUX Train is Gone","_EVT_MSG_TF_OM_EXPIRED_":"[TF] AUX Status Expired","_SENS_DO_FULLDRAW_":"Request Full Draw","_REMOTE_SERVER_ADDRESS_":"Remote Server IPv4","_REMOTE_SERVER_PORT_":"Remote Server Port","_USE_REMOTE_SERVER_":"Use Remote Server","_SKIP_LOCAL_REPORTS_":"Skip Local Reports","_CAM_PTZ_MODE_":"PTZ Mode","_CAM_IR_ECO_":"IR Economode","_CAM_PRES_EDIT_":"Edit Presets","_CAM_PRES_EDITOR_":"Preset Editor","_CAM_PRES_SSELECT_":"Selected Sensor","_CAM_PRES_LOBACK_":"Load Background","_CAM_PRES_DELALL_":"Delete All Presets","_CAM_PRES_COUNT_":"Presets Count","_CAM_PRES_COLS_":"Presets Columns","_CAM_PRES_ROWS_":"Presets Rows","_CAM_PRES_IROFF_":"IR Off Preset","_CAM_PRES_IRON_":"IR ON Preset","_CAM_PRES_IRAUTO_":"IR Auto Preset","_CAM_PRES_IRWIPER_":"Wiper Preset","__SET__":"Set","_CAM_PRES_REMBG_":"Remove Sensor Draw","_CAM_PREF_ONLY_":"Only Targets from Bound Sensor","_SENS_BOCAM_":"Bind to Camera","_CHANGE_CREDENTIALS_":"Change Credentials","_CONNECTION_":"Connection","_SELD_MODEM_":"Selected Modem","_CALL_HU_DELAY_":"Call Hangup Delay (seconds)","__MODE__":"Mode","_AUTOMATIC_":"Automatic","_MULTI_LAYOUT_":"Multi Display Monitoring","_MULTYDIS_ENA_":"Multi Display Mode","_BACKUP_SERVER_ADDRESS_":"Backup Server IPv4","_BACKUP_SERVER_PORT_":"Backup Server Port","_EVT_MSG_TF_TD_EXPIRED_":"[UTF] Train is Gone","_EVT_MSG_TF_SUSP_EXPIRED_":"[TF] Suspicious Blocking End","_LBL_SCADA_":"SCADA","_CAM_FLIPMO_":"Image Flip Mode","_CAM_FLIPHO_":"Mirrored","_CAM_FLIPVE_":"Flip Vertically","_CAM_FLIPVEHO_":"Flip Vertical+Mirrored","_DEV_FILTERS_":"Filters","FILTER_APF":"Authorised Prsonel Filter","FILTER_BUBBLE":"Bubble Target Filter","FILTER_YOLO":"YoLo AI Video Filter","_EVT_MSG_TF_BUBBLE_CREATED_":"Bubble is Created","_EVT_MSG_TF_BUBBLE_POPPED_":"Bubble is Popped","_BUBBLE_ID_":"Bubble ID","_DEV_FRZ_BBL_BTN_":"Freeze","_DEV_DEL_BBL_BTN_":"Add/Delete","_EVT_MSG_TF_BUBBLE_BLOCK_T_":"Target Blocked by Temporary Bubble","_EVT_MSG_TF_BUBBLE_BLOCK_P_":"Target Blocked by Frozen Bubble","_MANUADD_ACAMERA_":"Manually Add Frame Grabber Device","_FAILURE_":"Failure","_BUBBLE_ANALYSIS_":"Bubble Analysis","_TARGET_COUNT_":"Target Count","MODULE_BVMC_REST":"BOSCH VMC REST","_MAS_LRF_DEV_SET_":"Live Device Conroll"} \ No newline at end of file diff --git a/lib/controller/getDashBoardItems.php b/lib/controller/getDashBoardItems.php index a331a77..23c4be8 100644 --- a/lib/controller/getDashBoardItems.php +++ b/lib/controller/getDashBoardItems.php @@ -683,9 +683,23 @@ _DATA_BOUNDARY; $OUT[]= $STA[4] . $DUMMY['log'] . $END; break; }; - case 5: + case 6:{ + $STA[0]="{ columnWidth: 1.0, stydle:'padding:10px 0 10px 10px', items:["; + //$STA[1]="{ columnWidth: .25, stylse:'padding:10px 0 10px 10px', items:["; + //$STA[2]="{ columnWidth: .75, stylse:'padding:10px 0 10px 10px', items:["; + $STA[1]="{ columnWidth: 1.0, stylse:'padding:10px 0 10px 10px', items:["; + $MH = 4; + $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)*{$MH}); initMapMonitoring();}} }"; + $DUMMY['log']="{xtype:'panel', id: 'lg_panel', title: '{$Labels->GetLabel('_EVENT_LOG_')}', frame: true, border: true, draggable: false, items:[{$LOGIO}] }"; + + $OUT[]= $STA[0] . $DUMMY['map'] . $END; + //$OUT[]= $STA[1] . $DUMMY['sensor'] . $END; + $OUT[]= $STA[1] . $DUMMY['log'] . $END; + break; + }; default: }; + //$OUT[0]='{columnWidth: 1, items:{html:"Sys Layout:'.$SP['app_layout'].'"}}'; $Data = '[' . implode( ',' , $OUT ) . ']'; } else { $Data = '[{columnWidth: 1, items:{html:"NO SYSTEM PROPS"}} ]'; diff --git a/lib/controller/getDeviceStatus.php b/lib/controller/getDeviceStatus.php new file mode 100644 index 0000000..7971d56 --- /dev/null +++ b/lib/controller/getDeviceStatus.php @@ -0,0 +1,326 @@ +Data['id'] ); + $ACCESS = intval( $CUser->Data['access'] ); + if( $UID > 1 ){ + $SiteID = intval( $_POST['SITE'] ); + $LastNID = intval( $_POST['LNID'] ); + $LastTS = intval( $_POST['SPID'] ); + $LLID = intval( $_POST['LSID'] ); + $DEV_ID = intval( $_POST['DEVID'] ); + $Data = array(); + $ServerWasHuped = false; + $ServerIsOnLine = true; + $Data['status'] = 'OK'; + $Data['CTS'] = time(); + $Data['nodes'] = array(); + $QS = "SELECT * FROM nodes WHERE `id`={$DEV_ID}"; + $result = $DATABASE->Query( $QS, false ); + if( count( $result ) > 0 ){ + + foreach( $result as $R ){ + $CN = array(); + $CN['id'] = $R['id']; + $CN['type'] = intval($R['type']); + $CN['status'] = intval($R['online']); + if( $CN['status'] || 1 ){ + switch( $R['type'] ){ + case ARGUS_SERVER:{ + /* + $QS="SELECT * FROM `servers` WHERE `id`={$R['aux_id']}"; + $zult = $DATABASE->Query( $QS ); + if( $zult[0]['online'] == 1 ){ + $STS = intval( $zult[0]['ts'] ); + $CN['CTS'] = $Data['CTS']; + $CN['STS'] = $STS; + if( ( $CN['CTS'] - $STS ) > 1 ){ //3 seconds offline + $ServerIsOnLine = false; + $CN['status'] = 0; + } else { + $CN['status'] = 1; + }; + } else { + $ServerIsOnLine = false; + $CN['status'] = 0; + }; + $CN['cpu1'] = intval( $zult[0]['stat_cpu1'] * 2.5 ); + $CN['cpu5'] = intval( $zult[0]['stat_cpu5'] ); + $CN['cpu15'] = intval( $zult[0]['stat_cpu15'] * 2.5 ); + $CN['mem'] = intval( $zult[0]['stat_mem']*100 ); + $CN['disk']= intval( $zult[0]['stat_disk']*100 ); + */ + break; + }; + case ARGUS_ALS_SENSOR: + case ARGUS_LFS_SENSOR: + case ARGUS_PLS_200_SENSOR: + case ARGUS_PLS_360_SENSOR: + case ARGUS_NET_PLS_200:{ + $QS = "SELECT `data_status`,`max_range`,`x`,`y`,`z` FROM `lrf_sensors` WHERE `id`={$R['aux_id']}"; + $JJ = $DATABASE->Query( $QS ); + $CS = $JJ[0]; + $CN['status'] = $CS['data_status']; + $CN['masks_status'] = 0; + $CN['masks_exist'] = 0; + $QS = "SELECT * FROM `lrf_masks` WHERE `sensor_id`={$R['aux_id']}"; + $JJ = $DATABASE->Query( $QS ); + if( count( $JJ ) ) foreach( $JJ as $J ) { + $CN['masks_exist'] |= (1< 0 ){ + $QS = "SELECT `id` FROM `lrf_draw` WHERE `node_id`={$R['id']} AND `ts` > {$LastTS}"; + $R = $DATABASE->Query( $QS ); + if( count( $R ) ){ + $CN['reload_draw'] = true; + } else { + $CN['reload_draw'] = false; + }; + } else { + $CN['reload_draw'] = true; + }; + $SENSORRANGE = floatval( $CS['max_range'] ); + //Check Frozen Bubbles in any state of sensor + $QS = "SELECT `CENTER_X`,`CENTER_Y`, `BLOCK_COUNS` FROM `target_bubbles`"; + $UJ = $DATABASE->Query( $QS ); + $CN['bubbles'] = array(); + if( count( $UJ ) ){ + $SX = floatval( $CS['x'] ); + $SY = floatval( $CS['y'] ); + foreach( $UJ as $FB ){ + $BC = intval( $FB['BLOCK_COUNS'] ); + $C_X = floatval( $FB['CENTER_X'] ) - $SX; + $C_Y = floatval( $FB['CENTER_Y'] ) - $SY; + $DFC = sqrt( pow( $C_X, 2 ) + pow( $C_Y, 2 ) ); + if( $DFC < $SENSORRANGE || 1 ){ + $azimuth = rad2deg( atan2( $C_Y , $C_X ) ); + if( $azimuth < 0 ) $azimuth += 360.0; + $CT = array(); + $CT['digital'] = intval( 2048.0 * $DFC / $SENSORRANGE ); + $CT['az'] = $azimuth; + if( $BC < 3 ){ + $CT['color'] = '0F0FFF'; + $CT['stroke'] = '080880'; + } else { + $CT['color'] = 'FFFFFF'; + $CT['stroke'] = '808080'; + }; + $CN['bubbles'][] = $CT; + }; + }; + }; + if( ( $CN['status'] == 5 ) || 1 ){ + // check Targets + $CN['targets'] = array(); + $QS="SELECT * FROM events WHERE ( node_id={$CN['id']} OR node_id=1 ) AND ( evt_type=10 OR evt_type=11 OR evt_type=12 OR evt_type=13 OR evt_type=14 OR evt_type=52 OR evt_type=53 OR evt_type=54 OR evt_type=39 OR evt_type=40 OR evt_type=41 OR evt_type=42 OR evt_type=43 OR evt_type=44 OR evt_type=45 OR evt_type=46 OR evt_type=47 OR evt_type=48 OR evt_type=49 OR evt_type=86 OR evt_type=87 ) ORDER BY ts DESC, ts_ms DESC LIMIT 32"; + //$QS="SELECT * FROM events_cloud WHERE node_id={$CN['id']} AND ( evt_type=13 OR evt_type=14) AND (UNIX_TIMESTAMP(NOW())-ts)<60 ORDER BY id DESC LIMIT 32"; + //$QS="SELECT * FROM events_cloud WHERE node_id={$CN['id']} AND ( evt_type=13 OR evt_type=14) ORDER BY ts, ts_ms DESC LIMIT 32"; + //echo $QS . "\n\n"; + $zult = $ZIZI->Query( $QS ); + if( count( $zult ) ){ + $CT = array(); + foreach( $zult as $Z ){ + $TT = intval( $Z['evt_type'] ); + if( ( $TT == 52 ) || ( $TT == 53 ) || ( $TT == 54 ) ) break; + //if( !( $TT == 10 || $TT == 11 ||$TT == 12 ||$TT == 13 || $TT == 14 || $TT == 36 ) ) continue; + //$CT['type'] = $TT; + if( $TT == 85 ){ + $CT['digital'] = intval( 2048.0 * floatval( $Z['range'] ) / $SENSORRANGE ); + } else { + $CT['digital'] = intval( $Z['range_digital']); + }; + if( $SYS['local_binding'] == 0 ){ + $CT['lat'] = floatval( $Z['lat'] ); + $CT['lon'] = floatval( $Z['lon'] ); + } else { + $CT['lat'] = floatval( $SYS['anchor_lat'] ) + floatval( $Z['lat'] ); + $CT['lon'] = floatval( $SYS['anchor_lon'] ) + floatval( $Z['lon'] ); + }; + $CT['az'] = floatval( $Z['azimuth'] ); + if( $TT > 38 ){ + if( $TT == 86 || $TT == 87 ){ + if( $TT == 86 ){ + $CT['color'] = '00FFFF'; + $CT['stroke'] = '008080'; + } else { + $CT['color'] = 'FFFF00'; + $CT['stroke'] = '808000'; + }; + } else { + $CT['color'] = 'ff00ff'; + $CT['stroke'] = '800080'; + }; + } else { + $CT['color'] = 'ff0000'; + $CT['stroke'] = '800000'; + }; + $CN['targets'][] = $CT; + }; + //if( count( $CN['targets'] ) ) $CN['status'] = 5; + }; + /* + // check Filter + $CN['pops'] = array(); + $QS="SELECT * FROM events WHERE ( node_id={$CN['id']} OR node_id=1 ) AND ( evt_type=85 ) ORDER BY ts DESC, ts_ms DESC LIMIT 32"; + $zult = $ZIZI->Query( $QS ); + if( count( $zult ) ){ + $CT = array(); + foreach( $zult as $Z ){ + $TT = intval( $Z['evt_type'] ); + if( ( $TT == 52 ) || ( $TT == 53 ) || ( $TT == 54 ) ) break; + //if( !( $TT == 10 || $TT == 11 ||$TT == 12 ||$TT == 13 || $TT == 14 || $TT == 36 ) ) continue; + //$CT['type'] = $TT; + $CT['digital'] = intval( $Z['range_digital']); + if( $SYS['local_binding'] == 0 ){ + $CT['lat'] = floatval( $Z['lat'] ); + $CT['lon'] = floatval( $Z['lon'] ); + } else { + $CT['lat'] = floatval( $SYS['anchor_lat'] ) + floatval( $Z['lat'] ); + $CT['lon'] = floatval( $SYS['anchor_lon'] ) + floatval( $Z['lon'] ); + }; + $CT['az'] = floatval( $Z['azimuth'] ); + if( $TT > 38 ){ + $CT['color'] = 'ff00ff'; + $CT['stroke'] = '800080'; + } else { + $CT['color'] = 'ff0000'; + $CT['stroke'] = '800000'; + }; + $CN['pops'][] = $CT; + }; + //if( count( $CN['targets'] ) ) $CN['status'] = 5; + }; + */ + }; + break; + }; + case ARGUS_3D_SENSOR:{ + $QS = "SELECT `data_status` FROM `lrf_sensors` WHERE `id`={$R['aux_id']}"; + $JJ = $DATABASE->Query( $QS ); + $CS = $JJ[0]; + $CN['status'] = intval($CS['data_status']); + $CN['masks_status'] = 0; + $CN['masks_exist'] = 0; + // check draw + if( $LastTS > 0 ){ + $QS = "SELECT `id` FROM `lrf_draw` WHERE `node_id`={$R['id']} AND `ts` > {$LastTS}"; + $R = $DATABASE->Query( $QS ); + if( count( $R ) ){ + $CN['reload_draw'] = true; + } else { + $CN['reload_draw'] = false; + }; + } else { + $CN['reload_draw'] = true; + }; //663552 + $CN['master_present'] = false; + $CN['slave_present'] = false; + $CN['stat_present'] = false; + if( $CN['status'] ){ + $CN['master_present'] = true; + //$QS = "SELECT * FROM `lrf_runtime_status` WHERE `lrf_id`={$R['aux_id']}"; + //$Stat = $DATABASE->Query( $QS ); + //if( count( $Stat ) ){ + // $CS = $Stat[0]; + // $MP = array(); + // $GP = array(); + // $WP = array(); + // for( $idx = 0; $idx < 8; $idx++ ){ + // $MP[] = round( floatval( $CS['master_mp_' . $idx ] ) / 663552.0, 2 ); + // $GP[] = round( floatval( $CS['master_gp_' . $idx ] ) / 663552.0, 2 ); + // $WP[] = round( floatval( $CS['master_wp_' . $idx ] ) / 663552.0, 2 ); + // }; + // for( $idx = 0; $idx < 8; $idx++ ){ + // $MP[] = round( floatval( $CS['slave_mp_' . $idx ] ) / 663552.0, 2 ); + // $GP[] = round( floatval( $CS['slave_gp_' . $idx ] ) / 663552.0, 2 ); + // $WP[] = round( floatval( $CS['slave_wp_' . $idx ] ) / 663552.0, 2 ); + // }; + // $CN['runtime']['gp'] = $GP; + // $CN['runtime']['mp'] = $MP; + // $CN['runtime']['wp'] = $WP; + // $CN['stat_present'] = true; + // if( $CS['twinc']!= 0 ) $CN['slave_present'] = true; + //}; + + // check Targets + $CN['targets'] = array(); + $QS="SELECT * FROM events WHERE ( node_id={$CN['id']} OR node_id=1 ) AND ( evt_type=11 OR evt_type=12 OR evt_type=8 OR evt_type=52 OR evt_type=53 OR evt_type=54 ) ORDER BY ts DESC, ts_ms DESC LIMIT 32"; + //$QS="SELECT * FROM events_cloud WHERE node_id={$CN['id']} AND ( evt_type=11 OR evt_type=14) ORDER BY id DESC LIMIT 32"; + //$QS="SELECT * FROM events_cloud WHERE node_id={$CN['id']} AND ( evt_type=13 OR evt_type=14) AND (UNIX_TIMESTAMP(NOW())-ts)<60 ORDER BY id DESC LIMIT 32"; + //$QS="SELECT * FROM events_cloud WHERE node_id={$CN['id']} AND ( evt_type=13 OR evt_type=14) ORDER BY ts, ts_ms DESC LIMIT 32"; + //echo $QS . "\n\n"; + $zult = $ZIZI->Query( $QS ); + $colors = array( 0x00f6ff, 0x6c00ff, 0xff5400, 0x00ff24, 0x00aeff, 0xbaff00, 0xff0000, 0x0024ff ); + $CN['debug']=count( $zult ); + if( count( $zult ) ){ + $CT = array(); + foreach( $zult as $Z ){ + $TT = intval( $Z['evt_type'] ); + if( ( $TT == 8 ) || ( $TT == 52 ) || ( $TT == 53 ) || ( $TT == 54 ) ){ + //$CN['debug2']='break by evt!'; + break; + } + $CN['status'] = 5; // Alarmed + $CT['range'] = floatval($Z['range']); + $CT['digital'] = intval( $Z['range_digital']); + if( $SYS['local_binding'] == 0 ){ + $CT['lat'] = floatval( $Z['lat'] ); + $CT['lon'] = floatval( $Z['lon'] ); + } else { + $CT['lat'] = floatval( $SYS['anchor_lat'] ) + floatval( $Z['lat'] ); + $CT['lon'] = floatval( $SYS['anchor_lon'] ) + floatval( $Z['lon'] ); + }; + $CT['az'] = floatval($Z['azimuth']); + $CT['el'] = floatval($Z['elevation']); + if( isset( $Z['lrf_id'] ) ){ + $CT['color'] = $colors[intval($Z['lrf_id'])]; + } else { + $CT['color'] = 0xff0000; + }; + $CN['targets'][] = $CT; + }; + }; + }; + break; + }; + case ARGUS_ANALOG_STATIC_CAMERA: + case ARGUS_ANALOG_PTZ_CAMERA: + case ARGUS_IP_STATIC_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 ); + if( count( $SR ) ) { + $ST = $SR[0]; + if( $ST['valid'] == 1 ){ + $CN['valid'] = true; + $QS="SELECT * FROM `module_eve` WHERE `id`=1"; + $S=$DATABASE->Query( $QS ); + //$CN['src'] = 'http://' . $_SERVER['SERVER_ADDR'].':' . $S[0]['web_port'] .'/stream?id='. $R['aux_parameter']; + if( $SSL_INSTALLLED ){ + $CN['src'] = 'https://' . $_SERVER['SERVER_ADDR'].'/video_feed/stream?id='. $R['aux_parameter']; + } else { + $CN['src'] = 'http://' . $_SERVER['SERVER_ADDR'].'/video_feed/stream?id='. $R['aux_parameter']; + //$CN['src'] = 'http://' . $_SERVER['SERVER_ADDR'].'/video_feed/preview?id='. $R['aux_parameter']; + }; + break; + }; + }; + }; + $CN['valid'] = false; + $CN['src'] = "/style/assets/no-signal.png"; + break; + }; + }; + }; + $Data['nodes'][] = $CN; + }; + }; + } else { + $Data['status']='LOGOUT'; + }; + echo json_encode( $Data ); +?> \ No newline at end of file diff --git a/lib/controller/getHistoryEvents.php b/lib/controller/getHistoryEvents.php index 1db26fe..2656e91 100644 --- a/lib/controller/getHistoryEvents.php +++ b/lib/controller/getHistoryEvents.php @@ -20,6 +20,7 @@ //$LREC = array_reverse( $ZIZI->Query( $QS ) ); $LREC = $ZIZI->Query( $QS ); $Data['log'] = array(); + //date_default_timezone_set('America/New_York'); foreach( $LREC as $REC ){ $CR['id'] = intval( $REC['id'] ); $CR['node_id'] = intval( $REC['node_id'] ); diff --git a/lib/controller/getReportLayout.php b/lib/controller/getReportLayout.php index 5cdf9ea..77d6dcb 100644 --- a/lib/controller/getReportLayout.php +++ b/lib/controller/getReportLayout.php @@ -136,7 +136,23 @@ _DATA_BOUNDARY; $STA = array(); $END="]}"; $OUT = array(); + //$OUT[] = "{ columnWidth: 1.0, stylse:'padding:10px 0 10px 10px', items:[{html:'App Type:{$SP['type']}'}]}"; switch( $SP['type'] ){ + case 0:{ + $STA[0]="{ columnWidth: 1.0, stydle:'padding:10px 0 10px 10px', items:["; + //$STA[1]="{ columnWidth: .25, stylse:'padding:10px 0 10px 10px', items:["; + //$STA[2]="{ columnWidth: .75, stylse:'padding:10px 0 10px 10px', items:["; + $STA[1]="{ columnWidth: 1.0, stylse:'padding:10px 0 10px 10px', items:["; + $MH = 4; + $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)*{$MH}); initMapMonitoring();}} }"; + $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( 'report_map' ); }}], items:[{$MAPIO}],listeners:{ afterrender: function(p){ var W=p.getWidth(); p.setHeight( 32+(W/16)*4);}} }"; + $DUMMY['log']="{xtype:'panel', id: 'lg_panel', title: '{$Labels->GetLabel('_EVENT_LOG_')}', frame: true, border: true, draggable: false, items:[{$LOGIO}] }"; + + $OUT[]= $STA[0] . $DUMMY['map'] . $END; + //$OUT[]= $STA[1] . $DUMMY['sensor'] . $END; + $OUT[]= $STA[1] . $DUMMY['log'] . $END; + break; + }; case 1:{ //Metro $STA[0]="{ columnWidth: .25, stylse:'padding:10px 0 10px 10px', items:["; @@ -362,6 +378,20 @@ _DATA_BOUNDARY; $OUT[]= $STA[4] . $DUMMY['log'] . $END; break; }; + case 6:{ + $STA[0]="{ columnWidth: 1.0, stydle:'padding:10px 0 10px 10px', items:["; + //$STA[1]="{ columnWidth: .25, stylse:'padding:10px 0 10px 10px', items:["; + //$STA[2]="{ columnWidth: .75, stylse:'padding:10px 0 10px 10px', items:["; + $STA[1]="{ columnWidth: 1.0, stylse:'padding:10px 0 10px 10px', items:["; + $MH = 4; + $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)*{$MH}); initMapMonitoring();}} }"; + $DUMMY['log']="{xtype:'panel', id: 'lg_panel', title: '{$Labels->GetLabel('_EVENT_LOG_')}', frame: true, border: true, draggable: false, items:[{$LOGIO}] }"; + + $OUT[]= $STA[0] . $DUMMY['map'] . $END; + //$OUT[]= $STA[1] . $DUMMY['sensor'] . $END; + $OUT[]= $STA[1] . $DUMMY['log'] . $END; + break; + }; default:{ $STA[0]="{ columnWidth: .5, stylse:'padding:10px 0 10px 10px', items:["; $STA[1]="{ columnWidth: .5, stylse:'padding:10px 0 10px 10px', items:["; diff --git a/lib/controller/getSensorDetectionEditor.php b/lib/controller/getSensorDetectionEditor.php index 841b972..ff39355 100644 --- a/lib/controller/getSensorDetectionEditor.php +++ b/lib/controller/getSensorDetectionEditor.php @@ -1,6 +1,20 @@ GetLabel('_TOOLBOX_') , $TPL ); + $TPL = str_replace('%%%LABEL%%%CLEALARM%%%', $Labels->GetLabel('_CLEAR_ALARM_') , $TPL ); + $TPL = str_replace('%%%LABEL%%%DRABACKGROUND%%%', $Labels->GetLabel('_DRAW_BACKGROUND_') , $TPL ); + $TPL = str_replace('%%%LABEL%%%STUBACKGROUND%%%', $Labels->GetLabel('_STUDY_BACKGROUND_') , $TPL ); + $TPL = str_replace('%%%LABEL%%%MASKEDITOR%%%', $Labels->GetLabel('_MASK_EDITOR_') , $TPL ); + $TPL = str_replace('%%%LABEL%%%MASKMNGR%%%', $Labels->GetLabel('_MASK_MANAGER_') , $TPL ); + $TPL = str_replace('%%%LABEL%%%ACKNOLAGE%%%', $Labels->GetLabel('_DEV_ACK_BTN_') , $TPL ); + $TPL = str_replace('%%%LABEL%%%FREZBUBLE%%%', $Labels->GetLabel('_DEV_FRZ_BBL_BTN_') , $TPL ); + $TPL = str_replace('%%%LABEL%%%DELBUBLE%%%', $Labels->GetLabel('_DEV_DEL_BBL_BTN_') , $TPL ); + return $TPL; + }; + if( $CUser->Data['id'] > 1 ){ $SI = 0; $SOK = false; @@ -8,7 +22,7 @@ if( isset( $_POST['SEN'] ) ) $SI = intval( $_POST['SEN'] ); if( $SI ){ $FOK = true; - $QS = "SELECT * FROM `lrf_sensors` WHERE `id`={$SI}"; + $QS = "SELECT `ls`.*, `no`.`id` as `node_id`, `no`.`name` FROM `lrf_sensors` `ls` LEFT JOIN `nodes` `no` ON ( `no`.`type`=`ls`.`type` AND `no`.`aux_id` = `ls`.`id` ) WHERE `ls`.`id`={$SI}"; $JJR = $DATABASE->Query( $QS, false ); $DUDU = false; if( count( $JJR ) ){ @@ -59,7 +73,46 @@ _DATA_BOUNDARY; labelWidth: 150, labelAlign: 'right', layout: 'form', - height: PanelH-42, + height: PanelH-10, + bbar:[{ + text: 'Apply Settings', + handler: function(){ + var moder = Ext.getCmp('m_order').getValue(); + var moset = Ext.getCmp('m_offset').getValue(); + var model = Ext.getCmp('m_delta').getValue(); + var mofli = Ext.getCmp('m_flip').getValue(); + var mowid = Ext.getCmp('m_width').getValue(); + var mosst = Ext.getCmp('m_sst').getValue(); + var mosun = Ext.getCmp('m_sun').getValue(); + %%%SLAVE_VARS%%% + Ext.Ajax.request({ + url: '/lib/controller/doSensorOperation.php', + params: { + UID: {$UserID}, + SID: '{$Session}', + SNID: '{$SI}', + OPID: 19, + MOFF: moset, + MORD: moder, + MDEL: model, + MFLI: mofli, + MWIZ: mowid, + MSST: mosst, + MSUN: mosun + %%%SLAVE_DEFS%%% + }, + success: function( response, opts ){ + Ext.Msg.show({ + title: '{$Labels->GetLabel('_INFO_')}', + msg: '{$Labels->GetLabel('_SARE_SAVED_')}', + buttons: Ext.Msg.OK, + icon: Ext.MessageBox.INFO + }); + }, + failure: failureAJAXFunction + }); + } + }], items:[{ xtype: 'numberfield', id: 's_order', @@ -117,52 +170,33 @@ _DATA_BOUNDARY; SSST: sosst, SSUN: sosun _DATA_BOUNDARY; + + $DEV_TAB='{ html: " DEV PL" }'; + $TFN = 'settings/node_' . $DD['type'] . '.js'; + if( file_exists( $TFN )){ + $DEV_TAB = file_get_contents( $TFN ); + $DEV_TAB = inject_labels( $DEV_TAB ); + $DEV_TAB = str_replace('%%%NODEID%%%', ''.$DD['node_id'] , $DEV_TAB ); + $DEV_TAB = str_replace('%%%NODENAME%%%', ''.html_entity_decode( $DD['name'] ) , $DEV_TAB ); + $DEV_TAB = str_replace('%%%USERID%%%', $UserID, $DEV_TAB ); + $DEV_TAB = str_replace('%%%SESSION%%%', $Session, $DEV_TAB ); + //$DEV_TAB = str_replace('%%%APPTYPE%%%', $SP['type'], $DEV_TAB ); + $DEV_TAB = str_replace('%%%APPTYPE%%%', 0, $DEV_TAB ); + }; $TPL=<<<_DATA_BOUNDARY { xtype: 'tabpanel', activeTab: 0, frame: true, - border: true, - bbar:[{ - text: 'Apply Settings', - handler: function(){ - var moder = Ext.getCmp('m_order').getValue(); - var moset = Ext.getCmp('m_offset').getValue(); - var model = Ext.getCmp('m_delta').getValue(); - var mofli = Ext.getCmp('m_flip').getValue(); - var mowid = Ext.getCmp('m_width').getValue(); - var mosst = Ext.getCmp('m_sst').getValue(); - var mosun = Ext.getCmp('m_sun').getValue(); - %%%SLAVE_VARS%%% - Ext.Ajax.request({ - url: '/lib/controller/doSensorOperation.php', - params: { - UID: {$UserID}, - SID: '{$Session}', - SNID: '{$SI}', - OPID: 19, - MOFF: moset, - MORD: moder, - MDEL: model, - MFLI: mofli, - MWIZ: mowid, - MSST: mosst, - MSUN: mosun - %%%SLAVE_DEFS%%% - }, - success: function( response, opts ){ - Ext.Msg.show({ - title: '{$Labels->GetLabel('_INFO_')}', - msg: '{$Labels->GetLabel('_SARE_SAVED_')}', - buttons: Ext.Msg.OK, - icon: Ext.MessageBox.INFO - }); - }, - failure: failureAJAXFunction - }); - } - }], + border: false, items:[{ + xtype: 'panel', + id: 'up_sse_panel', + border: false, + title: '{$Labels->GetLabel('_MAS_LRF_DEV_SET_')}', + height: PanelH-10, + items: [{$DEV_TAB}] + },{ xtype: 'panel', id: 'up_se_popanel', border: true, @@ -171,7 +205,7 @@ _DATA_BOUNDARY; labelWidth: 150, labelAlign: 'right', layout: 'form', - height: PanelH-42, + height: PanelH-10, items:[{ xtype: 'numberfield', id: 'm_order', @@ -207,10 +241,49 @@ _DATA_BOUNDARY; id: 'm_sun', fieldLabel: 'Sun', value: '{$SD['sun']}' + }], + bbar:[{ + text: 'Apply Settings', + handler: function(){ + var moder = Ext.getCmp('m_order').getValue(); + var moset = Ext.getCmp('m_offset').getValue(); + var model = Ext.getCmp('m_delta').getValue(); + var mofli = Ext.getCmp('m_flip').getValue(); + var mowid = Ext.getCmp('m_width').getValue(); + var mosst = Ext.getCmp('m_sst').getValue(); + var mosun = Ext.getCmp('m_sun').getValue(); + %%%SLAVE_VARS%%% + Ext.Ajax.request({ + url: '/lib/controller/doSensorOperation.php', + params: { + UID: {$UserID}, + SID: '{$Session}', + SNID: '{$SI}', + OPID: 19, + MOFF: moset, + MORD: moder, + MDEL: model, + MFLI: mofli, + MWIZ: mowid, + MSST: mosst, + MSUN: mosun + %%%SLAVE_DEFS%%% + }, + success: function( response, opts ){ + Ext.Msg.show({ + title: '{$Labels->GetLabel('_INFO_')}', + msg: '{$Labels->GetLabel('_SARE_SAVED_')}', + buttons: Ext.Msg.OK, + icon: Ext.MessageBox.INFO + }); + }, + failure: failureAJAXFunction + }); + } }] }%%%SLAVE_LRF_DET%%%,{ title: '{$Labels->GetLabel('_DET_SET_WIDTH_T_')}', - height: PanelH-42, + height: PanelH-10, tbar:[{ text: '{$Labels->GetLabel('_EDIT_')}', id: 'edit_btn_width_table', @@ -218,6 +291,45 @@ _DATA_BOUNDARY; handler: editWidthTableRecord }], layout:'fit', + bbar:[{ + text: 'Apply Settings', + handler: function(){ + var moder = Ext.getCmp('m_order').getValue(); + var moset = Ext.getCmp('m_offset').getValue(); + var model = Ext.getCmp('m_delta').getValue(); + var mofli = Ext.getCmp('m_flip').getValue(); + var mowid = Ext.getCmp('m_width').getValue(); + var mosst = Ext.getCmp('m_sst').getValue(); + var mosun = Ext.getCmp('m_sun').getValue(); + %%%SLAVE_VARS%%% + Ext.Ajax.request({ + url: '/lib/controller/doSensorOperation.php', + params: { + UID: {$UserID}, + SID: '{$Session}', + SNID: '{$SI}', + OPID: 19, + MOFF: moset, + MORD: moder, + MDEL: model, + MFLI: mofli, + MWIZ: mowid, + MSST: mosst, + MSUN: mosun + %%%SLAVE_DEFS%%% + }, + success: function( response, opts ){ + Ext.Msg.show({ + title: '{$Labels->GetLabel('_INFO_')}', + msg: '{$Labels->GetLabel('_SARE_SAVED_')}', + buttons: Ext.Msg.OK, + icon: Ext.MessageBox.INFO + }); + }, + failure: failureAJAXFunction + }); + } + }], items:{ xtype: 'grid', border: false, @@ -241,10 +353,49 @@ _DATA_BOUNDARY; },{ title: '{$Labels->GetLabel('_DC_CONTROL_SET_')}', - height: PanelH-42, + height: PanelH-10, labelWidth: 200, labelAlign: 'right', layout: 'form', + bbar:[{ + text: 'Apply Settings', + handler: function(){ + var moder = Ext.getCmp('m_order').getValue(); + var moset = Ext.getCmp('m_offset').getValue(); + var model = Ext.getCmp('m_delta').getValue(); + var mofli = Ext.getCmp('m_flip').getValue(); + var mowid = Ext.getCmp('m_width').getValue(); + var mosst = Ext.getCmp('m_sst').getValue(); + var mosun = Ext.getCmp('m_sun').getValue(); + %%%SLAVE_VARS%%% + Ext.Ajax.request({ + url: '/lib/controller/doSensorOperation.php', + params: { + UID: {$UserID}, + SID: '{$Session}', + SNID: '{$SI}', + OPID: 19, + MOFF: moset, + MORD: moder, + MDEL: model, + MFLI: mofli, + MWIZ: mowid, + MSST: mosst, + MSUN: mosun + %%%SLAVE_DEFS%%% + }, + success: function( response, opts ){ + Ext.Msg.show({ + title: '{$Labels->GetLabel('_INFO_')}', + msg: '{$Labels->GetLabel('_SARE_SAVED_')}', + buttons: Ext.Msg.OK, + icon: Ext.MessageBox.INFO + }); + }, + failure: failureAJAXFunction + }); + } + }], items:[{ xtype: 'checkbox', id: 'dc_ena', diff --git a/lib/controller/rest_gw.php b/lib/controller/rest_gw.php new file mode 100644 index 0000000..7e8a8dc --- /dev/null +++ b/lib/controller/rest_gw.php @@ -0,0 +1,62 @@ +prepare("SELECT id, name, email FROM users WHERE id = ?"); + $stmt->execute([$_GET['id']]); + $user = $stmt->fetch(); + + if ($user) { + echo json_encode($user); + } else { + http_response_code(404); + echo json_encode(["message" => "User not found."]); + } + } else { + // Retrieve all users + $stmt = $pdo->query("SELECT id, name, email FROM users"); + $users = $stmt->fetchAll(); + echo json_encode($users); + } + break; + + case 'POST': + // Retrieve raw JSON data from the request body + $input = json_decode(file_get_contents("php://input"), true); + + /*if (!empty($input['name']) && !empty($input['email'])) { + $stmt = $pdo->prepare("INSERT INTO users (name, email) VALUES (?, ?)"); + $stmt->execute([$input['name'], $input['email']]); + + http_response_code(201); // Created + echo json_encode([ + "message" => "User created successfully.", + "id" => $pdo->lastInsertId() + ]); + } else { + */ + http_response_code(400); // Bad Request + echo json_encode(["message" => "Incomplete data. Name and email are required.", "INPUT" => $input ]); + //} + break; + + default: + http_response_code(405); // Method Not Allowed + echo json_encode(["message" => "HTTP method not supported."]); + break; +} + + +?> \ No newline at end of file diff --git a/lib/controller/settings/node_0.js b/lib/controller/settings/node_0.js new file mode 100644 index 0000000..3ef5559 --- /dev/null +++ b/lib/controller/settings/node_0.js @@ -0,0 +1,28 @@ +{ + id: 'db_node_%%%NODEID%%%', + tools: [{ + id:'gear', + handler: function(){ + showServerToolBox(%%%NODEID%%%); + } + }], + frame: true, + width: 258, + height: 240, + border: false, + title: '%%%SYSSERVERNAME%%%', + items: [{ + xtype: 'panel', + html: '

%%%SERVERSTATUS%%%

' + },{ + xtype: 'panel', + html: '
0CPU0MEM0DISK
' + },{ + xtype: 'panel', + height: 80, + frame: true, + border: false, + autoScroll: true, + items: %%%MODULES%%% + }] +} \ No newline at end of file diff --git a/lib/controller/settings/node_1.js b/lib/controller/settings/node_1.js new file mode 100644 index 0000000..e2b6e3b --- /dev/null +++ b/lib/controller/settings/node_1.js @@ -0,0 +1,374 @@ +{ + id: 'db_node_%%%NODEID%%%', + title: '%%%NODENAME%%%', + draggable: false, + collapsible: false, + tools: [{ + id:'toggle', + handler: function( a, b, p ){ + fsDrawID = %%%NODEID%%%; + fullScreen( 'div_radar_%%%NODEID%%%' ); + var el = document.getElementById('draw_svg_'+fsDrawID ); + var nW = Math.floor( ( window.screen.height/window.screen.width ) * 100 ); + el.removeAttribute("width"); + el.setAttribute( "width", nW+'%' ); + } + }], + listeners:{ + afterrender: function(p){ + masks_statuses[%%%NODEID%%%] = 0; + masks_exist[%%%NODEID%%%] = 0; + //alert( PanelH - p.ownerCt.ownerCt.getHeight() + 64+32 ); + //alert( document.body.clientHeight - p.ownerCt.ownerCt.getHeight() ); + //var expH = document.body.clientHeight - p.ownerCt.ownerCt.getHeight(); + + var W = p.getWidth(); + var H = 9*(W/16) - 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( H ); + //var W = 16*(H/9); + //p.ownerCt.setWidth( W ); + p.setHeight( H ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 70 ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setWidth( H - 70 ); + //alert( W+" "+H ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).setWidth( W - H + 50 ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).doLayout( false, true ); + //if( H > W ){ + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", "100%" ); + //} else { + document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-80 ); + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("height", H-80 );//"100%" ); + if( W > ( H+130 ) ) Ext.getCmp( 'toolbox_%%%NODEID%%%' ).expand( false ); + //}; + //alert( W +' '+ ( H+130 ) ); + set2DZoomLevel( %%%NODEID%%%, 100 ); + var el = document.getElementById('div_radar_%%%NODEID%%%'); + el.addEventListener( "fullscreenchange", ( evt )=>{ + if( document.fullscreenElement ){ + } else { + if( fsDrawID ){ + var el = document.getElementById('draw_svg_'+fsDrawID ); + el.removeAttribute("width"); + el.setAttribute( "width", H-80 );//'86%' ); + fsDrawID = 0; + }; + }; + }); + window.setTimeout( load2DDraw, 10*%%%NODEID%%%, %%%NODEID%%% ); + } + }, + //layout: 'hbox', + layout:'border', + items:[{ + id: 'cp_radar_%%%NODEID%%%', + region: 'center', + html: '
100 m.502512.5
', + 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' + }] + }*/] + }], + bbar:[{ + xtype: 'button', + text: '12.5%', + enableToggle: true, + id: 'zoom_bt12_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 12 ); + }; + } + },{ + xtype: 'button', + text: '25%', + enableToggle: true, + id: 'zoom_bt25_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 25 ); + }; + } + },{ + xtype: 'button', + text: '50%', + enableToggle: true, + id: 'zoom_bt50_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 50 ); + }; + } + },{ + xtype: 'button', + text: '100%', + pressed: true, + enableToggle: true, + id: 'zoom_bt100_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 100 ); + }; + } + },{ + xtype: 'panel', + id: 'status_%%%NODEID%%%', + border: false, + frame: false, + width: 800, + height: 28, + html: '' + }] +} \ No newline at end of file diff --git a/lib/controller/settings/node_10.js b/lib/controller/settings/node_10.js new file mode 100644 index 0000000..3addfa9 --- /dev/null +++ b/lib/controller/settings/node_10.js @@ -0,0 +1,40 @@ +{ + 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 = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( XX ); + }; + }; + }, + afterrender: function( p ){ + var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( xx + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( xx ); + } + } +} \ No newline at end of file diff --git a/lib/controller/settings/node_11.js b/lib/controller/settings/node_11.js new file mode 100644 index 0000000..7a0cf03 --- /dev/null +++ b/lib/controller/settings/node_11.js @@ -0,0 +1,62 @@ +{ + id: 'db_node_%%%NODEID%%%', + layout:'vbox', + tools: [{ + id:'gear', + handler: function(){ + } + }], + frame: true, + draggable: false, + collapsible: false, + bodyStyle: 'padding: 0px;', + title: '%%%NODENAME%%%', + sukaMineWidth: -1, + items:[{ + id: 'db_node_%%%NODEID%%%_pic', + border: true, + width: '100%', + html: '
 
 
%%%HBTN%%% 
' + }], + listeners:{ + resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ + if( rawWidth!= undefined ){ + if( p.sukaMineWidth != adjWidth ){ + p.sukaMineWidth = adjWidth; + var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( XX + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( XX ); + }; + }; + }, + afterrender: function( p ){ + var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( xx + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( xx ); + document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_020_%%%NODEID%%%').addEventListener( 'mousedown', makePtzStop ); + %%%CAM_CTRL_HOME_BTN_BIND%%% + } + } +} \ No newline at end of file diff --git a/lib/controller/settings/node_12.js b/lib/controller/settings/node_12.js new file mode 100644 index 0000000..3addfa9 --- /dev/null +++ b/lib/controller/settings/node_12.js @@ -0,0 +1,40 @@ +{ + 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 = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( XX ); + }; + }; + }, + afterrender: function( p ){ + var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( xx + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( xx ); + } + } +} \ No newline at end of file diff --git a/lib/controller/settings/node_13.js b/lib/controller/settings/node_13.js new file mode 100644 index 0000000..7a0cf03 --- /dev/null +++ b/lib/controller/settings/node_13.js @@ -0,0 +1,62 @@ +{ + id: 'db_node_%%%NODEID%%%', + layout:'vbox', + tools: [{ + id:'gear', + handler: function(){ + } + }], + frame: true, + draggable: false, + collapsible: false, + bodyStyle: 'padding: 0px;', + title: '%%%NODENAME%%%', + sukaMineWidth: -1, + items:[{ + id: 'db_node_%%%NODEID%%%_pic', + border: true, + width: '100%', + html: '
 
 
%%%HBTN%%% 
' + }], + listeners:{ + resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ + if( rawWidth!= undefined ){ + if( p.sukaMineWidth != adjWidth ){ + p.sukaMineWidth = adjWidth; + var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( XX + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( XX ); + }; + }; + }, + afterrender: function( p ){ + var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( xx + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( xx ); + document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_020_%%%NODEID%%%').addEventListener( 'mousedown', makePtzStop ); + %%%CAM_CTRL_HOME_BTN_BIND%%% + } + } +} \ No newline at end of file diff --git a/lib/controller/settings/node_14.js b/lib/controller/settings/node_14.js new file mode 100644 index 0000000..7a0cf03 --- /dev/null +++ b/lib/controller/settings/node_14.js @@ -0,0 +1,62 @@ +{ + id: 'db_node_%%%NODEID%%%', + layout:'vbox', + tools: [{ + id:'gear', + handler: function(){ + } + }], + frame: true, + draggable: false, + collapsible: false, + bodyStyle: 'padding: 0px;', + title: '%%%NODENAME%%%', + sukaMineWidth: -1, + items:[{ + id: 'db_node_%%%NODEID%%%_pic', + border: true, + width: '100%', + html: '
 
 
%%%HBTN%%% 
' + }], + listeners:{ + resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ + if( rawWidth!= undefined ){ + if( p.sukaMineWidth != adjWidth ){ + p.sukaMineWidth = adjWidth; + var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( XX + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( XX ); + }; + }; + }, + afterrender: function( p ){ + var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( xx + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( xx ); + document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_020_%%%NODEID%%%').addEventListener( 'mousedown', makePtzStop ); + %%%CAM_CTRL_HOME_BTN_BIND%%% + } + } +} \ No newline at end of file diff --git a/lib/controller/settings/node_15.js b/lib/controller/settings/node_15.js new file mode 100644 index 0000000..7a0cf03 --- /dev/null +++ b/lib/controller/settings/node_15.js @@ -0,0 +1,62 @@ +{ + id: 'db_node_%%%NODEID%%%', + layout:'vbox', + tools: [{ + id:'gear', + handler: function(){ + } + }], + frame: true, + draggable: false, + collapsible: false, + bodyStyle: 'padding: 0px;', + title: '%%%NODENAME%%%', + sukaMineWidth: -1, + items:[{ + id: 'db_node_%%%NODEID%%%_pic', + border: true, + width: '100%', + html: '
 
 
%%%HBTN%%% 
' + }], + listeners:{ + resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ + if( rawWidth!= undefined ){ + if( p.sukaMineWidth != adjWidth ){ + p.sukaMineWidth = adjWidth; + var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( XX + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( XX ); + }; + }; + }, + afterrender: function( p ){ + var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( xx + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( xx ); + document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_011_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_027_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_028_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_029_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_030_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_031_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_032_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_033_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_034_%%%NODEID%%%').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_020_%%%NODEID%%%').addEventListener( 'mousedown', makePtzStop ); + %%%CAM_CTRL_HOME_BTN_BIND%%% + } + } +} \ No newline at end of file diff --git a/lib/controller/settings/node_2.js b/lib/controller/settings/node_2.js new file mode 100644 index 0000000..672b517 --- /dev/null +++ b/lib/controller/settings/node_2.js @@ -0,0 +1,372 @@ +{ + id: 'db_node_%%%NODEID%%%', + title: '%%%NODENAME%%%', + draggable: false, + collapsible: false, + tools: [{ + id:'toggle', + handler: function( a, b, p ){ + fsDrawID = %%%NODEID%%%; + fullScreen( 'div_radar_%%%NODEID%%%' ); + var el = document.getElementById('draw_svg_'+fsDrawID ); + var nW = Math.floor( ( window.screen.height/window.screen.width ) * 100 ); + el.removeAttribute("width"); + el.setAttribute( "width", nW+'%' ); + } + }], + listeners:{ + afterrender: function(p){ + masks_statuses[%%%NODEID%%%] = 0; + masks_exist[%%%NODEID%%%] = 0; + //alert( PanelH - p.ownerCt.ownerCt.getHeight() + 64+32 ); + //alert( document.body.clientHeight - p.ownerCt.ownerCt.getHeight() ); + //var expH = document.body.clientHeight - p.ownerCt.ownerCt.getHeight(); + + var W = p.getWidth(); + var H = 9*(W/16) - 28; + if( %%%APPTYPE%%% == 1 || %%%APPTYPE%%% == 4 ){ + 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(); + }; + //var W = 16*(H/9); + //p.ownerCt.setWidth( W ); + p.setHeight( H ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 70 ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setWidth( H - 70 ); + //alert( W+" "+H ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).setWidth( W - H + 50 ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).doLayout( false, true ); + //if( H > W ){ + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", "100%" ); + //} else { + document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-80 ); + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("height", H-80 );//"100%" ); + if( W > ( H+130 ) ) Ext.getCmp( 'toolbox_%%%NODEID%%%' ).expand( false ); + //}; + //alert( W +' '+ ( H+130 ) ); + set2DZoomLevel( %%%NODEID%%%, 100 ); + var el = document.getElementById('div_radar_%%%NODEID%%%'); + el.addEventListener( "fullscreenchange", ( evt )=>{ + if( document.fullscreenElement ){ + } else { + if( fsDrawID ){ + var el = document.getElementById('draw_svg_'+fsDrawID ); + el.removeAttribute("width"); + el.setAttribute( "width", H-80 );//'86%' ); + fsDrawID = 0; + }; + }; + }); + window.setTimeout( load2DDraw, 10*%%%NODEID%%%, %%%NODEID%%% ); + } + }, + //layout: 'hbox', + layout:'border', + items:[{ + id: 'cp_radar_%%%NODEID%%%', + region: 'center', + html: '
100 m.502512.5
', + 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' + }] + }*/] + }], + bbar:[{ + xtype: 'button', + text: '12.5%', + enableToggle: true, + id: 'zoom_bt12_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 12 ); + }; + } + },{ + xtype: 'button', + text: '25%', + enableToggle: true, + id: 'zoom_bt25_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 25 ); + }; + } + },{ + xtype: 'button', + text: '50%', + enableToggle: true, + id: 'zoom_bt50_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 50 ); + }; + } + },{ + xtype: 'button', + text: '100%', + pressed: true, + enableToggle: true, + id: 'zoom_bt100_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 100 ); + }; + } + },{ + xtype: 'panel', + id: 'status_%%%NODEID%%%', + border: false, + frame: false, + width: 800, + height: 28, + html: '' + }] +} \ No newline at end of file diff --git a/lib/controller/settings/node_3.js b/lib/controller/settings/node_3.js new file mode 100644 index 0000000..65bee24 --- /dev/null +++ b/lib/controller/settings/node_3.js @@ -0,0 +1,413 @@ +{ + id: 'db_node_%%%NODEID%%%', + title: '%%%NODENAME%%%', + draggable: false, + collapsible: false, + tools: [{ + id:'toggle', + handler: function( a, b, p ){ + fsDrawID = %%%NODEID%%%; + fullScreen( 'div_radar_%%%NODEID%%%' ); + var el = document.getElementById('draw_svg_'+fsDrawID ); + var nW = Math.floor( ( window.screen.height/window.screen.width ) * 100 ); + el.removeAttribute("width"); + el.setAttribute( "width", nW+'%' ); + } + }], + listeners:{ + afterrender: function(p){ + masks_statuses[%%%NODEID%%%] = 0; + masks_exist[%%%NODEID%%%] = 0; + //alert( PanelH - p.ownerCt.ownerCt.getHeight() + 64+32 ); + //alert( document.body.clientHeight - p.ownerCt.ownerCt.getHeight() ); + //var expH = document.body.clientHeight - p.ownerCt.ownerCt.getHeight(); + + var W = p.getWidth(); + var H = PanelH - 15;// 9*(W/16) - 28; + //alert( W + ' '+ H ); + //var W = 16*(H/9); + //p.ownerCt.setWidth( W ); + p.setHeight( H ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 70 ); + Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setWidth( H - 70 ); + //alert( W+" "+H ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).setWidth( W - H + 50 ); + //Ext.getCmp( 'toolbox_%%%NODEID%%%' ).doLayout( false, true ); + //if( H > W ){ + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", "100%" ); + //} else { + document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-80 ); + //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("height", H-80 );//"100%" ); + if( W > ( H+130 ) ) Ext.getCmp( 'toolbox_%%%NODEID%%%' ).expand( false ); + //}; + //alert( W +' '+ ( H+130 ) ); + set2DZoomLevel( %%%NODEID%%%, 100 ); + var el = document.getElementById('div_radar_%%%NODEID%%%'); + el.addEventListener( "fullscreenchange", ( evt )=>{ + if( document.fullscreenElement ){ + } else { + if( fsDrawID ){ + var el = document.getElementById('draw_svg_'+fsDrawID ); + el.removeAttribute("width"); + el.setAttribute( "width", H-80 );//'86%' ); + fsDrawID = 0; + }; + }; + }); + settingsSelectedDevice = %%%NODEID%%%; + window.setTimeout( load2DDraw, 10*%%%NODEID%%%, %%%NODEID%%% ); + window.setTimeout( fetchDeviceStatus, 20*%%%NODEID%%%, %%%NODEID%%% ); + } + }, + //layout: 'hbox', + layout:'border', + items:[{ + id: 'cp_radar_%%%NODEID%%%', + region: 'center', + html: '
100 m.502512.5
', + 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: false, + 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: 'spacer', + height: 3 + },{ + xtype: 'panel', + height: 95, + frame: false, + border: true, + flex: 1, + layout: 'hbox', + items:[{ + xtype: 'button', + width: 80,// 201 202 + enableToggle: false, + id: 'cp_dbf_btn_%%%NODEID%%%', + text: '%%%LABEL%%%FREZBUBLE%%%', + iconCls: 'ctrl_panel_freeze_bf_sm', + iconAlign: 'left', + disabled: false, + handler: function(){ + doNodeNCQ( 1, 210, '' ); + //if( Ext.getCmp('cp_dbf_btn_%%%NODEID%%%').pressed){ + //doMaskOperation( %%%NODEID%%%, 1, 4 ); + // doAckOperation( %%%NODEID%%%, 1 ); + //} else { + //doMaskOperation( %%%NODEID%%%, 0, 4 ); + // doAckOperation( %%%NODEID%%%, 0 ); + //}; + } + },{ + xtype: 'button', + width: 80,// 201 202 + enableToggle: true, + id: 'cp_daf_btn_%%%NODEID%%%', + text: '%%%LABEL%%%DELBUBLE%%%', + iconCls: 'ctrl_panel_delete_bf_sm', + iconAlign: 'left', + disabled: false, + handler: function(){ + if( Ext.getCmp('cp_daf_btn_%%%NODEID%%%').pressed){ + selectROI_mode = 2; + } else { + selectROI_mode = 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' + }] + }*/] + }], + bbar:[{ + xtype: 'button', + text: '12.5%', + enableToggle: true, + id: 'zoom_bt12_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 12 ); + }; + } + },{ + xtype: 'button', + text: '25%', + enableToggle: true, + id: 'zoom_bt25_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 25 ); + }; + } + },{ + xtype: 'button', + text: '50%', + enableToggle: true, + id: 'zoom_bt50_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 50 ); + }; + } + },{ + xtype: 'button', + text: '100%', + pressed: true, + enableToggle: true, + id: 'zoom_bt100_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + set2DZoomLevel( %%%NODEID%%%, 100 ); + }; + } + },{ + xtype: 'panel', + id: 'status_%%%NODEID%%%', + border: false, + frame: false, + width: 800, + height: 28, + html: '' + }] +} \ No newline at end of file diff --git a/lib/controller/settings/node_4.js b/lib/controller/settings/node_4.js new file mode 100644 index 0000000..fd8ac9c --- /dev/null +++ b/lib/controller/settings/node_4.js @@ -0,0 +1,95 @@ +{ + id: 'db_node_%%%NODEID%%%', + width: 258, + height: 320, + title: '%%%NODENAME%%%', + tools: [{ + id:'gear', + handler: function(){ + //Ext.Msg.alert('Message', 'The Settings tool was clicked.'); + showSensorToolBox( %%%NODEID%%% ); + } + }], + listeners:{ + afterrender: function(){ + cleanup2DDraw( %%%NODEID%%% ); + drawZoomLevels[%%%NODEID%%%]=100; + } + }, + items:[{ + html: '
', + height: '260px' + },{ + id: 'status_%%%NODEID%%%', + border: true, + frame: true, + height: 36, + html: '' + }], + bbar:[{ + xtype: 'button', + text: '12.5%', + enableToggle: true, + id: 'zoom_bt12_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + drawZoomLevels[%%%NODEID%%%]=12; + var img = document.getElementById('draw_img_%%%NODEID%%%'); + img.src = "/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=12"; + img.onload = function(){ + cleanup2DDraw( %%%NODEID%%% ); + }; + }; + } + },{ + xtype: 'button', + text: '25%', + enableToggle: true, + id: 'zoom_bt25_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + drawZoomLevels[%%%NODEID%%%]=25; + var img = document.getElementById('draw_img_%%%NODEID%%%'); + img.src = "/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=25"; + img.onload = function(){ + cleanup2DDraw( %%%NODEID%%% ); + }; + }; + } + },{ + xtype: 'button', + text: '50%', + enableToggle: true, + id: 'zoom_bt50_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + drawZoomLevels[%%%NODEID%%%]=50; + var img = document.getElementById('draw_img_%%%NODEID%%%'); + img.src = "/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=50"; + img.onload = function(){ + cleanup2DDraw( %%%NODEID%%% ); + }; + }; + } + },{ + xtype: 'button', + text: '100%', + pressed: true, + enableToggle: true, + id: 'zoom_bt100_%%%NODEID%%%', + toggleGroup: 'zoom_tg_%%%NODEID%%%', + toggleHandler: function( bt, st ){ + if( st ){ + drawZoomLevels[%%%NODEID%%%]=100; + var img = document.getElementById('draw_img_%%%NODEID%%%'); + img.src = "/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%&AUX=100"; + img.onload = function(){ + cleanup2DDraw( %%%NODEID%%% ); + }; + }; + } + }] +} \ No newline at end of file diff --git a/lib/controller/settings/node_5.js b/lib/controller/settings/node_5.js new file mode 100644 index 0000000..e80434b --- /dev/null +++ b/lib/controller/settings/node_5.js @@ -0,0 +1,439 @@ +{ + id: 'db_node_%%%NODEID%%%', + //width: 258, + //height: 336, + title: '%%%NODENAME%%%', + draggable: false, + collapsible: false, + tools: [{ + id:'toggle', + handler: function( a, b, p ){ + fsDrawID = %%%NODEID%%%; + exitFromFF = function(){ + nodeTHREEviewers[%%%NODEID%%%].renderer.setSize( nodeTHREEviewers[%%%NODEID%%%].container.clientWidth, (nodeTHREEviewers[%%%NODEID%%%].container.clientHeight-60) ); + exitFromFF = null; + }; + fullScreen( 'div_radar_%%%NODEID%%%' ); + + //var el = document.getElementById('draw_svg_'+fsDrawID ); + //var nW = Math.floor( ( window.screen.height/window.screen.width ) * 100 ); + //el.removeAttribute("width"); + //el.setAttribute( "width", nW+'%' ); + nodeTHREEviewers[%%%NODEID%%%].renderer.setSize( window.screen.width, window.screen.height );//200 ); + } + }], + listeners:{ + beforedestroy: function(){ + if( typeof nodeTHREEviewers[%%%NODEID%%%] !== 'undefined' ){ + //nodeTHREEviewers[%%%NODEID%%%].container + // object.geometry.dispose(); object.material.dispose(); scene.remove( object ); + stopAnimation(); + nodeTHREEviewers[%%%NODEID%%%].renderer.renderLists.dispose(); + delete nodeTHREEviewers[%%%NODEID%%%].renderer; + delete nodeTHREEviewers[%%%NODEID%%%].scene; + delete nodeTHREEviewers[%%%NODEID%%%].mesh; + delete nodeTHREEviewers[%%%NODEID%%%].geometry; + delete nodeTHREEviewers[%%%NODEID%%%].material; + delete nodeTHREEviewers[%%%NODEID%%%].texture; + delete nodeTHREEviewers[%%%NODEID%%%].camera; + delete nodeTHREEviewers[%%%NODEID%%%]; + }; + return true; + }, + 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( 'div_radar_%%%NODEID%%%' ); + + nodeTHREEviewers[%%%NODEID%%%].camera = new THREE.PerspectiveCamera( 100, 1, 1, 600 ); + nodeTHREEviewers[%%%NODEID%%%].camera.fov = 75; + nodeTHREEviewers[%%%NODEID%%%].scene = new THREE.Scene(); + nodeTHREEviewers[%%%NODEID%%%].geometry = new THREE.SphereGeometry( 500, 60, 40 ); + // invert the geometry on the x-axis so that all of the faces point inward + nodeTHREEviewers[%%%NODEID%%%].geometry.scale( -1, 1, 1 ); + + nodeTHREEviewers[%%%NODEID%%%].texture = new THREE.TextureLoader().load( '/lib/controller/getDeviceDraw.php?NID=%%%NODEID%%%' ); + nodeTHREEviewers[%%%NODEID%%%].material = new THREE.MeshBasicMaterial( { map: nodeTHREEviewers[%%%NODEID%%%].texture } ); + nodeTHREEviewers[%%%NODEID%%%].mesh = new THREE.Mesh( nodeTHREEviewers[%%%NODEID%%%].geometry, nodeTHREEviewers[%%%NODEID%%%].material ); + nodeTHREEviewers[%%%NODEID%%%].scene.add( nodeTHREEviewers[%%%NODEID%%%].mesh ); + nodeTHREEviewers[%%%NODEID%%%].scene.add( l3dMapOverlayMesh ); + + nodeTHREEviewers[%%%NODEID%%%].renderer = new THREE.WebGLRenderer(); + nodeTHREEviewers[%%%NODEID%%%].renderer.setPixelRatio( 1 ); + nodeTHREEviewers[%%%NODEID%%%].renderer.setSize( nodeTHREEviewers[%%%NODEID%%%].container.clientWidth, (H-80) ); + nodeTHREEviewers[%%%NODEID%%%].container.appendChild( nodeTHREEviewers[%%%NODEID%%%].renderer.domElement ); + + nodeTHREEviewers[%%%NODEID%%%].container.style.touchAction = 'none'; + nodeTHREEviewers[%%%NODEID%%%].container.myVID = %%%NODEID%%%; + + nodeTHREEviewers[%%%NODEID%%%].container.addEventListener( 'pointerdown', onPointerDown ); + nodeTHREEviewers[%%%NODEID%%%].container.addEventListener( 'wheel', onDocumentMouseWheel ); + nodeTHREEviewers[%%%NODEID%%%].targets = new Array(); + nodeTHREEviewers[%%%NODEID%%%].targetShowCopunter = 0; + nodeTHREEviewers[%%%NODEID%%%].targetIndex = 0; + + //addl3dTarget( %%%NODEID%%%, 200, Math.PI/4, Math.PI/4 ); + //addl3dTarget( %%%NODEID%%%, 150, 0, 0 ); + //document.addEventListener( 'wheel', onDocumentMouseWheel ); + /* + container.addEventListener( 'dragover', function ( event ) { + + event.preventDefault(); + event.dataTransfer.dropEffect = 'copy'; + + } ); + container.addEventListener('dragenter', function () { + + document.body.style.opacity = 0.5; + + } ); + container.addEventListener('dragleave', function () { + + document.body.style.opacity = 1; + + } ); + container.addEventListener('drop', function ( event ) { + + event.preventDefault(); + + const reader = new FileReader(); + reader.addEventListener( 'load', function ( event ) { + + material.map.image.src = event.target.result; + material.map.needsUpdate = true; + + } ); + reader.readAsDataURL( event.dataTransfer.files[ 0 ] ); + + document.body.style.opacity = 1; + + } ); + */ + /* + document.addEventListener( 'dragover', function ( event ) { + + event.preventDefault(); + event.dataTransfer.dropEffect = 'copy'; + + } ); + + document.addEventListener( 'dragenter', function () { + + document.body.style.opacity = 0.5; + + } ); + + document.addEventListener( 'dragleave', function () { + + document.body.style.opacity = 1; + + } ); + + document.addEventListener( 'drop', function ( event ) { + + event.preventDefault(); + + const reader = new FileReader(); + reader.addEventListener( 'load', function ( event ) { + + material.map.image.src = event.target.result; + material.map.needsUpdate = true; + + } ); + reader.readAsDataURL( event.dataTransfer.files[ 0 ] ); + + document.body.style.opacity = 1; + + } ); + */ + //animateTargets(); + animate(); + + // + + //window.addEventListener( 'resize', onWindowResize ); + } + }, + layout:'border', + items:[{ + id: 'cp_radar_%%%NODEID%%%', + region: 'center', + html: '
', + 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' + }] + }*/] + }], + bbar:[{ + xtype: 'panel', + id: 'status_%%%NODEID%%%', + border: false, + frame: false, + width: 800, + height: 28, + html: '' + }] +} \ No newline at end of file diff --git a/lib/controller/settings/tpl.js b/lib/controller/settings/tpl.js new file mode 100644 index 0000000..d387b49 --- /dev/null +++ b/lib/controller/settings/tpl.js @@ -0,0 +1,16 @@ +[{ + columnWidth: '320px', + style:'padding:10px 0 10px 10px', + items:[ + %%%ITEMS%%% + ] +},{ + columnWidth: '320px', + style:'padding:10px 0 10px 10px' +},{ + columnWidth: '320px', + style:'padding:10px 0 10px 10px' +},{ + columnWidth: '320px', + style:'padding:10px 0 10px 10px' +}] \ No newline at end of file diff --git a/lib/controller/updateLocation.php b/lib/controller/updateLocation.php index 9d18258..e94cc38 100644 --- a/lib/controller/updateLocation.php +++ b/lib/controller/updateLocation.php @@ -19,19 +19,26 @@ }; }; if( $TYP != 1 && $TYP != 4 ){ - $QS="SELECT `anchor_lat`, `anchor_lon`, `anchor_alt`, `local_binding` FROM `system_props` LIMIT 1"; + $QS="SELECT `anchor_lat`, `anchor_lon`, `anchor_alt`, `local_binding`, `oem_logo` FROM `system_props` LIMIT 1"; $R = $DATABASE->Query( $QS ); $SLAT = $R[0]['anchor_lat']; $SLON = $R[0]['anchor_lon']; $SALT = $R[0]['anchor_alt']; - $DIFF = intval( $R[0]['local_binding'] ); + //check logo + if( $R[0]['oem_logo'] !='3b4ad2078aa0b06e78fa417e2e47bf32' ){ + $QS = "UPDATE `system_props` SET `oem_logo`='3b4ad2078aa0b06e78fa417e2e47bf32'"; + $DATABASE->Query( $QS ); + }; + $DIFF = intval( $R[0]['local_binding'] ); if( $DIFF == 0 ){ $A = new gPoint(); $A->setLongLat( $SLON, $SLAT ); $A->convertLLtoTM(); + //$A->printLatLong();echo"
"; + //$A->printUTM(); $XC = $A->E(); $YC = $A->N(); - $ZC = $A->Z(); + $ZC = $SALT;//$A->Z(); is a Zone } else { $XC = $SLON; $YC = $SLAT; @@ -62,19 +69,23 @@ if( $DIFF ){ $DX = $LON - $XC; $DY = $LAT - $YC; - $DZ = 0;//$ALT - $ZC; + $DZ = $ALT - $ZC; } else { $CC = new gPoint(); $CC->setLongLat( $LON, $LAT ); $CC->convertLLtoTM(); $DX = $CC->E() - $XC; $DY = $CC->N() - $YC; - $DZ = 0;//$CC->Z() - $ZC; + $DZ = $ALT - $ZC; }; $QS="UPDATE `{$TBL}` SET `x`={$DX}, `y`={$DY}, `z`={$DZ} WHERE `id`={$CD['aux_id']}"; break; case 1://Anchore update - $QS="UPDATE `system_props` SET `anchor_lat`={$LAT}, `anchor_lon`={$LON}, `anchor_alt`={$ALT} "; + if( $LAT < 0 ){ + $QS="UPDATE `system_props` SET `anchor_lat`={$LAT}, `anchor_lon`={$LON}, `anchor_alt`={$ALT}, `hemisphere`='S' "; + } else { + $QS="UPDATE `system_props` SET `anchor_lat`={$LAT}, `anchor_lon`={$LON}, `anchor_alt`={$ALT}, `hemisphere`='N' "; + }; break; case 2://long update $CC = new gPoint(); @@ -82,8 +93,9 @@ $CC->convertLLtoTM(); $XX = $CC->E(); $YY = $CC->N(); - $ZZ = $CC->Z(); - if( $DIFF ){ + echo "{$XC} = {$XX} {$YC} = {$YY} {$ZC}={$ZZ}
"; + $ZZ = $ALT; + if( $DIFF == 0 ){ $DX = $XX - $XC; $DY = $YY - $YC; $DZ = $ZZ - $ZC; diff --git a/lib/javascript/jsapi_dynamic/mojo_map.js b/lib/javascript/jsapi_dynamic/mojo_map.js index 090d125..e1e84cf 100644 --- a/lib/javascript/jsapi_dynamic/mojo_map.js +++ b/lib/javascript/jsapi_dynamic/mojo_map.js @@ -374,6 +374,7 @@ function initMapMonitoring__00(){ //loadTimeLineGroups( selectedSite ); loadMapZones( 0 ); //getData( 'arch' ); + geoMapIsPresent = true; }; function initMapMonitoring(){ var aK = true; @@ -450,6 +451,7 @@ function initMapMonitoring(){ }; //ToDo: Fix Initial Zoom level -> May be saving into a user profile loadMapZones( 0 ); + geoMapIsPresent = true; }; function initMapReporting(){ diff --git a/lib/javascript/jsapi_dynamic/mojo_settings.js b/lib/javascript/jsapi_dynamic/mojo_settings.js index 5803338..171e3b1 100644 --- a/lib/javascript/jsapi_dynamic/mojo_settings.js +++ b/lib/javascript/jsapi_dynamic/mojo_settings.js @@ -1635,6 +1635,102 @@ function addDetectedIPCam(){ addDetCamDialog.show(); }; +var settingsSelectedDevice = 0; + +function fetchDeviceStatus(){ + if( tlInterval!= null ){ + window.clearTimeout( tlInterval ); + tlInterval = null; + }; + Ext.Ajax.request({ + url: '/lib/controller/getStatus.php', + params: { + SITE: , + LNID: lastNotificationID, + SPID: StatusTS, + LSID: log_store_id, //LoadTS, + DEVID: settingsSelectedDevice, + UID: , + SID: '' + }, + success: function( response, opts ){ + var data = Ext.decode(response.responseText); + StatusTS = data.CTS; + if( data.nodes.length > 0 ){ + for( i=0; i < data.nodes.length; i++ ){ + switch( data.nodes[i].type ){ + case 1: + case 2: + case 3: + case 4:{ // 2D + if( data.nodes[i].status ){ + if( data.nodes[i].reload_draw ) { + load2DDraw( data.nodes[i].id ); + LoadTS = StatusTS; + }; + if( data.nodes[i].targets != undefined ){ + if( data.nodes[i].targets.length ){ + targets_2d[data.nodes[i].id]=[]; + for( idx = 0; idx < data.nodes[i].targets.length; idx++) + targets_2d[data.nodes[i].id][idx]={ range: data.nodes[i].targets[idx].digital, az: data.nodes[i].targets[idx].az, color: data.nodes[i].targets[idx].color, stroke: data.nodes[i].targets[idx].stroke }; + draw2DTargets( data.nodes[i].id ); + } else cleanup2DDraw( data.nodes[i].id ); + } else cleanup2DDraw( data.nodes[i].id ); + }; + if( data.nodes[i].bubbles !== undefined ){ + if( data.nodes[i].bubbles.length ){ + bubbles_2d[data.nodes[i].id]=[]; + for( idx = 0; idx < data.nodes[i].bubbles.length; idx++) + bubbles_2d[data.nodes[i].id][idx]={ range: data.nodes[i].bubbles[idx].digital, az: data.nodes[i].bubbles[idx].az, color: data.nodes[i].bubbles[idx].color, stroke: data.nodes[i].bubbles[idx].stroke }; + draw2DBubbles( data.nodes[i].id ); + } else cleanup2DBubbles( data.nodes[i].id ); + } else cleanup2DBubbles( data.nodes[i].id ); + setStatus2D( data.nodes[i].id, data.nodes[i].status, data.nodes[i].masks_exist, data.nodes[i].masks_status ); + break; + }; + case 5:{ // 3d + if( data.nodes[i].reload_draw ){ + reload3dTexture( data.nodes[i].id ); + }; + if( data.nodes[i].targets != undefined ){ + if( data.nodes[i].targets.length ){ + draw3DTargets( data.nodes[i].id, data.nodes[i].targets ); + animateTargets(); + } else { + cleanup3DDraw( data.nodes[i].id ); + animate(); + }; + } else { + cleanup3DDraw( data.nodes[i].id ); + animate(); + }; + setStatus2D( data.nodes[i].id, data.nodes[i].status, data.nodes[i].masks_exist, data.nodes[i].masks_status ); + break; + }; + case 10: + case 11: + case 12: + case 13: + case 14: + case 15:{// Cameras + var iel = document.getElementById('img-img-'+data.nodes[i].id ); + if( iel != null ){ + if( data.nodes[i].status == 0 ){ + if( iel.src != "/style/assets/no-signal.png" ) iel.src = "/style/assets/no-signal.png"; + } else { + if( data.nodes[i].src != iel.src ) iel.src = data.nodes[i].src; + }; + }; + break; + }; + }; + }; + }; + tlInterval = window.setTimeout( fetchDeviceStatus, 333, selectedSite ); + }, + failure: failureAJAXFunction + }); +}; var devUploadTimeout = null; var devUploadID = -1; function fetchDeviceUploadStatus(){ @@ -3055,7 +3151,9 @@ function initSettingsView(){ allowDepress: false, toggleGroup: 'sys_settings', handler: showSettingsSensors - },{ + },{ xtype: 'button', width: '100%', id:'video_set', @@ -3065,7 +3163,8 @@ function initSettingsView(){ allowDepress: false, toggleGroup: 'sys_settings', handler: showSettingsVideo - },{ + } + ,{ xtype: 'button', width: '100%', id:'app_set', diff --git a/lib/php/db/MySQL_class.php b/lib/php/db/MySQL_class.php index 55c5a70..10e3a5c 100644 --- a/lib/php/db/MySQL_class.php +++ b/lib/php/db/MySQL_class.php @@ -8,7 +8,7 @@ class MySQL_DB{ var $CachePath; var $isConnected=false; var $isCached=false; - function MySQL_DB( $Host,$Name,$User,$Password){ + function __construct( $Host,$Name,$User,$Password){ $this->DBHost=$Host; $this->DBName=$Name; $this->DBUser=$User; diff --git a/lib/php/db/MySQLi_class.php b/lib/php/db/MySQLi_class.php index ad4eee1..bb24e22 100644 --- a/lib/php/db/MySQLi_class.php +++ b/lib/php/db/MySQLi_class.php @@ -8,7 +8,7 @@ class MySQLi_DB{ var $CachePath; var $isConnected=false; var $isCached=false; - function MySQLi_DB( $Host, $Name, $User, $Password, $DBCREATE = false ){ + function __construct( $Host, $Name, $User, $Password, $DBCREATE = false ){ $this->DBHost=$Host; $this->DBName=$Name; $this->DBUser=$User; diff --git a/lib/php/db/VS_ObjectHelper_class.php b/lib/php/db/VS_ObjectHelper_class.php index 75f7d70..a1879df 100644 --- a/lib/php/db/VS_ObjectHelper_class.php +++ b/lib/php/db/VS_ObjectHelper_class.php @@ -3,7 +3,7 @@ class VS_ObjectHelper{ var $DB_Name; var $DB_Link; var $DATABASE; - function VS_ObjectHelper($DB){ + function __construct($DB){ $this->DATABASE=$DB; } function ListItems($Type, $Parent=0){ diff --git a/lib/php/db/VS_Object_class.php b/lib/php/db/VS_Object_class.php index 71ade2e..d91f372 100644 --- a/lib/php/db/VS_Object_class.php +++ b/lib/php/db/VS_Object_class.php @@ -1,6 +1,6 @@ name=$Name; $this->id=$ID; if ($Type!==''){ diff --git a/lib/php/db/gz_class.php b/lib/php/db/gz_class.php index 2608960..fd9cf5c 100644 --- a/lib/php/db/gz_class.php +++ b/lib/php/db/gz_class.php @@ -4,7 +4,7 @@ class GZ{ var $CachePath; var $isCached=false; var $Prefetch; - function GZ($cache_path=''){ + function __construct($cache_path=''){ $this->SetCacheDir($cache_path); if($this->isCached){ $this->URL=$_SERVER['REQUEST_URI']; diff --git a/lib/php/db/language_class.php b/lib/php/db/language_class.php index 88581c5..220e087 100644 --- a/lib/php/db/language_class.php +++ b/lib/php/db/language_class.php @@ -1,7 +1,7 @@ Labels=array(); $QS="SELECT key, label FROM labels" . $_module . " WHERE language_id='{$LangID}'"; diff --git a/lib/php/db/language_json_class.php b/lib/php/db/language_json_class.php index 4c62d11..d3f9391 100644 --- a/lib/php/db/language_json_class.php +++ b/lib/php/db/language_json_class.php @@ -2,7 +2,7 @@ class Language_json{ var $Labels; var $FileName; - function Language_json( $FN ){ + function __construct( $FN ){ $this->FileName = $FN; $DOP = file_get_contents( $FN ); $this->Labels = json_decode( $DOP, true ); diff --git a/lib/php/db/logio_class.php b/lib/php/db/logio_class.php index 19427a5..dc09826 100644 --- a/lib/php/db/logio_class.php +++ b/lib/php/db/logio_class.php @@ -30,7 +30,7 @@ define( "LOG_LVL_ALL", 255 ); class Logio{ var $USERID; var $FLT; - function Logio( $LL = LOG_LVL_ALL ){ + function __construct( $LL = LOG_LVL_ALL ){ $this->FLT = $LL; $this->USERID = 1; } diff --git a/lib/php/db/user_class.php b/lib/php/db/user_class.php index 335fc39..37798ee 100644 --- a/lib/php/db/user_class.php +++ b/lib/php/db/user_class.php @@ -3,7 +3,7 @@ class User{ var $Data; var $Account; - function User(){ + function __construct(){ } function FillInfo($UID){ global $DATABASE; diff --git a/lib/php/utm/gPoint.php b/lib/php/utm/gPoint.php index 954b334..fc273bf 100644 --- a/lib/php/utm/gPoint.php +++ b/lib/php/utm/gPoint.php @@ -104,7 +104,7 @@ class gPoint var $secondStdParallel; // For lambert Projection // constructor - function gPoint($datum='WGS 84') // Default datum is WGS 84 + function __construct($datum='WGS 84') // Default datum is WGS 84 { $this->a = $this->ellipsoid[$datum][0]; // Set datum Equatorial Radius $this->e2 = $this->ellipsoid[$datum][1]; // Set datum Square of eccentricity diff --git a/style/assets/3b4ad2078aa0b06e78fa417e2e47bf32.png b/style/assets/3b4ad2078aa0b06e78fa417e2e47bf32.png new file mode 100644 index 0000000..54bf6c6 Binary files /dev/null and b/style/assets/3b4ad2078aa0b06e78fa417e2e47bf32.png differ