diff --git a/lib/1.json b/lib/1.json index 2f7142f..ae2da04 100644 --- a/lib/1.json +++ b/lib/1.json @@ -1 +1 @@ -{"___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__":"For Security Reason and smooth workink via SSL encryption we provide SSL Certificato to install into Client Computer","__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_":"Ajax Request failed!","_ALARMED_":"Alarmed","_ALT_SHORT_LBL_":"Alt","_ANAL_SOURCES_LST_":"Analogue Video Sources","_APLY_DBBACKUP_":"Restore","_APP_TITLE_":"Argus Security System","_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_":"Tottal Pan Angles","_CAM_PANMOD_":"Pan Model","_CAM_PROTO_ID_":"Camera ID","_CAM_PTZ_AAC_":"PTZ Auto Axeleration","_CAM_PTZ_MAC_":"PTZ Manual Axeleration","_CAM_SENS_SIZE_":"Sensor Size","_CAM_TILTANGS_":"Tottal 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_":"Creeate 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 ... Geting Info","_DB_STAT_CON_UNA_":"Connection is Unavailable","_DB_STAT_STUDY_":"Studing","_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_":"3D Black Target","_EVT_MSG_BUMO_":"Device Is BUSY","_EVT_MSG_COM_JAMED_":"Communication Jamed","_EVT_MSG_CONNECTED_":"Connected","_EVT_MSG_DISCONNECTED_":"Disconnection","_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_":"Region Of Interest","_EVT_MSG_SCANC_":"Scan Complete","_EVT_MSG_STUMO_":"Device Enters Into Study Mode","_EVT_MSG_TF_BSD_":"[Train Filter] Bottom Sensor Detection","_EVT_MSG_TF_CT_":"[Train Filter] Check Target","_EVT_MSG_TF_DD_":"[Train Filter] Detection Disabled","_EVT_MSG_TF_DIFD_":"[Train Filter] Differential Detection","_EVT_MSG_TF_RD_":"[Train Filter] Regular Detection","_EVT_MSG_TF_SUSPA_":"[Train Filter] Suspicious Activity","_EVT_MSG_TF_SUSPD_":"[Train Filter] Suspicious Detection","_EVT_MSG_TF_SUSPN_":"[Train Filter] Suspicious NACK","_EVT_MSG_TF_TD_":"[Train Filter] Train Detected","_EVT_MSG_TF_TUPD_":"[Train Filter] Train Updated","_EVT_MSG_TF_USD_":"[Train Filter] Upper Sensor Detection","_EVT_MSG_VIFDEC_":"Video Framerate Decreased","_EVT_MSG_VIFINC_":"Video Framerate Increased","_EVT_MSG_W2DTRG_":"White 2D Target","_EVT_MSG_W3DTRG_":"3D White Target","_FACT_DEFAULT_":"Set by Factory","_FACTORY_RESET_":"Reset to Factory Defaults","_FHM_PROPS_":"FlyHunter 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_":"Maintenence","_MANUADD_CAMERA_":"Manually add IP Camera","_MAP_":"Map","_MAP_CENTER_MODE_":"Map Centre Mode","_MAP_COORD_SYSTEM_":"Map Cordinate System","_MAP_CUST_LBL_":"Custom Map","_MAP_HEIGHT_":"Map Height (meters)","_MAP_LEFT_CORCORD_":"Left Upper Corner Cordinate","_MAP_MONITORING_":"Map Monitoring","_MAP_NAME_":"Map Name","_MAP_PICTURE_":"Map Picture","_MAP_REG_LBL_":"Regular WGS84 Map (reqires Internet)","_MAP_RIGHT_CORCORD_":"Right Bottom Corner Cordinate","_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 SystemPlease 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_":"Repeate 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 clearedThe only admin<\/b> user will be preserved.The Report History will be keept 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 ChangedThay will be Unsaved!","_SET_CREDENTIALS_":"Set Credentials","_SETTING_SAVE_OK_":"All changes saved sucessfully","_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 Security System","_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 to Device","_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.<\/br>You may request one at www.smartsecsystems.com<\/a>","_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_":"Instalation 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 ValuesPlease 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 Tunel","WAN_LINE_PROP":"WAN Connection","WIFI_PROP":"WiFi","_EVT_MSG_TF_OM_DIS_":"Disabled by AUX Module","_EVT_MSG_TF_OM_TD_":"AUX Module: Detects Train","_EVT_MSG_TF_OM_TG_":"AUX Module: Train is Gone","_EVT_MSG_TF_OM_EXPIRED_":"AUX Detection 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"} \ No newline at end of file +{"___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__":"For Security Reason and smooth workink via SSL encryption we provide SSL Certificato to install into Client Computer","__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_":"Ajax Request failed!","_ALARMED_":"Alarmed","_ALT_SHORT_LBL_":"Alt","_ANAL_SOURCES_LST_":"Analogue Video Sources","_APLY_DBBACKUP_":"Restore","_APP_TITLE_":"Argus Security System","_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_":"Tottal Pan Angles","_CAM_PANMOD_":"Pan Model","_CAM_PROTO_ID_":"Camera ID","_CAM_PTZ_AAC_":"PTZ Auto Axeleration","_CAM_PTZ_MAC_":"PTZ Manual Axeleration","_CAM_SENS_SIZE_":"Sensor Size","_CAM_TILTANGS_":"Tottal 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_":"Creeate 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 ... Geting Info","_DB_STAT_CON_UNA_":"Connection is Unavailable","_DB_STAT_STUDY_":"Studing","_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_":"3D Black Target","_EVT_MSG_BUMO_":"Device Is BUSY","_EVT_MSG_COM_JAMED_":"Communication Jamed","_EVT_MSG_CONNECTED_":"Connected","_EVT_MSG_DISCONNECTED_":"Disconnection","_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_":"Region Of Interest","_EVT_MSG_SCANC_":"Scan Complete","_EVT_MSG_STUMO_":"Device Enters Into Study Mode","_EVT_MSG_TF_BSD_":"[Train Filter] Bottom Sensor Detection","_EVT_MSG_TF_CT_":"[Train Filter] Check Target","_EVT_MSG_TF_DD_":"[Train Filter] Detection Disabled","_EVT_MSG_TF_DIFD_":"[Train Filter] Differential Detection","_EVT_MSG_TF_RD_":"[Train Filter] Regular Detection","_EVT_MSG_TF_SUSPA_":"[Train Filter] Suspicious Activity","_EVT_MSG_TF_SUSPD_":"[Train Filter] Suspicious Detection","_EVT_MSG_TF_SUSPN_":"[Train Filter] Suspicious NACK","_EVT_MSG_TF_TD_":"[Train Filter] Train Detected","_EVT_MSG_TF_TUPD_":"[Train Filter] Train Updated","_EVT_MSG_TF_USD_":"[Train Filter] Upper Sensor Detection","_EVT_MSG_VIFDEC_":"Video Framerate Decreased","_EVT_MSG_VIFINC_":"Video Framerate Increased","_EVT_MSG_W2DTRG_":"White 2D Target","_EVT_MSG_W3DTRG_":"3D White Target","_FACT_DEFAULT_":"Set by Factory","_FACTORY_RESET_":"Reset to Factory Defaults","_FHM_PROPS_":"FlyHunter 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_":"Maintenence","_MANUADD_CAMERA_":"Manually add IP Camera","_MAP_":"Map","_MAP_CENTER_MODE_":"Map Centre Mode","_MAP_COORD_SYSTEM_":"Map Cordinate System","_MAP_CUST_LBL_":"Custom Map","_MAP_HEIGHT_":"Map Height (meters)","_MAP_LEFT_CORCORD_":"Left Upper Corner Cordinate","_MAP_MONITORING_":"Map Monitoring","_MAP_NAME_":"Map Name","_MAP_PICTURE_":"Map Picture","_MAP_REG_LBL_":"Regular WGS84 Map (reqires Internet)","_MAP_RIGHT_CORCORD_":"Right Bottom Corner Cordinate","_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 SystemPlease 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_":"Repeate 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 clearedThe only admin<\/b> user will be preserved.The Report History will be keept 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 ChangedThay will be Unsaved!","_SET_CREDENTIALS_":"Set Credentials","_SETTING_SAVE_OK_":"All changes saved sucessfully","_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 Security System","_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 to Device","_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.<\/br>You may request one at www.smartsecsystems.com<\/a>","_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_":"Instalation 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 ValuesPlease 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 Tunel","WAN_LINE_PROP":"WAN Connection","WIFI_PROP":"WiFi","_EVT_MSG_TF_OM_DIS_":"Disabled by AUX Module","_EVT_MSG_TF_OM_TD_":"AUX Module: Detects Train","_EVT_MSG_TF_OM_TG_":"AUX Module: Train is Gone","_EVT_MSG_TF_OM_EXPIRED_":"AUX Detection 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"} \ No newline at end of file diff --git a/lib/controller/addModule.php b/lib/controller/addModule.php index 6fd5096..8acd4f3 100644 --- a/lib/controller/addModule.php +++ b/lib/controller/addModule.php @@ -54,7 +54,7 @@ }; case 9:{ //Modem - $QS = "INSERT INTO `module_modem`(`alarm_window`) VALUES(300)"; + $QS = "INSERT INTO `module_modem`(`modem_id`,`evt_mode`,`sms_enabled`,`call_enabled`,`call_hangup_wait`) VALUES(-1,1,1,1,5)"; $DATABASE->Query( $QS ); $MCID = $DATABASE->getLastInsertID(); $QS = "UPDATE `modules` SET `aux_id`={$MCID} WHERE `id`={$MID}"; diff --git a/lib/controller/dash/node_10.js b/lib/controller/dash/node_10.js index 3e4558f..3addfa9 100644 --- a/lib/controller/dash/node_10.js +++ b/lib/controller/dash/node_10.js @@ -1,39 +1,40 @@ { id: 'db_node_%%%NODEID%%%', - //xtype: 'portlet', - layout:'fit', - //width: 258, - //height: %%%HEIGHT%%%+40, + layout:'vbox', tools: [{ - id:'gear', - handler: function(){ - //editAnalogStream( %%%STREAMID%%%, 1 ); - } - }], + id:'gear', + handler: function(){ + } + }], frame: true, draggable: false, + collapsible: false, bodyStyle: 'padding: 0px;', title: '%%%NODENAME%%%', + sukaMineWidth: -1, items:[{ id: 'db_node_%%%NODEID%%%_pic', - html: '', + border: true, + width: '100%', + html: '
' }], - sukaMineWidth: -1, listeners:{ resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ if( rawWidth!= undefined ){ if( p.sukaMineWidth != adjWidth ){ p.sukaMineWidth = adjWidth; - var XX = 32 + p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; - p.setHeight( XX ); + var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( XX + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( XX ); }; }; - var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); - z.update(''); }, afterrender: function( p ){ var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; - p.setHeight( xx+32 ); + p.setHeight( xx + 32 ); + var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); + z.setHeight( xx ); } } } \ No newline at end of file diff --git a/lib/controller/dash/node_11.js b/lib/controller/dash/node_11.js index 18cf639..7a0cf03 100644 --- a/lib/controller/dash/node_11.js +++ b/lib/controller/dash/node_11.js @@ -16,7 +16,7 @@ id: 'db_node_%%%NODEID%%%_pic', border: true, width: '100%', - html: '
 
 
  
' + html: '
 
 
%%%HBTN%%% 
' }], listeners:{ resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ @@ -56,6 +56,7 @@ 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/dash/node_12.js b/lib/controller/dash/node_12.js index 686568d..3addfa9 100644 --- a/lib/controller/dash/node_12.js +++ b/lib/controller/dash/node_12.js @@ -1,18 +1,40 @@ { id: 'db_node_%%%NODEID%%%', - xtype: 'portlet', - width: 258, - height: %%%HEIGHT%%%+40, + layout:'vbox', tools: [{ - id:'gear', - handler: function(){ - editAnalogStream( %%%STREAMID%%%, 1 ); - } - }], + id:'gear', + handler: function(){ + } + }], frame: true, + draggable: false, + collapsible: false, bodyStyle: 'padding: 0px;', title: '%%%NODENAME%%%', + sukaMineWidth: -1, items:[{ - html: '', - }] + 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/dash/node_13.js.bk2 b/lib/controller/dash/node_13.js.bk2 deleted file mode 100644 index 7d7b9b8..0000000 --- a/lib/controller/dash/node_13.js.bk2 +++ /dev/null @@ -1,19 +0,0 @@ -{ - id: 'db_node_%%%NODEID%%%', - xtype: 'panel', - width: 400, - height: 400, - frame: true, - title: 'Camera %%%NODEID%%%', - items:[{ - html: '', - }], - listeners:{ - afterrender: function(){ - var player = videojs('hls-example',{ - autoplay: 'muted' - }); - return true; - }, - } -} \ No newline at end of file diff --git a/lib/controller/dash/node_13 - Copy.js b/lib/controller/dash/node_14.js similarity index 62% rename from lib/controller/dash/node_13 - Copy.js rename to lib/controller/dash/node_14.js index d5d98f2..7a0cf03 100644 --- a/lib/controller/dash/node_13 - Copy.js +++ b/lib/controller/dash/node_14.js @@ -7,21 +7,16 @@ } }], frame: true, + draggable: false, + collapsible: false, bodyStyle: 'padding: 0px;', - plr: null, title: '%%%NODENAME%%%', sukaMineWidth: -1, items:[{ id: 'db_node_%%%NODEID%%%_pic', border: true, width: '100%', - html: '' - },{ - xtype: 'spacer', - height: 3 - },{ - html: '
 
 
  
', - height: 90 + html: '
 
 
%%%HBTN%%% 
' }], listeners:{ resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ @@ -29,17 +24,15 @@ if( p.sukaMineWidth != adjWidth ){ p.sukaMineWidth = adjWidth; var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; - p.setHeight( XX + 120 ); + p.setHeight( XX + 32 ); var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); z.setHeight( XX ); }; }; - var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); - z.update(''); }, afterrender: function( p ){ var xx = p.getWidth() * %%%HEIGHT%%% / %%%WIDTH%%%; - p.setHeight( xx + 120 ); + p.setHeight( xx + 32 ); var z = Ext.getCmp('db_node_%%%NODEID%%%_pic'); z.setHeight( xx ); document.getElementById('img_btn_010_%%%NODEID%%%').addEventListener( 'mouseup', makePtzStop ); @@ -63,10 +56,7 @@ 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 ); - }, - destroy: function( t ){ - if( t.plr != null ) t.plr.dispose(); - t.plr = null; + %%%CAM_CTRL_HOME_BTN_BIND%%% } } } \ No newline at end of file diff --git a/lib/controller/dash/node_15.js b/lib/controller/dash/node_15.js new file mode 100644 index 0000000..7a0cf03 --- /dev/null +++ b/lib/controller/dash/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/dash/node_1_ccc.js b/lib/controller/dash/node_1_ccc.js deleted file mode 100644 index a17ba5f..0000000 --- a/lib/controller/dash/node_1_ccc.js +++ /dev/null @@ -1,320 +0,0 @@ -{ - id: 'db_node_%%%NODEID%%%', - title: '%%%NODENAME%%%', - draggable: false, - collapsible: false, - tools: [{ - id:'toggle', - handler: function( a, b, p ){ - fsDrawID = %%%NODEID%%%; - fullScreen( 'div_radar_%%%NODEID%%%' ); - var el = document.getElementById('draw_svg_'+fsDrawID ); - var nW = Math.floor( ( window.screen.height/window.screen.width ) * 100 ); - el.removeAttribute("width"); - el.setAttribute( "width", nW+'%' ); - } - }], - listeners:{ - afterrender: function(p){ - masks_statuses[%%%NODEID%%%] = 0; - masks_exist[%%%NODEID%%%] = 0; - - var W=p.getWidth(); - var H=9*(W/16); - p.setHeight( H + 32 ); - Ext.getCmp( 'cp_radar_%%%NODEID%%%' ).setHeight( H - 18 ); - //document.getElementById('draw_svg_%%%NODEID%%%').setAttribute("width", H-45 ); - set2DZoomLevel( %%%NODEID%%%, 100 ); - var el = document.getElementById('div_radar_%%%NODEID%%%'); - el.addEventListener( "fullscreenchange", ( evt )=>{ - if( document.fullscreenElement ){ - } else { - if( fsDrawID ){ - var el = document.getElementById('draw_svg_'+fsDrawID ); - el.removeAttribute("width"); - el.setAttribute( "width", '86%' ); - fsDrawID = 0; - }; - }; - }); - window.setTimeout( load2DDraw, 10*%%%NODEID%%%, %%%NODEID%%% ); - } - }, - layout: 'hbox', - items:[{ - id: 'cp_radar_%%%NODEID%%%', - html: '
100 m.502512.5
', - width: '56%' - },{ - frame: false, - border: false, - width: '44%', - items:[{ - xtype: 'button', - id: 'cp_clear_btn_%%%NODEID%%%', - width: '100%', - disabled: true, - text: 'Clear Alarm', - iconCls: 'ctrl_panel_clean_sm', - iconAlign: 'left', - handler: function(){ - doDeviceOperation( 1, 125,'', true ); - } - },{ - xtype: 'spacer', - height: 3 - },{ - xtype: 'button', - id: 'cp_draw_btn_%%%NODEID%%%', - width: '100%', - text: 'Draw Background', - iconCls: 'ctrl_panel_drawscan_sm', - iconAlign: 'left', - disabled: true, - handler: function(){ - doDeviceOperation( %%%NODEID%%%, 3,'', true ); - } - },{ - xtype: 'spacer', - height: 3 - },{ - xtype: 'button', - id: 'cp_study_btn_%%%NODEID%%%', - width: '100%', - text: 'Study Background', - iconCls: 'ctrl_panel_study_sm', - iconAlign: 'left', - disabled: true, - handler: function(){ - doDeviceOperation( %%%NODEID%%%, 2,'', true ); - } - },{ - xtype: 'spacer', - height: 3 - },{ - xtype: 'panel', - title: 'Masking Management', - height: 145, - frame: true, - flex: 1, - layout: 'vbox', - items:[{ - xtype: 'button', - text: 'Mask Editor', - id: 'DMED_%%%NODEID%%%', - width: '100%', - disabled: true, - handler: function(){ - showMaskEditor( false, 0, %%%NODEID%%% ); - } - },{ - xtype: 'spacer', - height: 3 - },{ - xtype: 'panel', - id: 'DMEBB_%%%NODEID%%%', - frame: true, - border: false, - flex: 1, - width: '100%', - height: 53, - layout: 'hbox', - items:[{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium',//scale: 'small', - id: 'mz_btn_%%%NODEID%%%_0', - iconCls: 'mask_zone1_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_0').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 0 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 0 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium', - id: 'mz_btn_%%%NODEID%%%_1', - iconCls: 'mask_zone2_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_1').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 1 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 1 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '19%', - scale: 'medium',//scale: 'large', - id: 'mz_btn_%%%NODEID%%%_2', - iconCls: 'mask_zone3_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_2').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 2 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 2 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium',//scale: 'large', - id: 'mz_btn_%%%NODEID%%%_3', - iconCls: 'mask_zone4_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_3').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 3 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 3 ); - }; - } - },{ - xtype: 'button', - enableToggle: true, - width: '20%', - scale: 'medium',//scale: 'large', - id: 'mz_btn_%%%NODEID%%%_4', - iconCls: 'mask_zone5_btn', - iconAlign: 'top', - pressed: false, - disabled: true, - handler: function(){ - if( Ext.getCmp('mz_btn_%%%NODEID%%%_4').pressed){ - doMaskOperation( %%%NODEID%%%, 1, 4 ); - } else { - doMaskOperation( %%%NODEID%%%, 0, 4 ); - }; - } - }] - }] - },{ - xtype: 'spacer', - height: 3 - }/*,{ - xtype: 'panel', - title: 'Detection Sensitivity', - height: 95, - frame: true, - flex: 1, - layout: 'hbox', - items:[{ - xtype: 'button', - text: 'Factory', - id: 'DDSPBTN0', - width: 80, - iconCls: 'detection_btn_factory', - enableToggle: true, - toggleGroup: 'det_sens_btn_grp', - disabled: true, - scale: 'large', - iconAlign: 'top' - },{ - xtype: 'button', - text: 'Low', - id: 'DDSPBTN1', - width: 80, - iconCls: 'detection_btn_low', - enableToggle: true, - toggleGroup: 'det_sens_btn_grp', - disabled: true, - scale: 'large', - iconAlign: 'top' - },{ - xtype: 'button', - text: 'Meduim', - id: 'DDSPBTN2', - width: 80, - iconCls: 'detection_btn_medium', - enableToggle: true, - toggleGroup: 'det_sens_btn_grp', - disabled: true, - scale: 'large', - iconAlign: 'top' - },{ - xtype: 'button', - text: 'High', - id: 'DDSPBTN3', - width: 80, - iconCls: 'detection_btn_high', - enableToggle: true, - toggleGroup: 'det_sens_btn_grp', - disabled: true, - scale: 'large', - iconAlign: 'top' - }] - }*/] - }], - bbar:[{ - xtype: 'button', - text: '12.5%', - enableToggle: true, - id: 'zoom_bt12_%%%NODEID%%%', - toggleGroup: 'zoom_tg_%%%NODEID%%%', - toggleHandler: function( bt, st ){ - if( st ){ - set2DZoomLevel( %%%NODEID%%%, 12 ); - }; - } - },{ - xtype: 'button', - text: '25%', - enableToggle: true, - id: 'zoom_bt25_%%%NODEID%%%', - toggleGroup: 'zoom_tg_%%%NODEID%%%', - toggleHandler: function( bt, st ){ - if( st ){ - set2DZoomLevel( %%%NODEID%%%, 25 ); - }; - } - },{ - xtype: 'button', - text: '50%', - enableToggle: true, - id: 'zoom_bt50_%%%NODEID%%%', - toggleGroup: 'zoom_tg_%%%NODEID%%%', - toggleHandler: function( bt, st ){ - if( st ){ - set2DZoomLevel( %%%NODEID%%%, 50 ); - }; - } - },{ - xtype: 'button', - text: '100%', - pressed: true, - enableToggle: true, - id: 'zoom_bt100_%%%NODEID%%%', - toggleGroup: 'zoom_tg_%%%NODEID%%%', - toggleHandler: function( bt, st ){ - if( st ){ - set2DZoomLevel( %%%NODEID%%%, 100 ); - }; - } - },{ - xtype: 'panel', - id: 'status_%%%NODEID%%%', - border: false, - frame: false, - width: 800, - height: 28, - html: '' - }] -} \ No newline at end of file diff --git a/lib/controller/dash/node_3 - Copy.js b/lib/controller/dash/node_3 - Copy.js deleted file mode 100644 index e40820f..0000000 --- a/lib/controller/dash/node_3 - Copy.js +++ /dev/null @@ -1,95 +0,0 @@ -{ - id: 'db_node_%%%NODEID%%%', - width: 258, - height: 320, - title: '%%%NODENAME%%%', - tools: [{ - id:'gear', - handler: function(){ - //Ext.Msg.alert('Message', 'The Settings tool was clicked.'); - showSensorToolBox( %%%NODEID%%% ); - } - }], - listeners:{ - afterrender: function(){ - cleanup2DDraw( %%%NODEID%%% ); - drawZoomLevels[%%%NODEID%%%]=100; - } - }, - items:[{ - html: '
', - 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/doCameraOperation.php b/lib/controller/doCameraOperation.php index 0f58fcd..cdf63f1 100644 --- a/lib/controller/doCameraOperation.php +++ b/lib/controller/doCameraOperation.php @@ -44,7 +44,7 @@ $S_Name = $CC['name'].'_'.$CameraID; $QS = "INSERT INTO `nodes`(`type`,`aux_id`,`aux_parameter`,`enable`,`name`) VALUES({$S_Type},{$CameraID},{$S_Stream}, 1,'{$S_Name}')"; $DATABASE->Query( $QS ); - $QS = "UPDATE `cameras` SET `status` = 3 WHERE `id`={$CameraID}"; + $QS = "UPDATE `cameras` SET `status`=3,`type`={$S_Type} WHERE `id`={$CameraID}"; $DATABASE->Query( $QS ); $Data['status'] = 'ok'; }; @@ -261,7 +261,7 @@ $RR = $DATABASE->Query( $QS ); if( count ( $RR ) ){ $CCD = $RR[0]; - $QS ="DELETE FROM `nodes` WHERE `type` IN (10,11,12,13) AND `aux_id`={$CameraID}"; + $QS ="DELETE FROM `nodes` WHERE `type` IN (10,11,12,13,14,15) AND `aux_id`={$CameraID}"; $DATABASE->Query( $QS ); if( $CCD['type'] < 12 ){//Analog $QS="UPDATE `cameras` SET `status`=0 WHERE `id`={$CameraID}"; @@ -272,7 +272,10 @@ $QS ="DELETE FROM `cameras` WHERE `id`={$CameraID}"; $DATABASE->Query( $QS ); }; - + $QS="DELETE FROM `cameras_preset_sets` WHERE `camera_id`={$CameraID}"; + $DATABASE->Query( $QS ); + $QS="DELETE FROM `cameras_presets` WHERE `preset_id`={$CameraID}"; + $DATABASE->Query( $QS ); $Data['status'] = 'ok'; }; break; @@ -296,6 +299,11 @@ case 32: $ACMD = 0x0d; break; // LU case 33: $ACMD = 0x09; break; // Up case 34: $ACMD = 0x0B; break; // RU + case 35: $ACMD = 0x82; break; // IR Off + case 36: $ACMD = 0x81; break; // IR On + case 37: $ACMD = 0x84; break; // Wiper + case 38: $ACMD = 0x83; break; // IR Auto + case 39: $ACMD = 0x85; break; // Set Home Preset Via Comntrol }; echo $CameraID . " -> " .$ACMD; if( $ACMD ){ @@ -307,7 +315,7 @@ break; }; case 9:{ - // Checkup Onvif Camera Credentials + // Set Camera Home Preset require_once('../php/onvif/toto.php'); $onvif = new Ponvif(); $QS ="SELECT `ip`,`port`, `access_login`, `access_pass`, `auth_mode`, `ptz_token`, `home_token` FROM `cameras` WHERE `id`={$CameraID}"; @@ -342,9 +350,13 @@ if( $HTK!='' ){ $onvif->ptz_RemovePreset( $TK, $HTK ); }; - $HTK = '26';//md5(time()); + $HTK = '1'; $onvif->ptz_SetPreset( $TK, $HTK ); - $QS = "UPDATE `cameras` SET `home_token` = '{$HTK}' WHERE `id`={$CameraID}"; + //$QS = "UPDATE `cameras` SET `home_token` = '{$HTK}' WHERE `id`={$CameraID}"; + //$DATABASE->Query( $QS ); + $QS="DELETE FROM `cameras_presets` WHERE `preset_id`={$CameraID} AND `role`=2"; + $DATABASE->Query( $QS ); + $QS = "INSERT INTO `cameras_presets`(`preset_id`,`role`,`token`,`column`,`row`) VALUES({$CameraID},2,'{$HTK}',0,0)"; $DATABASE->Query( $QS ); $Data['status'] = 'ok'; } else { @@ -358,17 +370,53 @@ }; break; }; + case 11:{ + // Direct PTZ Controll + $QS = "SELECT `id` FROM `nodes` WHERE `type` IN (10,11,12,13,14,15) AND `aux_id`={$CameraID}"; + $RR = $DATABASE->Query( $QS ); + $NID = intval( $RR[0]['id'] ); + if( $NID && isset( $_POST['MOV'] ) ){ + $CCC = intval( $_POST['MOV'] ); + switch( $CCC ){ + case 0: $ACMD = 0x01; break; //Stop + case 10: $ACMD = 0x21; break; //Zoom In + case 11: $ACMD = 0x41; break; //Zoom Out + case 27: $ACMD = 0x03; break; // Right + case 28: $ACMD = 0x13; break; // RD + case 29: $ACMD = 0x11; break; // Down + case 30: $ACMD = 0x15; break; // LD + case 31: $ACMD = 0x05; break; // Left + case 32: $ACMD = 0x0d; break; // LU + case 33: $ACMD = 0x09; break; // Up + case 34: $ACMD = 0x0B; break; // RU + case 35: $ACMD = 0x82; break; // IR Off + case 36: $ACMD = 0x81; break; // IR On + case 37: $ACMD = 0x84; break; // Wiper + case 38: $ACMD = 0x83; break; // IR Auto + case 39: $ACMD = 0x85; break; // Set Home Preset Via Comntrol + }; + echo $NID . " -> " .$ACMD; + if( $ACMD ){ + $QS = "INSERT INTO `nodes_qcq`(`cmd`,`node_id`,`status`) VALUES ({$ACMD},{$NID},0)"; + @$MEMDB = new SQLite_DB( '/dev/shm/argus/mem_db.db'); + $MEMDB->Query( $QS ); + }; + }; + break; + }; case 10:{ + //Additionall commands $OP = intval( $_POST['OPID'] ); switch( $OP ){ case 1:{ + //Bind Stream to Camera $Param = intval( $_POST['OPCODE'] ); $QS = "SELECT * FROM `cameras` WHERE `id`={$CameraID}"; $JJ = $DATABASE->Query( $QS ); if( count( $JJ ) ){ $CC = $JJ[0]; if( $CC['status'] == 3 ){ - $QS = "UPDATE `nodes` SET `aux_param`={$Param} WHERE `aux_id`={$CameraID} AND `type` IN(10,11,12,13)"; + $QS = "UPDATE `nodes` SET `aux_param`={$Param} WHERE `aux_id`={$CameraID} AND `type` IN(10,11,12,13,14,15)"; $DATABASE->Query( $QS ); }; $QS = "UPDATE `cameras` SET `stream_id`={$Param} WHERE `id`={$CameraID}"; @@ -378,6 +426,7 @@ break; }; case 2:{ + //Set Lens Parameter $Param = intval( $_POST['OPCODE'] ); $QS = "UPDATE `cameras` SET `imager_type`={$Param} WHERE `id`={$CameraID}"; $DATABASE->Query( $QS ); @@ -385,6 +434,7 @@ break; }; case 3:{ + //Set Lens Parameter $Param = intval( $_POST['OPCODE'] ); $QS = "UPDATE `cameras` SET `lens_f`={$Param} WHERE `id`={$CameraID}"; $DATABASE->Query( $QS ); @@ -392,6 +442,7 @@ break; }; case 4:{ + //Set Lens Parameter $Param = floatval( $_POST['OPCODE'] ); if( $Param > 0 ){ $ZM = 1; @@ -404,14 +455,40 @@ break; }; case 5:{ + // Set Protocol $Param = intval( $_POST['OPCODE'] ); + $QS = "SELECT `id`, `type` FROM `nodes` WHERE `aux_id`={$CameraID} AND `type` IN (10,11,12,13,14,15)"; + $NR = $DATABASE->Query( $QS ); + $NODE = $NR[0]; + $Param = intval( $_POST['OPCODE'] ); + $NMODE = 0; + if( $Param ){ + switch( $NODE['type'] ){ + case 10: $NMODE = 11; break; + case 12: $NMODE = 13; break; + }; + } else { + switch( $NODE['type'] ){ + case 11: $NMODE = 10; break; + case 13: $NMODE = 12; break; + case 14: $NMODE = 12; break; + case 15: $NMODE = 12; break; + }; + }; + if( $NMODE ){ + $QS = "UPDATE `nodes` SET `type`={$NMODE} WHERE `id`={$NODE['id']}"; + $DATABASE->Query( $QS ); + $QS = "UPDATE `cameras` SET `type`={$NMODE} WHERE `id`={$CameraID}"; + $DATABASE->Query( $QS ); + }; $QS = "UPDATE `cameras` SET `protocol`={$Param} WHERE `id`={$CameraID}"; $DATABASE->Query( $QS ); $Data['status'] = 'ok-5'; break; }; case 6:{ - $QS = "SELECT `id` FROM `uart_settings`"; + //Set Uart Parameter + $QS = "SELECT `id` FROM `uart_settings` ORDER BY `id`"; $JUJA = $DATABASE->Query( $QS ); $Param = intval( $_POST['OPCODE'] ); $RID = intval($JUJA[$Param]['id']); @@ -421,6 +498,7 @@ break; }; case 7:{ + //Set Protocol Parameter $Param = intval( $_POST['OPCODE'] ); $QS = "UPDATE `cameras` SET `protocol_aux`={$Param} WHERE `id`={$CameraID}"; $DATABASE->Query( $QS ); @@ -512,8 +590,9 @@ break; }; case 20:{ + //Set Camera Name $Param = $DATABASE->escape( $_POST['OPCODE'] ); - $QS = "UPDATE `nodes` SET `name`='{$Param}' WHERE `type`>9 AND `type`<14 AND `aux_id`={$CameraID}"; + $QS = "UPDATE `nodes` SET `name`='{$Param}' WHERE `type` IN (10,11,12,13,14,15) AND `aux_id`={$CameraID}"; $DATABASE->Query( $QS ); $Data['status'] = 'ok-20'; break; @@ -567,6 +646,382 @@ $Data['status'] = 'ok-26'; break; }; + case 27:{ + // Set Camera Presets Mode + $QS = "SELECT `id`, `type` FROM `nodes` WHERE `aux_id`={$CameraID} AND `type` IN (10,11,12,13,14,15)"; + $NR = $DATABASE->Query( $QS ); + $NODE = $NR[0]; + $Param = intval( $_POST['OPCODE'] ); + $NMODE = 0; + if( $Param ){ + switch( $NODE['type'] ){ + case 11: $NMODE = 15; break; + case 13: $NMODE = 14; break; + }; + } else { + switch( $NODE['type'] ){ + case 14: $NMODE = 13; break; + case 15: $NMODE = 11; break; + }; + }; + if( $NMODE ){ + $QS = "UPDATE `nodes` SET `type`={$NMODE} WHERE `id`={$NODE['id']}"; + $DATABASE->Query( $QS ); + $QS = "UPDATE `cameras` SET `type`={$NMODE} WHERE `id`={$CameraID}"; + $DATABASE->Query( $QS ); + }; + $Data['status'] = 'ok-27'; + break; + }; + case 28:{ + $TArr = explode ( '_', $_POST['OPCODE'] ); + $CCOL = intval( $TArr[0] ); + $CROW = intval( $TArr[1] ); + + $QS = "SELECT * FROM `cameras_preset_sets` WHERE `camera_id`={$CameraID}"; + $RV = $DATABASE->Query( $QS ); + if( count( $RV ) == 0 ){ + $QS = "INSERT INTO `cameras_preset_sets`(`camera_id`,`maxCount`,`p_segs`,`z_segs`) VALUES( {$CameraID},8,5,3"; + $DATABASE->Query( $QS ); + $QS = "SELECT * FROM `cameras_preset_sets` WHERE `camera_id`={$CameraID}"; + $RV = $DATABASE->Query( $QS ); + }; + $PSS = $RV[0]; + $QS = "SELECT `id`,`token` FROM `cameras_presets` WHERE `preset_id`={$CameraID} AND `role`=1 AND `row`={$CROW} AND `column`={$CCOL}"; + $RV = $DATABASE->Query( $QS ); + $OID = 0; + $TOKEN = ''; + if( count( $RV ) ){ + $OID = intval( $RV[0]['id'] ); + $TOKEN = $RV[0]['token']; + } else { + $QS = "SELECT `token` FROM `cameras_presets` WHERE `preset_id`={$CameraID} AND `role`=1 ORDER BY `token`"; + $RV = $DATABASE->Query( $QS ); + }; + if( $OID || ( count( $RV ) < $PSS['maxCount'] ) ){ + if( $TOKEN == '' ){ + if( count( $RV ) ){ + $TOKEN = ( intval( $RV[count( $RV )-1]['token'] ) + 1 ).''; + } else { + $TOKEN = '2'; + }; + }; + + // Set Camera Position Preset + require_once('../php/onvif/toto.php'); + $onvif = new Ponvif(); + $QS ="SELECT `ip`,`port`, `access_login`, `access_pass`, `auth_mode`, `ptz_token`, `home_token` FROM `cameras` WHERE `id`={$CameraID}"; + $JJ = $DATABASE->Query( $QS ); + if( count( $JJ ) ){ + $IP = $JJ[0]['ip']; + $PORT = intval($JJ[0]['port']); + $EUser = $JJ[0]['access_login']; + $EPass = $JJ[0]['access_pass']; + $AUTH = intval($JJ[0]['auth_mode']); + try { + $Data['status'] = 'try'; + if( $PORT ){ + $onvif->setIPAddress( $IP.':'.$PORT ); + } else { + $onvif->setIPAddress( $IP ); + }; + $onvif->setUsername( $EUser ); + $onvif->setPassword( $EPass ); + $onvif->setAuthMethod( $AUTH ); + $onvif->initialize(); + if ( !$onvif->isFault( $devices = $onvif->getSources())){ + $TK = ''; + $Data['status'] = 'notoken'; + foreach( $devices[0] as $source ) if( is_array( $source ) ){ + $TK = $source['profiletoken']; + break; + }; + if( $TK == '' ) break; + $Data['token'] = $TK; + //$HTK = $JJ[0]['home_token']; + if( $OID ){ + $onvif->ptz_RemovePreset( $TK, $TOKEN ); + }; + $onvif->ptz_SetPreset( $TK, $TOKEN ); + if( $OID ){ + $QS = "UPDATE `cameras_presets` SET `column`={$CCOL},`row`={$CROW} WHERE `id`={$OID}"; + } else { + $QS = "INSERT INTO `cameras_presets`(`preset_id`,`role`,`token`,`column`,`row`) VALUES({$CameraID},1,'{$TOKEN}',{$CCOL},{$CROW})"; + }; + $DATABASE->Query( $QS ); + $Data['status'] = 'ok'; + } else { + $Data['msg'] = 'OnVif Query Device Fault!'; + } + } catch( Exception $e ){ + $Data['msg'] = 'Provided Credentials are Wrong! ['.$EUser.']:['.$EPass.']'; + }; + } else $Data['status'] = 'nocam'; + } else $Data['status'] = 'nopresetspace'; + break; + }; + case 29:{ + $PID = intval( $_POST['OPCODE'] ); + if( $PID ){ + $QS = "SELECT `token` FROM `cameras_presets` WHERE `id`={$PID}"; + $RR = $DATABASE->Query( $QS ); + if( count( $RR ) ){ + $TOKEN = $RR[0]['token']; + // remove Camera Position Preset + require_once('../php/onvif/toto.php'); + $onvif = new Ponvif(); + $QS ="SELECT `ip`,`port`, `access_login`, `access_pass`, `auth_mode`, `ptz_token`, `home_token` FROM `cameras` WHERE `id`={$CameraID}"; + $JJ = $DATABASE->Query( $QS ); + if( count( $JJ ) ){ + $IP = $JJ[0]['ip']; + $PORT = intval($JJ[0]['port']); + $EUser = $JJ[0]['access_login']; + $EPass = $JJ[0]['access_pass']; + $AUTH = intval($JJ[0]['auth_mode']); + try { + $Data['status'] = 'try'; + if( $PORT ){ + $onvif->setIPAddress( $IP.':'.$PORT ); + } else { + $onvif->setIPAddress( $IP ); + }; + $onvif->setUsername( $EUser ); + $onvif->setPassword( $EPass ); + $onvif->setAuthMethod( $AUTH ); + $onvif->initialize(); + if ( !$onvif->isFault( $devices = $onvif->getSources())){ + $TK = ''; + $Data['status'] = 'notoken'; + foreach( $devices[0] as $source ) if( is_array( $source ) ){ + $TK = $source['profiletoken']; + break; + }; + if( $TK == '' ) break; + $Data['token'] = $TK; + $onvif->ptz_RemovePreset( $TK, $TOKEN ); + $QS = "DELETE FROM `cameras_presets` WHERE `id`={$PID}"; + $RR = $DATABASE->Query( $QS ); + $Data['status'] = 'ok'; + } else { + $Data['msg'] = 'OnVif Query Device Fault!'; + } + } catch( Exception $e ){ + $Data['msg'] = 'Provided Credentials are Wrong! ['.$EUser.']:['.$EPass.']'; + }; + } else $Data['status'] = 'nocam'; + } else $Data['status'] = 'nopreset'; + } else $Data['status'] = 'nocam'; + break; + }; + case 30:{ + $PID = intval( $_POST['OPCODE'] ); + if( $PID ){ + $QS = "SELECT `token` FROM `cameras_presets` WHERE `id`={$PID}"; + $RR = $DATABASE->Query( $QS ); + if( count( $RR ) ){ + $TOKEN = $RR[0]['token']; + // Set Camera Position Preset + require_once('../php/onvif/toto.php'); + $onvif = new Ponvif(); + $QS ="SELECT `ip`,`port`, `access_login`, `access_pass`, `auth_mode`, `ptz_token`, `home_token` FROM `cameras` WHERE `id`={$CameraID}"; + $JJ = $DATABASE->Query( $QS ); + if( count( $JJ ) ){ + $IP = $JJ[0]['ip']; + $PORT = intval($JJ[0]['port']); + $EUser = $JJ[0]['access_login']; + $EPass = $JJ[0]['access_pass']; + $AUTH = intval($JJ[0]['auth_mode']); + try { + $Data['status'] = 'try'; + if( $PORT ){ + $onvif->setIPAddress( $IP.':'.$PORT ); + } else { + $onvif->setIPAddress( $IP ); + }; + $onvif->setUsername( $EUser ); + $onvif->setPassword( $EPass ); + $onvif->setAuthMethod( $AUTH ); + $onvif->initialize(); + if ( !$onvif->isFault( $devices = $onvif->getSources())){ + $TK = ''; + $Data['status'] = 'notoken'; + foreach( $devices[0] as $source ) if( is_array( $source ) ){ + $TK = $source['profiletoken']; + break; + }; + if( $TK == '' ) break; + $Data['token'] = $TK; + $Data['p_token'] = $TOKEN; + $onvif->ptz_GotoPreset( $TK, $TOKEN, 1.0, 1.0, 1.0 ); + $Data['status'] = 'ok'; + } else { + $Data['msg'] = 'OnVif Query Device Fault!'; + } + } catch( Exception $e ){ + $Data['msg'] = 'Provided Credentials are Wrong! ['.$EUser.']:['.$EPass.']'; + }; + } else $Data['status'] = 'nocam'; + } else $Data['status'] = 'nopreset'; + } else $Data['status'] = 'nocam'; + break; + }; + case 31:{ + //Set MaxPreset Count + $NCT = intval( $_POST['OPCODE'] ); + if( $NCT ){ + $QS = "UPDATE `cameras_preset_sets` SET `maxCount`={$NCT} WHERE `camera_id`={$CameraID}"; + $DATABASE->Query( $QS ); + $Data['status'] = 'ok31'; + }; + break; + }; + case 32:{ + //Set MaxColumnt Count + $NCT = intval( $_POST['OPCODE'] ); + if( $NCT ){ + $QS = "UPDATE `cameras_preset_sets` SET `p_segs`={$NCT} WHERE `camera_id`={$CameraID}"; + $DATABASE->Query( $QS ); + $Data['status'] = 'ok32'; + }; + break; + }; + case 33:{ + //Set MaxRow Count + $NCT = intval( $_POST['OPCODE'] ); + if( $NCT ){ + $QS = "UPDATE `cameras_preset_sets` SET `z_segs`={$NCT} WHERE `camera_id`={$CameraID}"; + $DATABASE->Query( $QS ); + $Data['status'] = 'ok33'; + }; + break; + }; + case 34:{ + //Delete all presets + $QS = "SELECT `id`,`token` FROM `cameras_presets` WHERE `role`=1 AND `preset_id`={$CameraID}"; + $RR = $DATABASE->Query( $QS ); + if( count( $RR ) ){ + foreach( $RR as $R ){ + $QS = "DELETE FROM `cameras_presets` WHERE `id`={$R['id']}"; + $DATABASE->Query( $QS ); + }; + }; + // Set Camera Position Preset + require_once('../php/onvif/toto.php'); + $onvif = new Ponvif(); + $QS ="SELECT `ip`,`port`, `access_login`, `access_pass`, `auth_mode`, `ptz_token`, `home_token` FROM `cameras` WHERE `id`={$CameraID}"; + $JJ = $DATABASE->Query( $QS ); + if( count( $JJ ) ){ + $IP = $JJ[0]['ip']; + $PORT = intval($JJ[0]['port']); + $EUser = $JJ[0]['access_login']; + $EPass = $JJ[0]['access_pass']; + $AUTH = intval($JJ[0]['auth_mode']); + try { + $Data['status'] = 'try'; + if( $PORT ){ + $onvif->setIPAddress( $IP.':'.$PORT ); + } else { + $onvif->setIPAddress( $IP ); + }; + $onvif->setUsername( $EUser ); + $onvif->setPassword( $EPass ); + $onvif->setAuthMethod( $AUTH ); + $onvif->initialize(); + if ( !$onvif->isFault( $devices = $onvif->getSources())){ + $TK = ''; + $Data['status'] = 'notoken'; + foreach( $devices[0] as $source ) if( is_array( $source ) ){ + $TK = $source['profiletoken']; + break; + }; + if( $TK == '' ) break; + $Data['token'] = $TK; + for( $i=2; $i<32; $i++ ){ // '1' = token for home position + $CTT = $i.''; + $onvif->ptz_RemovePreset( $TK, $CTT ); + }; + $Data['status'] = 'ok'; + } else { + $Data['msg'] = 'OnVif Query Device Fault!'; + } + } catch( Exception $e ){ + $Data['msg'] = 'Provided Credentials are Wrong! ['.$EUser.']:['.$EPass.']'; + }; + } else $Data['status'] = 'nocam'; + break; + }; + case 35:{ + //Set IR Off + $NCT = intval( $_POST['OPCODE'] ); + $QS = "DELETE FROM `cameras_presets` WHERE `preset_id`={$CameraID} AND `role`=5"; + $DATABASE->Query( $QS ); + if( $NCT ){ + $QS = "REPLACE INTO `cameras_presets`( `preset_id`,`role`,`token`) VALUES ({$CameraID},5,'{$NCT}')"; + $DATABASE->Query( $QS ); + }; + $Data['status'] = 'ok35'; + break; + }; + case 36:{ + //Set IR On + $NCT = intval( $_POST['OPCODE'] ); + $QS = "DELETE FROM `cameras_presets` WHERE `preset_id`={$CameraID} AND `role`=4"; + $DATABASE->Query( $QS ); + if( $NCT ){ + $QS = "REPLACE INTO `cameras_presets`( `preset_id`,`role`,`token`) VALUES ({$CameraID},4,'{$NCT}')"; + $DATABASE->Query( $QS ); + }; + $Data['status'] = 'ok36'; + break; + }; + case 37:{ + //Set IR Auto + $NCT = intval( $_POST['OPCODE'] ); + $QS = "DELETE FROM `cameras_presets` WHERE `preset_id`={$CameraID} AND `role`=3"; + $DATABASE->Query( $QS ); + if( $NCT ){ + $QS = "REPLACE INTO `cameras_presets`( `preset_id`,`role`,`token`) VALUES ({$CameraID},3,'{$NCT}')"; + $DATABASE->Query( $QS ); + }; + $Data['status'] = 'ok37'; + break; + }; + case 38:{ + //Set Wiper + $NCT = intval( $_POST['OPCODE'] ); + $QS = "DELETE FROM `cameras_presets` WHERE `preset_id`={$CameraID} AND `role`=6"; + $DATABASE->Query( $QS ); + if( $NCT ){ + $QS = "REPLACE INTO `cameras_presets`( `preset_id`,`role`,`token`) VALUES ({$CameraID},6,'{$NCT}')"; + $DATABASE->Query( $QS ); + }; + $Data['status'] = 'ok38'; + break; + }; + case 39:{ + //IR ECO Mode + $Param = intval( $_POST['OPCODE'] ); + if( $Param ){ + $QS = "UPDATE `cameras` SET `eco_ir`=1 WHERE `id`={$CameraID}"; + } else { + $QS = "UPDATE `cameras` SET `eco_ir`=0 WHERE `id`={$CameraID}"; + }; + $DATABASE->Query( $QS ); + $Data['status'] = 'ok-39'; + break; + }; + case 40:{ + //Prefered Only Targets + $Param = intval( $_POST['OPCODE'] ); + if( $Param ){ + $QS = "UPDATE `cameras` SET `prefered_events_only`=1 WHERE `id`={$CameraID}"; + } else { + $QS = "UPDATE `cameras` SET `prefered_events_only`=0 WHERE `id`={$CameraID}"; + }; + $DATABASE->Query( $QS ); + $Data['status'] = 'ok-39'; + break; + }; }; break; }; diff --git a/lib/controller/doModuleOperation.php b/lib/controller/doModuleOperation.php index 5992be6..fe53df1 100644 --- a/lib/controller/doModuleOperation.php +++ b/lib/controller/doModuleOperation.php @@ -17,14 +17,14 @@ $OPCODE = 0; }; if( $MID > 0 && $CMD > 0 ){ - $Data['success'] = true; + $Data['success'] = true; + $QS = "SELECT * FROM `modules` WHERE `id`={$MID}"; + $TT = $DATABASE->Query( $QS ); $QS = ''; - switch( $CMD ){ - case 1: { - $QS = "SELECT * FROM `modules` WHERE `id`={$MID}"; - $TT = $DATABASE->Query( $QS ); - if( count( $TT ) ){ - $JJ = $TT[0]; + if( count( $TT ) ){ + $JJ = $TT[0]; + switch( $CMD ){ + case 1: { switch( $JJ['type'] ){ case 1:{//ZL $QS = "DELETE FROM `media_servers` WHERE `id`={$JJ['aux_id']}"; @@ -53,7 +53,7 @@ case 10:{// Modem Manager $QS = "DELETE FROM `module_modem` WHERE `id`={$JJ['aux_id']}"; $DATABASE->Query( $QS ); - $QS = "DELETE FROM `module_modem_phonebook` WHERE `aux_id`={$JJ['aux_id']}"; + $QS = "DELETE FROM `module_modem_phonebook`"; $DATABASE->Query( $QS ); break; }; @@ -62,9 +62,10 @@ //$DATABASE->Query( $QS ); }; break; + case 2: $QS = "UPDATE `modules` SET `enabled`={$OPCODE} WHERE `id`={$MID}"; break; + case 3: if( $OPCODE ) $QS = "UPDATE `module_eve` SET `output_mode`={$OPCODE} WHERE `id`={$JJ['aux_id']}"; break; + case 4: $QS = "UPDATE `module_modem` SET `modem_id`={$OPCODE} WHERE `id`={$JJ['aux_id']}"; break; }; - case 2: $QS = "UPDATE `modules` SET `enabled`={$OPCODE} WHERE `id`={$MID}"; break; - case 3: if( $OPCODE ) $QS = "UPDATE `module_eve` SET `output_mode`={$OPCODE} WHERE `id`={$MID}"; break; }; if( $QS != '' ) $DATABASE->Query( $QS ); $Data['query'] = $QS; diff --git a/lib/controller/doSensorOperation.php b/lib/controller/doSensorOperation.php index d4651ac..5c1fa90 100644 --- a/lib/controller/doSensorOperation.php +++ b/lib/controller/doSensorOperation.php @@ -308,6 +308,12 @@ $Data['success'] = true; break; }; + case 36:{//Prefered Camera Set + $OPCODE = intval( $_POST['OPCODE'] ); + $QS = "UPDATE `lrf_sensors` SET `prefered_camera_id`={$OPCODE} WHERE `id`={$SNID}"; + $Data['success'] = true; + break; + }; case 255:{ // Delete Sensor $NID = $CN['id']; diff --git a/lib/controller/getCameraEditor.php b/lib/controller/getCameraEditor.php index dc52ef4..08b0847 100644 --- a/lib/controller/getCameraEditor.php +++ b/lib/controller/getCameraEditor.php @@ -10,9 +10,10 @@ $STREAMS = array(); if( count( $Result ) ){ $Cam = $Result[0]; - $QS="SELECT `name` FROM `nodes` WHERE `type`>9 AND `type`<14 AND `aux_id`={$CID}"; + $QS="SELECT * FROM `nodes` WHERE `type`>9 AND `type`<16 AND `aux_id`={$CID}"; $JJ = $DATABASE->Query( $QS ); - $Cam['node_name'] = $JJ[0]['name']; + $Node = $JJ[0]; + $Cam['node_name'] = $Node['name']; $Cam['name']=urldecode( $Cam['name'] ); $TB = explode( ' ', $Cam['name'] ); $Cam['name'] = $TB[0]; @@ -48,7 +49,7 @@ }; $STREAMS = implode(',',$STREAMS); - $QS="SELECT re.aux_id, re.device FROM resources re LEFT JOIN nodes no ON( re.node_id = no.id ) WHERE ( re.type=1 OR re.type=129 ) "; + $QS="SELECT re.aux_id, re.device FROM resources re LEFT JOIN nodes no ON( re.node_id = no.id ) WHERE ( re.type=1 OR re.type=129 ) ORDER BY re.aux_id"; $RR=$DATABASE->Query( $QS ); if( count( $RR ) ){ $RE=array(); @@ -61,6 +62,29 @@ }; $ATAB = 0; //v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=1 --stream-to=output.jpg + + $QS = "SELECT `no`.`id`, `sen`.`type`, `sen`.`max_range`, `no`.`enable`, `no`.`name` FROM `lrf_sensors` `sen` LEFT JOIN `nodes` `no` ON( `no`.`aux_id`=`sen`.`id` AND `no`.`type`=`sen`.`type`)"; + $Result = $DATABASE->Query( $QS, false ); + $SENSORS = array(); + $SENSOID = 0; + if( count( $Result ) ){ + $SenPart = array(); + foreach( $Result as $R ){ + switch( $R['type'] ){ + case 1: $HWT = 'ALS ' . $R['max_range'] . ' meters'; break; + case 2: $HWT = 'LFS ' . $R['max_range'] . ' meters'; break; + case 3: $HWT = 'PLS200 ' . $R['max_range'] . ' meters'; break; + case 4: $HWT = 'PLS360 ' . $R['max_range'] . ' meters'; break; + case 5: $HWT = '3DLRF ' . $R['max_range'] . ' meters'; break; + }; + $SenPart[] = '[ '.$R['id'].',\''.$R['name'].'('.$HWT.')\']'; + }; + $SENSORS = '['.implode( ',', $SenPart ) .']'; + if( $SENSOID == 0 ) $SENSOID = intval( $R['id'] ); + } else { + $SENSORS ='[ [ 0, \'--No Sensors Defined--\']]'; + }; + if( $CAM_IP ){ $RESET_CREDENTIALS=<<GetLabel('_CAM_FIXEDZ_')}'], - [1,'{$Labels->GetLabel('_CAM_VARIOZ_')}'], - [2,'{$Labels->GetLabel('_CAM_CUSTOMZ_')}'] + [1,'{$Labels->GetLabel('_CAM_CUSTOMZ_')}'], + [2,'{$Labels->GetLabel('_CAM_VARIOZ_')}'] ] }), valueField: 'zm', @@ -747,10 +771,18 @@ CHUPAKABRA; select: function( a, c, b ){ doCamOperation( {$CID}, 5, b ); if( b > 0 ){ - if( b != 3 ){ + Ext.getCmp('cam_drive_par').show(); + if(({$Cam['type']}==13)||({$Cam['type']}==11)){ + Ext.getCmp('cam_ptz_par').show(); + } else { + Ext.getCmp('cam_ptz_par').hide(); + }; + if( b == 1 || b == 2 ){ + Ext.getCmp('cam_uart_par').show(); Ext.getCmp('uart_id').enable(); Ext.getCmp('prot_id').enable(); } else { + Ext.getCmp('cam_uart_par').hide(); Ext.getCmp('uart_id').disable(); Ext.getCmp('prot_id').disable(); }; @@ -759,6 +791,9 @@ CHUPAKABRA; Ext.getCmp('pan_ang').enable(); Ext.getCmp('tilt_ang').enable(); } else { + Ext.getCmp('cam_ptz_par').hide(); + Ext.getCmp('cam_drive_par').hide(); + Ext.getCmp('cam_uart_par').hide(); Ext.getCmp('uart_id').disable(); Ext.getCmp('prot_id').disable(); Ext.getCmp('pan_mode').disable(); @@ -770,7 +805,23 @@ CHUPAKABRA; } },{ html: ' ' - },{ + }] + },{ + layout: 'table', + id: 'cam_uart_par', + frame: false, + border: false, + hidden: (({$Cam['protocol']}!=1) || ({$Cam['protocol']}!=2)), + layoutConfig: { + columns: 3 + }, + defaults: { + frame: false, + bodyStyle: 'padding:10px', + border: false + }, + items:[{ + width: 200, html: '{$Labels->GetLabel('_UART_PORT_')}' },{ xtype: 'combo', @@ -814,7 +865,370 @@ CHUPAKABRA; } },{ html: ' ' + }] + },{ + layout: 'table', + id: 'cam_drive_par', + frame: false, + border: false, + hidden: ({$Cam['protocol']}<1), + layoutConfig: { + columns: 3 + }, + defaults: { + frame: false, + bodyStyle: 'padding:10px', + border: false + }, + items:[{ + width: 200, + html: '{$Labels->GetLabel('_CAM_PTZ_MODE_')}' },{ + xtype: 'combo', + fieldLabel: '{$Labels->GetLabel('_CAM_PTZ_MODE_')}', + lazyRender: true, + id: 'cam_ptz_mode', + mode: 'local', + forceSelection: true, + triggerAction: 'all', + editable: false, + disableKeyFilter: true, + store: new Ext.data.ArrayStore({ + fields: ['momo','momo_txt'], + data: [[0,'Absolute'],[1,'Presetets']] + }), + valueField: 'momo', + displayField: 'momo_txt', + value: ((({$Cam['type']}==13)||({$Cam['type']}==11))?0:1), + listeners:{ + select: function( a, c, b ){ + doCamOperation( {$CID}, 27, b ); + if( b == 1 ){ + Ext.getCmp('cam_ed_preset').enable(); + Ext.getCmp('cam_ptz_par').hide(); + } else { + Ext.getCmp('cam_ed_preset').disable(); + Ext.getCmp('cam_ptz_par').show(); + }; + } + } + },{ + xtype: 'button', + id: 'cam_ed_preset', + //disabled: (({$Cam['type']}==13)||({$Cam['type']}==11)), + text: '{$Labels->GetLabel('_CAM_PRES_EDIT_')}', + handler: function(){ + var zaza = new Ext.Window({ + title: '{$Labels->GetLabel('_CAM_PRES_EDITOR_')}', + modal: true, + resizable: false, + width: 800, + height: 804, + sukaMineWidth: -1, + items:[{ + id: 'db_node_{$Node['id']}_pic', + border: true, + width: '100%', + html: '
' + },{ + layout: 'table', + layoutConfig: { + columns: 3 + }, + defaults: { + frame: false, + bodyStyle: 'padding:10px', + border: false + }, + items:[{ + width: 200, + html: '{$Labels->GetLabel('_CAM_PRES_SSELECT_')}' + },{ + xtype: 'combo', + lazyRender: true, + id: 'sensor_id', + mode: 'local', + forceSelection: true, + triggerAction: 'all', + editable: false, + disableKeyFilter: true, + //disabled: (({$Cam['protocol']}!=1 ) && ( {$Cam['protocol']}!=2 )), + store: new Ext.data.ArrayStore({ + fields: ['sens','sens_txt'], + data: {$SENSORS} + }), + valueField: 'sens', + displayField: 'sens_txt', + value: {$SENSOID}, + listeners:{ + select: function( a, c, b ){ + selectedPresetsBackgroundSensor = c.data.sens; + } + } + },{ + xtype: 'button', + text: '{$Labels->GetLabel('_CAM_PRES_LOBACK_')}', + width: 240, + handler: function(){ + if( selectedPresetsBackgroundSensor == 0 ){ + selectedPresetsBackgroundSensor = Ext.getCmp( 'sensor_id' ).getValue(); + //selectedPresetsBackgroundSensor = {$SENSOID}; + }; + if( selectedPresetsBackgroundSensor ) preview2DDraw( selectedPresetsBackgroundSensor, 'ptz_presets_'); + } + },{ + html: '' + },{ + xtype: 'button', + text: '{$Labels->GetLabel('_CAM_PRES_DELALL_')}', + width: 230, + handler: function(){ + doCamOperation( {$CID}, 34, 0 ); + window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+{$Cam['id']}+" );", 1000 ); + } + },{ + xtype: 'button', + text: '{$Labels->GetLabel('_CAM_PRES_REMBG_')}', + width: 240, + handler: function(){ + selectedPresetsBackgroundSensor = 0; + showCameraPresets( 'ptz_presets_0', {$Cam['id']} ); + } + },{ + html: '{$Labels->GetLabel('_CAM_PRES_COUNT_')}' + },{ + xtype: 'numberfield', + id: 'pres_count', + width: 240 + },{ + xtype: 'button', + text: 'Set', + width: 240, + handler: function(){ + var vv = Ext.getCmp('pres_count').getValue(); + if( vv ){ + doCamOperation( {$CID}, 31, vv ); + }; + } + },{ + html: '{$Labels->GetLabel('_CAM_PRES_COLS_')}' + },{ + xtype: 'numberfield', + id: 'pres_p_seg', + width: 240 + },{ + xtype: 'button', + text: '{$Labels->GetLabel('__SET__')}', + width: 240, + handler: function(){ + var vv = Ext.getCmp('pres_p_seg').getValue(); + if( vv ){ + doCamOperation( {$CID}, 32, vv ); + window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+{$Cam['id']}+" );", 300 ); + }; + } + },{ + html: '{$Labels->GetLabel('_CAM_PRES_ROWS_')}' + },{ + xtype: 'numberfield', + id: 'pres_z_seg', + width: 240 + },{ + xtype: 'button', + text: '{$Labels->GetLabel('__SET__')}', + width: 240, + handler: function(){ + var vv = Ext.getCmp('pres_z_seg').getValue(); + if( vv ){ + doCamOperation( {$CID}, 33, vv ); + window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+{$Cam['id']}+" );", 300 ); + }; + } + },{ + html: '{$Labels->GetLabel('_CAM_PRES_IROFF_')}' + },{ + xtype: 'numberfield', + id: 'pres_iroff', + width: 240 + },{ + xtype: 'button', + text: '{$Labels->GetLabel('__SET__')}', + width: 240, + handler: function(){ + var vv = Ext.getCmp('pres_iroff').getValue(); + doCamOperation( {$CID}, 35, vv ); + } + },{ + html: '{$Labels->GetLabel('_CAM_PRES_IRON_')}' + },{ + xtype: 'numberfield', + id: 'pres_iron', + width: 240 + },{ + xtype: 'button', + text: '{$Labels->GetLabel('__SET__')}', + width: 240, + handler: function(){ + var vv = Ext.getCmp('pres_iron').getValue(); + doCamOperation( {$CID}, 36, vv ); + } + },{ + html: '{$Labels->GetLabel('_CAM_PRES_IRAUTO_')}' + },{ + xtype: 'numberfield', + id: 'pres_irauto', + width: 240 + },{ + xtype: 'button', + text: '{$Labels->GetLabel('__SET__')}', + width: 240, + handler: function(){ + var vv = Ext.getCmp('pres_irauto').getValue(); + doCamOperation( {$CID}, 37, vv ); + } + },{ + html: '{$Labels->GetLabel('_CAM_PRES_IRWIPER_')}' + },{ + xtype: 'numberfield', + id: 'pres_wiper', + width: 240 + },{ + xtype: 'button', + text: '{$Labels->GetLabel('__SET__')}', + width: 240, + handler: function(){ + var vv = Ext.getCmp('pres_wiper').getValue(); + doCamOperation( {$CID}, 38, vv ); + } + }] + }], + listeners:{ + resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ + if( rawWidth!= undefined ){ + if( p.sukaMineWidth != adjWidth ){ + p.sukaMineWidth = adjWidth; + var XX = p.sukaMineWidth * 9 / 16; + //p.setHeight( XX + 32 ); + var z = Ext.getCmp('db_node_{$Node['id']}_pic'); + z.setHeight( XX ); + }; + }; + }, + afterrender: function( p ){ + var xx = p.getWidth() * 9 / 16; + //p.setHeight( xx + 32 ); + var z = Ext.getCmp('db_node_{$Node['id']}_pic'); + z.setHeight( xx ); + document.getElementById('img_btn_010_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_010_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_011_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_011_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_027_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_027_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_028_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_028_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_029_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_029_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_030_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_030_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_031_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_031_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_032_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_032_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_033_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_033_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_034_{$Node['id']}').addEventListener( 'mouseup', makePtzStop ); + document.getElementById('img_btn_034_{$Node['id']}').addEventListener( 'mousedown', makePtzMove ); + document.getElementById('img_btn_020_{$Node['id']}').addEventListener( 'mousedown', makePtzStop ); + showCameraPresets( 'ptz_presets_0', {$Cam['id']} ); + } + } + }); + zaza.show(); + } + },{ + html: '{$Labels->GetLabel('_CAM_IR_ECO_')}' + },{ + xtype: 'checkbox', + id: 'ptz_ir_eco', + checked: ({$Cam['eco_ir']} > 0 ), + listeners:{ + check: function( a, c ){ + if( c ){ + doCamOperation( {$CID}, 39, 1 ); + } else { + doCamOperation( {$CID}, 39, 0 ); + }; + } + } + },{ + html: ' ' + },{ + html: '{$Labels->GetLabel('_CAM_PTZ_AAC_')}' + },{ + xtype: 'checkbox', + id: 'ptz_axel_c', + disabled: ({$Cam['protocol']} == 0), + checked: ({$Cam['ptz_axel']} < 6 ), + listeners:{ + check: function( a, c ){ + if( c ){ + doCamOperation( {$CID}, 13, 0 ); + var zz = Ext.getCmp('ptz_axel'); + zz.disable(); + } else { + var zz = Ext.getCmp('ptz_axel'); + zz.enable(); + var vava = zz.getValue(); + if( vava < 5 ){ + vava = 5; + zz.setValue( vava, true ); + } else { + doCamOperation( {$CID}, 13, vava ); + }; + var jj = Ext.getCmp('ptz_axel_d'); + if( jj.rendered ) jj.update('

X '+ vava + '

'); + }; + } + } + },{ + html: ' ' + },{ + html: '{$Labels->GetLabel('_CAM_PTZ_MAC_')}' + },{ + xtype: 'slider', + id: 'ptz_axel', + disabled: (({$Cam['protocol']} == 0)||({$Cam['ptz_axel']} < 6)), + minValue: 5, + maxValue: 20, + value: {$Cam['ptz_axel']}, + listeners:{ + change: function( a, c, b ){ + doCamOperation( {$CID}, 13, c ); + var zz = Ext.getCmp('ptz_axel_d'); + if( zz.rendered ) zz.update('

X '+ c + '

'); + } + } + },{ + id: 'ptz_axel_d', + html: '

X '+ {$Cam['ptz_axel']} + '

' + }] + },{ + layout: 'table', + id: 'cam_ptz_par', + hidden: (({$Cam['protocol']}<1) || ({$Cam['type']}>13)), + frame: false, + border: false, + layoutConfig: { + columns: 3 + }, + defaults: { + frame: false, + bodyStyle: 'padding:10px', + border: false + }, + items:[{ + width: 200, html: '{$Labels->GetLabel('_CAM_PANMOD_')}' },{ xtype: 'combo', @@ -910,56 +1324,22 @@ CHUPAKABRA; } },{ html: ' ' - },{ - html: '{$Labels->GetLabel('_CAM_PTZ_AAC_')}' - },{ - xtype: 'checkbox', - id: 'ptz_axel_c', - disabled: ({$Cam['protocol']} == 0), - checked: ({$Cam['ptz_axel']} < 6 ), - listeners:{ - check: function( a, c ){ - if( c ){ - doCamOperation( {$CID}, 13, 0 ); - var zz = Ext.getCmp('ptz_axel'); - zz.disable(); - } else { - var zz = Ext.getCmp('ptz_axel'); - zz.enable(); - var vava = zz.getValue(); - if( vava < 5 ){ - vava = 5; - zz.setValue( vava, true ); - } else { - doCamOperation( {$CID}, 13, vava ); - }; - var jj = Ext.getCmp('ptz_axel_d'); - if( jj.rendered ) jj.update('

X '+ vava + '

'); - }; - } - } - },{ - html: ' ' - },{ - html: '{$Labels->GetLabel('_CAM_PTZ_MAC_')}' - },{ - xtype: 'slider', - id: 'ptz_axel', - disabled: (({$Cam['protocol']} == 0)||({$Cam['ptz_axel']} < 6)), - minValue: 5, - maxValue: 20, - value: {$Cam['ptz_axel']}, - listeners:{ - change: function( a, c, b ){ - doCamOperation( {$CID}, 13, c ); - var zz = Ext.getCmp('ptz_axel_d'); - if( zz.rendered ) zz.update('

X '+ c + '

'); - } - } - },{ - id: 'ptz_axel_d', - html: '

X '+ {$Cam['ptz_axel']} + '

' - },{ + }] + },{ + layout: 'table', + id: 'cam_loc_ori', + frame: false, + border: false, + layoutConfig: { + columns: 3 + }, + defaults: { + frame: false, + bodyStyle: 'padding:10px', + border: false + }, + items:[{ + width: 200, html: '
{$Labels->GetLabel('_AXIS_ROT_')}
' },{ xtype: 'numberfield', @@ -1102,6 +1482,26 @@ CHUPAKABRA; } },{ xtype: 'spacer' + },{ + width: 200, + html: '{$Labels->GetLabel('_CAM_PREF_ONLY_')}' + },{ + xtype: 'checkbox', + id: 'cam_pref_only', + fieldLabel: '', + width: 200, + checked: {$Cam['prefered_events_only']}, + listeners:{ + check: function( a, c ){ + if( c ){ + doCamOperation( {$CID}, 40, 1 ); + } else { + doCamOperation( {$CID}, 40, 0 ); + }; + } + } + },{ + xtype: 'spacer' },{ width: 200, html: '{$Labels->GetLabel('_CAM_AUTO_HOMING_')}' diff --git a/lib/controller/getCameraPresets.php b/lib/controller/getCameraPresets.php new file mode 100644 index 0000000..2414b1a --- /dev/null +++ b/lib/controller/getCameraPresets.php @@ -0,0 +1,72 @@ +Data['id'] ); + $ACCESS = intval( $CUser->Data['access'] ); + if( $UID > 1 ){ + $CID = intval( $_POST['CID'] ); + $QS = "SELECT * FROM `cameras` WHERE `id`={$CID}"; + $Result = $DATABASE->Query( $QS, false ); + $Data['status']='error'; + if( count( $Result ) ){ + $Cam = $Result[0]; + $QS = "SELECT * FROM `cameras_preset_sets` WHERE `camera_id`={$CID}"; + $RV = $DATABASE->Query( $QS ); + if( count( $RV ) ){ + $Data['status']='ok'; + $Data['count'] = intval( $RV[0]['maxCount'] ); + $Data['pres_cols'] = intval( $RV[0]['p_segs'] ); + $Data['pres_rows'] = intval( $RV[0]['z_segs'] ); + $Data['presets'] = array(); + $QS = "SELECT * FROM `cameras_presets` WHERE `preset_id`={$CID}"; + $ZZ = $DATABASE->Query( $QS ); + foreach( $ZZ as $Z ){ + $RO = intval( $Z['role'] ); + switch( $RO ){ + case 1:{ + $CP = array(); + $CP['id']= intval( $Z['id'] ); + $CP['role']= intval( $Z['role'] ); + $CP['row']= intval( $Z['row'] ); + $CP['column']= intval( $Z['column'] ); + $Data['presets'][] = $CP; + break; + }; + case 2:{ + $Data['special_home']=$Z['token']; + break; + }; + case 3:{ + $Data['special_irauto']=$Z['token']; + break; + }; + case 4:{ + $Data['special_iron']=$Z['token']; + break; + }; + case 5:{ + $Data['special_iroff']=$Z['token']; + break; + }; + case 6:{ + $Data['special_wiper']=$Z['token']; + break; + }; + }; + }; + } else { + // No Presets Defined! Create Default Preset Set + $Data['status']='ok'; + $Data['count'] = 8; + $Data['pres_cols'] = 5; + $Data['pres_rows'] = 3; + $Data['presets'] = array(); + $QS = "INSERT INTO `cameras_preset_sets`(`camera_id`,`p_segs`,`z_segs`) VALUES({$CID},5,3)"; + $DATABASE->Query( $QS ); + }; + }; + echo json_encode( $Data ); + } else { + header('location: /'); + }; +?> diff --git a/lib/controller/getDashBoardItems.php b/lib/controller/getDashBoardItems.php index f5217a8..4e34228 100644 --- a/lib/controller/getDashBoardItems.php +++ b/lib/controller/getDashBoardItems.php @@ -180,7 +180,7 @@ _DATA_BOUNDARY; $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END; }; }; - $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1"; + $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1"; $R = $DATABASE->Query( $QS ); $idx = 0; if( count( $R ) ){ @@ -197,7 +197,7 @@ _DATA_BOUNDARY; $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL ); $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}"; $Z=$DATABASE->Query( $QS ); - $QS="SELECT * FROM `module_eve` WHERE `id`=1"; + $QS="SELECT * FROM `module_eve` LIMIT 1"; $S=$DATABASE->Query( $QS ); $MODULE_DATA = $S[0]; $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL ); @@ -208,7 +208,7 @@ _DATA_BOUNDARY; $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL ); $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL ); $TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL ); - if( $DD['type'] == 13 || $DD['type'] == 11 ){ + if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){ $QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}"; $JUA = $DATABASE->Query( $QS ); $CAMDATA = $JUA[0]; @@ -296,7 +296,7 @@ _DATA_BOUNDARY; $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END; }; }; - $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1"; + $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1"; $R = $DATABASE->Query( $QS ); $idx = 0; if( count( $R ) ){ @@ -313,7 +313,7 @@ _DATA_BOUNDARY; $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL ); $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}"; $Z=$DATABASE->Query( $QS ); - $QS="SELECT * FROM `module_eve` WHERE `id`=1"; + $QS="SELECT * FROM `module_eve` LIMIT 1"; $S=$DATABASE->Query( $QS ); $MODULE_DATA = $S[0]; $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL ); @@ -324,7 +324,7 @@ _DATA_BOUNDARY; $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL ); $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL ); $TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL ); - if( $DD['type'] == 13 || $DD['type'] == 11 ){ + if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){ $QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}"; $JUA = $DATABASE->Query( $QS ); $CAMDATA = $JUA[0]; @@ -412,7 +412,7 @@ _DATA_BOUNDARY; $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END; }; }; - $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1"; + $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1"; $CAMS = $DATABASE->Query( $QS ); $idx = 0; if( count( $CAMS ) ){ @@ -429,7 +429,7 @@ _DATA_BOUNDARY; $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL ); $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}"; $Z=$DATABASE->Query( $QS ); - $QS="SELECT * FROM `module_eve` WHERE `id`=1"; + $QS="SELECT * FROM `module_eve` LIMIT 1"; $S=$DATABASE->Query( $QS ); $MODULE_DATA = $S[0]; $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL ); @@ -440,7 +440,7 @@ _DATA_BOUNDARY; $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL ); $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL ); $TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL ); - if( $DD['type'] == 13 || $DD['type'] == 11 ){ + if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){ $QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}"; $JUA = $DATABASE->Query( $QS ); $CAMDATA = $JUA[0]; @@ -492,7 +492,7 @@ _DATA_BOUNDARY; $OUT[]= $STA[0] . $DUMMY['map'] . $END; - $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1"; + $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1"; $R = $DATABASE->Query( $QS ); $idx = 0; if( count( $R ) ){ @@ -509,7 +509,7 @@ _DATA_BOUNDARY; $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL ); $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}"; $Z=$DATABASE->Query( $QS ); - $QS="SELECT * FROM `module_eve` WHERE `id`=1"; + $QS="SELECT * FROM `module_eve` LIMIT 1"; $S=$DATABASE->Query( $QS ); $MODULE_DATA = $S[0]; $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL ); @@ -520,7 +520,7 @@ _DATA_BOUNDARY; $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL ); $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL ); $TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL ); - if( $DD['type'] == 13 || $DD['type'] == 11 ){ + if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){ $QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}"; $JUA = $DATABASE->Query( $QS ); $CAMDATA = $JUA[0]; @@ -616,7 +616,7 @@ _DATA_BOUNDARY; $OUT[]= $STA[$idx] . $DUMMY['sensor'] . $END; }; }; - $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 14 AND `enable`=1"; + $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1"; $R = $DATABASE->Query( $QS ); $idx = 0; if( count( $R ) ){ @@ -633,7 +633,7 @@ _DATA_BOUNDARY; $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL ); $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}"; $Z=$DATABASE->Query( $QS ); - $QS="SELECT * FROM `module_eve` WHERE `id`=1"; + $QS="SELECT * FROM `module_eve` LIMIT 1"; $S=$DATABASE->Query( $QS ); $MODULE_DATA = $S[0]; $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL ); @@ -644,7 +644,7 @@ _DATA_BOUNDARY; $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL ); $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL ); $TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL ); - if( $DD['type'] == 13 || $DD['type'] == 11 ){ + if( $DD['type'] == 15 || $DD['type'] == 14 || $DD['type'] == 13 || $DD['type'] == 11 ){ $QS = "SELECT `homing_enable` FROM `cameras` WHERE `id`={$DD['aux_id']}"; $JUA = $DATABASE->Query( $QS ); $CAMDATA = $JUA[0]; diff --git a/lib/controller/getLocationNodeProps.php b/lib/controller/getLocationNodeProps.php index 98105ac..c31873d 100644 --- a/lib/controller/getLocationNodeProps.php +++ b/lib/controller/getLocationNodeProps.php @@ -172,7 +172,9 @@ _DATA_BOUNDARY; case 10: case 11: case 12: - case 13:{ + case 13: + case 14: + case 15:{ $QS="SELECT * FROM cameras WHERE id={$Props['aux_id']}"; $RR = $DATABASE->Query( $QS ); $C = $RR[0]; diff --git a/lib/controller/getLocationNodes.php b/lib/controller/getLocationNodes.php index cc0f9a6..3b10a3d 100644 --- a/lib/controller/getLocationNodes.php +++ b/lib/controller/getLocationNodes.php @@ -10,7 +10,7 @@ $cid = intval($CD['id']); $ct = intval($CD['type']); $cname = urldecode( $CD['name'] ); - if( in_array( $ct, array( 1, 2, 3, 5, 6, 10, 11, 12, 13 ) ) ){ + if( in_array( $ct, array( 1, 2, 3, 5, 6, 10, 11, 12, 13, 14, 15 ) ) ){ $DL[] = "{ xtype: 'button', text: '{$cname}', width: '100%', handler: function(){ locationSelectedNode={$cid}; loadNodeLocationProps({$cid}); } }"; }; }; diff --git a/lib/controller/getModuleEditor.php b/lib/controller/getModuleEditor.php index 51f9d9a..a58ecf6 100644 --- a/lib/controller/getModuleEditor.php +++ b/lib/controller/getModuleEditor.php @@ -390,10 +390,8 @@ EFUFU; echo $TPL; break; case 9: //Modem - //$QS="SELECT * FROM `modules_kafka` WHERE `module_id`={$CR['aux_id']}"; - //$II = $DATABASE->Query( $QS ); - //$CI = $II[0]; - $R_nfo = 'Broker Node:'. $CI['brocker_address'].':'.$CI['brocker_port'].((intval($CI['use_ssl'])>0)?'':''); + + $R_nfo = ''; $TPL =<<%%%NAME%%%%%%INFO%%%' + html: '
%%%NAME%%%
%%%INFO%%%
' },{ xtype: 'spacer', height: 5 @@ -412,7 +410,7 @@ $TPL =<<%%%LOINFO%%%' + html: '
%%%LOINFO%%%
' },{ xtype: 'spacer', height: 5 @@ -466,7 +464,7 @@ $TPL =<<GetLabel('_MODEM_DESC_SHO_') . 'JAJA' , $TPL ); + $TPL = str_ireplace( '%%%NAME%%%',$Labels->GetLabel('_MODEM_DESC_SHO_'), $TPL ); $TPL = str_ireplace( '%%%INFO%%%', $Labels->GetLabel('_MODEM_DESC_LOO_'), $TPL ); $TPL = str_ireplace( '%%%LOINFO%%%',$R_nfo , $TPL ); $TPL = str_ireplace( '%%%ENA_VAL%%%',$CR['enabled'], $TPL ); diff --git a/lib/controller/getModuleSettings.php b/lib/controller/getModuleSettings.php index 33f77db..5e5e365 100644 --- a/lib/controller/getModuleSettings.php +++ b/lib/controller/getModuleSettings.php @@ -580,8 +580,7 @@ EFUFU; value: {$CI['output_mode']}, listeners:{ select: function( t, r, i ){ - //alert( "NS1:"+i ); - doModuleOperation( {$CR['aux_id']}, 3, i+1 ); + doModuleOperation( {$EID}, 3, r.data.moId, false ); } } },{ @@ -897,6 +896,22 @@ EFUFU; echo $TPL; //json_encode($Data); break; case 9: //Modem + $MANU = json_decode( `mmcli -L -J`, true ); + //$TA = explode( "\n", $MANU ); + $MODEMS_PARTS=array(); + $MODEMS_PARTS[] ="[ -1, '-NO-MODEM-ASSIGNED-']"; + foreach( $MANU['modem-list'] as $A ){ + $CA = explode('/', $A ); + $MID = intval( $CA[count($CA)-1] ); + $MANU = json_decode( `mmcli -m $MID -J`, true ); + //$CMD = "echo \"terrarium\" | sudo -S mmcli -m {$MID} --location-get -J"; + //$LOFO = json_decode( `$CMD`, true ); + //print_r( $MANU ); + //exit(); + $MODEMS_PARTS[] = '['.$MID.',\''. $MANU['modem']['generic']['model'].'\']'; + }; + $MODEMS = '[' . implode( ',', $MODEMS_PARTS ) .']'; + $QS="SELECT * FROM `module_modem` WHERE `id`={$CR['aux_id']}"; $II = $DATABASE->Query( $QS ); $CI = $II[0]; @@ -915,41 +930,48 @@ $TPL =<<' - },{ - xype: 'panel', - layout: 'vbox', - frame: false, - height: 120, - items:[{ - xtype: 'panel', - layout: 'table', - width: '100%', - defaults: { - // applied to each contained panel - bodyStyle:'padding:20px' - }, - layoytConfig:{ - columns: 4 - }, - items: [{ - xtype: 'spacer', - html: '

New Phone Number:

' - },{ - xtype: 'textfield', - id: 'n_ph_n', - name: 'n_ph_n' - },{ - xtype: 'spacer', - html: '

Custom Message:

' - },{ - xtype: 'textarea', - id: 'n_ph_l', - name: 'n_ph_l', - fieldLabel: 'Custom Message', - }] - },{ - xtype: 'button', - width: '100%', - text: 'Add Phone Number', - handler: function(){ - - } - }] + height: 5 }], listeners:{ afterrender: loadPhoneBook diff --git a/lib/controller/getPhoneBook.php b/lib/controller/getPhoneBook.php index 2fd53d5..a828566 100644 --- a/lib/controller/getPhoneBook.php +++ b/lib/controller/getPhoneBook.php @@ -3,6 +3,11 @@ if( $CUser->Data['id'] > 1 ){ $Data = array(); + $QS = "SELECT * FROM `module_modem_phonebook`"; + $RV = $DATABASE->Query( $QS ); + if( count( $RV ) ){ + $DATA = $RV; + }; echo json_encode( $Data ); exit(); }; diff --git a/lib/controller/getReportLayout.php b/lib/controller/getReportLayout.php index a265d63..ce2f5d9 100644 --- a/lib/controller/getReportLayout.php +++ b/lib/controller/getReportLayout.php @@ -179,7 +179,7 @@ _DATA_BOUNDARY; $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL ); $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}"; $Z=$DATABASE->Query( $QS ); - $QS="SELECT * FROM `module_eve` WHERE `id`=1"; + $QS="SELECT * FROM `module_eve` LIMIT 1"; $S=$DATABASE->Query( $QS ); $MODULE_DATA = $S[0]; $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL ); @@ -216,8 +216,66 @@ _DATA_BOUNDARY; $OUT[]= $STA[3] . $DUMMY['log'] . $END; break; }; + case 2:{ + //Muazot A + $STA[0]="{ columnWidth: .50, stylse:'padding:10px 0 10px 10px', items:["; + $STA[1]="{ columnWidth: .50, stylse:'padding:10px 0 10px 10px', items:["; + $STA[2]="{ columnWidth: .40, stylse:'padding:10px 0 10px 10px', items:["; + $STA[3]="{ columnWidth: .60, stylse:'padding:10px 0 10px 10px', items:["; + $QS = "SELECT * FROM `nodes` WHERE `type`>9 AND `type`< 16 AND `enable`=1"; + $R = $DATABASE->Query( $QS ); + $idx = 0; + if( count( $R ) ){ + foreach( $R as $DD ){ + if( $idx < 2 ){ + $TFN = 'report/node_' . $DD['type'] . '.js'; + if(!file_exists( $TFN )) continue; + $TPL = file_get_contents( $TFN ); + $TPL = str_replace('%%%NODEID%%%', ''.$DD['id'] , $TPL ); + $TPL = str_replace('%%%NODENAME%%%', ''.urldecode($DD['name']) , $TPL ); + $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL ); + $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}"; + $Z=$DATABASE->Query( $QS ); + $QS="SELECT * FROM `module_eve` LIMIT 1"; + $S=$DATABASE->Query( $QS ); + $MODULE_DATA = $S[0]; + $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL ); + //$FU = 'http://' . $_SERVER['SERVER_ADDR'].':' . $MODULE_DATA['web_port'] .'/stream?id='. $Z[0]['aux_parameter']; + $FU = '/video_feed/stream?id='. $Z[0]['aux_parameter']; + $CS[] = '[' . $Z[0]['aux_parameter'] . ',\'[ 120x120] Video\',\''. $FU .'\']'; + $TPL = str_replace( '%%%URLS%%%', '[' . implode( ',', $CS ) . ']' , $TPL ); + $TPL = str_replace( '%%%SELID%%%', 'value: '. $Z[0]['aux_parameter'] .',', $TPL ); + $TPL = str_replace( '%%%SELURL%%%', $FU, $TPL ); + $TPL = str_replace( '%%%STREAMID%%%', $DD['aux_parameter'], $TPL ); + + $FK = $MODULE_DATA['height'] /$MODULE_DATA['width']; + $W = 244; + $H = $W * $FK; + + $TPL = str_replace( '%%%WIDTH%%%', $W, $TPL ); + $TPL = str_replace( '%%%HEIGHT%%%', $H, $TPL ); + $OUT[]= $STA[$idx] . $TPL . $END; + } else break; + $idx++; + }; + if( $idx < 2 ){ + for( ;$idx<2;$idx++ ){ + $T = str_replace( '%%ID%%', 2+$idx , $DUMMY['camera'] ); + $OUT[]= $STA[$idx] . $T . $END; + }; + }; + } else { + for( ;$idx<2;$idx++ ){ + $T = str_replace( '%%ID%%', 4+$idx , $DUMMY['camera'] ); + $OUT[]= $STA[$idx] . $T . $END; + }; + }; + $OUT[]= $STA[2] . $DUMMY['map'] . $END; + $OUT[]= $STA[3] . $DUMMY['log'] . $END; + break; + }; case 4:{ - //Metro + //Mekorot $STA[0]="{ columnWidth: .20, stylse:'padding:10px 0 10px 10px', items:["; $STA[1]="{ columnWidth: .20, stylse:'padding:10px 0 10px 10px', items:["; $STA[2]="{ columnWidth: .20, stylse:'padding:10px 0 10px 10px', items:["; @@ -263,7 +321,7 @@ _DATA_BOUNDARY; $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL ); $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}"; $Z=$DATABASE->Query( $QS ); - $QS="SELECT * FROM `module_eve` WHERE `id`=1"; + $QS="SELECT * FROM `module_eve` LIMIT 1"; $S=$DATABASE->Query( $QS ); $MODULE_DATA = $S[0]; $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL ); @@ -326,7 +384,7 @@ _DATA_BOUNDARY; $TPL = str_replace('%%%APPTYPE%%%', $SP['type'], $TPL ); $QS="SELECT * FROM `nodes` WHERE `id`={$DD['id']}"; $Z=$DATABASE->Query( $QS ); - $QS="SELECT * FROM `module_eve` WHERE `id`=1"; + $QS="SELECT * FROM `module_eve` LIMIT 1"; $S=$DATABASE->Query( $QS ); $MODULE_DATA = $S[0]; $TPL = str_replace( '%%%NODENAME%%%', urldecode( $Z[0]['name'] ) , $TPL ); diff --git a/lib/controller/getSensorEditor.php b/lib/controller/getSensorEditor.php index d02baf0..fc24a36 100644 --- a/lib/controller/getSensorEditor.php +++ b/lib/controller/getSensorEditor.php @@ -72,19 +72,33 @@ JOJOKA; $QS = "INSERT INTO `lrf_ini_settings`(`sensor_id`,`AUTORESET_ENABLE`,`AUTORESET_INTERLEAVE`,`AUTORESET_TIMEOUT`,`BOARD_TEMPERATURE`,`BOARD_ZEROSHIFT`,`BOARD_SPEED`,`RUN_DIR`,`NO_BLACK_TARGETS`,`JUST_MOVING_TARGETS`,`JUST_MOVING_RADIAL`,`JUST_MOVING_DISTANCE`,`FREEZ_FIRST_TH`,`SAVE_FIRST_TH`) VALUES({$EID},0,0,0,0,0,4,2,0,0,0,0,{$INI_S['FREEZ_FIRST_TH']},{$INI_S['SAVE_FIRST_TH']})"; $DATABASE->Query( $QS ); }; + + $QS = "SELECT `id`, `name` FROM `nodes` WHERE `type` IN (10,11,12,13,14,15)"; + $KD = $DATABASE->Query( $QS ); + if( count( $KD ) ){ + $CO = array(); + $CO[] = "[0,'{$Labels->GetLabel('__DISABLED__')}']"; + foreach( $KD as $CK ){ + $CO[] = "[{$CK['id']},'{$CK['name']}']"; + }; + $SYSTEM_CAMERAS = '['.implode( ',', $CO ).']'; + } else { + $SYSTEM_CAMERAS = "[[0,'{$Labels->GetLabel('__DISABLED__')}']]"; + }; + if( ( stripos( $CR['version'], 'FD' )!== false ) || ( stripos( $CR['version'], 'FS' )!== false ) || ( stripos( $CR['version'], 'FF' )!== false ) ){ //Frozen TH if( stripos( $CR['version'], 'FD' )!== false ){ - $THF_OPERATION = ",{ - xtype: 'button', - text: '{$Labels->GetLabel('_SENS_ENA_FROTH_')}', - width: '100%', - iconCls: 'srv_op_fth_ble', - scale: 'large', - handler: function(){ - doSensorOperation( {$CR['id']}, 21, 0, true ); - } - }"; + $THF_OPERATION = ",{ + xtype: 'button', + text: '{$Labels->GetLabel('_SENS_ENA_FROTH_')}', + width: '100%', + iconCls: 'srv_op_fth_ble', + scale: 'large', + handler: function(){ + doSensorOperation( {$CR['id']}, 21, 0, true ); + } + }"; } else { if( stripos( $CR['version'], 'FS' )!== false ){ $THF_OPERATION = ",{ @@ -327,6 +341,29 @@ JOJOKA; doSensorOperation( {$CR['id']}, 26, b, true ); } } + },{ + xtype: 'combo', + id: 'sens_bindcam', + fieldLabel: "{$Labels->GetLabel('_SENS_BOCAM_')}", + lazyRender: true, + mode: 'local', + forceSelection: true, + triggerAction: 'all', + editable: false, + disableKeyFilter: true, + store: new Ext.data.ArrayStore({ + fields: ['mode','mode_txt'], + data: {$SYSTEM_CAMERAS} + }), + valueField: 'mode', + displayField: 'mode_txt', + value: {$CR['prefered_camera_id']}, + width: 200, + listeners:{ + select: function( a, c, b ){ + doSensorOperation( {$CR['id']}, 36, c.data.mode, true ); + } + } }] },{ xtype: 'form', diff --git a/lib/controller/getStatus.php b/lib/controller/getStatus.php index 7ca1072..34a1fa2 100644 --- a/lib/controller/getStatus.php +++ b/lib/controller/getStatus.php @@ -50,7 +50,7 @@ }; } //$QS = "SELECT * FROM nodes ORDER BY `type`"; - $QS = "SELECT * FROM nodes WHERE `type` > 0 AND `type` < 14"; + $QS = "SELECT * FROM nodes WHERE `type` > 0 AND `type` < 16"; $result = $DATABASE->Query( $QS, false ); if( count( $result ) > 0 ){ @@ -240,7 +240,9 @@ case ARGUS_ANALOG_STATIC_CAMERA: case ARGUS_ANALOG_PTZ_CAMERA: case ARGUS_IP_STATIC_CAMERA: - case ARGUS_IP_PTZ_CAMERA:{ + case ARGUS_IP_PTZ_CAMERA: + case 14: + case 15:{ if( $ServerIsOnLine ){ $QS="SELECT * FROM `media_streams` WHERE `id`={$R['aux_parameter']}"; $SR=$DATABASE->Query( $QS ); diff --git a/lib/controller/report/node_14.js b/lib/controller/report/node_14.js new file mode 100644 index 0000000..a7c91cb --- /dev/null +++ b/lib/controller/report/node_14.js @@ -0,0 +1,80 @@ +{ + id: 'db_node_%%%NODEID%%%', + layout:'vbox', + tools: [{ + id:'gear', + handler: function(){ + } + }], + frame: true, + draggable: false, + collapsible: false, + bodyStyle: 'padding: 0px;', + title: '%%%NODENAME%%%', + sukaMineWidth: -1, + items:[{ + id: 'db_node_%%%NODEID%%%_pic', + border: true, + width: '100%', + html: '
' + }], + listeners:{ + resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ + if( rawWidth!= undefined ){ + if( p.sukaMineWidth != adjWidth ){ + p.sukaMineWidth = adjWidth; + var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( XX + 32 ); + var z = document.getElementById( 'video-%%%STREAMID%%%' ); + z.height = XX; + }; + }; + }, + afterrender: function( p ){ + var xx = p.getWidth() * ( %%%HEIGHT%%% / %%%WIDTH%%% ); + p.setHeight( xx + 32 ); + videoElements[videoElements.length] = %%%STREAMID%%%; + var xx = new Ext.Panel({ + id: 'video-ctl-panel-%%%STREAMID%%%', + renderTo: 'video-ctl-%%%STREAMID%%%', + border: false, + hidden: true, + frame: false, + width: 400, + height: 42, + layout: 'hbox', + items:[{ + xtype: 'button', + width: 32, + iconCls: 'download', + scale: 'medium', + id: 'video-btn-download-%%%STREAMID%%%', + handler: function(){ + downloadCurrentVideo( %%%STREAMID%%% ); + } + },{ + xtype: 'spacer', + width: 20 + },{ + xtype: 'slider', + width: 250, + id: 'video-slider-%%%STREAMID%%%', + value: 0, + minValue: 0, + maxValue: 100, + listeners:{ + change: function( t, b, o ){ + setVideoSource( %%%STREAMID%%%, b ); + } + } + }] + }); + }, + beforedestroy: function(){ + var oldPlayer = document.getElementById( 'video-%%%STREAMID%%%' ); + /* + videojs( oldPlayer ).dispose(); + */ + } + } +} \ No newline at end of file diff --git a/lib/controller/report/node_15.js b/lib/controller/report/node_15.js new file mode 100644 index 0000000..a7c91cb --- /dev/null +++ b/lib/controller/report/node_15.js @@ -0,0 +1,80 @@ +{ + id: 'db_node_%%%NODEID%%%', + layout:'vbox', + tools: [{ + id:'gear', + handler: function(){ + } + }], + frame: true, + draggable: false, + collapsible: false, + bodyStyle: 'padding: 0px;', + title: '%%%NODENAME%%%', + sukaMineWidth: -1, + items:[{ + id: 'db_node_%%%NODEID%%%_pic', + border: true, + width: '100%', + html: '
' + }], + listeners:{ + resize: function( p, adjWidth, adjHeight, rawWidth, rawHeight ){ + if( rawWidth!= undefined ){ + if( p.sukaMineWidth != adjWidth ){ + p.sukaMineWidth = adjWidth; + var XX = p.sukaMineWidth * %%%HEIGHT%%% / %%%WIDTH%%%; + p.setHeight( XX + 32 ); + var z = document.getElementById( 'video-%%%STREAMID%%%' ); + z.height = XX; + }; + }; + }, + afterrender: function( p ){ + var xx = p.getWidth() * ( %%%HEIGHT%%% / %%%WIDTH%%% ); + p.setHeight( xx + 32 ); + videoElements[videoElements.length] = %%%STREAMID%%%; + var xx = new Ext.Panel({ + id: 'video-ctl-panel-%%%STREAMID%%%', + renderTo: 'video-ctl-%%%STREAMID%%%', + border: false, + hidden: true, + frame: false, + width: 400, + height: 42, + layout: 'hbox', + items:[{ + xtype: 'button', + width: 32, + iconCls: 'download', + scale: 'medium', + id: 'video-btn-download-%%%STREAMID%%%', + handler: function(){ + downloadCurrentVideo( %%%STREAMID%%% ); + } + },{ + xtype: 'spacer', + width: 20 + },{ + xtype: 'slider', + width: 250, + id: 'video-slider-%%%STREAMID%%%', + value: 0, + minValue: 0, + maxValue: 100, + listeners:{ + change: function( t, b, o ){ + setVideoSource( %%%STREAMID%%%, b ); + } + } + }] + }); + }, + beforedestroy: function(){ + var oldPlayer = document.getElementById( 'video-%%%STREAMID%%%' ); + /* + videojs( oldPlayer ).dispose(); + */ + } + } +} \ No newline at end of file diff --git a/lib/javascript/jsapi_dynamic/mojo_dashboard.js b/lib/javascript/jsapi_dynamic/mojo_dashboard.js index c1a4213..3ad8297 100644 --- a/lib/javascript/jsapi_dynamic/mojo_dashboard.js +++ b/lib/javascript/jsapi_dynamic/mojo_dashboard.js @@ -546,7 +546,7 @@ function Donut(cx, cy, radius, data) { var tmp = {}; //var p = (((item.value + 1) / total) * 100).floor( 2 ); - var p = Math.floor(((item.value + 1) / total) * 100); + var p = Math.floor(((item.value + 1) / total) * 100, decimals ); count += p; @@ -562,7 +562,7 @@ function Donut(cx, cy, radius, data) { var e = arcradius(cx, cy, radius, beg); var la = (end - beg) <= 180 ? 0 : 1; - tmp.d = ['M', Math.floor( b.x ), Math.floor( b.y ), 'A', radius, radius, 0, la, 0, Math.floor( e.x ), Math.floor( e.y ) ].join(' '); + tmp.d = ['M', Math.floor( b.x, decimals ), Math.floor( b.y, decimals ), 'A', radius, radius, 0, la, 0, Math.floor( e.x, decimals ), Math.floor( e.y, decimals ) ].join(' '); arr.push(tmp); beg = end; } @@ -743,8 +743,9 @@ function cleanup2DTargets( a ){ targets_2d_el[a] = []; }; -function cleanup2DDraw( a ){ - var csvg = document.getElementById( 'draw_svg_' + a ); +function cleanup2DDraw( a , zzz = '' ){ + if( zzz == '') zzz = 'draw_svg_'; + var csvg = document.getElementById( zzz + a ); if( csvg!= undefined ){ if( targets_2d_el[a] != undefined ){ if( targets_2d_el[a] ){ @@ -942,8 +943,9 @@ function load2DMasks( a ){ }); }; -function remove2DDraw( a ){ - var csvg = document.getElementById( 'draw_svg_' + a ); +function remove2DDraw( a, zzz = '' ){ + if( zzz == '') zzz = 'draw_svg_'; + var csvg = document.getElementById( zzz + a ); if( csvg != undefined ){ var draw = csvg.getElementById( "draw" ); if( draw != null ) csvg.removeChild( draw ); @@ -955,14 +957,14 @@ function remove2DDraw( a ){ function draw2DDraw( a, zzz = '' ){ var p2 = 2.0*Math.PI; var so = 0;//-10 * p2 / 360.0; - cleanup2DDraw( a ); - remove2DDraw( a ); + cleanup2DDraw( a, zzz ); + remove2DDraw( a, zzz ); if( draws_2d[a] != undefined ){ if( zzz == '') zzz = 'draw_svg_'; var csvg = document.getElementById( zzz + a ); if( csvg != undefined ){ - var cpath = csvg.getElementById( "svg_mask_"+a ); + //var cpath = csvg.getElementById( "svg_mask_"+a ); //var bBox; //if( cpath!=undefined){ // bBox = cpath.getBBox(); @@ -1039,6 +1041,80 @@ function load2DDraw( a, id='' ){ }); }; +function preview2DDraw( a, id='' ){ + //if( draws_2d[0] == undefined ) draws_2d[0]=[]; + Ext.Ajax.request({ + url: '/lib/controller/getDeviceDraw.php', + params: { + UID: , + SID: '', + NID: a + }, + success: function( response, opts ){ + var data = Ext.decode(response.responseText); + if( data.count > 0 ){ + //draws_2d[0] = data.data; + + var p2 = 2.0*Math.PI; + var so = 0;//-10 * p2 / 360.0; + //cleanup2DDraw( a, zzz ); + //remove2DDraw( a, zzz ); + if( data.data != undefined ){ + if( id == '') id = 'draw_svg_'; + var csvg = document.getElementById( id + '0' ); + + if( csvg != undefined ){ + var newpath = document.createElementNS('http://www.w3.org/2000/svg', "polygon"); + var ak = p2/data.data.length; + var cpx = csvg.clientWidth / 2.0; + var cpy = csvg.clientHeight / 2.0; + var maxr = cpx - 30.0; + var max = 1024.0; + switch( drawZoomLevels[a] ){ + case 50: max = 512.0; break; + case 25: max = 256.0; break; + case 12: max = 128.0; break; + }; + var rk = maxr / max; var pp = ''; var jj = ''; + for( i=0;iGetLabel('_SOURCE_');?>", width: 100, renderer: log_sn_Renderer, align: 'left', css: 'vertical-align: middle;', dataIndex: 'number' }, + {header: "GetLabel('_TYPE_');?>", width: 180, renderer: log_et_Renderer, fixed: false, align: 'center', css: 'vertical-align: middle;', dataIndex: 'mode' }, + {header: "GetLabel('_RANGE_');?>", width: 100, dataIndex: 'label', renderer: no_target_filter } + ], + defaults: { + sortable: false, + fixed: true, + menuDisabled: true, + width: 100 + } +}; +var selected_pb_id = 0; +var modem_pb_SelModel_ops = { + singleSelect: true, + listeners: { + rowselect: function(sm, row, rec ) { + //alert( rec.data.id ); + //loadEventProperties( rec.data ); + selected_pb_id = rec.data.id; + //alert( SelectedEvent ); + //var CB = Ext.getCmp('con_to_src'); + //CB.enable(); + //selectedArchiveRecord = rec; + //if( rec.data.bk_type!=3 ){ + // + //} else { + // + //}; + } + } +}; function loadPhoneBook(){ Ext.Ajax.request({ url: '/lib/controller/getPhoneBook.php', @@ -353,6 +400,8 @@ function loadPhoneBook(){ }, success: function( response, opts ){ var data = Ext.decode(response.responseText); + + modem_pb_store.Load( data ); //var tPanel = Ext.getCmp('main_portal'); //tPanel.removeAll(true); //for( i=0; i < data.length; i++) tPanel.add( data[i] ); @@ -680,7 +729,7 @@ function editModule( mid ){ }; }; -function doModuleOperation( ID, OPO, OPCO ){ +function doModuleOperation( ID, OPO, OPCO, reload ){ Ext.Ajax.request({ url: '/lib/controller/doModuleOperation.php', params: { @@ -691,18 +740,17 @@ function doModuleOperation( ID, OPO, OPCO ){ SID: '' }, success: function(){ - //showSettings( SelectedNodeID, 2 ); - loadModules(); + if( reload ) loadModules(); } }); }; function enableModule( ID ){ - doModuleOperation( ID, 2, 1 ); + doModuleOperation( ID, 2, 1, true ); }; function disableModule( ID ){ - doModuleOperation( ID, 2, 0 ); + doModuleOperation( ID, 2, 0, true ); }; @@ -2246,6 +2294,7 @@ function showSettingsVideo(){ content_lvl1 = 1; content_lvl2 = 4; + content_lvl3 = 0; var tPanel = Ext.getCmp('main_content'); tPanel.removeAll( true ); tPanel.add({ @@ -2256,25 +2305,19 @@ function showSettingsVideo(){ activeTab: content_lvl3, items: [{ xtype: 'panel', - title: "GetLabel('_CAM_DET_LIST_');?>", - id: 'cam_det_tab', + id: 'cam_ass_tab', + title: "GetLabel('_CAM_ASS_LIST_');?>", layout: 'hbox', items:[{ xtype: 'panel', - id: 'dcam_container', + id: 'acam_container', flex: 1, height: PanelH-15, autoScroll: 'auto', - tbar:[{ - text: "GetLabel( '_MANUADD_CAMERA_' );?>", - handler: function(){ - addDetectedIPCam(); - } - }], items:[] },{ xtype: 'panel', - id: 'dcam_op_small', + id: 'acam_op_small', flex: 1, height: PanelH-15, layout: 'fit', @@ -2284,19 +2327,25 @@ function showSettingsVideo(){ }] },{ xtype: 'panel', - id: 'cam_ass_tab', - title: "GetLabel('_CAM_ASS_LIST_');?>", + title: "GetLabel('_CAM_DET_LIST_');?>", + id: 'cam_det_tab', layout: 'hbox', items:[{ xtype: 'panel', - id: 'acam_container', + id: 'dcam_container', flex: 1, height: PanelH-15, autoScroll: 'auto', + tbar:[{ + text: "GetLabel( '_MANUADD_CAMERA_' );?>", + handler: function(){ + addDetectedIPCam(); + } + }], items:[] },{ xtype: 'panel', - id: 'acam_op_small', + id: 'dcam_op_small', flex: 1, height: PanelH-15, layout: 'fit', @@ -3323,4 +3372,208 @@ function initSettingsView(){ }; }; -}; \ No newline at end of file +}; + +function zdonut(cx, cy, radius, data) { + + function arcradius(cx, cy, radius, degrees) { + var radians = (degrees - 90) * Math.PI / 180.0; + return { x: cx + (radius * Math.cos(radians)), y: cy + (radius * Math.sin(radians)) }; + } + + var decimals = 4; + var total = 0; + var arr = []; + var beg = 0; + var end = 0; + var count = 0; + + var half = radius / 2; + var midpoint = radius / 2.4; + + for( var i = 0; i < data.length; i++) total += data[i].value; + + for( var i = 0; i < data.length; i++) { + var item = data[i]; + var tmp = {}; + + //var p = Math.floor((((item.value + 1) / total) * 100), decimals ); + var p = (( item.value / total ) * 100.0 ); + + count += p; + + if( i === length - 1 && count < 100 ) p = p + (100 - count); + + end = beg + ((360 / 100) * p); + tmp.index = i; + tmp.value = item.value; + tmp.data = item; + + var b = arcradius(cx, cy, radius, end); + var e = arcradius(cx, cy, radius, beg); + var la = (end - beg) <= 180 ? 0 : 1; + + tmp.d = ['M', Math.floor( b.x, decimals ), Math.floor( b.y, decimals ), 'A', radius, radius, 0, la, 0, Math.floor( e.x, decimals ), Math.floor( e.y, decimals ) ].join(' '); + arr.push(tmp); + beg = end; + }; + return arr; +}; + +var selectedPresetsBackgroundSensor = 0; + +function altPTZCmd( me ){ + var name = me.target.id; + const myArray = name.split("_"); + Ext.Ajax.request({ + url: '/lib/controller/doCameraOperation.php', + params: { + UID: , + SID: '', + CMD: 11, + CID: myArray[3], + MOV: myArray[2] + }, + failure: failureAJAXFunction + }); +}; + +function showCameraPresets( AA, camID ){ + Ext.Ajax.request({ + url: '/lib/controller/getCameraPresets.php', + params: { + CID: camID, + UID: , + SID: '', + }, + success: function( response, opts ){ + var data = Ext.decode(response.responseText); + var hgy = Ext.getCmp('pres_count'); + if( hgy!= undefined ) hgy.setValue( data.count ); + var hgy = Ext.getCmp('pres_p_seg'); + if( hgy!= undefined ) hgy.setValue( data.pres_cols ); + var hgy = Ext.getCmp('pres_z_seg'); + if( hgy!= undefined ) hgy.setValue( data.pres_rows ); + if( data.special_iron != undefined ){ + var hgy = Ext.getCmp('pres_iron'); + if( hgy!= undefined ) hgy.setValue( data.special_iron ); + var juja = document.getElementById('img_btn_035_'+camID ); + if( juja != undefined ){ + juja.classList.add('ptz_ctrl_btn'); + juja.classList.remove('ptz_ctrl_btn_hdn'); + juja.addEventListener( 'mousedown', altPTZCmd ); + }; + } else { + var juja = document.getElementById('img_btn_035_'+camID ); + if( juja != undefined ){ + juja.classList.add('ptz_ctrl_btn_hdn'); + juja.classList.remove('ptz_ctrl_btn'); + juja.removeEventListener( 'mousedown', altPTZCmd ); + }; + }; + if( data.special_iroff != undefined ){ + var hgy = Ext.getCmp('pres_iroff'); + if( hgy!= undefined ) hgy.setValue( data.special_iroff ); + var juja = document.getElementById('img_btn_036_'+camID ); + if( juja != undefined ){ + juja.classList.add('ptz_ctrl_btn'); + juja.classList.remove('ptz_ctrl_btn_hdn'); + juja.addEventListener( 'mousedown', altPTZCmd ); + }; + } else { + var juja = document.getElementById('img_btn_036_'+camID ); + if( juja != undefined ){ + juja.classList.add('ptz_ctrl_btn_hdn'); + juja.classList.remove('ptz_ctrl_btn'); + juja.removeEventListener( 'mousedown', altPTZCmd ); + }; + }; + if( data.special_irauto != undefined ){ + var hgy = Ext.getCmp('pres_irauto'); + if( hgy!= undefined ) hgy.setValue( data.special_irauto ); + }; + if( data.special_wiper != undefined ){ + var hgy = Ext.getCmp('pres_wiper'); + if( hgy!= undefined ) hgy.setValue( data.special_wiper ); + var juja = document.getElementById('img_btn_037_'+camID ); + if( juja != undefined ){ + juja.classList.add('ptz_ctrl_btn'); + juja.classList.remove('ptz_ctrl_btn_hdn'); + juja.addEventListener( 'mousedown', altPTZCmd ); + }; + } else { + var juja = document.getElementById('img_btn_037_'+camID ); + if( juja != undefined ){ + juja.classList.add('ptz_ctrl_btn_hdn'); + juja.classList.remove('ptz_ctrl_btn'); + juja.removeEventListener( 'mousedown', altPTZCmd ); + }; + }; + + var svg = document.getElementById( AA ); + svg.innerHTML = ""; + var centerX = svg.clientWidth / 2.0; + var centerY = svg.clientHeight / 2.0; + var radius = svg.clientHeight / 2.0 - (data.pres_rows*2.0); + var color = ['#F6BB42', '#8CC152', '#3BAFDA', '#967ADC', '#DA4453']; + var max_lines = data.pres_rows; + for( var cl = max_lines; cl > 0; cl--){ + var segnum = data.pres_cols * Math.pow( 2, ( cl-1 ) ); + var dta = []; + for( var j = 0; j< segnum; j++) dta[j]={ value: (180/segnum) }; + var crad = cl * ( radius/(max_lines+1)); + var arr = zdonut(centerX, centerY, crad, dta ); + for (var i = 0; i < arr.length; i++) { + var item = arr[i]; + var tP = document.createElementNS( 'http://www.w3.org/2000/svg', 'path' ); + tP.setAttribute( 'd', item.d ); + var test = false; + var ll = []; + if( data.presets.length ){ + for( var z = 0; z < data.presets.length; z++) + if( data.presets[z].row == cl && data.presets[z].column == i ){ + ll = data.presets[z]; + test = true; + break; + }; + }; + if( test ){ + tP.setAttribute( 'stroke', '#000000' ); + tP.setAttribute( 'class', 'preset_ctrl_btn_a' ); + tP.setAttribute( 'onclick', 'triggerPreset('+camID+','+ll.id+')' ); + tP.setAttribute( 'oncontextmenu', 'removePreset('+camID+','+ll.id+')' ); + } else { + tP.setAttribute( 'stroke', color[(i+cl)%5] ); + tP.setAttribute( 'class', 'preset_ctrl_btn' ); + tP.setAttribute( 'ondblclick', 'setPreset('+camID+','+i+','+cl+')' ); + }; + tP.setAttribute( 'fill', 'none' ); + tP.setAttribute( 'stroke-width', ( radius/(max_lines+1)) ); + svg.appendChild( tP ); + } + }; + if( selectedPresetsBackgroundSensor ) preview2DDraw( selectedPresetsBackgroundSensor, 'ptz_presets_'); + }, + failure: failureAJAXFunction + }); +}; + +function triggerPreset( camID, presetID ){ + //alert( "Call Preset["+presetID+"] for camera["+camID+"]" ); + doCamOperation( camID, 30, presetID ); + return false; +}; + +function removePreset( camID, presetID ){ + //alert( "Remove Preset["+presetID+"] for camera["+camID+"]" ); + doCamOperation( camID, 29, presetID ); + window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+camID+" );", 500 ); + return false; +}; + +function setPreset( camID, colID, rowID ){ + //alert( "Set new Preset for camera["+camID+"] x:"+colID+" y:"+rowID ); + doCamOperation( camID, 28, colID+"_"+rowID ); + window.setTimeout( "showCameraPresets( 'ptz_presets_0', "+camID+" );", 500 ); + return false; +}; diff --git a/style/assets/14_node.png b/style/assets/14_node.png new file mode 100644 index 0000000..1f4751c Binary files /dev/null and b/style/assets/14_node.png differ diff --git a/style/assets/15_node.png b/style/assets/15_node.png index 49e32b8..1f4751c 100644 Binary files a/style/assets/15_node.png and b/style/assets/15_node.png differ diff --git a/style/assets/no-signal.png b/style/assets/no-signal.png index d697958..ffff0d5 100644 Binary files a/style/assets/no-signal.png and b/style/assets/no-signal.png differ diff --git a/style/assets/no-signal_d.png b/style/assets/no-signal_d.png deleted file mode 100644 index ffff0d5..0000000 Binary files a/style/assets/no-signal_d.png and /dev/null differ diff --git a/style/assets/no-signal_d.png.png b/style/assets/no-signal_d.png.png new file mode 100644 index 0000000..d697958 Binary files /dev/null and b/style/assets/no-signal_d.png.png differ diff --git a/style/png/player/ir_off.png b/style/png/player/ir_off.png new file mode 100644 index 0000000..bc47dfe Binary files /dev/null and b/style/png/player/ir_off.png differ diff --git a/style/png/player/ir_on.png b/style/png/player/ir_on.png new file mode 100644 index 0000000..913b9d6 Binary files /dev/null and b/style/png/player/ir_on.png differ diff --git a/style/png/player/washer.png b/style/png/player/washer.png new file mode 100644 index 0000000..7862bff Binary files /dev/null and b/style/png/player/washer.png differ diff --git a/style/style.css b/style/style.css index d116795..0faeee0 100644 --- a/style/style.css +++ b/style/style.css @@ -504,6 +504,28 @@ object:hover { border: 2px solid red; cursor: pointer; } + +.preset_ctrl_btn{ + opacity: 0.3; + cursor: pointer; +} +.preset_ctrl_btn:hover{ + opacity: 1.0; + cursor: pointer; +} +.preset_ctrl_btn:active{ + opacity: 1.0; + cursor: pointer; +} +.ptz_ctrl_btn_hdn{ + display: none; +} +.preset_ctrl_btn_a{ + opacity: 1.0; + border: 2px solid orange; + cursor: pointer; +} + /* Correct Style */ .x-form-text{ @@ -743,6 +765,10 @@ A.CalendarDS:hover { color: yellow; background-color: black; } +.setEd_infoPanel#MODEM{ + color: yellow; + background-color: darkviolet; +} .setEd_infoPanel#NUNU{ color: yellow; height: 100%;