|
|
|
|
|
<!DOCTYPE html> |
|
|
<html> |
|
|
<head> |
|
|
<meta http-equiv="cache-control" |
|
|
content="max-age=0" /> |
|
|
<meta http-equiv="cache-control" |
|
|
content="no-store" /> |
|
|
<meta http-equiv="expires" |
|
|
content="-1" /> |
|
|
<meta http-equiv="expires" |
|
|
content="Tue, 01 Jan 1980 1:00:00 GMT" /> |
|
|
<meta http-equiv="pragma" |
|
|
content="no-cache" /> |
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" /> |
|
|
<!--meta http-equiv="refresh" content="300" />--> <!--Refresh each 5s--> |
|
|
<meta charset="utf-8" /> |
|
|
|
|
|
<style> |
|
|
body, html { |
|
|
font-family: "Arial"; |
|
|
} |
|
|
.titlebox{ |
|
|
float:left; |
|
|
padding:0 5px; |
|
|
margin:-30px 0 0 20px; |
|
|
background:#fff; |
|
|
} |
|
|
</style> |
|
|
|
|
|
<script src="jquery_3_2_1.min.js"></script> |
|
|
|
|
|
<script src="fabric_jquery.easyui.min_compressed_on_nvr.js"></script> |
|
|
|
|
|
<script src="cookie.min.js"></script> |
|
|
|
|
|
<script src="lang.js"></script> |
|
|
|
|
|
<script src="config.js"></script> |
|
|
<script src="icon.js"></script> |
|
|
<script src="aes.js"></script> |
|
|
|
|
|
<script> |
|
|
window.onerror = function (message, url, linenumber) { |
|
|
|
|
|
console.log('JavaScript error: ' + message + ' on line ' + linenumber + ' for ' + url); |
|
|
|
|
|
if (url.search("fabric_jquery.easyui.min_compressed_on_nvr.js") >= 1) { |
|
|
loadScript("fabric_jquery.easyui.min_compressed_on_nvr.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (url.search("jquery_3_2_1.min.js") >= 1) { |
|
|
loadScript("jquery_3_2_1.min.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (url.search("config.js") >= 1) { |
|
|
loadScript("config.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (url.search("cookie.min.js") >= 1) { |
|
|
loadScript("cookie.min.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (url.search("lang.js") >= 1) { |
|
|
loadScript("lang.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (url.search("label_names.js") >= 1) { |
|
|
loadScript("label_names.js", function () { |
|
|
}); |
|
|
} |
|
|
/* |
|
|
else if (url.search("js_3_5_1.js") >= 1) { |
|
|
loadScript("js_3_5_1.js", function () { |
|
|
}); |
|
|
}*/ |
|
|
else if (url.search("aes.js") >= 1) { |
|
|
loadScript("aes.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (url.search("icon.js") >= 1) { |
|
|
loadScript("icon.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (url.search("lang_cookie.js") >= 1) { |
|
|
loadScript("lang_cookie.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (message.search("slider") >= 1) { |
|
|
loadScript("fabric_jquery.easyui.min_compressed_on_nvr.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (message.search("myport") >= 1) { |
|
|
loadScript("config.js", function () { |
|
|
}); |
|
|
} |
|
|
else if (message.search("cookie") >= 1) { |
|
|
loadScript("cookie.min.js", function () { |
|
|
}); |
|
|
} |
|
|
else { |
|
|
//location.reload(); |
|
|
var replaceUrl = 'http://' + window.location.hostname + ':' + GetUrlPort() + '/Aida/setting.html'; |
|
|
//alert(replaceUrl); |
|
|
window.location.replace(replaceUrl); |
|
|
} |
|
|
} |
|
|
function GetUrlPort() { |
|
|
var url_href = window.location.href; |
|
|
var arr_url = url_href.split(":")[2].split("/")[0]; |
|
|
|
|
|
return arr_url; |
|
|
} |
|
|
if (window.history.replaceState) { |
|
|
window.history.replaceState(null, null, window.location.href); |
|
|
} |
|
|
</script> |
|
|
|
|
|
<script src="lang_cookie.js"></script> |
|
|
<!--<script src="js_3_5_1.js"></script>--> |
|
|
|
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="bootstrap.min.css"> |
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="easyui.css"> |
|
|
<!-- |
|
|
<script> |
|
|
function myrefresh() { |
|
|
window.location.reload(); |
|
|
} |
|
|
setTimeout('myrefresh()', 20000); //指定1秒刷新一次 |
|
|
</script> |
|
|
--> |
|
|
</head> |
|
|
<body> |
|
|
|
|
|
<div class="progress" style="background-color:white;"> |
|
|
<div class="progress-bar progress-bar-striped" style="min-width: 20px;visibility:hidden;"></div> |
|
|
</div> |
|
|
<div class="setting_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox"><nobr id="TITLEBOX_PAGE01"></nobr></div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_LANGUAGE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_lang" id="select_lang" onchange="func_set_lang_cookie()"> |
|
|
<option value="en_gb">English</option> |
|
|
<option value="zh_tw">Chinese (繁體中文)</option> |
|
|
<option value="ja_jp">Japanese (日本語)</option> |
|
|
<option value="it_it">Italian</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="setting_border_1" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_COLOR_DETECTION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_color_detection" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SYNC_USER_DATA"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="button_sync_user_data" value="Sync." type="button" onclick="func_syncUserData();" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="setting_border_2" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SETTING_PORT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="SETTING_PORT" type="text" value="8592" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<!-- |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_OBJ_ONCE_TO_POST"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="ENABLE_OBJ_ONCE_TO_POST" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
--> |
|
|
<tr id="low_cpu_usage_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_LOW_CPU_USAGE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_low_cpu_usage" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="once_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_LOCATION_ONCE_TO_POST"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
<div style="display:flex;flex-direction:row;"> |
|
|
<div class="item"> |
|
|
<input id="ENABLE_LOCATION_ONCE_TO_POST" type="checkbox" /> |
|
|
</div> |
|
|
<div class="item"> |
|
|
|
|
|
</div> |
|
|
<div class="item"> |
|
|
<input class="easyui-slider" style="width:150px;" id="dwell_to_the_same_location" /> |
|
|
</div> |
|
|
<div id="out_bbox_border" style="height: 18px;display:none;"> |
|
|
<input id="enable_bounding_box" type="checkbox" /><nobr id="IDC_STATIC_ENABLE_BOUNDING_BOX"></nobr> |
|
|
<input id="enable_dwell_bounding_box" type="checkbox" /><nobr id="IDC_STATIC_ENABLE_DWELL_BOUNDING_BOX"></nobr> |
|
|
</div> |
|
|
</div> |
|
|
</td> |
|
|
</tr> |
|
|
<!--<tr id="nav_once_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_NVR_ONCE_TO_GETALARMMOTION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_nvr_once_to_getalarmmotion" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="group_enable_8592" style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_8592_ONCE_TO_GETALARMMOTION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_8592_once_to_getalarmmotion" type="checkbox" /> |
|
|
</td> |
|
|
</tr>--> |
|
|
<tr id="setting_border_3" style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SENSORS_TYPE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="sensors_type" id="sensors_type" onchange=""> |
|
|
<option value="0"></option> |
|
|
<option value="1"></option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="border_tracking_id_dwell" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_TRACKING_ID_DWELL"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input class="easyui-slider" style="width:450px;" id="tracking_id_dwell" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="border_nms" style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_NMS_THRES"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input class="easyui-slider" style="width:450px;" id="nms_thres" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="person_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_PERSON_INDEPENDENT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_person_independent" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="snap_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_GETALARMMOTION_SNAP"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_getalarmmotion_snap" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="getnetwork_buffer_id_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_GETNETWORK_BUFFER_ID"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="getnetwork_buffer_id" id="getnetwork_buffer_id" onchange=""> |
|
|
<option value="0">1</option><!--0--> |
|
|
<option value="1">2</option><!--3--> |
|
|
<option value="2">3</option><!--2--> |
|
|
<option value="3">4</option><!--1--> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="encoder_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_GETIMAGE_ENCODER_ID"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="getimage_encoder_id" id="getimage_encoder_id" onchange=""> |
|
|
<option value="2">2</option> |
|
|
<option value="3">3</option> |
|
|
<option value="4">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="setting_border_4" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_GETIMAGE_ENCODER_ID_HD"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="getimage_encoder_id_HD" id="getimage_encoder_id_HD" onchange=""> |
|
|
<option value="0">None</option> |
|
|
<option value="2">2</option> |
|
|
<option value="3">3</option> |
|
|
<option value="4">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="crop_mode_border" style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_CROP_MODE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_crop_mode" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="onvif_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_ONVIF_PROFILE_M"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_onvif_profile_m" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="advanced_border_1" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="advanced_border_2" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ADVANCED" style="color:#6c87d4"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="ai_mirror_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_AI_MIRROR"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_ai_mirror" type="checkbox" /> |
|
|
|
|
|
<select name="ai_mirror_feature" id="ai_mirror_feature" onchange=""> |
|
|
<option value="0">Normal mode</option> |
|
|
<option value="1">Mirror mode</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="encoder_notice_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<img src="images/info-2-32X32.png" style="vertical-align:middle;" /> |
|
|
<!--<nobr id="IDC_STATIC_NOTE_1" style="color:red;font-weight:bold;"></nobr>--> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENCODER_NOTICE"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="encoder_notice_border_2" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENCODER_NOTICE2"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="notice_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<img src="images/info-2-32X32.png" style="vertical-align:middle;" /> |
|
|
<!--<nobr id="IDC_STATIC_NOTE_1" style="color:red;font-weight:bold;"></nobr>--> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_JPEG_NOTICE"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="notice_border_2" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_JPEG_NOTICE2"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<!-- |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CAMERA_IMAGE_ROTATION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="button_sync_image_rotation" value="Sync." type="button" onclick="func_syncImageRotation();" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
</tr> |
|
|
--> |
|
|
<!-- |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CPU_USAGE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="CPU_USAGE" |
|
|
type="text" |
|
|
class="Disable" |
|
|
value="100 %" style="background-color:#F3F1F1;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_GPU_USAGE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="GPU_USAGE" |
|
|
type="text" |
|
|
class="Disable" |
|
|
value="100 %" style="background-color:#F3F1F1;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_FPS"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="FPS" |
|
|
type="text" |
|
|
class="Disable" |
|
|
value="30" style="background-color:#F3F1F1;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
--> |
|
|
<!-- |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_BYPASS_LOGIN"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_bypass_login" type="checkbox" onchange="func_set_bypass_login_cookie()" /> |
|
|
</td> |
|
|
</tr> |
|
|
--> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK" type="button" value=" Set " onclick="func_setSettingData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="lpr_border" class="setting_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox"><nobr id="TITLEBOX_PAGE11"></nobr></div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_FORCE_I_TO_ONE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="force_i_to_one" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_FORCE_O_TO_ZERO"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="force_o_to_zero" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SUPPORT_DASH"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="support_dash" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SUPPORT_SPECIAL"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_special_char" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_POST_ONLY_IF_BOTH_DETECTED"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_post_only_if_both_detected" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_ONLY_ONCE_TO_POST"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="ENABLE_ONLY_ONCE_TO_POST" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_PLATE_ANGLE_CORRECTION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_plate_angle_correction" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SAME_PLATE_DETECT_ONCE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_NUM_OF_SAME_PLATE_DETECTION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_number_of_same_plate_detection" id="select_number_of_same_plate_detection" onchange=""> |
|
|
<option value="0">None</option> |
|
|
<option value="1">1</option> |
|
|
<option value="2">2</option> |
|
|
<option value="3">3</option> |
|
|
<option value="4">4</option> |
|
|
<option value="5">5</option> |
|
|
<option value="6">6</option> |
|
|
<option value="7">7</option> |
|
|
<option value="8">8</option> |
|
|
<option value="9">9</option> |
|
|
<option value="10">10</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SAME_PLATE_DETECTION_DWELL"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_same_plate_detection_dwell" id="select_same_plate_detection_dwell" onchange=""> |
|
|
<option value="0">None</option> |
|
|
<option value="1">1</option> |
|
|
<option value="2">2</option> |
|
|
<option value="3">3</option> |
|
|
<option value="4">4</option> |
|
|
<option value="5">5</option> |
|
|
<option value="6">6</option> |
|
|
<option value="7">7</option> |
|
|
<option value="8">8</option> |
|
|
<option value="9">9</option> |
|
|
<option value="10">10</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_lpr" type="button" value=" Set " onclick="func_setLprData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="report_border" class="setting_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox"><nobr id="IDC_STATIC_REPORT"></nobr></div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
<tr id="report_border_counter_1" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_COUNTER_NAME"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_report" id="select_report" onchange="change_report()"> |
|
|
<option value="0"></option> |
|
|
<option value="1"></option> |
|
|
<option value="2"></option> |
|
|
<option value="3"></option> |
|
|
</select> |
|
|
|
|
|
<input id="show_cool_counter" type="button" onclick="func_show_counter()" value="Go" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_2" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_report" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_3" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_COUNTER_MODE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_counter_mode" id="select_counter_mode" onchange=""></select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_4" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_MAX_VALUE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="report_max_value" type="text" value="100" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_5" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_INITIAL_ICON"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_initial_icon" id="select_initial_icon" onchange=""></select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_6" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_DETECTION_OUTPUT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="detection_output" type="text" value="No entry for cars" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_7" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_COUNTER_A"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_counter_a" id="select_counter_a" onchange=""> |
|
|
<option value="-1">None</option> |
|
|
<option value="0">Counter01</option> |
|
|
<option value="1">Counter02</option> |
|
|
<option value="2">Counter03</option> |
|
|
<option value="3">Counter04</option> |
|
|
<option value="4">Counter05</option> |
|
|
<option value="5">Counter06</option> |
|
|
<option value="6">Counter07</option> |
|
|
<option value="7">Counter08</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_8" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_COUNTER_A_NAME"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="counter_a_name" type="text" value="Name" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<!-- |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr>Counter A zone</nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_counter_a_zone" id="select_counter_a_zone" onchange=""> |
|
|
<option value="0">None</option> |
|
|
<option value="1">1</option> |
|
|
<option value="2">2</option> |
|
|
<option value="3">3</option> |
|
|
<option value="4">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
--> |
|
|
<tr id="report_border_counter_9" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_COUNTER_B"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_counter_b" id="select_counter_b" onchange=""> |
|
|
<option value="-1">None</option> |
|
|
<option value="0">Counter01</option> |
|
|
<option value="1">Counter02</option> |
|
|
<option value="2">Counter03</option> |
|
|
<option value="3">Counter04</option> |
|
|
<option value="4">Counter05</option> |
|
|
<option value="5">Counter06</option> |
|
|
<option value="6">Counter07</option> |
|
|
<option value="7">Counter08</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_10" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_COUNTER_B_NAME"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="counter_b_name" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_11" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_COUNTER_C_NAME"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="counter_c_name" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_12" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_COUNTER_SNAP"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_counter_snap" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="report_border_counter_13" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<img src="images/info-2-32X32.png" style="vertical-align:middle;" /> |
|
|
<!--<nobr id="IDC_STATIC_NOTE_1" style="color:red;font-weight:bold;"></nobr>--> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_COUNTER_NOTICE"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
<!-- |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr>Counter B zone</nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="select_counter_b_zone" id="select_counter_b_zone" onchange=""> |
|
|
<option value="0">None</option> |
|
|
<option value="1">1</option> |
|
|
<option value="2">2</option> |
|
|
<option value="3">3</option> |
|
|
<option value="4">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr>--> |
|
|
|
|
|
<tr id="report_border_heatmap_1" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="report_border_heatmap_2" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_HEATMAP"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_heatmap" type="checkbox" /> |
|
|
|
|
|
<input id="show_heatmap" type="button" onclick="func_show_heatmap()" value="Heatmap" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="report_border_heatmap_3" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_HEATMAP_FREQUENCY"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="heatmap_frequency" id="heatmap_frequency" onchange=""> |
|
|
<option value="2">2 Sec</option> |
|
|
<option value="3">3 Sec</option> |
|
|
<option value="5">5 Sec</option> |
|
|
<option value="10">10 Sec</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="report_border_heatmap_4" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_HEATMAP_MAX"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="heatmap_max" type="text" value="100" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="report_border_lpr_1" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr id="report_border_lpr_2" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_LPR_TITLE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="lpr_title" type="text" value="My Car Park" style="width: 350px" /> |
|
|
|
|
|
<input id="show_lpr" type="button" onclick="func_show_lpr()" value="LPR" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_report" type="button" value=" Set " onclick="func_setReportData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="cloud_border" class="setting_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox"><nobr id="TITLEBOX_PAGE10"></nobr></div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
|
|
|
<tr style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_SYNC_EXT_LPR_DB"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_sync_external_lpr_db" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_EXT_LPR_DB_IP"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="external_lpr_db_IP" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_EXT_LPR_DB_PORT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="external_lpr_db_port" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_EXT_LPR_DB_USERNAME"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="external_lpr_db_username" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_EXT_LPR_DB_PASSWORD"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="external_lpr_db_password" type="password" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_CLOUD_NOTIFICATION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_cloud_notification" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_CLOUD_SNAP"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_cloud_snap" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_EVENT_CLOUD">Event cloud:</nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<a href="https://event.ddnsipcam.com" target="_blank">https://event.ddnsipcam.com</a> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_NOTIFICATION_DWELL"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input class="easyui-slider" style="width:450px;" id="notification_dwell" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_ACCOUNT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="user_account" |
|
|
type="text" |
|
|
value="myaccount@mail.com" |
|
|
style="width:350px;" /> |
|
|
<input id="button_user" type="button" onclick="func_setCloudData_login();" value="Verify" style="background-color:#6c87d4;color:white;border-color:#6c87d4;" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_PASSWORD"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="user_password" |
|
|
type="password" |
|
|
value="mypass" |
|
|
style="width:350px;" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 80px;"> |
|
|
<td style="width: 450px; height: 80px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_STATUE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 80px;"> |
|
|
|
|
|
<textarea id="cloud_statue" style="height: 80px;width: 450px;background-color:#F3F1F1;" readonly></textarea> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<img src="images/info-2-32X32.png" style="vertical-align:middle;" /> |
|
|
<!--<nobr id="IDC_STATIC_NOTE_2" style="color:red;font-weight:bold;"></nobr>--> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="NOTICE_CLOUD2"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<!--<nobr id="IDC_STATIC_NOTE_2" style="color:red;font-weight:bold;"></nobr>--> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="NOTICE_CLOUD3"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_cloud" type="button" value=" Set " onclick="func_setCloudData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="OSD_border" class="setting_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox">OSD</div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_DISPLAY_OSD"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_display_OSD" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_OSD_ENCODER_ID"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="osd_encoder_id" id="osd_encoder_id" onchange=""> |
|
|
<option value="1">1</option> |
|
|
<option value="2">2</option> |
|
|
<option value="3">3</option> |
|
|
<option value="4">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<!-- |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_OSD_FONT_SIZE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="osd_font_size" id="osd_font_size" onchange=""> |
|
|
<option value="26">26</option> |
|
|
<option value="30">30</option> |
|
|
<option value="34">34</option> |
|
|
<option value="38">38</option> |
|
|
<option value="42">42</option> |
|
|
<option value="42">46</option> |
|
|
<option value="42">50</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_OSD_OUTLINE_LILIN"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="osd_outline_lilin" id="osd_outline_lilin" onchange=""> |
|
|
<option value="4">4</option> |
|
|
<option value="5">5</option> |
|
|
<option value="6">6</option> |
|
|
<option value="7">7</option> |
|
|
<option value="8">8</option> |
|
|
<option value="9">9</option> |
|
|
<option value="10">10</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
--> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_OSD_BOTTOM"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_osd_bottom" type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_OSD_BOTTOM_BG_TRAN"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input class="easyui-slider" style="width:450px;" id="osd_bottom_bg_tran" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 80px;"> |
|
|
<td style="width: 450px; height: 65px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_OSD_BOTTOM_CONTENT"></nobr> |
|
|
<input type="button" onclick="window.open('osdtoken.html', '_blank', 'resizable=yes,top=0,left=0,width=600,height=450');" value="?" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
<td style="width: 500px; height: 65px;"> |
|
|
|
|
|
<textarea style="width: 480px; height: 65px; background-color:white;overflow:hidden;" id="osd_bottom_content"></textarea> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<img src="images/info-2-32X32.png" style="vertical-align:middle;" /> |
|
|
<!--<nobr id="IDC_STATIC_NOTE_1" style="color:red;font-weight:bold;"></nobr>--> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_OSD_NOTICE"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_OSD_NOTICE2"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<img src="images/info-2-32X32.png" style="vertical-align:middle;" /> |
|
|
<!--<nobr id="IDC_STATIC_NOTE_1" style="color:red;font-weight:bold;"></nobr>--> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_OSD_NOTICE3"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_osd" type="button" value=" Set " onclick="func_setOSDData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="FTP_border" class="setting_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox">FTP/SFTP</div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_FTP"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_ftp" |
|
|
type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_FTP_URL"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="ftp_url" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_FTP_PORT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="ftp_port" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_FTP_USERNAME"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="ftp_username" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_FTP_PASSWORD"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="ftp_password" type="password" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_FTP_REMOTE_DIRECTORY"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="ftp_remote_directory" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_JPEG_FILE_NAME_FORMAT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<label><input id="FILE_FORMAT_NAME_FIXED" type="radio" name="FILE_FORMAT_NAME" value="fixed" checked /> <nobr id="file_name_fixed"></nobr></label> |
|
|
<label><input id="FILE_FORMAT_NAME_DATE" type="radio" name="FILE_FORMAT_NAME" value="date" /> <nobr id="file_name_date"></nobr></label> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="JPEG_FILE_NAME"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="ftp_jpeg_file_name" type="text" value="" style="width: 350px" /> |
|
|
</td> |
|
|
</tr> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_ftp" type="button" value=" Set " onclick="func_setFTPData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="SMTP_border" class="setting_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox"><nobr id="IDC_STATIC_SMTP_SERVICE"></nobr></div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_EMAIL_NOTIFICATION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_email_notification" |
|
|
type="checkbox" /> |
|
|
<input id="button_sync_service" value="Sync." type="button" onclick="func_sync_service();" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_EMAIL_JPEG"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_email_jpeg" |
|
|
type="checkbox" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_EMAIL_RESET_TIME_INTERVAL"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="email_reset_time_interval" id="email_reset_time_interval" onchange=""> |
|
|
<option value="NULL">None</option> |
|
|
<option value="1 minute">1 minute</option> |
|
|
<option value="5 minutes">5 minutes</option> |
|
|
<option value="30 minutes">30 minutes</option> |
|
|
<option value="1 hour">1 hour</option> |
|
|
<option value="1 day">1 day</option> |
|
|
<option value="1 week">1 week</option> |
|
|
<option value="1 month">1 month</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr id="mail_counter_border" style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SEND_COUNTER_AT_SPECIFIC_HOUR"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="send_counter_at_specific_hour" id="send_counter_at_specific_hour" onchange=""> |
|
|
<option value="NULL">None</option> |
|
|
<option value="0">0:00</option> |
|
|
<option value="1">1:00</option> |
|
|
<option value="2">2:00</option> |
|
|
<option value="3">3:00</option> |
|
|
<option value="4">4:00</option> |
|
|
<option value="5">5:00</option> |
|
|
<option value="6">6:00</option> |
|
|
<option value="7">7:00</option> |
|
|
<option value="8">8:00</option> |
|
|
<option value="9">9:00</option> |
|
|
<option value="10">10:00</option> |
|
|
<option value="11">11:00</option> |
|
|
<option value="12">12:00</option> |
|
|
<option value="13">13:00</option> |
|
|
<option value="14">14:00</option> |
|
|
<option value="15">15:00</option> |
|
|
<option value="16">16:00</option> |
|
|
<option value="17">17:00</option> |
|
|
<option value="18">18:00</option> |
|
|
<option value="19">19:00</option> |
|
|
<option value="20">20:00</option> |
|
|
<option value="21">21:00</option> |
|
|
<option value="22">22:00</option> |
|
|
<option value="23">23:00</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_E_MAIL_RECEIVER_SETTING"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_E_MAIL_ADDRESS_1"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="email_address1" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_E_MAIL_ADDRESS_2"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="email_address2" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_E_MAIL_ADDRESS_3"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="email_address3" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_E_MAIL_ADDRESS_4"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="email_address4" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_E_MAIL_ADDRESS_5"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="email_address5" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_E_MAIL_SENDER_SETTING"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_E_MAIL_ADDRESS"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="email_address" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SMTP_SERVER"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="smtp_server" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SMTP_AUTHENTICATION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="smtp_authentication" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_SMTP_PORT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="smtp_port" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_AUTHENTICATION"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="authentication" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_AUTH_ACCOUNT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="auth_account" |
|
|
type="text" |
|
|
value="" |
|
|
style="background-color:#F3F1F1;width: 350px;" readonly /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_AUTH_PASSWORD"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="auth_password" |
|
|
type="password" |
|
|
value="" |
|
|
style="background-color:white;width: 350px;"> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 80px;"> |
|
|
<td style="width: 450px; height: 80px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_E_MAIL_CONTENT"></nobr> |
|
|
<input type="button" onclick="window.open('posttoken.html', '_blank', 'resizable=yes,top=0,left=0,width=600,height=450');" value="?" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
<td style="width: 500px; height: 80px;"> |
|
|
|
|
|
<textarea style="width: 450px; height: 80px; background-color:white;" id="email_content"></textarea> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<img src="images/info-2-32X32.png" style="vertical-align:middle;" /> |
|
|
<!--<nobr id="IDC_STATIC_NOTE_2" style="color:red;font-weight:bold;"></nobr>--> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="NOTICE_EMAIL"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<nobr id="NOTICE_EMAIL2"></nobr> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_mail" type="button" value=" Set " onclick="func_setMailData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="cloud_border_v2" class="setting_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox">Arisan</div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_CLOUD_V2"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_cloud_v2" type="checkbox" /> |
|
|
<input id="button_cloud_v2_verify" type="button" onclick="func_cloud_v2_verify();" value="Verify" style="background-color:#6c87d4;color:white;border-color:#6c87d4;" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_V2_NOTIFICATION_DWELL"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input class="easyui-slider" style="width:450px;" id="cloud_v2_notification_dwell" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 80px;"> |
|
|
<td style="width: 450px; height: 65px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_V2_CONTENT"></nobr> |
|
|
<input type="button" onclick="window.open('osdtoken.html', '_blank', 'resizable=yes,top=0,left=0,width=600,height=450');" value="?" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
<td style="width: 500px; height: 65px;"> |
|
|
|
|
|
<textarea style="width: 480px; height: 65px; background-color:white;overflow:hidden;" id="cloud_v2_content"></textarea> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 80px;"> |
|
|
<td style="width: 450px; height: 80px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_V2_STATUE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 80px;"> |
|
|
|
|
|
<textarea id="cloud_v2_statue" style="height: 80px;width: 450px;background-color:#F3F1F1;" readonly></textarea> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_CLOUD_RECORD_V2"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_cloud_record_v2" type="checkbox" /> |
|
|
<input id="button_cloud_record_v2_verify" type="button" onclick="func_cloud_record_v2_verify();" value="Verify" style="background-color:#6c87d4;color:white;border-color:#6c87d4;" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 18px;display:none;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_RECORD_V2_NOTIFICATION_DWELL"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input class="easyui-slider" style="width:450px;" id="cloud_record_v2_notification_dwell" /> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 80px;display:none;"> |
|
|
<td style="width: 450px; height: 65px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_RECORD_V2_CONTENT"></nobr> |
|
|
<input type="button" onclick="window.open('osdtoken.html', '_blank', 'resizable=yes,top=0,left=0,width=600,height=450');" value="?" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
<td style="width: 500px; height: 65px;"> |
|
|
|
|
|
<textarea style="width: 480px; height: 65px; background-color:white;overflow:hidden;" id="cloud_record_v2_content"></textarea> |
|
|
</td> |
|
|
</tr> |
|
|
|
|
|
<tr style="height: 80px;display:none;"> |
|
|
<td style="width: 450px; height: 80px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_CLOUD_RECORD_V2_STATUE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 80px;"> |
|
|
|
|
|
<textarea id="cloud_record_v2_statue" style="height: 80px;width: 450px;background-color:#F3F1F1;" readonly></textarea> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_cloud_v2" type="button" value=" Set " onclick="func_setCloudData_v2()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="traffic_enforcement_border" class="setting_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox"><nobr id="TITLEBOX_PAGE20"></nobr></div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_RED_LIGHT_ZONE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="red_light_zone" id="red_light_zone" onchange=""> |
|
|
<option value="NULL">None</option> |
|
|
<option value="0">1</option> |
|
|
<option value="1">2</option> |
|
|
<option value="2">3</option> |
|
|
<option value="3">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_NO_GIVE_WAY_TOPIC"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_NO_GIVE_WAY_ZONE_TO_PROTECT"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="no_give_way_zone_to_protect" id="no_give_way_zone_to_protect" onchange=""> |
|
|
<option value="NULL">None</option> |
|
|
<option value="0">1</option> |
|
|
<option value="1">2</option> |
|
|
<option value="2">3</option> |
|
|
<option value="3">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_NO_GIVE_WAY_ZONE_TO_KEEP_AWAY"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="no_give_way_zone_to_keep_away" id="no_give_way_zone_to_keep_away" onchange=""> |
|
|
<option value="NULL">None</option> |
|
|
<option value="0">1</option> |
|
|
<option value="1">2</option> |
|
|
<option value="2">3</option> |
|
|
<option value="3">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_NO_GIVE_WAY_ZONE_TO_PROTECT_2"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="no_give_way_zone_to_protect_2" id="no_give_way_zone_to_protect_2" onchange=""> |
|
|
<option value="NULL">None</option> |
|
|
<option value="0">1</option> |
|
|
<option value="1">2</option> |
|
|
<option value="2">3</option> |
|
|
<option value="3">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_NO_GIVE_WAY_ZONE_TO_KEEP_AWAY_2"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<select name="no_give_way_zone_to_keep_away_2" id="no_give_way_zone_to_keep_away_2" onchange=""> |
|
|
<option value="NULL">None</option> |
|
|
<option value="0">1</option> |
|
|
<option value="1">2</option> |
|
|
<option value="2">3</option> |
|
|
<option value="3">4</option> |
|
|
</select> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_traffic_enforcement" type="button" value=" Set " onclick="func_setTrafficEnforcementData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="system_logs_border" class="system_logs_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox"><nobr id="TITLEBOX_PAGE21"></nobr></div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_SYSTEM_LOGS"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_system_logs" |
|
|
type="checkbox" /> |
|
|
|
|
|
<input id="show_system_logs" type="button" onclick="func_show_system_logs()" value="Logs" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_system_logs" type="button" value=" Set " onclick="func_setSystemLogsData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div id="system_python_border" class="system_python_border" style="border:1px gray solid;padding:20px;margin:15px 15px 15px 15px;"> |
|
|
<div class="titlebox"><nobr id="TITLEBOX_PAGE22"></nobr></div> |
|
|
<table align="center" valign="center" style="border-collapse: collapse; width: 900px; height: auto; "> |
|
|
<tbody> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_PYTHON"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 18px;"> |
|
|
|
|
|
<input id="enable_python" |
|
|
type="checkbox" /> |
|
|
|
|
|
<input id="show_system_logs" type="button" onclick="func_show_python()" value="Python" style="background:#6c87d4;border-color:#6c87d4;color:white" /> |
|
|
</td> |
|
|
</tr> |
|
|
<tr style="height: 18px;"> |
|
|
<td style="width: 450px; height: 18px;"> |
|
|
|
|
|
<nobr id="IDC_STATIC_ENABLE_PYTHON_FILE"></nobr> |
|
|
</td> |
|
|
<td style="width: 500px; height: 80px;"> |
|
|
|
|
|
<textarea id="enable_python_file" style="height: 80px;width: 450px;background-color:#F3F1F1;" readonly></textarea> |
|
|
</td> |
|
|
</tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
|
|
|
|
<div> |
|
|
<div align="center"> |
|
|
<input align="center" id="IDOK_python" type="button" value=" Set " onclick="func_setPythonData()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div align="center" style="margin:5px 0px 0px 0px"> |
|
|
<input align="center" id="ID_DEFAULT" type="button" value=" Default " onclick="func_get_system_default()" style="background-color:#6c87d4;color:white;height:36px;width:300px;" /> |
|
|
</div> |
|
|
|
|
|
<br> |
|
|
|
|
|
<script> |
|
|
//UI Interface |
|
|
|
|
|
//动态加载多个JS文件 |
|
|
//优先加载Common.js,等待Common.js加载完毕后加载Costom.js |
|
|
//不同浏览器的执行顺序不同 |
|
|
//Firefox、Opera能够保证按照你脚本的加载顺序来执行 |
|
|
//其他浏览器会按照从服务端返回的顺序执行代码,因此使用嵌套的方法保证调用顺序 |
|
|
/*loadScript("js_3_5_1.js", function () { |
|
|
loadScript("cookie.min.js", function () { |
|
|
loadScript("lang.js", function () { |
|
|
loadScript("config.js", function () { |
|
|
loadScript("lang_cookie.js", function () { |
|
|
//alert("all load"); |
|
|
|
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
});*/ |
|
|
|
|
|
func_get_lang_cookie(); |
|
|
document.getElementById("IDC_STATIC_LANGUAGE").innerHTML = IDC_STATIC_LANGUAGE; |
|
|
document.getElementById("IDC_STATIC_ENABLE_COLOR_DETECTION").innerHTML = IDC_STATIC_ENABLE_COLOR_DETECTION; |
|
|
//document.getElementById("IDC_STATIC_CPU_USAGE").innerHTML = IDC_STATIC_CPU_USAGE; |
|
|
//document.getElementById("IDC_STATIC_GPU_USAGE").innerHTML = IDC_STATIC_GPU_USAGE; |
|
|
//document.getElementById("IDC_STATIC_FPS").innerHTML = IDC_STATIC_FPS; |
|
|
document.getElementById("IDC_STATIC_SETTING_PORT").innerHTML = IDC_STATIC_SETTING_PORT; |
|
|
$('#IDOK').val(IDOK); |
|
|
$('#IDOK_mail').val(IDOK); |
|
|
$('#IDOK_ftp').val(IDOK); |
|
|
$('#IDOK_lpr').val(IDOK); |
|
|
$('#IDOK_report').val(IDOK); |
|
|
$('#IDOK_cloud').val(IDOK); |
|
|
$('#IDOK_cloud_v2').val(IDOK); |
|
|
$('#IDOK_osd').val(IDOK); |
|
|
$('#IDOK_traffic_enforcement').val(IDOK); |
|
|
$('#IDOK_system_logs').val(IDOK); |
|
|
$('#IDOK_python').val(IDOK); |
|
|
|
|
|
$("#select_lang").val(select_lang); |
|
|
document.getElementById("TITLEBOX_PAGE01").innerHTML = TITLEBOX_PAGE01; |
|
|
document.getElementById("TITLEBOX_PAGE10").innerHTML = TITLEBOX_PAGE10; |
|
|
document.getElementById("TITLEBOX_PAGE11").innerHTML = TITLEBOX_PAGE11; |
|
|
document.getElementById("TITLEBOX_PAGE20").innerHTML = TITLEBOX_PAGE20; |
|
|
document.getElementById("TITLEBOX_PAGE21").innerHTML = TITLEBOX_PAGE21; |
|
|
document.getElementById("TITLEBOX_PAGE22").innerHTML = TITLEBOX_PAGE22; |
|
|
//document.getElementById("IDC_STATIC_BYPASS_LOGIN").innerHTML = IDC_STATIC_BYPASS_LOGIN; |
|
|
|
|
|
document.getElementById("IDC_STATIC_NMS_THRES").innerHTML = IDC_STATIC_NMS_THRES; |
|
|
document.getElementById("IDC_STATIC_TRACKING_ID_DWELL").innerHTML = IDC_STATIC_TRACKING_ID_DWELL; |
|
|
|
|
|
document.getElementById("IDC_STATIC_ENABLE_CLOUD_NOTIFICATION").innerHTML = IDC_STATIC_ENABLE_CLOUD_NOTIFICATION; |
|
|
document.getElementById("IDC_STATIC_ENABLE_CLOUD_SNAP").innerHTML = IDC_STATIC_ENABLE_EMAIL_JPEG; |
|
|
document.getElementById("IDC_STATIC_ENABLE_PERSON_INDEPENDENT").innerHTML = IDC_STATIC_ENABLE_PERSON_INDEPENDENT; |
|
|
document.getElementById("IDC_STATIC_ENABLE_ONVIF_PROFILE_M").innerHTML = IDC_STATIC_ENABLE_ONVIF_PROFILE_M; |
|
|
document.getElementById("IDC_STATIC_ENABLE_CROP_MODE").innerHTML = IDC_STATIC_ENABLE_CROP_MODE; |
|
|
document.getElementById("IDC_STATIC_ENABLE_BOUNDING_BOX").innerHTML = IDC_STATIC_ENABLE_BOUNDING_BOX; |
|
|
document.getElementById("IDC_STATIC_ENABLE_DWELL_BOUNDING_BOX").innerHTML = IDC_STATIC_ENABLE_DWELL_BOUNDING_BOX; |
|
|
document.getElementById("IDC_STATIC_CLOUD_ACCOUNT").innerHTML = IDC_STATIC_CLOUD_ACCOUNT; |
|
|
document.getElementById("IDC_STATIC_CLOUD_PASSWORD").innerHTML = IDC_STATIC_CLOUD_PASSWORD; |
|
|
document.getElementById("IDC_STATIC_CLOUD_NOTIFICATION_DWELL").innerHTML = IDC_STATIC_CLOUD_NOTIFICATION_DWELL; |
|
|
document.getElementById("IDC_STATIC_CLOUD_STATUE").innerHTML = IDC_STATIC_CLOUD_STATUE; |
|
|
document.getElementById("IDC_STATIC_CLOUD_V2_STATUE").innerHTML = IDC_STATIC_CLOUD_STATUE; |
|
|
document.getElementById("IDC_STATIC_CLOUD_RECORD_V2_STATUE").innerHTML = IDC_STATIC_CLOUD_STATUE; |
|
|
document.getElementById("IDC_STATIC_EVENT_CLOUD").innerHTML = IDC_STATIC_EVENT_CLOUD; |
|
|
|
|
|
document.getElementById("IDC_STATIC_ENABLE_CLOUD_V2").innerHTML = IDC_STATIC_ENABLE_CLOUD_V2; |
|
|
document.getElementById("IDC_STATIC_CLOUD_V2_NOTIFICATION_DWELL").innerHTML = IDC_STATIC_CLOUD_V2_NOTIFICATION_DWELL; |
|
|
document.getElementById("IDC_STATIC_CLOUD_V2_CONTENT").innerHTML = IDC_STATIC_CLOUD_V2_CONTENT; |
|
|
document.getElementById("IDC_STATIC_ENABLE_CLOUD_RECORD_V2").innerHTML = IDC_STATIC_ENABLE_CLOUD_RECORD_V2; |
|
|
document.getElementById("IDC_STATIC_CLOUD_RECORD_V2_NOTIFICATION_DWELL").innerHTML = IDC_STATIC_CLOUD_RECORD_V2_NOTIFICATION_DWELL; |
|
|
document.getElementById("IDC_STATIC_CLOUD_RECORD_V2_CONTENT").innerHTML = IDC_STATIC_CLOUD_RECORD_V2_CONTENT; |
|
|
|
|
|
document.getElementById("IDC_STATIC_FORCE_I_TO_ONE").innerHTML = IDC_STATIC_FORCE_I_TO_ONE; |
|
|
document.getElementById("IDC_STATIC_FORCE_O_TO_ZERO").innerHTML = IDC_STATIC_FORCE_O_TO_ZERO; |
|
|
document.getElementById("IDC_STATIC_ENABLE_AI_MIRROR").innerHTML = IDC_STATIC_ENABLE_AI_MIRROR; |
|
|
document.getElementById("IDC_STATIC_ADVANCED").innerHTML = IDC_STATIC_ADVANCED; |
|
|
document.getElementById("IDC_STATIC_ENABLE_POST_ONLY_IF_BOTH_DETECTED").innerHTML = IDC_STATIC_ENABLE_POST_ONLY_IF_BOTH_DETECTED; |
|
|
document.getElementById("IDC_STATIC_ENABLE_ONLY_ONCE_TO_POST").innerHTML = IDC_STATIC_ENABLE_ONLY_ONCE_TO_POST; |
|
|
//document.getElementById("IDC_STATIC_ENABLE_OBJ_ONCE_TO_POST").innerHTML = IDC_STATIC_ENABLE_OBJ_ONCE_TO_POST; |
|
|
document.getElementById("IDC_STATIC_ENABLE_LOCATION_ONCE_TO_POST").innerHTML = IDC_STATIC_ENABLE_LOCATION_ONCE_TO_POST; |
|
|
document.getElementById("IDC_STATIC_ENABLE_LOW_CPU_USAGE").innerHTML = IDC_STATIC_ENABLE_LOW_CPU_USAGE; |
|
|
//document.getElementById("IDC_STATIC_ENABLE_NVR_ONCE_TO_GETALARMMOTION").innerHTML = IDC_STATIC_ENABLE_NVR_ONCE_TO_GETALARMMOTION; |
|
|
//document.getElementById("IDC_STATIC_ENABLE_8592_ONCE_TO_GETALARMMOTION").innerHTML = IDC_STATIC_ENABLE_8592_ONCE_TO_GETALARMMOTION; |
|
|
document.getElementById("IDC_STATIC_ENABLE_GETALARMMOTION_SNAP").innerHTML = IDC_STATIC_ENABLE_GETALARMMOTION_SNAP; |
|
|
document.getElementById("IDC_STATIC_DISPLAY_OSD").innerHTML = IDC_STATIC_DISPLAY_OSD; |
|
|
document.getElementById("IDC_STATIC_GETNETWORK_BUFFER_ID").innerHTML = IDC_STATIC_GETNETWORK_BUFFER_ID; |
|
|
document.getElementById("IDC_STATIC_GETIMAGE_ENCODER_ID").innerHTML = IDC_STATIC_GETIMAGE_ENCODER_ID; |
|
|
document.getElementById("IDC_STATIC_GETIMAGE_ENCODER_ID_HD").innerHTML = IDC_STATIC_GETIMAGE_ENCODER_ID_HD; |
|
|
document.getElementById("IDC_STATIC_OSD_ENCODER_ID").innerHTML = IDC_STATIC_OSD_ENCODER_ID; |
|
|
//document.getElementById("IDC_STATIC_OSD_FONT_SIZE").innerHTML = IDC_STATIC_OSD_FONT_SIZE; |
|
|
//document.getElementById("IDC_STATIC_OSD_OUTLINE_LILIN").innerHTML = IDC_STATIC_OSD_OUTLINE_LILIN; |
|
|
document.getElementById("IDC_STATIC_ENABLE_OSD_BOTTOM").innerHTML = IDC_STATIC_ENABLE_OSD_BOTTOM; |
|
|
document.getElementById("IDC_STATIC_OSD_BOTTOM_BG_TRAN").innerHTML = IDC_STATIC_OSD_BOTTOM_BG_TRAN; |
|
|
document.getElementById("IDC_STATIC_OSD_BOTTOM_CONTENT").innerHTML = IDC_STATIC_OSD_BOTTOM_CONTENT; |
|
|
document.getElementById("IDC_STATIC_SENSORS_TYPE").innerHTML = IDC_STATIC_SENSORS_TYPE; |
|
|
document.getElementById("IDC_STATIC_SUPPORT_DASH").innerHTML = IDC_STATIC_SUPPORT_DASH; |
|
|
document.getElementById("IDC_STATIC_SUPPORT_SPECIAL").innerHTML = IDC_STATIC_SUPPORT_SPECIAL; |
|
|
|
|
|
document.getElementById("IDC_STATIC_ENABLE_SYNC_EXT_LPR_DB").innerHTML = IDC_STATIC_ENABLE_SYNC_EXT_LPR_DB; |
|
|
document.getElementById("IDC_STATIC_EXT_LPR_DB_IP").innerHTML = IDC_STATIC_EXT_LPR_DB_IP; |
|
|
document.getElementById("IDC_STATIC_EXT_LPR_DB_PORT").innerHTML = IDC_STATIC_EXT_LPR_DB_PORT; |
|
|
document.getElementById("IDC_STATIC_EXT_LPR_DB_USERNAME").innerHTML = IDC_STATIC_EXT_LPR_DB_USERNAME; |
|
|
document.getElementById("IDC_STATIC_EXT_LPR_DB_PASSWORD").innerHTML = IDC_STATIC_EXT_LPR_DB_PASSWORD; |
|
|
|
|
|
document.getElementById("IDC_STATIC_SMTP_SERVICE").innerHTML = IDC_STATIC_SMTP_SERVICE; |
|
|
document.getElementById("IDC_STATIC_E_MAIL_RECEIVER_SETTING").innerHTML = IDC_STATIC_E_MAIL_RECEIVER_SETTING; |
|
|
document.getElementById("IDC_STATIC_E_MAIL_ADDRESS_1").innerHTML = IDC_STATIC_E_MAIL_ADDRESS_1; |
|
|
document.getElementById("IDC_STATIC_E_MAIL_ADDRESS_2").innerHTML = IDC_STATIC_E_MAIL_ADDRESS_2; |
|
|
document.getElementById("IDC_STATIC_E_MAIL_ADDRESS_3").innerHTML = IDC_STATIC_E_MAIL_ADDRESS_3; |
|
|
document.getElementById("IDC_STATIC_E_MAIL_ADDRESS_4").innerHTML = IDC_STATIC_E_MAIL_ADDRESS_4; |
|
|
document.getElementById("IDC_STATIC_E_MAIL_ADDRESS_5").innerHTML = IDC_STATIC_E_MAIL_ADDRESS_5; |
|
|
document.getElementById("IDC_STATIC_E_MAIL_SENDER_SETTING").innerHTML = IDC_STATIC_E_MAIL_SENDER_SETTING; |
|
|
document.getElementById("IDC_STATIC_E_MAIL_ADDRESS").innerHTML = IDC_STATIC_E_MAIL_ADDRESS; |
|
|
document.getElementById("IDC_STATIC_SMTP_SERVER").innerHTML = IDC_STATIC_SMTP_SERVER; |
|
|
document.getElementById("IDC_STATIC_SMTP_AUTHENTICATION").innerHTML = IDC_STATIC_SMTP_AUTHENTICATION; |
|
|
document.getElementById("IDC_STATIC_SMTP_PORT").innerHTML = IDC_STATIC_SMTP_PORT; |
|
|
document.getElementById("IDC_STATIC_AUTHENTICATION").innerHTML = IDC_STATIC_AUTHENTICATION; |
|
|
document.getElementById("IDC_STATIC_AUTH_ACCOUNT").innerHTML = IDC_STATIC_AUTH_ACCOUNT; |
|
|
document.getElementById("IDC_STATIC_AUTH_PASSWORD").innerHTML = IDC_STATIC_AUTH_PASSWORD; |
|
|
|
|
|
document.getElementById("IDC_STATIC_COUNTER_NAME").innerHTML = IDC_STATIC_COUNTER_NAME2; |
|
|
document.getElementById("IDC_STATIC_ENABLE").innerHTML = IDC_STATIC_ENABLE; |
|
|
|
|
|
document.getElementById("IDC_STATIC_REPORT").innerHTML = IDC_STATIC_REPORT; |
|
|
document.getElementById("IDC_STATIC_MAX_VALUE").innerHTML = IDC_STATIC_MAX_VALUE; |
|
|
document.getElementById("IDC_STATIC_COUNTER_MODE").innerHTML = IDC_STATIC_COUNTER_MODE; |
|
|
document.getElementById("IDC_STATIC_INITIAL_ICON").innerHTML = IDC_STATIC_INITIAL_ICON; |
|
|
//document.getElementById("IDC_STATIC_OUTPUT_ICON").innerHTML = IDC_STATIC_OUTPUT_ICON; |
|
|
document.getElementById("IDC_STATIC_DETECTION_OUTPUT").innerHTML = IDC_STATIC_DETECTION_OUTPUT; |
|
|
document.getElementById("IDC_STATIC_COUNTER_A").innerHTML = IDC_STATIC_COUNTER_A; |
|
|
document.getElementById("IDC_STATIC_COUNTER_A_NAME").innerHTML = IDC_STATIC_COUNTER_A_NAME; |
|
|
document.getElementById("IDC_STATIC_COUNTER_B").innerHTML = IDC_STATIC_COUNTER_B; |
|
|
document.getElementById("IDC_STATIC_COUNTER_B_NAME").innerHTML = IDC_STATIC_COUNTER_B_NAME; |
|
|
document.getElementById("IDC_STATIC_COUNTER_C_NAME").innerHTML = IDC_STATIC_COUNTER_C_NAME; |
|
|
document.getElementById("IDC_STATIC_ENABLE_COUNTER_SNAP").innerHTML = IDC_STATIC_ENABLE_COUNTER_SNAP; |
|
|
|
|
|
document.getElementById("IDC_STATIC_HEATMAP_MAX").innerHTML = IDC_STATIC_HEATMAP_MAX; |
|
|
document.getElementById("IDC_STATIC_ENABLE_HEATMAP").innerHTML = IDC_STATIC_ENABLE_HEATMAP; |
|
|
document.getElementById("IDC_STATIC_HEATMAP_FREQUENCY").innerHTML = IDC_STATIC_HEATMAP_FREQUENCY; |
|
|
|
|
|
document.getElementById("IDC_STATIC_LPR_TITLE").innerHTML = IDC_STATIC_LPR_TITLE; |
|
|
|
|
|
document.getElementById("IDC_STATIC_SYNC_USER_DATA").innerHTML = IDC_STATIC_SYNC_USER_DATA; |
|
|
|
|
|
document.getElementById("IDC_STATIC_JPEG_FILE_NAME_FORMAT").innerHTML = IDC_STATIC_JPEG_FILE_NAME_FORMAT; |
|
|
document.getElementById("file_name_fixed").innerHTML = file_name_fixed; |
|
|
document.getElementById("file_name_date").innerHTML = file_name_date; |
|
|
document.getElementById("JPEG_FILE_NAME").innerHTML = JPEG_FILE_NAME; |
|
|
|
|
|
document.getElementById("IDC_STATIC_ENABLE_SYSTEM_LOGS").innerHTML = IDC_STATIC_ENABLE_SYSTEM_LOGS; |
|
|
document.getElementById("IDC_STATIC_ENABLE_PYTHON").innerHTML = IDC_STATIC_ENABLE_PYTHON; |
|
|
document.getElementById("IDC_STATIC_ENABLE_PYTHON_FILE").innerHTML = IDC_STATIC_ENABLE_PYTHON_FILE; |
|
|
|
|
|
document.getElementById("IDC_STATIC_RED_LIGHT_ZONE").innerHTML = IDC_STATIC_RED_LIGHT_ZONE; |
|
|
document.getElementById("IDC_STATIC_NO_GIVE_WAY_TOPIC").innerHTML = IDC_STATIC_NO_GIVE_WAY_TOPIC; |
|
|
document.getElementById("IDC_STATIC_NO_GIVE_WAY_ZONE_TO_PROTECT").innerHTML = IDC_STATIC_NO_GIVE_WAY_ZONE_TO_PROTECT + " A #"; |
|
|
document.getElementById("IDC_STATIC_NO_GIVE_WAY_ZONE_TO_KEEP_AWAY").innerHTML = IDC_STATIC_NO_GIVE_WAY_ZONE_TO_KEEP_AWAY + " A #"; |
|
|
document.getElementById("IDC_STATIC_NO_GIVE_WAY_ZONE_TO_PROTECT_2").innerHTML = IDC_STATIC_NO_GIVE_WAY_ZONE_TO_PROTECT + " B #"; |
|
|
document.getElementById("IDC_STATIC_NO_GIVE_WAY_ZONE_TO_KEEP_AWAY_2").innerHTML = IDC_STATIC_NO_GIVE_WAY_ZONE_TO_KEEP_AWAY + " B #"; |
|
|
|
|
|
document.getElementById("IDC_STATIC_COUNTER_NOTICE").innerHTML = MESSAGE98; |
|
|
document.getElementById("IDC_STATIC_ENABLE_PLATE_ANGLE_CORRECTION").innerHTML = IDC_STATIC_ENABLE_PLATE_ANGLE_CORRECTION; |
|
|
|
|
|
|
|
|
|
|
|
//document.getElementById("IDC_STATIC_CAMERA_IMAGE_ROTATION").innerHTML = IDC_STATIC_CAMERA_IMAGE_ROTATION; |
|
|
$('#button_sync_user_data').val(IDC_STATIC_SYNC); |
|
|
$('#button_sync_service').val(IDC_STATIC_SYNC); |
|
|
$('#button_run_osd_server').val(IDC_STATIC_RUN_OSD_SERVER); |
|
|
//$('#button_sync_image_rotation').val(IDC_STATIC_SYNC); |
|
|
|
|
|
$('#button_user').val(IDC_BTN_TAB_TESTING); |
|
|
$('#button_cloud_v2_verify').val(IDC_BTN_TAB_TESTING); |
|
|
$('#button_cloud_record_v2_verify').val(IDC_BTN_TAB_TESTING); |
|
|
|
|
|
$('#show_cool_counter').val(IDC_STATIC_COUNTER_NAME); |
|
|
$('#show_heatmap').val(IDC_STATIC_HEATMAP); |
|
|
|
|
|
|
|
|
|
|
|
var message_HD_encoder = MESSAGE91; |
|
|
var message_counter_to_enable = MESSAGE93; |
|
|
var message_heatmap_to_enable = MESSAGE94; |
|
|
|
|
|
var text_counter_mode_0 = IDC_STATIC_SELECT_COUNTER_MODE_0; |
|
|
var text_counter_mode_1 = IDC_STATIC_SELECT_COUNTER_MODE_1; |
|
|
|
|
|
var current_select_report = "0"; |
|
|
|
|
|
if (localStorage.getItem('current_select_report') != null) { |
|
|
$('#select_report').val(localStorage.getItem('current_select_report')); |
|
|
current_select_report = $('#select_report').val(); |
|
|
} |
|
|
else { |
|
|
localStorage.setItem('current_select_report', current_select_report); |
|
|
} |
|
|
|
|
|
document.getElementById("IDC_STATIC_ENABLE_FTP").innerHTML = IDC_STATIC_ENABLE_FTP; |
|
|
document.getElementById("IDC_STATIC_FTP_URL").innerHTML = IDC_STATIC_FTP_URL; |
|
|
document.getElementById("IDC_STATIC_FTP_PORT").innerHTML = IDC_STATIC_FTP_PORT; |
|
|
document.getElementById("IDC_STATIC_FTP_USERNAME").innerHTML = IDC_STATIC_FTP_USERNAME; |
|
|
document.getElementById("IDC_STATIC_FTP_PASSWORD").innerHTML = IDC_STATIC_FTP_PASSWORD; |
|
|
document.getElementById("IDC_STATIC_FTP_REMOTE_DIRECTORY").innerHTML = IDC_STATIC_FTP_REMOTE_DIRECTORY; |
|
|
|
|
|
document.getElementById("IDC_STATIC_ENABLE_EMAIL_JPEG").innerHTML = IDC_STATIC_ENABLE_EMAIL_JPEG; |
|
|
document.getElementById("IDC_STATIC_EMAIL_RESET_TIME_INTERVAL").innerHTML = IDC_STATIC_EMAIL_RESET_TIME_INTERVAL; |
|
|
document.getElementById("IDC_STATIC_SEND_COUNTER_AT_SPECIFIC_HOUR").innerHTML = IDC_STATIC_SEND_COUNTER_AT_SPECIFIC_HOUR; |
|
|
document.getElementById("IDC_STATIC_ENABLE_EMAIL_NOTIFICATION").innerHTML = IDC_STATIC_ENABLE_EMAIL_NOTIFICATION; |
|
|
|
|
|
document.getElementById("IDC_STATIC_E_MAIL_CONTENT").innerHTML = IDC_STATIC_E_MAIL_CONTENT; |
|
|
|
|
|
document.getElementById("IDC_STATIC_SAME_PLATE_DETECT_ONCE").innerHTML = IDC_STATIC_SAME_PLATE_DETECT_ONCE; |
|
|
document.getElementById("IDC_STATIC_NUM_OF_SAME_PLATE_DETECTION").innerHTML = IDC_STATIC_NUM_OF_SAME_PLATE_DETECTION; |
|
|
document.getElementById("IDC_STATIC_SAME_PLATE_DETECTION_DWELL").innerHTML = IDC_STATIC_SAME_PLATE_DETECTION_DWELL; |
|
|
|
|
|
document.getElementById("IDC_STATIC_ENCODER_NOTICE").innerHTML = IDC_STATIC_ENCODER_NOTICE; |
|
|
document.getElementById("IDC_STATIC_ENCODER_NOTICE2").innerHTML = IDC_STATIC_ENCODER_NOTICE2; |
|
|
|
|
|
document.getElementById("IDC_STATIC_JPEG_NOTICE").innerHTML = MESSAGE76; |
|
|
document.getElementById("IDC_STATIC_JPEG_NOTICE2").innerHTML = MESSAGE88; |
|
|
|
|
|
document.getElementById("IDC_STATIC_OSD_NOTICE").innerHTML = MESSAGE89; |
|
|
document.getElementById("IDC_STATIC_OSD_NOTICE2").innerHTML = MESSAGE96; |
|
|
document.getElementById("IDC_STATIC_OSD_NOTICE3").innerHTML = MESSAGE97; |
|
|
//document.getElementById("IDC_STATIC_NOTE_1").innerHTML = IDC_STATIC_NOTE; |
|
|
//document.getElementById("IDC_STATIC_NOTE_2").innerHTML = IDC_STATIC_NOTE; |
|
|
|
|
|
|
|
|
document.getElementById("NOTICE_EMAIL").innerHTML = MESSAGE78; |
|
|
document.getElementById("NOTICE_EMAIL2").innerHTML = MESSAGE79; |
|
|
//document.getElementById("NOTICE_CLOUD").innerHTML = MESSAGE95; |
|
|
document.getElementById("NOTICE_CLOUD2").innerHTML = MESSAGE101; |
|
|
document.getElementById("NOTICE_CLOUD3").innerHTML = MESSAGE102; |
|
|
|
|
|
document.getElementsByName('sensors_type')[0].options[0].innerHTML = IDC_STATIC_SENSORS_TYPE_H; |
|
|
document.getElementsByName('sensors_type')[0].options[1].innerHTML = IDC_STATIC_SENSORS_TYPE_L; |
|
|
|
|
|
document.getElementsByName('select_report')[0].options[0].innerHTML = IDC_STATIC_REPORT + " #1"; |
|
|
document.getElementsByName('select_report')[0].options[1].innerHTML = IDC_STATIC_REPORT + " #2"; |
|
|
document.getElementsByName('select_report')[0].options[2].innerHTML = IDC_STATIC_REPORT + " #3"; |
|
|
document.getElementsByName('select_report')[0].options[3].innerHTML = IDC_STATIC_REPORT + " #4"; |
|
|
|
|
|
|
|
|
$('#SETTING_PORT').val(GetUrlPort()); |
|
|
var message_alert = IDC_STATIC_TEXT_CHANGE_PORT; |
|
|
//var message_alert2 = MESSAGE76; |
|
|
var MAX_DETECTION_ZONE = 8; |
|
|
var count_zone = 0; |
|
|
var message_alert_fail = IDC_STATIC_TEXT_CHANGE_PORT_FAIL; |
|
|
var enable_cloud = "No"; |
|
|
var enable_color_detection = "Yes"; |
|
|
var osd_bottom_content = ""; |
|
|
|
|
|
var force_i_to_one = "Yes"; |
|
|
var force_o_to_zero = "Yes"; |
|
|
var enable_plate_angle_correction = "No"; |
|
|
var enable_ai_mirror = "No"; |
|
|
var ai_mirror_feature = "0"; |
|
|
var enable_post_only_if_both_detected = "No"; |
|
|
var enable_getalarmmotion_snap = "No"; |
|
|
var enable_display_OSD = "No"; |
|
|
var getnetwork_buffer_id = "1"; |
|
|
var getimage_encoder_id = "4"; |
|
|
var getimage_encoder_id_HD = "2"; |
|
|
var osd_encoder_id = "2"; |
|
|
//var osd_font_size = "26"; |
|
|
//var osd_outline_lilin = "4"; |
|
|
var enable_osd_bottom = "Yes"; |
|
|
var osd_bottom_bg_tran = "255"; |
|
|
|
|
|
var sensors_type = "0"; |
|
|
var support_dash = "No"; |
|
|
var enable_special_char = "No"; |
|
|
var enable_sync_external_lpr_db = "No"; |
|
|
var external_lpr_db_IP = "localhost"; |
|
|
var external_lpr_db_port = "80"; |
|
|
var external_lpr_db_username = "admin"; |
|
|
var external_lpr_db_password = "pass"; |
|
|
var enable_email_notification = "No"; |
|
|
var enable_system_logs = "No"; |
|
|
var enable_python = "No"; |
|
|
var enable_python_file = "No python running"; // Ming 2024-09-27 |
|
|
var enable_email_jpeg = "Yes"; |
|
|
var email_content = ""; |
|
|
var email_reset_time_interval = ""; |
|
|
var send_counter_at_specific_hour = "NULL"; |
|
|
var auth_password = ""; |
|
|
|
|
|
var red_light_zone = ""; |
|
|
var no_give_way_zone_to_protect = ""; |
|
|
var no_give_way_zone_to_keep_away = ""; |
|
|
var no_give_way_zone_to_protect_2 = ""; |
|
|
var no_give_way_zone_to_keep_away_2 = ""; |
|
|
|
|
|
var enable_ftp = "No"; |
|
|
var ftp_url = ""; |
|
|
var ftp_port = "21"; |
|
|
var ftp_username = ""; |
|
|
var ftp_password = ""; |
|
|
var ftp_remote_directory = ""; |
|
|
var ftp_jpeg_file_name = "snap"; |
|
|
var ftp_file_format_name = "fixed"; |
|
|
|
|
|
var nms_thres = "10"; |
|
|
var tracking_id_dwell = "5"; |
|
|
var dwell_to_the_same_location = "5"; |
|
|
|
|
|
var enable_cloud_notification = "No"; |
|
|
var enable_cloud_snap = "Yes"; |
|
|
var enable_person_independent = "No"; |
|
|
var enable_onvif_profile_m = "No"; |
|
|
var enable_crop_mode = "Yes"; |
|
|
var enable_bounding_box = "Yes"; |
|
|
var enable_dwell_bounding_box = "No"; |
|
|
var user_account = "myaccount@mail.com"; |
|
|
var user_password = "mypass"; |
|
|
var notification_dwell = "60"; |
|
|
var cloud_statue = ""; |
|
|
var language = "en_gb"; |
|
|
var select_number_of_same_plate_detection = "4"; |
|
|
var select_same_plate_detection_dwell = "3"; |
|
|
|
|
|
var enable_cloud_v2 = "No"; |
|
|
var cloud_v2_notification_dwell = "60"; |
|
|
var cloud_v2_content = ""; |
|
|
var enable_cloud_record_v2 = "No"; |
|
|
var cloud_record_v2_notification_dwell = "60"; |
|
|
var cloud_record_v2_content = ""; |
|
|
|
|
|
var enable_PTZ = ""; |
|
|
|
|
|
var enable_only_once_to_post = "Yes"; |
|
|
var enable_obj_once_to_post = "Yes"; |
|
|
var enable_location_once_to_post = "Yes"; |
|
|
var enable_nvr_once_to_getalarmmotion = "Yes"; |
|
|
var enable_8592_once_to_getalarmmotion = "Yes"; |
|
|
|
|
|
var enable_low_cpu_usage = "No"; |
|
|
|
|
|
var check_if_existing_email_password = 1; |
|
|
var MAX_SIZE_REPORT_COUNTERS = 4; |
|
|
var MAX_SIZE_COUNTERS = 8; |
|
|
|
|
|
var enable_report = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
var initial_icon = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
var counter_mode = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
var detection_output = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
var output_icon = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
var report_max_value = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
|
|
|
var counter_a = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
var counter_a_name = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
//var counter_a_zone = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
var counter_b = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
var counter_b_name = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
var counter_c_name = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
//var counter_b_zone = new Array(MAX_SIZE_REPORT_COUNTERS); |
|
|
|
|
|
var heatmap_max = "100"; |
|
|
var enable_heatmap = "No"; |
|
|
var heatmap_frequency = "5"; |
|
|
var lpr_title = "My Car Park"; |
|
|
var enable_counter_snap = "No"; |
|
|
|
|
|
{ |
|
|
for (var i = 0; i < MAX_SIZE_REPORT_COUNTERS; i++) { |
|
|
enable_report[i] = "No"; |
|
|
initial_icon[i] = "NULL"; |
|
|
counter_mode[i] = "0"; |
|
|
detection_output[i] = "No entry for cars"; |
|
|
output_icon[i] = "NULL"; |
|
|
report_max_value[i] = "100"; |
|
|
|
|
|
counter_a[i] = "Counter01"; |
|
|
counter_a_name[i] = "Name"; |
|
|
//counter_a_zone[i] = "1"; |
|
|
counter_b[i] = ""; |
|
|
counter_b_name[i] = ""; |
|
|
counter_c_name[i] = ""; |
|
|
//counter_b_zone[i] = "0"; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
setInputFilter(document.getElementById("SETTING_PORT"), function (value) { |
|
|
return /^\d*$/.test(value) && (value == "" || (value[0] != '0' && parseInt(value) > 0 && parseInt(value) <= 65535) || value == "0"); |
|
|
}); |
|
|
|
|
|
setInputFilter(document.getElementById("ftp_port"), function (value) { |
|
|
return /^\d*$/.test(value) && (value == "" || (value[0] != '0' && parseInt(value) > 0 && parseInt(value) <= 65535) || value == "0"); |
|
|
}); |
|
|
|
|
|
setInputFilter(document.getElementById("report_max_value"), function (value) { |
|
|
return /^\d*$/.test(value) && (value == "" || (value[0] != '0' && parseInt(value) > 0 && parseInt(value) < 2147483647) || value == "0"); |
|
|
}); |
|
|
|
|
|
setInputFilter(document.getElementById("heatmap_max"), function (value) { |
|
|
return /^\d*$/.test(value) && (value == "" || (value[0] != '0' && parseInt(value) > 0 && parseInt(value) < 2147483647) || value == "0"); |
|
|
}); |
|
|
|
|
|
|
|
|
//func_getloading(); |
|
|
$("#ID_DEFAULT").val(IDC_STATIC_DEFAULT_BUTTON); |
|
|
$('#select_number_of_same_plate_detection').val(select_number_of_same_plate_detection); |
|
|
$('#select_same_plate_detection_dwell').val(select_same_plate_detection_dwell); |
|
|
|
|
|
$("#dwell_to_the_same_location").slider({ |
|
|
//width: 300, |
|
|
//height: 300, |
|
|
//value: 150, |
|
|
mode: 'h',//v,h |
|
|
showTip: true, |
|
|
//将最大最小值对调 |
|
|
// reversed:true, |
|
|
// disabled:true, |
|
|
min: 3, |
|
|
max: 20, |
|
|
step: 1, |
|
|
//提示格式函数 |
|
|
tipFormatter: function (value) { |
|
|
// return '['+value+']'; |
|
|
return value; |
|
|
}, |
|
|
onChange: function (newValue, oldValue) { |
|
|
// alert(newValue+" | "+oldValue); |
|
|
}, |
|
|
onSlideStart: function (value) { |
|
|
// alert(value); |
|
|
}, |
|
|
onSlideEnd: function (value) { |
|
|
// alert(value); |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
$("#tracking_id_dwell").slider({ |
|
|
//width: 300, |
|
|
//height: 300, |
|
|
//value: 150, |
|
|
mode: 'h',//v,h |
|
|
showTip: true, |
|
|
//将最大最小值对调 |
|
|
// reversed:true, |
|
|
// disabled:true, |
|
|
min: 1, |
|
|
max: 60, |
|
|
step:1, |
|
|
//提示格式函数 |
|
|
tipFormatter: function (value) { |
|
|
// return '['+value+']'; |
|
|
return value; |
|
|
}, |
|
|
onChange: function (newValue, oldValue) { |
|
|
// alert(newValue+" | "+oldValue); |
|
|
}, |
|
|
onSlideStart: function (value) { |
|
|
// alert(value); |
|
|
}, |
|
|
onSlideEnd: function (value) { |
|
|
// alert(value); |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
$("#nms_thres").slider({ |
|
|
//width: 300, |
|
|
//height: 300, |
|
|
//value: 150, |
|
|
mode: 'h',//v,h |
|
|
showTip: true, |
|
|
//将最大最小值对调 |
|
|
// reversed:true, |
|
|
// disabled:true, |
|
|
min: 1, |
|
|
max: 100, |
|
|
// step:2.5, |
|
|
//提示格式函数 |
|
|
tipFormatter: function (value) { |
|
|
// return '['+value+']'; |
|
|
return value; |
|
|
}, |
|
|
onChange: function (newValue, oldValue) { |
|
|
// alert(newValue+" | "+oldValue); |
|
|
}, |
|
|
onSlideStart: function (value) { |
|
|
// alert(value); |
|
|
}, |
|
|
onSlideEnd: function (value) { |
|
|
// alert(value); |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
$("#notification_dwell").slider({ |
|
|
//width: 300, |
|
|
//height: 300, |
|
|
//value: 150, |
|
|
mode: 'h',//v,h |
|
|
showTip: true, |
|
|
//将最大最小值对调 |
|
|
// reversed:true, |
|
|
// disabled:true, |
|
|
min: 60, |
|
|
max: 300, |
|
|
// step:2.5, |
|
|
//提示格式函数 |
|
|
tipFormatter: function (value) { |
|
|
// return '['+value+']'; |
|
|
return value; |
|
|
}, |
|
|
onChange: function (newValue, oldValue) { |
|
|
// alert(newValue+" | "+oldValue); |
|
|
}, |
|
|
onSlideStart: function (value) { |
|
|
// alert(value); |
|
|
}, |
|
|
onSlideEnd: function (value) { |
|
|
// alert(value); |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
$("#cloud_v2_notification_dwell").slider({ |
|
|
//width: 300, |
|
|
//height: 300, |
|
|
//value: 150, |
|
|
mode: 'h',//v,h |
|
|
showTip: true, |
|
|
//将最大最小值对调 |
|
|
// reversed:true, |
|
|
// disabled:true, |
|
|
min: 60, |
|
|
max: 300, |
|
|
// step:2.5, |
|
|
//提示格式函数 |
|
|
tipFormatter: function (value) { |
|
|
// return '['+value+']'; |
|
|
return value; |
|
|
}, |
|
|
onChange: function (newValue, oldValue) { |
|
|
// alert(newValue+" | "+oldValue); |
|
|
}, |
|
|
onSlideStart: function (value) { |
|
|
// alert(value); |
|
|
}, |
|
|
onSlideEnd: function (value) { |
|
|
// alert(value); |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
$("#cloud_record_v2_notification_dwell").slider({ |
|
|
//width: 300, |
|
|
//height: 300, |
|
|
//value: 150, |
|
|
mode: 'h',//v,h |
|
|
showTip: true, |
|
|
//将最大最小值对调 |
|
|
// reversed:true, |
|
|
// disabled:true, |
|
|
min: 60, |
|
|
max: 300, |
|
|
// step:2.5, |
|
|
//提示格式函数 |
|
|
tipFormatter: function (value) { |
|
|
// return '['+value+']'; |
|
|
return value; |
|
|
}, |
|
|
onChange: function (newValue, oldValue) { |
|
|
// alert(newValue+" | "+oldValue); |
|
|
}, |
|
|
onSlideStart: function (value) { |
|
|
// alert(value); |
|
|
}, |
|
|
onSlideEnd: function (value) { |
|
|
// alert(value); |
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
$("#osd_bottom_bg_tran").slider({ |
|
|
//width: 300, |
|
|
//height: 300, |
|
|
//value: 150, |
|
|
mode: 'h',//v,h |
|
|
showTip: true, |
|
|
//将最大最小值对调 |
|
|
// reversed:true, |
|
|
// disabled:true, |
|
|
min: 0, |
|
|
max: 255, |
|
|
// step:2.5, |
|
|
//提示格式函数 |
|
|
tipFormatter: function (value) { |
|
|
// return '['+value+']'; |
|
|
return value; |
|
|
}, |
|
|
onChange: function (newValue, oldValue) { |
|
|
// alert(newValue+" | "+oldValue); |
|
|
}, |
|
|
onSlideStart: function (value) { |
|
|
// alert(value); |
|
|
}, |
|
|
onSlideEnd: function (value) { |
|
|
// alert(value); |
|
|
} |
|
|
}); |
|
|
|
|
|
func_get_icon_select(); |
|
|
func_get_service_data(); |
|
|
func_getEmailsfile(); |
|
|
func_getEmailData(); |
|
|
func_getCloudStatue(); |
|
|
|
|
|
|
|
|
var check_finish_both = 0; |
|
|
func_getEnablePTZ(); |
|
|
func_getEventsData(); |
|
|
func_getCloudData(); |
|
|
|
|
|
function func_show_heatmap() { |
|
|
if (getimage_encoder_id_HD != "0" && enable_heatmap == "Yes") { |
|
|
window.open('heatmap.html', '_blank', 'resizable=yes,top=' + window.screenTop + ',left=' + window.screenLeft + ',width=' + window.outerWidth + ',height=' + window.outerHeight); |
|
|
} |
|
|
else if (enable_heatmap != "Yes") { |
|
|
alert(message_heatmap_to_enable); |
|
|
} |
|
|
else { |
|
|
alert(message_HD_encoder); |
|
|
} |
|
|
} |
|
|
|
|
|
function func_show_counter() { |
|
|
|
|
|
var temp_enable_report = "No"; |
|
|
for (var i = 0; i < MAX_SIZE_REPORT_COUNTERS; i++) { |
|
|
if (enable_report[i] == "Yes") { |
|
|
temp_enable_report = "Yes"; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
if (temp_enable_report == "Yes") { |
|
|
window.open('cool_counter.html', '_blank', 'resizable=yes,top=' + window.screenTop + ',left=' + window.screenLeft + ',width=' + window.outerWidth + ',height=' + window.outerHeight); |
|
|
} |
|
|
else { |
|
|
alert(message_counter_to_enable); |
|
|
} |
|
|
} |
|
|
|
|
|
function func_show_lpr() { |
|
|
if (getimage_encoder_id_HD != "0") { |
|
|
window.open('lpr.html', '_blank', 'resizable=yes,top=' + window.screenTop + ',left=' + window.screenLeft + ',width=' + window.outerWidth + ',height=' + window.outerHeight); |
|
|
} |
|
|
else { |
|
|
alert(message_HD_encoder); |
|
|
} |
|
|
} |
|
|
|
|
|
function func_show_system_logs() { |
|
|
//if (enable_system_logs == "Yes") { |
|
|
window.open('logs.html', '_blank', 'resizable=yes,top=' + window.screenTop + ',left=' + window.screenLeft + ',width=' + window.outerWidth + ',height=' + window.outerHeight); |
|
|
//} |
|
|
//else { |
|
|
//alert("Please enable logs."); |
|
|
//} |
|
|
} |
|
|
|
|
|
function func_show_python() { |
|
|
if (enable_python == "Yes") { |
|
|
window.open('python.html', '_blank', 'resizable=yes,top=' + window.screenTop + ',left=' + window.screenLeft + ',width=' + window.outerWidth + ',height=' + window.outerHeight); |
|
|
} |
|
|
else { |
|
|
alert("Please enable python."); |
|
|
} |
|
|
} |
|
|
|
|
|
function change_report() { |
|
|
func_set_setting_data(); |
|
|
|
|
|
localStorage.setItem('current_select_report', $('#select_report').val()); |
|
|
current_select_report = $('#select_report').val(); |
|
|
|
|
|
func_showCloud(); |
|
|
} |
|
|
|
|
|
function loadScript(url, callback) { |
|
|
var script = document.createElement("Script"); |
|
|
script.type = "text/javascript"; |
|
|
|
|
|
//IE 验证脚本是否下载完成 |
|
|
if (script.readyState) { |
|
|
script.onreadystatechange = function () { |
|
|
//readyState属性有5种取值 |
|
|
//uninitialized:初始状态 |
|
|
//loading:开始下载 |
|
|
//interactive:数据完成下载但尚不可用 |
|
|
//complete:数据已经准备就绪 |
|
|
//实际使用时,readyState的值并不像我们预想的那样有规律,实践发现使用readyState |
|
|
//最靠谱的方式是同时检查以下2个状态,只要其中1个触发,就认为脚本下载完成。 |
|
|
if (script.readyState == "loaded" || script.readyState == "complete") { |
|
|
//移除事件处理器,确保事件不会处理2次 |
|
|
script.onreadystatechange = null; |
|
|
callback(); |
|
|
} |
|
|
}; |
|
|
} |
|
|
|
|
|
//其他浏览器 |
|
|
else { |
|
|
script.onload = function () { |
|
|
callback(); |
|
|
}; |
|
|
} |
|
|
|
|
|
script.src = url; |
|
|
//把新建的<Script>添加到<head>里比添加到<body>里更保险。 |
|
|
document.getElementsByTagName("head")[0].appendChild(script); |
|
|
} |
|
|
|
|
|
//func_get_bypass_login_cookie(); |
|
|
//$(document).ready(function () { |
|
|
//setTimeout(updated_loading, 3000); |
|
|
//func_getloading(); |
|
|
//}); |
|
|
/* |
|
|
function updated_loading() { |
|
|
func_getloading(); |
|
|
//load完以後開始每達到幾秒就更新一次 |
|
|
setTimeout(updated_loading, 3000); |
|
|
}*/ |
|
|
|
|
|
function func_get_icon_select() { |
|
|
$('#select_initial_icon').empty(); |
|
|
//$('#select_output_icon').empty(); |
|
|
|
|
|
var data_icon = JSON.parse(ICON_REPORT).report[0]; |
|
|
|
|
|
var selectElement_initial = document.getElementById('select_initial_icon'); |
|
|
selectElement_initial.add(new Option("None", "NULL")); |
|
|
selectElement_initial.add(new Option("Car", data_icon.Car)); |
|
|
selectElement_initial.add(new Option("Human", data_icon.Human)); |
|
|
selectElement_initial.add(new Option("Motorbike", data_icon.Motorbike)); |
|
|
selectElement_initial.add(new Option("Truck", data_icon.Truck)); |
|
|
selectElement_initial.add(new Option("Mask", data_icon.Mask)); |
|
|
selectElement_initial.add(new Option("Dog", data_icon.Dog)); |
|
|
selectElement_initial.add(new Option("Face", data_icon.Face)); |
|
|
selectElement_initial.add(new Option("Helmet", data_icon.Helmet)); |
|
|
selectElement_initial.add(new Option("Vest", data_icon.Vest)); |
|
|
selectElement_initial.add(new Option("Boat", data_icon.Boat)); |
|
|
|
|
|
/* |
|
|
var selectElement_output = document.getElementById('select_output_icon'); |
|
|
selectElement_output.add(new Option("None", "NULL")); |
|
|
selectElement_output.add(new Option("Car in red", data_icon.Car_in_red)); |
|
|
selectElement_output.add(new Option("Human in red", data_icon.Human_in_red)); |
|
|
selectElement_output.add(new Option("Motorbike in red", data_icon.Motorbike_in_red)); |
|
|
selectElement_output.add(new Option("Truck in red", data_icon.Truck_in_red)); |
|
|
selectElement_output.add(new Option("Mask in red", data_icon.Mask_in_red)); |
|
|
selectElement_output.add(new Option("Dog in red", data_icon.Dog_in_red)); |
|
|
selectElement_output.add(new Option("Face in red", data_icon.Face_in_red)); |
|
|
selectElement_output.add(new Option("Helmet in red", data_icon.Helmet_in_red)); |
|
|
selectElement_output.add(new Option("Vest in red", data_icon.Vest_in_red)); |
|
|
selectElement_output.add(new Option("Boat in red", data_icon.Boat_in_red)); |
|
|
*/ |
|
|
|
|
|
$('#select_counter_mode').empty(); |
|
|
|
|
|
var selectcounter_mode = document.getElementById('select_counter_mode'); |
|
|
selectcounter_mode.add(new Option(text_counter_mode_0, "0")); |
|
|
selectcounter_mode.add(new Option(text_counter_mode_1, "1")); |
|
|
} |
|
|
|
|
|
function func_set_lang_cookie() { |
|
|
var lang = document.getElementById('select_lang').value; |
|
|
cookie("LANG", lang, "9999/12/31 12:00:00"); |
|
|
language = lang; |
|
|
|
|
|
var json_data = '{'; |
|
|
json_data += '"system_setting": {'; |
|
|
json_data += '"language": "' + language + '"'; |
|
|
json_data += '}}'; |
|
|
func_setconfigfile(json_data); |
|
|
|
|
|
//parent.window.location.reload(); |
|
|
//var replaceUrl = 'http://' + window.location.hostname + ':' + myport + '/setup.htm'; |
|
|
//alert(replaceUrl); |
|
|
//parent.window.location.replace(replaceUrl); |
|
|
alert("Close or refresh the browser to change the language."); |
|
|
parent.open(parent.location, '_parent').close(); |
|
|
}; |
|
|
|
|
|
function func_change_language_to_select_lang() { |
|
|
if (select_lang != language) { |
|
|
language = select_lang; |
|
|
var json_data = '{'; |
|
|
json_data += '"system_setting": {'; |
|
|
json_data += '"language": "' + language + '"'; |
|
|
json_data += '}}'; |
|
|
func_setconfigfile(json_data); |
|
|
} |
|
|
} |
|
|
|
|
|
function func_set_bypass_login_cookie() { |
|
|
var enable_bypass_login; |
|
|
if ($('#enable_bypass_login').is(":checked")) { |
|
|
enable_bypass_login = "on"; |
|
|
} |
|
|
else { |
|
|
enable_bypass_login = "off"; |
|
|
} |
|
|
cookie("enable_bypass_login", enable_bypass_login, "9999/12/31 12:00:00"); |
|
|
func_set_bypass_login_togynet(); |
|
|
}; |
|
|
|
|
|
|
|
|
function func_get_bypass_login_cookie() { |
|
|
var list = ''; |
|
|
var cookies = cookie(); |
|
|
|
|
|
for (var v in cookies) { |
|
|
if (v === 'enable_bypass_login') |
|
|
list += cookies[v]; |
|
|
} |
|
|
if (list.length >= 1) { |
|
|
if (list === "on") { |
|
|
$("#enable_bypass_login").prop("checked", true); |
|
|
func_set_bypass_login_togynet(); |
|
|
} |
|
|
else { |
|
|
$("#enable_bypass_login").prop("checked", false); |
|
|
func_set_bypass_login_togynet(); |
|
|
} |
|
|
} |
|
|
else { |
|
|
cookie("enable_bypass_login", "on", "9999/12/31 12:00:00"); |
|
|
$("#enable_bypass_login").prop("checked", true); |
|
|
func_set_bypass_login_togynet(); |
|
|
} |
|
|
} |
|
|
|
|
|
function func_set_bypass_login_togynet() { |
|
|
if ($('#enable_bypass_login').is(":checked")) { |
|
|
$.ajax({ |
|
|
url: "/set_bypass_login_on", |
|
|
type: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
//var jsonbuf = JSON.parse(retdata); |
|
|
|
|
|
//console.info(retdata); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
else { |
|
|
$.ajax({ |
|
|
url: "/set_bypass_login_off", |
|
|
type: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
//var jsonbuf = JSON.parse(retdata); |
|
|
|
|
|
//console.info(retdata); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
function validatingJSON(json) { |
|
|
|
|
|
var checkedjson; |
|
|
try { |
|
|
checkedjson = JSON.parse(json); //JSON parse only for try catch |
|
|
//console.log("json OK"); |
|
|
//console.log(json); |
|
|
} catch (e) { |
|
|
checkedjson = null; |
|
|
console.log(e);//the character would be drop sometimes, for example the label "class_id" may be "clas_id". |
|
|
//console.log(json); |
|
|
} |
|
|
return checkedjson; |
|
|
} |
|
|
/* |
|
|
function func_getloading() { |
|
|
$.ajax({ |
|
|
url: "/getloading", |
|
|
type: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
var jsonbuf = validatingJSON(retdata); |
|
|
if (jsonbuf != null) { |
|
|
$('#CPU_USAGE').val(jsonbuf["CPU_USAGE"] + " %"); |
|
|
$('#GPU_USAGE').val(jsonbuf["GPU_USAGE"] + " %"); |
|
|
$('#FPS').val(jsonbuf["FPS"]); |
|
|
} |
|
|
|
|
|
//setTimeout($('#CPU_USAGE').val(jsonbuf["CPU_USAGE"] + " %"), 30000); |
|
|
//setTimeout($('#GPU_USAGE').val(jsonbuf["GPU_USAGE"] + " %"), 30000); |
|
|
//setTimeout($('#FPS').val(jsonbuf["FPS"]), 30000); |
|
|
|
|
|
//document.getElementById('CPU_USAGE').innerHTML=jsonbuf["CPU_USAGE"]+" %"; |
|
|
//document.getElementById('GPU_USAGE').innerHTML=jsonbuf["GPU_USAGE"]+" %"; |
|
|
//document.getElementById('FPS').innerHTML=jsonbuf["FPS"]; |
|
|
//console.info(retdata); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
}*/ |
|
|
|
|
|
function func_getEnablePTZ() { |
|
|
$.ajax({ |
|
|
url: "/get_enable_ptz", |
|
|
type: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
//var jsonbuf = JSON.parse('{ "name":"John", "age":30, "city":"New York"}'); |
|
|
var jsonbuf = JSON.parse(retdata); |
|
|
|
|
|
//$('#license_status_2').val(jsonbuf["jstr1"]); |
|
|
//$('#enable_anpr').prop("checked", true); |
|
|
|
|
|
enable_PTZ = jsonbuf["enable_PTZ"]; |
|
|
|
|
|
check_finish_both++; |
|
|
|
|
|
if (check_finish_both == 3) { |
|
|
func_showCloud(); |
|
|
} |
|
|
}, |
|
|
error: function (retdata) { |
|
|
console.warn(retdata); |
|
|
setTimeout(func_getEnablePTZ(), 2000); |
|
|
} |
|
|
}); |
|
|
} |
|
|
function func_clean_lpr_list() { |
|
|
|
|
|
if (confirm('Are you sure you want to clear all records?')) { |
|
|
// clear it! |
|
|
console.log('Thing was clear the database.'); |
|
|
|
|
|
$.ajax({ |
|
|
url: "/clean_face_list", |
|
|
type: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
//console.info(retdata); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
console.warn(retdata); |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
reloadUI(); |
|
|
|
|
|
} |
|
|
else { |
|
|
// Do nothing! |
|
|
console.log('Thing was not clear the database.'); |
|
|
} |
|
|
} |
|
|
|
|
|
function func_get_system_default() { |
|
|
|
|
|
if (confirm('Do you want to apply default settings?')) { |
|
|
//window.open('countdown.html', 'FullWindowAll', ''); |
|
|
|
|
|
localStorage.setItem('alarm_success', 'Null'); |
|
|
localStorage.setItem('anpr_index_success', 'Null'); |
|
|
localStorage.setItem('setting_success', 'Null'); |
|
|
localStorage.setItem('license_success', 'Null'); |
|
|
localStorage.setItem('output_success', 'Null'); |
|
|
localStorage.setItem('lpr_list_success', 'Null'); |
|
|
localStorage.setItem('ptz_success', 'Null'); |
|
|
localStorage.setItem('speed_index_success', 'Null'); |
|
|
|
|
|
cookie("enable_only_show_metadata1", "on", "9999/12/31 12:00:00"); |
|
|
$.ajax({ |
|
|
url: "/system?default=3", |
|
|
type: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
//var jsonbuf = JSON.parse(retdata); |
|
|
//$('#CPU_USAGE').val(jsonbuf["CPU_USAGE"] + " %"); |
|
|
//$('#GPU_USAGE').val(jsonbuf["GPU_USAGE"] + " %"); |
|
|
//$('#FPS').val(jsonbuf["FPS"]); |
|
|
//document.getElementById('CPU_USAGE').innerHTML=jsonbuf["CPU_USAGE"]+" %"; |
|
|
//document.getElementById('GPU_USAGE').innerHTML=jsonbuf["GPU_USAGE"]+" %"; |
|
|
//document.getElementById('FPS').innerHTML=jsonbuf["FPS"]; |
|
|
|
|
|
|
|
|
//func_getreload(); |
|
|
//alert("Close or refresh the browser to reboot the camera."); |
|
|
/* |
|
|
var replaceUrl = 'http://' + window.location.hostname + ':' + myport + '/setup.htm'; |
|
|
//alert(replaceUrl); |
|
|
parent.window.location.replace(replaceUrl);*/ |
|
|
//parent.open(parent.location, '_parent').close(); |
|
|
//console.info(retdata); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
console.warn(retdata); |
|
|
//alert("Close or refresh the browser to reboot the camera."); |
|
|
//parent.open(parent.location, '_parent').close(); |
|
|
} |
|
|
}); |
|
|
|
|
|
var replaceUrl = 'http://' + window.location.hostname + ':' + GetUrlPort() + '/Aida/countdown.html'; |
|
|
window.location.replace(replaceUrl); |
|
|
|
|
|
//console.log('Apply default settings!'); |
|
|
return false; |
|
|
} else { |
|
|
//console.log("Don't apply default settings!"); |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
function func_ddns_login() { |
|
|
|
|
|
$.ajax({ |
|
|
url: "/ddns_login", |
|
|
method: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
//data : JSON.stringify(data), |
|
|
success: function (retdata) { |
|
|
//console.log(retdata); |
|
|
if (retdata === "ok") |
|
|
alert("Successful login."); |
|
|
else { |
|
|
alert("Failed login."); |
|
|
//func_ddns_register(); |
|
|
} |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
//ddns_register |
|
|
} |
|
|
|
|
|
var check_if_finish_verify = 0; |
|
|
function func_cloud_v2_verify() { |
|
|
|
|
|
$('#cloud_v2_statue').val("Verify..."); |
|
|
if (check_if_finish_verify == 0) { |
|
|
check_if_finish_verify = 1; |
|
|
$('html, body').scrollTop(0); |
|
|
$.ajax({ |
|
|
url: "/do_cloud_v2_statue", |
|
|
method: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
//data : JSON.stringify(data), |
|
|
success: function () { |
|
|
check_if_finish_verify = 0; |
|
|
setTimeout(func_getCloudStatue(), 2000); |
|
|
|
|
|
}, |
|
|
error: function () { |
|
|
check_if_finish_verify = 0; |
|
|
$('#cloud_v2_statue').val("Network error."); |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
} |
|
|
return false; |
|
|
//ddns_register |
|
|
} |
|
|
|
|
|
function func_cloud_record_v2_verify() { |
|
|
|
|
|
$('#cloud_record_v2_statue').val("Verify..."); |
|
|
if (check_if_finish_verify == 0) { |
|
|
check_if_finish_verify = 1; |
|
|
$('html, body').scrollTop(0); |
|
|
$.ajax({ |
|
|
url: "/do_cloud_record_v2_statue", |
|
|
method: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
//data : JSON.stringify(data), |
|
|
success: function () { |
|
|
check_if_finish_verify = 0; |
|
|
setTimeout(func_getCloudStatue(), 2000); |
|
|
|
|
|
}, |
|
|
error: function () { |
|
|
check_if_finish_verify = 0; |
|
|
$('#cloud_record_v2_statue').val("Network error."); |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
} |
|
|
return false; |
|
|
//ddns_register |
|
|
} |
|
|
|
|
|
function func_ddns_register() { |
|
|
|
|
|
$.ajax({ |
|
|
url: "/ddns_register", |
|
|
method: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
//data : JSON.stringify(data), |
|
|
success: function (retdata) { |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
var count_reload = 0; |
|
|
function func_getreload() { |
|
|
$.ajax({ |
|
|
url: "/getconfig?reload=1", |
|
|
method: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
//data : JSON.stringify(data), |
|
|
success: function (retdata) { |
|
|
count_reload++; |
|
|
if (retdata === "Reload OK.") { |
|
|
count_reload = 0; |
|
|
//console.log("Reload OK."); |
|
|
} |
|
|
else { |
|
|
if (count_reload <= 3) { |
|
|
setTimeout(func_getreload(), 2000); |
|
|
} |
|
|
else { |
|
|
count_reload = 0; |
|
|
} |
|
|
} |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
function func_exit_gynet() { |
|
|
$.ajax({ |
|
|
url: "/exit_gynet", |
|
|
method: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
//data : JSON.stringify(data), |
|
|
success: function (retdata) { |
|
|
if (retdata === "1") { |
|
|
alert("To change encoder of detection, we should reboot gynet."); |
|
|
parent.open(parent.location, '_parent').close(); |
|
|
} |
|
|
|
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
function func_setplugin() { |
|
|
|
|
|
|
|
|
$.ajax({ |
|
|
url: "/setplugin?port=" + $('#SETTING_PORT').val(), |
|
|
method: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
//data : JSON.stringify(data), |
|
|
success: function () { |
|
|
alert(message_alert); |
|
|
parent.open(parent.location, '_parent').close(); |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
alert(message_alert_fail); |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
var check_if_login = 0; |
|
|
function func_setSettingData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_setting(); |
|
|
} |
|
|
|
|
|
function waitSeconds(iMilliSeconds) { |
|
|
|
|
|
var counter = 0 |
|
|
|
|
|
, start = new Date().getTime() |
|
|
|
|
|
, end = 0; |
|
|
|
|
|
while (counter < iMilliSeconds) { |
|
|
|
|
|
end = new Date().getTime(); |
|
|
|
|
|
counter = end - start; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
function func_setTrafficEnforcementData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_traffic_enforcement(); |
|
|
|
|
|
} |
|
|
|
|
|
function func_setMailData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress(); |
|
|
|
|
|
} |
|
|
|
|
|
function func_setCloudData_login() { |
|
|
k_index = 0; |
|
|
check_if_login = 1; |
|
|
makeProgress_cloud(); |
|
|
} |
|
|
|
|
|
function func_setCloudData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_cloud(); |
|
|
} |
|
|
|
|
|
function func_setCloudData_v2() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_cloud_v2(); |
|
|
} |
|
|
|
|
|
function func_setSystemLogsData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_system_logs(); |
|
|
} |
|
|
|
|
|
function func_setPythonData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_python(); |
|
|
} |
|
|
|
|
|
function func_setFTPData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_ftp(); |
|
|
} |
|
|
|
|
|
function func_setOSDData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_osd(); |
|
|
} |
|
|
|
|
|
function func_setReportData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_report(); |
|
|
} |
|
|
|
|
|
function func_setLprData() { |
|
|
k_index = 0; |
|
|
check_if_login = 0; |
|
|
makeProgress_lpr(); |
|
|
} |
|
|
|
|
|
function func_seteventsfile(json_data) { |
|
|
$.ajax({ |
|
|
url: "/seteventsfile", |
|
|
method: "POST", |
|
|
async: false, |
|
|
data: json_data, |
|
|
contentType: false, |
|
|
processData: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function () { |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
|
|
|
k_index++; |
|
|
|
|
|
if (k_index <= 94) { |
|
|
|
|
|
waitSeconds(500); |
|
|
func_seteventsfile(json_data); |
|
|
} |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
function func_setemailsfile(json_data) { |
|
|
$.ajax({ |
|
|
url: "/setemailsfile", |
|
|
method: "POST", |
|
|
async: false, |
|
|
data: json_data, |
|
|
contentType: false, |
|
|
processData: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function () { |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
|
|
|
k_index++; |
|
|
|
|
|
if (k_index <= 94) { |
|
|
waitSeconds(500); |
|
|
func_setemailsfile(json_data); |
|
|
} |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
function func_setconfigfile(json_data) { |
|
|
$.ajax({ |
|
|
url: "/setconfigfile", |
|
|
method: "POST", |
|
|
async: false, |
|
|
data: json_data, |
|
|
contentType: false, |
|
|
processData: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function () { |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
|
|
|
k_index++; |
|
|
|
|
|
if (k_index <= 94) { |
|
|
waitSeconds(500); |
|
|
func_setconfigfile(json_data); |
|
|
} |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
function func_run_osd_server() { |
|
|
$.ajax({ |
|
|
url: "/run_osd_server", |
|
|
method: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function () { |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
function func_setelement(name_, value_) { |
|
|
$.ajax({ |
|
|
url: "/setconfig?ch=system_setting&" + name_ + "=" + value_, |
|
|
method: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function () { |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
function func_setelement_email(name_, value_) { |
|
|
$.ajax({ |
|
|
url: "/setemail?ch=all&" + name_ + "=" + value_, |
|
|
method: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function () { |
|
|
//console.info(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(); |
|
|
} |
|
|
}); |
|
|
return false; |
|
|
} |
|
|
|
|
|
var k_index = -1; |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
function makeProgress() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data = '{'; |
|
|
json_data += '"system_setting": {'; |
|
|
json_data += '"enable_email_jpeg": "' + enable_email_jpeg + '",'; |
|
|
json_data += '"email_reset_time_interval": "' + email_reset_time_interval + '",'; |
|
|
json_data += '"send_counter_at_specific_hour": "' + send_counter_at_specific_hour + '",'; |
|
|
json_data += '"enable_email_notification": "' + enable_email_notification + '"'; |
|
|
json_data += '}'; |
|
|
json_data += '}'; |
|
|
func_setconfigfile(json_data); |
|
|
|
|
|
|
|
|
var json_data_events = '{'; |
|
|
json_data_events += '"email_setting":{' |
|
|
json_data_events += '"email_content": "' + email_content + '"'; |
|
|
json_data_events += '}'; |
|
|
json_data_events += '}'; |
|
|
func_seteventsfile(json_data_events); |
|
|
|
|
|
if (auth_password != "LILINPASS" && auth_password.length >= 8) { |
|
|
var json_data_emails = '{'; |
|
|
json_data_emails += '"auth_password": "' + btoa(auth_password) + '"'; |
|
|
json_data_emails += '}'; |
|
|
func_setemailsfile(json_data_emails); |
|
|
} |
|
|
else if (auth_password != "LILINPASS" && auth_password.length < 8 && auth_password.length >= 1) { |
|
|
alert("The length of the password must be larger than 8."); |
|
|
} |
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
//k_index = 90; |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
func_run_osd_server(); |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
function makeProgress_system_logs() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data = '{'; |
|
|
json_data += '"system_setting": {'; |
|
|
json_data += '"enable_system_logs": "' + enable_system_logs + '"'; |
|
|
json_data += '}'; |
|
|
json_data += '}'; |
|
|
func_setconfigfile(json_data); |
|
|
|
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
//k_index = 90; |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
func_run_osd_server(); |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_system_logs()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
function makeProgress_python() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data = '{'; |
|
|
json_data += '"system_setting": {'; |
|
|
json_data += '"enable_python": "' + enable_python + '"'; |
|
|
json_data += '}'; |
|
|
json_data += '}'; |
|
|
func_setconfigfile(json_data); |
|
|
|
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
//k_index = 90; |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
func_run_osd_server(); |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_python()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function makeProgress_traffic_enforcement() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data = '{'; |
|
|
json_data += '"view_setting": {'; |
|
|
json_data += '"camera01": {'; |
|
|
json_data += '"red_light_zone": "' + red_light_zone + '",'; |
|
|
json_data += '"no_give_way_zone_to_protect": "' + no_give_way_zone_to_protect + '",'; |
|
|
json_data += '"no_give_way_zone_to_keep_away": "' + no_give_way_zone_to_keep_away + '",'; |
|
|
json_data += '"no_give_way_zone_to_protect_2": "' + no_give_way_zone_to_protect_2 + '",'; |
|
|
json_data += '"no_give_way_zone_to_keep_away_2": "' + no_give_way_zone_to_keep_away_2 + '"'; |
|
|
json_data += '}'; |
|
|
json_data += '}'; |
|
|
json_data += '}'; |
|
|
func_setconfigfile(json_data); |
|
|
|
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
localStorage.setItem('alarm_success', 'Null'); |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
//k_index = 90; |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
func_run_osd_server(); |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_traffic_enforcement()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
function makeProgress_setting() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data = '{'; |
|
|
json_data += '"view_setting":{"camera01":{"getnetwork_buffer_id":"' + getnetwork_buffer_id + '"' + '}}'; |
|
|
json_data += ',"system_setting": {"display properties": "' + enable_color_detection + '","enable_getalarmmotion_snap": "' + enable_getalarmmotion_snap + '","enable_ai_mirror": "' + enable_ai_mirror + '","ai_mirror_feature": "' + ai_mirror_feature + '","getimage_encoder_id": "' + getimage_encoder_id + '","getimage_encoder_id_HD": "' + getimage_encoder_id_HD + '","sensors_type": "' + sensors_type + '","enable_person_independent": "' + enable_person_independent + '","enable_onvif_profile_m": "' + enable_onvif_profile_m + '","enable_crop_mode": "' + enable_crop_mode + '","enable_bounding_box": "' + enable_bounding_box + '","enable_dwell_bounding_box": "' + enable_dwell_bounding_box + '","nms_thres": "' + nms_thres + '","tracking_id_dwell": "' + tracking_id_dwell + '","enable_low_cpu_usage": "' + enable_low_cpu_usage + '"}'; |
|
|
json_data += '}'; |
|
|
|
|
|
func_setconfigfile(json_data); |
|
|
|
|
|
var json_data_events = '{"notification":{"enable_obj_once_to_post": "' + enable_obj_once_to_post + '","enable_nvr_once_to_getalarmmotion": "' + enable_nvr_once_to_getalarmmotion + '","enable_8592_once_to_getalarmmotion": "' + enable_nvr_once_to_getalarmmotion + '","enable_location_once_to_post": "' + enable_location_once_to_post + '","dwell_to_the_same_location": "' + dwell_to_the_same_location + '"}'; |
|
|
json_data_events += '}'; |
|
|
|
|
|
func_seteventsfile(json_data_events); |
|
|
|
|
|
/*if (enable_nvr_once_to_getalarmmotion === 'Yes') { |
|
|
$('#ENABLE_OBJ_ONCE_TO_POST').prop("checked", true); |
|
|
$('#enable_nvr_once_to_getalarmmotion').prop("checked", true); |
|
|
$('#ENABLE_LOCATION_ONCE_TO_POST').prop("checked", false); |
|
|
}*/ |
|
|
|
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
func_run_osd_server(); |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
|
|
|
/* |
|
|
if (enable_getalarmmotion_snap == "Yes") { |
|
|
alert(message_alert2); |
|
|
}*/ |
|
|
|
|
|
if ($('#SETTING_PORT').val() != GetUrlPort()) { |
|
|
func_setplugin(); |
|
|
} |
|
|
else { |
|
|
func_exit_gynet(); |
|
|
} |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_setting()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
function makeProgress_cloud_v2() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
cloud_v2_content = cloud_v2_content.replace(/\\"/g, '"'); |
|
|
cloud_record_v2_content = cloud_record_v2_content.replace(/\\\\/g, '\\'); |
|
|
|
|
|
cloud_v2_content = cloud_v2_content.replace(/\\"/g, '"'); |
|
|
cloud_v2_content = cloud_v2_content.replace(/\\\\/g, '\\'); |
|
|
cloud_v2_content = cloud_v2_content.replace(/\r?\n/g, ""); |
|
|
cloud_v2_content = cloud_v2_content.replace(/"/g, '\\"'); |
|
|
|
|
|
cloud_record_v2_content = cloud_record_v2_content.replace(/\\"/g, '"'); |
|
|
cloud_record_v2_content = cloud_record_v2_content.replace(/\\\\/g, '\\'); |
|
|
cloud_record_v2_content = cloud_record_v2_content.replace(/\r?\n/g, ""); |
|
|
cloud_record_v2_content = cloud_record_v2_content.replace(/"/g, '\\"'); |
|
|
|
|
|
var json_data = '{"system_setting": {"enable_cloud_v2": "' + enable_cloud_v2 + '","cloud_v2_notification_dwell": "' + cloud_v2_notification_dwell + '","cloud_v2_content": "' + cloud_v2_content + '","enable_cloud_record_v2": "' + enable_cloud_record_v2 + '","cloud_record_v2_notification_dwell": "' + cloud_record_v2_notification_dwell + '","cloud_record_v2_content": "' + cloud_record_v2_content + '"}'; |
|
|
json_data += '}'; |
|
|
|
|
|
func_setconfigfile(json_data); |
|
|
|
|
|
cloud_v2_content = cloud_v2_content.replace(/\\"/g, '"'); |
|
|
cloud_record_v2_content = cloud_record_v2_content.replace(/\\"/g, '"'); |
|
|
|
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
func_run_osd_server(); |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
|
|
|
if (check_if_login == 1) { |
|
|
check_if_login = 0; |
|
|
func_ddns_login(); |
|
|
} |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_cloud_v2()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
function makeProgress_cloud() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data = '{"system_setting": {"enable_sync_external_lpr_db": "' + enable_sync_external_lpr_db + '","external_lpr_db_IP": "' + external_lpr_db_IP + '","external_lpr_db_port": "' + external_lpr_db_port + '","external_lpr_db_username": "' + external_lpr_db_username + '","external_lpr_db_password": "' + external_lpr_db_password + '","cloud_enable_notification": "' + enable_cloud_notification + '","cloud_enable_snap": "' + enable_cloud_snap + '","cloud_account": "' + user_account + '","cloud_password": "' + user_password + '","cloud_notification_dwell": "' + notification_dwell + '"}'; |
|
|
json_data += '}'; |
|
|
|
|
|
func_setconfigfile(json_data); |
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
func_run_osd_server(); |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
|
|
|
if (check_if_login == 1) { |
|
|
check_if_login = 0; |
|
|
func_ddns_login(); |
|
|
} |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_cloud()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
function makeProgress_ftp() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data = '{"system_setting": {"enable_ftp": "' + enable_ftp + '","ftp_url": "' + ftp_url + '","ftp_port": "' + ftp_port + '","ftp_username": "' + ftp_username + '","ftp_password": "' + ftp_password + '","ftp_remote_directory": "' + ftp_remote_directory + '","ftp_jpeg_file_name": "' + ftp_jpeg_file_name + '","ftp_jpeg_file_name_format": "' + ftp_file_format_name + '"}'; |
|
|
json_data += '}'; |
|
|
|
|
|
func_setconfigfile(json_data); |
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
func_run_osd_server(); |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
|
|
|
if (check_if_login == 1) { |
|
|
check_if_login = 0; |
|
|
func_ddns_login(); |
|
|
} |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_ftp()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
function makeProgress_osd() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data = '{"system_setting": {"display OSD": "' + enable_display_OSD + '","osd_encoder_id": "' + osd_encoder_id + '","enable_osd_bottom": "' + enable_osd_bottom + '","osd_bottom_bg_tran": "' + osd_bottom_bg_tran + '","osd_bottom_content": "' + osd_bottom_content + '"}'; |
|
|
json_data += '}'; |
|
|
|
|
|
func_setconfigfile(json_data); |
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
func_run_osd_server(); |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_osd()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function makeProgress_report() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data_events = '{'; |
|
|
json_data_events += '"notification":{"heatmap_max":"' + heatmap_max + '","enable_heatmap":"' + enable_heatmap + '","heatmap_frequency":"' + heatmap_frequency + '","enable_counter_snap":"' + enable_counter_snap + '","lpr_title":"' + lpr_title + '"}'; |
|
|
json_data_events += ',"event_counter_setting": {"report_counters": [{'; |
|
|
|
|
|
for (var i = 0; i < MAX_SIZE_REPORT_COUNTERS; i++) { |
|
|
json_data_events += '"counter_a":"' + counter_a[i] + '",'; |
|
|
json_data_events += '"counter_a_name":"' + counter_a_name[i] + '",'; |
|
|
//json_data_events += '"counter_a_zone":"' + counter_a_zone[i] + '",'; |
|
|
json_data_events += '"counter_b":"' + counter_b[i] + '",'; |
|
|
json_data_events += '"counter_b_name":"' + counter_b_name[i] + '",'; |
|
|
json_data_events += '"counter_c_name":"' + counter_c_name[i] + '",'; |
|
|
//json_data_events += '"counter_b_zone":"' + counter_b_zone[i] + '",'; |
|
|
|
|
|
json_data_events += '"enable_report":"' + enable_report[i] + '",'; |
|
|
json_data_events += '"report_max_value":"' + report_max_value[i] + '",'; |
|
|
json_data_events += '"counter_mode":"' + counter_mode[i] + '",'; |
|
|
json_data_events += '"initial_icon":"' + initial_icon[i] + '",'; |
|
|
json_data_events += '"detection_output":"' + detection_output[i] + '",'; |
|
|
json_data_events += '"output_icon":"' + output_icon[i] + '"'; |
|
|
|
|
|
|
|
|
if (i < MAX_SIZE_REPORT_COUNTERS - 1) { |
|
|
json_data_events += '}, {'; |
|
|
} |
|
|
} |
|
|
json_data_events += '}]}}'; |
|
|
|
|
|
func_seteventsfile(json_data_events); |
|
|
|
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_report()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
function makeProgress_lpr() { |
|
|
if (k_index < 100 && k_index >= 0) { |
|
|
k_index = k_index + 1; |
|
|
$(".progress-bar").css("visibility", "visible"); |
|
|
//$(".progress-bar").css("width", k_index + "%").text(k_index + " %"); |
|
|
$(".progress-bar").css("width", k_index + "%"); |
|
|
|
|
|
if (k_index == 1) { |
|
|
$('html, body').scrollTop(0); |
|
|
func_set_setting_data(); |
|
|
func_set_cloud_data(); |
|
|
|
|
|
var json_data = '{"system_setting": {"display dash": "' + support_dash + '","enable_special_char": "' + enable_special_char + '","force_i_to_one": "' + force_i_to_one + '","force_o_to_zero": "' + force_o_to_zero + '","enable_plate_angle_correction": "' + enable_plate_angle_correction + '","enable_post_only_if_both_detected": "' + enable_post_only_if_both_detected + '"},'; |
|
|
json_data += '"view_setting":{"camera01":{"PlateFilterTimes": "' + select_number_of_same_plate_detection + '", "PlateFilterTime": "' + select_same_plate_detection_dwell + '"}}}'; |
|
|
|
|
|
func_setconfigfile(json_data); |
|
|
localStorage.setItem("enable_only_once_to_post", enable_only_once_to_post); |
|
|
|
|
|
if (enable_only_once_to_post == "Yes") { |
|
|
enable_location_once_to_post = "Yes"; |
|
|
enable_obj_once_to_post = "Yes"; |
|
|
enable_nvr_once_to_getalarmmotion = "Yes"; |
|
|
enable_8592_once_to_getalarmmotion = "Yes"; |
|
|
|
|
|
var json_data_events = '{"notification":{"enable_only_once_to_post":"' + enable_only_once_to_post + '","enable_location_once_to_post": "' + enable_location_once_to_post + '","enable_obj_once_to_post": "' + enable_obj_once_to_post + '","enable_nvr_once_to_getalarmmotion": "' + enable_nvr_once_to_getalarmmotion + '","enable_8592_once_to_getalarmmotion": "' + enable_8592_once_to_getalarmmotion + '"}'; |
|
|
json_data_events += '}'; |
|
|
func_seteventsfile(json_data_events); |
|
|
|
|
|
//if (enable_obj_once_to_post === 'Yes') |
|
|
//$('#ENABLE_OBJ_ONCE_TO_POST').prop("checked", true); |
|
|
//else { |
|
|
//$('#ENABLE_OBJ_ONCE_TO_POST').prop("checked", false); |
|
|
//} |
|
|
|
|
|
if (enable_location_once_to_post === 'Yes') { |
|
|
$('#ENABLE_LOCATION_ONCE_TO_POST').prop("checked", true); |
|
|
document.getElementById("out_bbox_border").style.display = ""; |
|
|
} |
|
|
else { |
|
|
$('#ENABLE_LOCATION_ONCE_TO_POST').prop("checked", false); |
|
|
document.getElementById("out_bbox_border").style.display = "none"; |
|
|
} |
|
|
|
|
|
//if (enable_nvr_once_to_getalarmmotion === 'Yes') |
|
|
//$('#enable_nvr_once_to_getalarmmotion').prop("checked", true); |
|
|
//else { |
|
|
//$('#enable_nvr_once_to_getalarmmotion').prop("checked", false); |
|
|
//} |
|
|
} |
|
|
else { |
|
|
var json_data_events = '{"notification":{"enable_only_once_to_post":"' + enable_only_once_to_post + '"}'; |
|
|
json_data_events += '}'; |
|
|
func_seteventsfile(json_data_events); |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
k_index = 94; |
|
|
} |
|
|
else if (k_index == 95) { |
|
|
//g_luckalarmui = value_luckalarmui * 0.3; |
|
|
//waitSeconds(500); |
|
|
//func_getreload(); |
|
|
} |
|
|
else if (k_index == 100) { |
|
|
$(".progress-bar").css("visibility", "hidden"); |
|
|
//$(".progress-bar").css("width", "0%").text("0 %"); |
|
|
$(".progress-bar").css("width", "0%"); |
|
|
k_index = -1; |
|
|
} |
|
|
// Wait for sometime before running this script again |
|
|
setTimeout("makeProgress_lpr()", 200); |
|
|
} |
|
|
} |
|
|
|
|
|
function func_syncUserData() { |
|
|
$.ajax({ |
|
|
url: "/sync_ipcam_account_setting", |
|
|
type: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
alert("Close or refresh the browser to sync the camera settings."); |
|
|
parent.open(parent.location, '_parent').close(); |
|
|
//console.info(retdata); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
function func_syncImageRotation() { |
|
|
$.ajax({ |
|
|
url: "/sync_image_rotation", |
|
|
type: "GET", |
|
|
async: false, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
alert("Close or refresh the browser to sync the camera roation."); |
|
|
parent.open(parent.location, '_parent').close(); |
|
|
//console.info(retdata); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
function func_getEmailsfile() { |
|
|
$.ajax({ |
|
|
url: "/getemailsfile", |
|
|
type: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
check_if_existing_email_password = retdata; |
|
|
if (check_if_existing_email_password == 1) { |
|
|
$('#auth_password').val("LILINPASS"); |
|
|
} |
|
|
else { |
|
|
$('#auth_password').val(""); |
|
|
} |
|
|
}, |
|
|
error: function (retdata) { |
|
|
setTimeout(func_getEmailsfile(), 3000) |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
function func_getEmailData() { |
|
|
$.ajax({ |
|
|
url: "/getemail?ch=all", |
|
|
type: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
var jsonbuf = JSON.parse(retdata); |
|
|
|
|
|
email_content = jsonbuf["email_content"]; |
|
|
$('#email_content').val(email_content); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
setTimeout(func_getEmailData(), 3000); |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
function get_index_counter(counter_name) { |
|
|
var ret = -1; |
|
|
for (var i = 0; i < MAX_SIZE_COUNTERS; i++) { |
|
|
if (counter_name == "Counter0" + (i + 1).toString()) { |
|
|
ret = i; |
|
|
break; |
|
|
} |
|
|
} |
|
|
return ret; |
|
|
} |
|
|
|
|
|
function get_counter_name(index_counter) { |
|
|
var counter_name = "" |
|
|
if (index_counter >= 0 && index_counter < MAX_SIZE_COUNTERS) { |
|
|
counter_name = "Counter0" + (index_counter + 1).toString(); |
|
|
} |
|
|
return counter_name; |
|
|
} |
|
|
|
|
|
function func_getEventsData() { |
|
|
|
|
|
$.ajax({ |
|
|
url: "/geteventsfile?ch=all", |
|
|
type: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
//var jsonbuf = JSON.parse('{ "name":"John", "age":30, "city":"New York"}'); |
|
|
var jsonbuf = validatingJSON(retdata); |
|
|
|
|
|
if (jsonbuf != null) { |
|
|
enable_only_once_to_post = jsonbuf["notification"]["enable_only_once_to_post"]; |
|
|
localStorage.setItem("enable_only_once_to_post", jsonbuf["notification"]["enable_only_once_to_post"]); |
|
|
enable_obj_once_to_post = jsonbuf["notification"]["enable_obj_once_to_post"]; |
|
|
enable_location_once_to_post = jsonbuf["notification"]["enable_location_once_to_post"]; |
|
|
dwell_to_the_same_location = jsonbuf["notification"]["dwell_to_the_same_location"]; |
|
|
enable_obj_once_to_post = enable_location_once_to_post; |
|
|
enable_nvr_once_to_getalarmmotion = enable_location_once_to_post; |
|
|
enable_8592_once_to_getalarmmotion = enable_location_once_to_post; |
|
|
//enable_nvr_once_to_getalarmmotion = jsonbuf["notification"]["enable_nvr_once_to_getalarmmotion"]; |
|
|
//enable_8592_once_to_getalarmmotion = enable_nvr_once_to_getalarmmotion; |
|
|
|
|
|
heatmap_max = jsonbuf["notification"]["heatmap_max"]; |
|
|
enable_heatmap = jsonbuf["notification"]["enable_heatmap"]; |
|
|
heatmap_frequency = jsonbuf["notification"]["heatmap_frequency"]; |
|
|
|
|
|
lpr_title = jsonbuf["notification"]["lpr_title"]; |
|
|
enable_counter_snap = jsonbuf["notification"]["enable_counter_snap"]; |
|
|
localStorage.setItem("events_default_version", jsonbuf["notification"]["events_default_version"]); |
|
|
|
|
|
for (var i = 0; i < MAX_SIZE_REPORT_COUNTERS; i++) { |
|
|
enable_report[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["enable_report"]; |
|
|
initial_icon[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["initial_icon"]; |
|
|
counter_mode[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["counter_mode"]; |
|
|
detection_output[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["detection_output"]; |
|
|
output_icon[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["output_icon"]; |
|
|
report_max_value[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["report_max_value"]; |
|
|
|
|
|
counter_a[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["counter_a"]; |
|
|
counter_a_name[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["counter_a_name"]; |
|
|
//counter_a_zone[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["counter_a_zone"]; |
|
|
counter_b[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["counter_b"]; |
|
|
counter_b_name[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["counter_b_name"]; |
|
|
counter_c_name[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["counter_c_name"]; |
|
|
//counter_b_zone[i] = jsonbuf["event_counter_setting"]["report_counters"][i]["counter_b_zone"]; |
|
|
} |
|
|
|
|
|
check_finish_both++; |
|
|
|
|
|
if (check_finish_both == 3) { |
|
|
func_showCloud(); |
|
|
} |
|
|
} |
|
|
else { |
|
|
setTimeout(func_getEventsData(), 3000); |
|
|
} |
|
|
//console.info(retdata); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
setTimeout(func_getEventsData(), 3000); |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
|
|
|
function func_getCloudData() { |
|
|
$.ajax({ |
|
|
url: "/getconfigfile?ch=all", |
|
|
type: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
//var jsonbuf = JSON.parse('{ "name":"John", "age":30, "city":"New York"}'); |
|
|
var jsonbuf = JSON.parse(retdata); |
|
|
|
|
|
//$('#license_status_2').val(jsonbuf["jstr1"]); |
|
|
//$('#enable_anpr').prop("checked", true); |
|
|
|
|
|
select_number_of_same_plate_detection = jsonbuf["view_setting"]["camera01"]["PlateFilterTimes"]; |
|
|
select_same_plate_detection_dwell = jsonbuf["view_setting"]["camera01"]["PlateFilterTime"]; |
|
|
count_zone = jsonbuf["view_setting"]["camera01"]["count_zone"]; |
|
|
|
|
|
getnetwork_buffer_id = jsonbuf["view_setting"]["camera01"]["getnetwork_buffer_id"]; |
|
|
|
|
|
enable_cloud = jsonbuf["system_setting"]["enable_cloud"]; |
|
|
enable_cloud_notification = jsonbuf["system_setting"]["cloud_enable_notification"]; |
|
|
enable_cloud_snap = jsonbuf["system_setting"]["cloud_enable_snap"]; |
|
|
|
|
|
enable_person_independent = jsonbuf["system_setting"]["enable_person_independent"]; |
|
|
enable_onvif_profile_m = jsonbuf["system_setting"]["enable_onvif_profile_m"]; |
|
|
enable_crop_mode = jsonbuf["system_setting"]["enable_crop_mode"]; |
|
|
enable_bounding_box = jsonbuf["system_setting"]["enable_bounding_box"]; |
|
|
enable_dwell_bounding_box = jsonbuf["system_setting"]["enable_dwell_bounding_box"]; |
|
|
|
|
|
user_account = jsonbuf["system_setting"]["cloud_account"]; |
|
|
user_password = jsonbuf["system_setting"]["cloud_password"]; |
|
|
notification_dwell = jsonbuf["system_setting"]["cloud_notification_dwell"]; |
|
|
nms_thres = jsonbuf["system_setting"]["nms_thres"]; |
|
|
tracking_id_dwell = jsonbuf["system_setting"]["tracking_id_dwell"]; |
|
|
language = jsonbuf["system_setting"]["language"]; |
|
|
enable_color_detection = jsonbuf["system_setting"]["display properties"]; |
|
|
force_i_to_one = jsonbuf["system_setting"]["force_i_to_one"]; |
|
|
force_o_to_zero = jsonbuf["system_setting"]["force_o_to_zero"]; |
|
|
enable_plate_angle_correction = jsonbuf["system_setting"]["enable_plate_angle_correction"]; |
|
|
enable_post_only_if_both_detected = jsonbuf["system_setting"]["enable_post_only_if_both_detected"]; |
|
|
enable_getalarmmotion_snap = jsonbuf["system_setting"]["enable_getalarmmotion_snap"]; |
|
|
enable_low_cpu_usage = jsonbuf["system_setting"]["enable_low_cpu_usage"]; |
|
|
getimage_encoder_id = jsonbuf["system_setting"]["getimage_encoder_id"]; |
|
|
getimage_encoder_id_HD = jsonbuf["system_setting"]["getimage_encoder_id_HD"]; |
|
|
osd_encoder_id = jsonbuf["system_setting"]["osd_encoder_id"]; |
|
|
//osd_font_size = jsonbuf["system_setting"]["osd_font_size"]; |
|
|
//osd_outline_lilin = jsonbuf["system_setting"]["osd_outline_lilin"]; |
|
|
|
|
|
enable_osd_bottom = jsonbuf["system_setting"]["enable_osd_bottom"]; |
|
|
osd_bottom_bg_tran = jsonbuf["system_setting"]["osd_bottom_bg_tran"]; |
|
|
osd_bottom_content = jsonbuf["system_setting"]["osd_bottom_content"]; |
|
|
|
|
|
sensors_type = jsonbuf["system_setting"]["sensors_type"]; |
|
|
support_dash = jsonbuf["system_setting"]["display dash"]; |
|
|
enable_special_char = jsonbuf["system_setting"]["enable_special_char"]; |
|
|
enable_display_OSD = jsonbuf["system_setting"]["display OSD"]; |
|
|
enable_sync_external_lpr_db = jsonbuf["system_setting"]["enable_sync_external_lpr_db"]; |
|
|
external_lpr_db_IP = jsonbuf["system_setting"]["external_lpr_db_IP"]; |
|
|
external_lpr_db_port = jsonbuf["system_setting"]["external_lpr_db_port"]; |
|
|
external_lpr_db_username = jsonbuf["system_setting"]["external_lpr_db_username"]; |
|
|
external_lpr_db_password = jsonbuf["system_setting"]["external_lpr_db_password"]; |
|
|
|
|
|
enable_ai_mirror = jsonbuf["system_setting"]["enable_ai_mirror"]; |
|
|
ai_mirror_feature = jsonbuf["system_setting"]["ai_mirror_feature"]; |
|
|
|
|
|
enable_system_logs = jsonbuf["system_setting"]["enable_system_logs"]; |
|
|
enable_python = jsonbuf["system_setting"]["enable_python"]; |
|
|
enable_python_file = jsonbuf["system_setting"]["enable_python_file"]; // Ming 2024-09-27 |
|
|
enable_email_jpeg = jsonbuf["system_setting"]["enable_email_jpeg"]; |
|
|
email_reset_time_interval = jsonbuf["system_setting"]["email_reset_time_interval"]; |
|
|
if (email_reset_time_interval.length == 0) { |
|
|
email_reset_time_interval = "NULL"; |
|
|
} |
|
|
send_counter_at_specific_hour = jsonbuf["system_setting"]["send_counter_at_specific_hour"]; |
|
|
if (send_counter_at_specific_hour.length == 0) { |
|
|
send_counter_at_specific_hour = "NULL"; |
|
|
} |
|
|
enable_email_notification = jsonbuf["system_setting"]["enable_email_notification"]; |
|
|
|
|
|
enable_ftp = jsonbuf["system_setting"]["enable_ftp"]; |
|
|
ftp_url = jsonbuf["system_setting"]["ftp_url"]; |
|
|
ftp_port = jsonbuf["system_setting"]["ftp_port"]; |
|
|
ftp_username = jsonbuf["system_setting"]["ftp_username"]; |
|
|
ftp_password = jsonbuf["system_setting"]["ftp_password"]; |
|
|
ftp_remote_directory = jsonbuf["system_setting"]["ftp_remote_directory"]; |
|
|
ftp_jpeg_file_name = jsonbuf["system_setting"]["ftp_jpeg_file_name"]; |
|
|
ftp_file_format_name = jsonbuf["system_setting"]["ftp_jpeg_file_name_format"]; |
|
|
//cloud_statue = jsonbuf["system_setting"]["cloud_statue"]; |
|
|
|
|
|
enable_cloud_v2 = jsonbuf["system_setting"]["enable_cloud_v2"]; |
|
|
cloud_v2_notification_dwell = jsonbuf["system_setting"]["cloud_v2_notification_dwell"]; |
|
|
cloud_v2_content = jsonbuf["system_setting"]["cloud_v2_content"]; |
|
|
enable_cloud_record_v2 = jsonbuf["system_setting"]["enable_cloud_record_v2"]; |
|
|
cloud_record_v2_notification_dwell = jsonbuf["system_setting"]["cloud_record_v2_notification_dwell"]; |
|
|
cloud_record_v2_content = jsonbuf["system_setting"]["cloud_record_v2_content"]; |
|
|
|
|
|
red_light_zone = jsonbuf["view_setting"]["camera01"]["red_light_zone"]; |
|
|
no_give_way_zone_to_protect = jsonbuf["view_setting"]["camera01"]["no_give_way_zone_to_protect"]; |
|
|
no_give_way_zone_to_keep_away = jsonbuf["view_setting"]["camera01"]["no_give_way_zone_to_keep_away"]; |
|
|
no_give_way_zone_to_protect_2 = jsonbuf["view_setting"]["camera01"]["no_give_way_zone_to_protect_2"]; |
|
|
no_give_way_zone_to_keep_away_2 = jsonbuf["view_setting"]["camera01"]["no_give_way_zone_to_keep_away_2"]; |
|
|
|
|
|
if (red_light_zone.length == 0) |
|
|
red_light_zone = "NULL"; |
|
|
|
|
|
if (no_give_way_zone_to_protect.length == 0) |
|
|
no_give_way_zone_to_protect = "NULL"; |
|
|
|
|
|
if (no_give_way_zone_to_keep_away.length == 0) |
|
|
no_give_way_zone_to_keep_away = "NULL"; |
|
|
|
|
|
if (no_give_way_zone_to_protect_2.length == 0) |
|
|
no_give_way_zone_to_protect_2 = "NULL"; |
|
|
|
|
|
if (no_give_way_zone_to_keep_away_2.length == 0) |
|
|
no_give_way_zone_to_keep_away_2 = "NULL"; |
|
|
|
|
|
func_change_language_to_select_lang(); |
|
|
|
|
|
check_finish_both++; |
|
|
|
|
|
if (check_finish_both == 3) { |
|
|
func_showCloud(); |
|
|
} |
|
|
|
|
|
}, |
|
|
error: function (retdata) { |
|
|
setTimeout(func_getCloudData(), 3000); |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
function func_getCloudStatue() { |
|
|
$.ajax({ |
|
|
url: "/get_cloud_statue", |
|
|
type: "GET", |
|
|
async: true, |
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
//var jsonbuf = JSON.parse('{ "name":"John", "age":30, "city":"New York"}'); |
|
|
|
|
|
var splitbuf = retdata.split(",,,"); |
|
|
|
|
|
$('#cloud_statue').val(splitbuf[0]); |
|
|
$('#cloud_v2_statue').val(splitbuf[1]); |
|
|
$('#cloud_record_v2_statue').val(splitbuf[2]); |
|
|
}, |
|
|
error: function (retdata) { |
|
|
setTimeout(func_getCloudStatue(), 3000); |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
function func_showCloud() { |
|
|
//console.log("func_showCloud:" + enable_cloud); |
|
|
|
|
|
/* |
|
|
for (var i = 0; i < MAX_DETECTION_ZONE; i++) { |
|
|
if (i < count_zone) { |
|
|
$('select[id="select_counter_a_zone"] option[value="' + (i + 1).toString() + '"]').css('visibility', "visible"); |
|
|
$('select[id="select_counter_b_zone"] option[value="' + (i + 1).toString() + '"]').css('visibility', "visible"); |
|
|
} |
|
|
else { |
|
|
$('select[id="select_counter_a_zone"] option[value="' + (i + 1).toString() + '"]').css('visibility', "hidden"); |
|
|
$('select[id="select_counter_b_zone"] option[value="' + (i + 1).toString() + '"]').css('visibility', "hidden"); |
|
|
} |
|
|
}*/ |
|
|
|
|
|
if (localStorage.getItem("06AI") == "Yes") { |
|
|
document.getElementById("lpr_border").style.display = "block"; |
|
|
document.getElementById("IDOK_lpr").style.display = "block"; |
|
|
} |
|
|
else { |
|
|
document.getElementById("lpr_border").style.display = "none"; |
|
|
document.getElementById("IDOK_lpr").style.display = "none"; |
|
|
|
|
|
document.getElementById("report_border_lpr_1").style.display = "none"; |
|
|
document.getElementById("report_border_lpr_2").style.display = "none"; |
|
|
} |
|
|
|
|
|
if (localStorage.getItem("03AI") == "Yes") { |
|
|
|
|
|
} |
|
|
else { |
|
|
for (var i = 1; i <= 13; i++) { |
|
|
document.getElementById("report_border_counter_" + i.toString()).style.display = "none"; |
|
|
} |
|
|
} |
|
|
|
|
|
if (localStorage.getItem("06AI") != "Yes" && localStorage.getItem("03AI") != "Yes" && enable_cloud != "Yes") { |
|
|
document.getElementById("IDOK_report").style.display = "none"; |
|
|
document.getElementById("report_border").style.display = "none"; |
|
|
} |
|
|
|
|
|
if (localStorage.getItem("06AI") == "Yes" && localStorage.getItem("03AI") != "Yes" && enable_cloud != "Yes") { |
|
|
document.getElementById("report_border_lpr_1").style.display = "none"; |
|
|
} |
|
|
|
|
|
if (localStorage.getItem("06AI") != "Yes" && localStorage.getItem("03AI") != "Yes" && enable_cloud != "Yes") { |
|
|
document.getElementById("report_border_heatmap_1").style.display = "none"; |
|
|
} |
|
|
|
|
|
if (enable_PTZ == "Yes" || localStorage.getItem("model_camera") == 659 || localStorage.getItem("model_camera") == 715 |
|
|
|| localStorage.getItem("model_camera") == 714 || localStorage.getItem("model_camera") == 731 || localStorage.getItem("model_camera") == 716) { |
|
|
document.getElementById("ai_mirror_border").style.display = "none"; |
|
|
document.getElementById("advanced_border_1").style.display = "none"; |
|
|
document.getElementById("advanced_border_2").style.display = "none"; |
|
|
} |
|
|
|
|
|
if (localStorage.getItem("sdk_version") != null && localStorage.getItem("sdk_version") < 5058 && enable_cloud != "Yes") |
|
|
{ |
|
|
document.getElementById("onvif_border").style.display = "none"; |
|
|
} |
|
|
|
|
|
if (enable_PTZ == "Yes") { |
|
|
document.getElementById("crop_mode_border").style.display = ""; |
|
|
} |
|
|
|
|
|
if (enable_cloud == "Yes") { |
|
|
//document.getElementById("IDOK_mail").style.visibility = "visible"; |
|
|
//document.getElementById("IDOK_mail").style.top = ""; |
|
|
//document.getElementById("IDOK_mail").style.position = "relative"; |
|
|
|
|
|
//document.getElementById("SMTP_border").style.visibility = "visible"; |
|
|
//document.getElementById("SMTP_border").style.top = ""; |
|
|
//document.getElementById("SMTP_border").style.position = "relative"; |
|
|
|
|
|
//document.getElementById("cloud_border").style.display = "block"; |
|
|
//document.getElementById("IDOK_cloud").style.display = "block"; |
|
|
|
|
|
//document.getElementById("system_logs_border").style.display = "block"; |
|
|
//document.getElementById("IDOK_system_logs").style.display = "block"; |
|
|
|
|
|
document.getElementById("traffic_enforcement_border").style.display = "block"; |
|
|
document.getElementById("IDOK_traffic_enforcement").style.display = "block"; |
|
|
document.getElementById("OSD_border").style.display = "block"; |
|
|
document.getElementById("IDOK_osd").style.display = "block"; |
|
|
document.getElementById("lpr_border").style.display = "block"; |
|
|
document.getElementById("IDOK_lpr").style.display = "block"; |
|
|
document.getElementById("report_border").style.display = "block"; |
|
|
document.getElementById("IDOK_report").style.display = "block"; |
|
|
|
|
|
|
|
|
|
|
|
document.getElementById("border_nms").style.display = ""; |
|
|
//document.getElementById("onvif_border").style.display = ""; |
|
|
//document.getElementById("group_enable_8592").style.display = "block"; |
|
|
|
|
|
|
|
|
//document.getElementById("report_border").style.display = "block"; |
|
|
//document.getElementById("IDOK_report").style.display = "block"; |
|
|
|
|
|
document.getElementById("system_python_border").style.display = ""; |
|
|
document.getElementById("IDOK_python").style.display = ""; |
|
|
|
|
|
document.getElementById("ID_DEFAULT").style.top = ""; |
|
|
|
|
|
//document.getElementById("getnetwork_buffer_id_border").style.display = ""; |
|
|
} |
|
|
else { |
|
|
//document.getElementById("IDOK_mail").style.visibility = "hidden"; |
|
|
//document.getElementById("IDOK_mail").style.top = "500px"; |
|
|
//document.getElementById("IDOK_mail").style.position = "absolute"; |
|
|
|
|
|
//document.getElementById("SMTP_border").style.visibility = "hidden"; |
|
|
//document.getElementById("SMTP_border").style.top = "500px"; |
|
|
//document.getElementById("SMTP_border").style.position = "absolute"; |
|
|
|
|
|
//document.getElementById("cloud_border").style.display = "none"; |
|
|
//document.getElementById("IDOK_cloud").style.display = "none"; |
|
|
|
|
|
//document.getElementById("system_logs_border").style.display = "none"; |
|
|
//document.getElementById("IDOK_system_logs").style.display = "none"; |
|
|
|
|
|
document.getElementById("traffic_enforcement_border").style.display = "none"; |
|
|
document.getElementById("IDOK_traffic_enforcement").style.display = "none"; |
|
|
if (localStorage.getItem("Face_recognition") == "Yes") { |
|
|
document.getElementById("OSD_border").style.display = "none"; |
|
|
document.getElementById("IDOK_osd").style.display = "none"; |
|
|
document.getElementById("lpr_border").style.display = "none"; |
|
|
document.getElementById("IDOK_lpr").style.display = "none"; |
|
|
document.getElementById("report_border").style.display = "none"; |
|
|
document.getElementById("IDOK_report").style.display = "none"; |
|
|
|
|
|
document.getElementById("setting_border_1").style.display = "none"; |
|
|
document.getElementById("group_enable_8592").style.display = "none"; |
|
|
document.getElementById("setting_border_3").style.display = "none"; |
|
|
//document.getElementById("border_nms").style.display = "none"; |
|
|
document.getElementById("setting_border_4").style.display = "none"; |
|
|
document.getElementById("advanced_border_1").style.display = "none"; |
|
|
document.getElementById("advanced_border_2").style.display = "none" |
|
|
document.getElementById("ai_mirror_border").style.display = "none"; |
|
|
|
|
|
document.getElementById("once_border").style.display = "none"; |
|
|
document.getElementById("nav_once_border").style.display = "none"; |
|
|
document.getElementById("person_border").style.display = "none"; |
|
|
document.getElementById("encoder_border").style.display = "none"; |
|
|
document.getElementById("snap_border").style.display = "none"; |
|
|
document.getElementById("notice_border").style.display = "none"; |
|
|
document.getElementById("notice_border_2").style.display = "none"; |
|
|
document.getElementById("encoder_notice_border").style.display = "none"; |
|
|
document.getElementById("encoder_notice_border_2").style.display = "none"; |
|
|
} |
|
|
//document.getElementById("border_nms").style.display = "none"; |
|
|
//document.getElementById("onvif_border").style.display = "none"; |
|
|
//document.getElementById("group_enable_8592").style.display = "none"; |
|
|
|
|
|
//document.getElementById("report_border").style.display = "none"; |
|
|
//document.getElementById("IDOK_report").style.display = "none"; |
|
|
//document.getElementById("report_border_heatmap_1").style.display = "none"; |
|
|
//document.getElementById("report_border_heatmap_2").style.display = "none"; |
|
|
//document.getElementById("report_border_heatmap_3").style.display = "none"; |
|
|
//document.getElementById("report_border_heatmap_4").style.display = "none"; |
|
|
|
|
|
|
|
|
document.getElementById("ID_DEFAULT").style.top = "0px"; |
|
|
} |
|
|
|
|
|
if (localStorage.getItem("v_series") != null && localStorage.getItem("v_series") == "Yes") { |
|
|
document.getElementById("mail_counter_border").style.display = "none"; |
|
|
} |
|
|
|
|
|
if (enable_cloud_notification === 'Yes') |
|
|
$('#enable_cloud_notification').prop("checked", true); |
|
|
else |
|
|
$('#enable_cloud_notification').prop("checked", false); |
|
|
|
|
|
if (enable_cloud_snap === 'Yes') |
|
|
$('#enable_cloud_snap').prop("checked", true); |
|
|
else |
|
|
$('#enable_cloud_snap').prop("checked", false); |
|
|
|
|
|
if (enable_person_independent === 'Yes') |
|
|
$('#enable_person_independent').prop("checked", true); |
|
|
else |
|
|
$('#enable_person_independent').prop("checked", false); |
|
|
|
|
|
if (enable_onvif_profile_m === 'Yes') |
|
|
$('#enable_onvif_profile_m').prop("checked", true); |
|
|
else |
|
|
$('#enable_onvif_profile_m').prop("checked", false); |
|
|
|
|
|
if (enable_crop_mode === 'Yes') |
|
|
$('#enable_crop_mode').prop("checked", true); |
|
|
else |
|
|
$('#enable_crop_mode').prop("checked", false); |
|
|
|
|
|
if (enable_bounding_box === 'Yes') |
|
|
$('#enable_bounding_box').prop("checked", true); |
|
|
else |
|
|
$('#enable_bounding_box').prop("checked", false); |
|
|
|
|
|
if (enable_dwell_bounding_box === 'Yes') |
|
|
$('#enable_dwell_bounding_box').prop("checked", true); |
|
|
else |
|
|
$('#enable_dwell_bounding_box').prop("checked", false); |
|
|
|
|
|
$('#user_account').val(user_account); |
|
|
$('#user_password').val(user_password); |
|
|
//$('#notification_dwell').val(parseInt(notification_dwell, 10)); |
|
|
$('#notification_dwell').slider('setValue', parseInt(notification_dwell, 10)); |
|
|
|
|
|
$('#nms_thres').slider('setValue', parseInt(nms_thres, 10)); |
|
|
|
|
|
$('#tracking_id_dwell').slider('setValue', parseInt(tracking_id_dwell, 10)); |
|
|
|
|
|
$('#dwell_to_the_same_location').slider('setValue', parseInt(dwell_to_the_same_location, 10)); |
|
|
|
|
|
if (enable_cloud_v2 === 'Yes') |
|
|
$('#enable_cloud_v2').prop("checked", true); |
|
|
else |
|
|
$('#enable_cloud_v2').prop("checked", false); |
|
|
//$('#cloud_v2_notification_dwell').val(parseInt(cloud_v2_notification_dwell, 10)); |
|
|
$('#cloud_v2_notification_dwell').slider('setValue', parseInt(cloud_v2_notification_dwell, 10)); |
|
|
$('#cloud_v2_content').val(cloud_v2_content); |
|
|
|
|
|
if (enable_cloud_record_v2 === 'Yes') |
|
|
$('#enable_cloud_record_v2').prop("checked", true); |
|
|
else |
|
|
$('#enable_cloud_record_v2').prop("checked", false); |
|
|
//$('#cloud_record_v2_notification_dwell').val(parseInt(cloud_record_v2_notification_dwell, 10)); |
|
|
$('#cloud_record_v2_notification_dwell').slider('setValue', parseInt(cloud_record_v2_notification_dwell, 10)); |
|
|
$('#cloud_record_v2_content').val(cloud_record_v2_content); |
|
|
|
|
|
$('#email_reset_time_interval').val(email_reset_time_interval); |
|
|
$('#send_counter_at_specific_hour').val(send_counter_at_specific_hour); |
|
|
|
|
|
if (enable_color_detection === 'Yes') |
|
|
$('#enable_color_detection').prop("checked", true); |
|
|
else |
|
|
$('#enable_color_detection').prop("checked", false); |
|
|
|
|
|
if (force_i_to_one === 'Yes') |
|
|
$('#force_i_to_one').prop("checked", true); |
|
|
else |
|
|
$('#force_i_to_one').prop("checked", false); |
|
|
|
|
|
if (force_o_to_zero === 'Yes') |
|
|
$('#force_o_to_zero').prop("checked", true); |
|
|
else |
|
|
$('#force_o_to_zero').prop("checked", false); |
|
|
|
|
|
if (enable_plate_angle_correction === 'Yes') |
|
|
$('#enable_plate_angle_correction').prop("checked", true); |
|
|
else |
|
|
$('#enable_plate_angle_correction').prop("checked", false); |
|
|
|
|
|
if (enable_ai_mirror === 'Yes') |
|
|
$('#enable_ai_mirror').prop("checked", true); |
|
|
else |
|
|
$('#enable_ai_mirror').prop("checked", false); |
|
|
|
|
|
$('#ai_mirror_feature').val(ai_mirror_feature); |
|
|
|
|
|
if (enable_post_only_if_both_detected === 'Yes') |
|
|
$('#enable_post_only_if_both_detected').prop("checked", true); |
|
|
else |
|
|
$('#enable_post_only_if_both_detected').prop("checked", false); |
|
|
|
|
|
var index_report = parseInt(current_select_report, 10); |
|
|
|
|
|
$('#select_counter_a').val(get_index_counter(counter_a[index_report])); |
|
|
$('#counter_a_name').val(counter_a_name[index_report]); |
|
|
//$('#select_counter_a_zone').val(counter_a_zone[index_report]); |
|
|
$('#select_counter_b').val(get_index_counter(counter_b[index_report])); |
|
|
$('#counter_b_name').val(counter_b_name[index_report]); |
|
|
$('#counter_c_name').val(counter_c_name[index_report]); |
|
|
//$('#select_counter_b_zone').val(counter_b_zone[index_report]); |
|
|
|
|
|
if (enable_report[index_report] === 'Yes') |
|
|
$('#enable_report').prop("checked", true); |
|
|
else { |
|
|
$('#enable_report').prop("checked", false); |
|
|
} |
|
|
$('#report_max_value').val(report_max_value[index_report]); |
|
|
$('#select_counter_mode').val(counter_mode[index_report]); |
|
|
$('#select_initial_icon').val(initial_icon[index_report]); |
|
|
$('#detection_output').val(detection_output[index_report]); |
|
|
//$('#select_output_icon').val(output_icon[index_report]); |
|
|
|
|
|
$('#heatmap_max').val(heatmap_max); |
|
|
|
|
|
if (enable_heatmap === 'Yes') |
|
|
$('#enable_heatmap').prop("checked", true); |
|
|
else { |
|
|
$('#enable_heatmap').prop("checked", false); |
|
|
} |
|
|
|
|
|
if (enable_counter_snap === 'Yes') |
|
|
$('#enable_counter_snap').prop("checked", true); |
|
|
else { |
|
|
$('#enable_counter_snap').prop("checked", false); |
|
|
} |
|
|
|
|
|
$('#heatmap_frequency').val(heatmap_frequency); |
|
|
$('#lpr_title').val(lpr_title); |
|
|
|
|
|
|
|
|
|
|
|
if (enable_only_once_to_post === 'Yes') { |
|
|
$('#ENABLE_ONLY_ONCE_TO_POST').prop("checked", true); |
|
|
} |
|
|
else { |
|
|
$('#ENABLE_ONLY_ONCE_TO_POST').prop("checked", false); |
|
|
} |
|
|
|
|
|
|
|
|
//if (enable_obj_once_to_post === 'Yes') |
|
|
//$('#ENABLE_OBJ_ONCE_TO_POST').prop("checked", true); |
|
|
//else { |
|
|
//$('#ENABLE_OBJ_ONCE_TO_POST').prop("checked", false); |
|
|
//} |
|
|
|
|
|
if (enable_location_once_to_post === 'Yes') { |
|
|
$('#ENABLE_LOCATION_ONCE_TO_POST').prop("checked", true); |
|
|
document.getElementById("out_bbox_border").style.display = ""; |
|
|
} |
|
|
else { |
|
|
$('#ENABLE_LOCATION_ONCE_TO_POST').prop("checked", false); |
|
|
document.getElementById("out_bbox_border").style.display = "none"; |
|
|
} |
|
|
|
|
|
//if (enable_nvr_once_to_getalarmmotion === 'Yes') { |
|
|
//$('#enable_nvr_once_to_getalarmmotion').prop("checked", true); |
|
|
//} |
|
|
//else { |
|
|
//$('#enable_nvr_once_to_getalarmmotion').prop("checked", false); |
|
|
//} |
|
|
|
|
|
//if (enable_8592_once_to_getalarmmotion === 'Yes') { |
|
|
//$('#enable_8592_once_to_getalarmmotion').prop("checked", true); |
|
|
//} |
|
|
//else { |
|
|
//$('#enable_8592_once_to_getalarmmotion').prop("checked", false); |
|
|
//} |
|
|
|
|
|
if (enable_getalarmmotion_snap === 'Yes') |
|
|
$('#enable_getalarmmotion_snap').prop("checked", true); |
|
|
else |
|
|
$('#enable_getalarmmotion_snap').prop("checked", false); |
|
|
|
|
|
if (enable_low_cpu_usage === 'Yes') |
|
|
$('#enable_low_cpu_usage').prop("checked", true); |
|
|
else |
|
|
$('#enable_low_cpu_usage').prop("checked", false); |
|
|
|
|
|
if (enable_display_OSD === 'Yes') |
|
|
$('#enable_display_OSD').prop("checked", true); |
|
|
else |
|
|
$('#enable_display_OSD').prop("checked", false); |
|
|
|
|
|
$('#getimage_encoder_id').val(getimage_encoder_id); |
|
|
$('#getimage_encoder_id_HD').val(getimage_encoder_id_HD); |
|
|
$('#getnetwork_buffer_id').val(getnetwork_buffer_id); |
|
|
|
|
|
$('#osd_encoder_id').val(osd_encoder_id); |
|
|
//$('#osd_font_size').val(osd_font_size); |
|
|
//$('#osd_outline_lilin').val(osd_outline_lilin); |
|
|
if (enable_osd_bottom === 'Yes') |
|
|
$('#enable_osd_bottom').prop("checked", true); |
|
|
else |
|
|
$('#enable_osd_bottom').prop("checked", false); |
|
|
$('#osd_bottom_bg_tran').val(parseInt(osd_bottom_bg_tran, 10)); |
|
|
$('#osd_bottom_content').val(osd_bottom_content); |
|
|
$('#sensors_type').val(sensors_type); |
|
|
|
|
|
if (support_dash === 'Yes') |
|
|
$('#support_dash').prop("checked", true); |
|
|
else |
|
|
$('#support_dash').prop("checked", false); |
|
|
|
|
|
if (enable_special_char === 'Yes') |
|
|
$('#enable_special_char').prop("checked", true); |
|
|
else |
|
|
$('#enable_special_char').prop("checked", false); |
|
|
|
|
|
if (enable_sync_external_lpr_db === 'Yes') |
|
|
$('#enable_sync_external_lpr_db').prop("checked", true); |
|
|
else |
|
|
$('#enable_sync_external_lpr_db').prop("checked", false); |
|
|
|
|
|
$('#external_lpr_db_IP').val(external_lpr_db_IP); |
|
|
$('#external_lpr_db_port').val(external_lpr_db_port); |
|
|
$('#external_lpr_db_username').val(external_lpr_db_username); |
|
|
$('#external_lpr_db_password').val(external_lpr_db_password); |
|
|
|
|
|
if (enable_email_notification === 'Yes') |
|
|
$('#enable_email_notification').prop("checked", true); |
|
|
else |
|
|
$('#enable_email_notification').prop("checked", false); |
|
|
|
|
|
if (enable_system_logs === 'Yes') |
|
|
$('#enable_system_logs').prop("checked", true); |
|
|
else |
|
|
$('#enable_system_logs').prop("checked", false); |
|
|
|
|
|
if (enable_python === 'Yes') |
|
|
$('#enable_python').prop("checked", true); |
|
|
else |
|
|
$('#enable_python').prop("checked", false); |
|
|
|
|
|
$('#enable_python_file').val(enable_python_file); |
|
|
|
|
|
if (enable_email_jpeg === 'Yes') |
|
|
$('#enable_email_jpeg').prop("checked", true); |
|
|
else |
|
|
$('#enable_email_jpeg').prop("checked", false); |
|
|
|
|
|
if (enable_ftp === 'Yes') |
|
|
$('#enable_ftp').prop("checked", true); |
|
|
else |
|
|
$('#enable_ftp').prop("checked", false); |
|
|
|
|
|
if (ftp_file_format_name === "fixed") { |
|
|
$('#FILE_FORMAT_NAME_FIXED').prop("checked", true); |
|
|
$('#FILE_FORMAT_NAME_DATE').prop("checked", false); |
|
|
} |
|
|
else { |
|
|
$('#FILE_FORMAT_NAME_FIXED').prop("checked", false); |
|
|
$('#FILE_FORMAT_NAME_DATE').prop("checked", true); |
|
|
} |
|
|
|
|
|
if (localStorage.getItem("No_brand") == 1) { |
|
|
document.getElementById("cloud_border").style.display = "none"; |
|
|
document.getElementById("IDOK_cloud").style.display = "none"; |
|
|
} |
|
|
else { |
|
|
document.getElementById("cloud_border").style.display = "block"; |
|
|
document.getElementById("IDOK_cloud").style.display = "block"; |
|
|
} |
|
|
|
|
|
$('#ftp_url').val(ftp_url); |
|
|
$('#ftp_port').val(ftp_port); |
|
|
$('#ftp_username').val(ftp_username); |
|
|
$('#ftp_password').val(ftp_password); |
|
|
$('#ftp_remote_directory').val(ftp_remote_directory); |
|
|
$('#ftp_jpeg_file_name').val(ftp_jpeg_file_name); |
|
|
|
|
|
$('#red_light_zone').val(red_light_zone); |
|
|
$('#no_give_way_zone_to_protect').val(no_give_way_zone_to_protect); |
|
|
$('#no_give_way_zone_to_keep_away').val(no_give_way_zone_to_keep_away); |
|
|
$('#no_give_way_zone_to_protect_2').val(no_give_way_zone_to_protect_2); |
|
|
$('#no_give_way_zone_to_keep_away_2').val(no_give_way_zone_to_keep_away_2); |
|
|
|
|
|
$('#select_number_of_same_plate_detection').val(select_number_of_same_plate_detection); |
|
|
$('#select_same_plate_detection_dwell').val(select_same_plate_detection_dwell); |
|
|
|
|
|
var dataset_ver_1 = localStorage.getItem("dataset_ver").substr(10, 255); |
|
|
var dataset_ver_2 = localStorage.getItem("dataset_ver").substr(0, 10); |
|
|
var check_if_double_mode_1 = dataset_ver_1.indexOf("RAFFIC"); |
|
|
var check_if_double_mode_2 = dataset_ver_2.indexOf("RAFFIC"); |
|
|
if (check_if_double_mode_1 >= 1 && check_if_double_mode_2 >= 1) { |
|
|
const selectElement = document.getElementById('getnetwork_buffer_id'); |
|
|
|
|
|
// 假設我們想改變所有選項的顯示文本 |
|
|
for (var i = 0; i < selectElement.options.length; i++) { |
|
|
const option_select = selectElement.options[i]; |
|
|
if (i <= 1) { |
|
|
option_select.text = (i + 1) + " (RGB)"; // 改變文本內容 |
|
|
} |
|
|
else { |
|
|
option_select.text = (i + 1) + " (Thermal)"; // 改變文本內容 |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
const selectElement_2 = document.getElementById('getimage_encoder_id'); |
|
|
for (var i = 0; i < selectElement_2.options.length; i++) { |
|
|
const option_select = selectElement_2.options[i]; |
|
|
if (i <= 0) { |
|
|
option_select.text = (i + 2) + " (RGB)"; // 改變文本內容 |
|
|
} |
|
|
else { |
|
|
option_select.text = (i + 2) + " (Thermal)"; // 改變文本內容 |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
const selectElement_3 = document.getElementById('getimage_encoder_id_HD'); |
|
|
for (var i = 0; i < selectElement_3.options.length; i++) { |
|
|
const option_select = selectElement_3.options[i]; |
|
|
if (i <= 0) { |
|
|
option_select.text = "None"; // 改變文本內容 |
|
|
} |
|
|
else if (i == 1) { |
|
|
option_select.text = (i + 1) + " (RGB)"; // 改變文本內容 |
|
|
} |
|
|
else { |
|
|
option_select.text = (i + 1) + " (Thermal)"; // 改變文本內容 |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function func_set_cloud_data() { |
|
|
//console.log("func_showCloud:" + enable_cloud); |
|
|
if ($('#enable_cloud_notification').is(":checked")) { |
|
|
enable_cloud_notification = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_cloud_notification = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_cloud_snap').is(":checked")) { |
|
|
enable_cloud_snap = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_cloud_snap = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_person_independent').is(":checked")) { |
|
|
enable_person_independent = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_person_independent = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_onvif_profile_m').is(":checked")) { |
|
|
enable_onvif_profile_m = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_onvif_profile_m = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_crop_mode').is(":checked")) { |
|
|
enable_crop_mode = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_crop_mode = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_bounding_box').is(":checked")) { |
|
|
enable_bounding_box = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_bounding_box = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_dwell_bounding_box').is(":checked")) { |
|
|
enable_dwell_bounding_box = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_dwell_bounding_box = "No"; |
|
|
} |
|
|
|
|
|
user_account = $('#user_account').val(); |
|
|
user_password = $('#user_password').val(); |
|
|
notification_dwell = $('#notification_dwell').slider('getValue'); |
|
|
cloud_statue = $('#cloud_statue').val(); |
|
|
|
|
|
nms_thres = $('#nms_thres').slider('getValue'); |
|
|
tracking_id_dwell = $('#tracking_id_dwell').slider('getValue'); |
|
|
|
|
|
dwell_to_the_same_location = $('#dwell_to_the_same_location').slider('getValue'); |
|
|
|
|
|
if ($('#enable_cloud_v2').is(":checked")) { |
|
|
enable_cloud_v2 = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_cloud_v2 = "No"; |
|
|
} |
|
|
cloud_v2_notification_dwell = $('#cloud_v2_notification_dwell').slider('getValue'); |
|
|
cloud_v2_content = $('#cloud_v2_content').val(); |
|
|
|
|
|
if ($('#enable_cloud_record_v2').is(":checked")) { |
|
|
enable_cloud_record_v2 = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_cloud_record_v2 = "No"; |
|
|
} |
|
|
cloud_record_v2_notification_dwell = $('#cloud_record_v2_notification_dwell').slider('getValue'); |
|
|
cloud_record_v2_content = $('#cloud_record_v2_content').val(); |
|
|
|
|
|
if ($('#enable_email_notification').is(":checked")) { |
|
|
enable_email_notification = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_email_notification = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_system_logs').is(":checked")) { |
|
|
enable_system_logs = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_system_logs = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_python').is(":checked")) { |
|
|
enable_python = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_python = "No"; |
|
|
} |
|
|
|
|
|
enable_python_file = $('#enable_python_file').val(); |
|
|
|
|
|
if ($('#enable_email_jpeg').is(":checked")) { |
|
|
enable_email_jpeg = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_email_jpeg = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_ftp').is(":checked")) { |
|
|
enable_ftp = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_ftp = "No"; |
|
|
} |
|
|
|
|
|
if ($('#FILE_FORMAT_NAME_FIXED').is(":checked")) { |
|
|
ftp_file_format_name = "fixed"; |
|
|
} |
|
|
else { |
|
|
ftp_file_format_name = "date"; |
|
|
} |
|
|
|
|
|
ftp_url = $('#ftp_url').val(); |
|
|
ftp_port = $('#ftp_port').val(); |
|
|
ftp_username = $('#ftp_username').val(); |
|
|
ftp_password = $('#ftp_password').val(); |
|
|
ftp_remote_directory = $('#ftp_remote_directory').val(); |
|
|
ftp_jpeg_file_name = $('#ftp_jpeg_file_name').val(); |
|
|
|
|
|
email_content = $('#email_content').val(); |
|
|
|
|
|
if ($('#email_reset_time_interval').val() != "NULL" && $('#send_counter_at_specific_hour').val() != "NULL") { |
|
|
email_reset_time_interval = "NULL"; |
|
|
$('#email_reset_time_interval').val(email_reset_time_interval); |
|
|
} |
|
|
else { |
|
|
email_reset_time_interval = $('#email_reset_time_interval').val(); |
|
|
send_counter_at_specific_hour = $('#send_counter_at_specific_hour').val(); |
|
|
} |
|
|
|
|
|
auth_password = $('#auth_password').val(); |
|
|
|
|
|
red_light_zone = $('#red_light_zone').val(); |
|
|
no_give_way_zone_to_protect = $('#no_give_way_zone_to_protect').val(); |
|
|
no_give_way_zone_to_keep_away = $('#no_give_way_zone_to_keep_away').val(); |
|
|
no_give_way_zone_to_protect_2 = $('#no_give_way_zone_to_protect_2').val(); |
|
|
no_give_way_zone_to_keep_away_2 = $('#no_give_way_zone_to_keep_away_2').val(); |
|
|
} |
|
|
|
|
|
function func_set_setting_data() { |
|
|
if ($('#enable_color_detection').is(":checked")) { |
|
|
enable_color_detection = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_color_detection = "No"; |
|
|
} |
|
|
|
|
|
if ($('#force_i_to_one').is(":checked")) { |
|
|
force_i_to_one = "Yes"; |
|
|
} |
|
|
else { |
|
|
force_i_to_one = "No"; |
|
|
} |
|
|
|
|
|
if ($('#force_o_to_zero').is(":checked")) { |
|
|
force_o_to_zero = "Yes"; |
|
|
} |
|
|
else { |
|
|
force_o_to_zero = "No"; |
|
|
} |
|
|
|
|
|
|
|
|
if ($('#enable_plate_angle_correction').is(":checked")) { |
|
|
enable_plate_angle_correction = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_plate_angle_correction = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_ai_mirror').is(":checked")) { |
|
|
enable_ai_mirror = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_ai_mirror = "No"; |
|
|
} |
|
|
|
|
|
ai_mirror_feature = $('#ai_mirror_feature').val(); |
|
|
|
|
|
if ($('#enable_post_only_if_both_detected').is(":checked")) { |
|
|
enable_post_only_if_both_detected = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_post_only_if_both_detected = "No"; |
|
|
} |
|
|
|
|
|
if ($('#ENABLE_ONLY_ONCE_TO_POST').is(":checked")) { |
|
|
enable_only_once_to_post = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_only_once_to_post = "No"; |
|
|
} |
|
|
|
|
|
var index_report = parseInt(current_select_report, 10); |
|
|
|
|
|
counter_a[index_report] = get_counter_name(parseInt($('#select_counter_a').val(), 10)); |
|
|
counter_a_name[index_report] = $('#counter_a_name').val(); |
|
|
//counter_a_zone[index_report] = $('#select_counter_a_zone').val(); |
|
|
|
|
|
counter_b[index_report] = get_counter_name(parseInt($('#select_counter_b').val(), 10)); |
|
|
counter_b_name[index_report] = $('#counter_b_name').val(); |
|
|
counter_c_name[index_report] = $('#counter_c_name').val(); |
|
|
//counter_b_zone[index_report] = $('#select_counter_b_zone').val(); |
|
|
|
|
|
if ($('#enable_report').is(":checked")) { |
|
|
enable_report[index_report] = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_report[index_report] = "No"; |
|
|
} |
|
|
|
|
|
if ($('#report_max_value').val().length >= 1) |
|
|
report_max_value[index_report] = $('#report_max_value').val(); |
|
|
else |
|
|
report_max_value[index_report] = "0"; |
|
|
|
|
|
initial_icon[index_report] = $('#select_initial_icon').val(); |
|
|
counter_mode[index_report] = $('#select_counter_mode').val(); |
|
|
detection_output[index_report] = $('#detection_output').val(); |
|
|
|
|
|
var data_icon = JSON.parse(ICON_REPORT).report[0]; |
|
|
if (initial_icon[index_report] == data_icon.Car) { |
|
|
output_icon[index_report] = data_icon.Car_in_red; |
|
|
} |
|
|
else if (initial_icon[index_report] == data_icon.Human) { |
|
|
output_icon[index_report] = data_icon.Human_in_red; |
|
|
} |
|
|
else if (initial_icon[index_report] == data_icon.Motorbike) { |
|
|
output_icon[index_report] = data_icon.Motorbike_in_red; |
|
|
} |
|
|
else if (initial_icon[index_report] == data_icon.Truck) { |
|
|
output_icon[index_report] = data_icon.Truck_in_red; |
|
|
} |
|
|
else if (initial_icon[index_report] == data_icon.Mask) { |
|
|
output_icon[index_report] = data_icon.Mask_in_red; |
|
|
} |
|
|
else if (initial_icon[index_report] == data_icon.Dog) { |
|
|
output_icon[index_report] = data_icon.Dog_in_red; |
|
|
} |
|
|
else if (initial_icon[index_report] == data_icon.Face) { |
|
|
output_icon[index_report] = data_icon.Face_in_red; |
|
|
} |
|
|
else if (initial_icon[index_report] == data_icon.Helmet) { |
|
|
output_icon[index_report] = data_icon.Helmet_in_red; |
|
|
} |
|
|
else if (initial_icon[index_report] == data_icon.Vest) { |
|
|
output_icon[index_report] = data_icon.Vest_in_red; |
|
|
} |
|
|
else if (initial_icon[index_report] == data_icon.Boat) { |
|
|
output_icon[index_report] = data_icon.Boat_in_red; |
|
|
} |
|
|
|
|
|
heatmap_max = $('#heatmap_max').val(); |
|
|
|
|
|
if ($('#enable_heatmap').is(":checked")) { |
|
|
enable_heatmap = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_heatmap = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_counter_snap').is(":checked")) { |
|
|
enable_counter_snap = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_counter_snap = "No"; |
|
|
} |
|
|
|
|
|
heatmap_frequency = $('#heatmap_frequency').val(); |
|
|
lpr_title = $('#lpr_title').val(); |
|
|
|
|
|
|
|
|
//if ($('#ENABLE_OBJ_ONCE_TO_POST').is(":checked")) { |
|
|
//enable_obj_once_to_post = "Yes"; |
|
|
//} |
|
|
//else { |
|
|
//enable_obj_once_to_post = "No"; |
|
|
//} |
|
|
|
|
|
if ($('#ENABLE_LOCATION_ONCE_TO_POST').is(":checked")) { |
|
|
enable_location_once_to_post = "Yes"; |
|
|
enable_obj_once_to_post = "Yes"; |
|
|
enable_nvr_once_to_getalarmmotion = "Yes"; |
|
|
enable_8592_once_to_getalarmmotion = "Yes"; |
|
|
document.getElementById("out_bbox_border").style.display = ""; |
|
|
} |
|
|
else { |
|
|
enable_location_once_to_post = "No"; |
|
|
enable_obj_once_to_post = "No"; |
|
|
enable_nvr_once_to_getalarmmotion = "No"; |
|
|
enable_8592_once_to_getalarmmotion = "No"; |
|
|
document.getElementById("out_bbox_border").style.display = "none"; |
|
|
} |
|
|
|
|
|
//if ($('#enable_nvr_once_to_getalarmmotion').is(":checked")) { |
|
|
//enable_nvr_once_to_getalarmmotion = "Yes"; |
|
|
//} |
|
|
//else { |
|
|
//enable_nvr_once_to_getalarmmotion = "No"; |
|
|
//} |
|
|
|
|
|
//if ($('#enable_8592_once_to_getalarmmotion').is(":checked")) { |
|
|
//enable_8592_once_to_getalarmmotion = "Yes"; |
|
|
//} |
|
|
//else { |
|
|
//enable_8592_once_to_getalarmmotion = "No"; |
|
|
//} |
|
|
|
|
|
if ($('#enable_getalarmmotion_snap').is(":checked")) { |
|
|
enable_getalarmmotion_snap = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_getalarmmotion_snap = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_low_cpu_usage').is(":checked")) { |
|
|
enable_low_cpu_usage = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_low_cpu_usage = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_display_OSD').is(":checked")) { |
|
|
enable_display_OSD = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_display_OSD = "No"; |
|
|
} |
|
|
|
|
|
getimage_encoder_id = $('#getimage_encoder_id').val(); |
|
|
getimage_encoder_id_HD = $('#getimage_encoder_id_HD').val(); |
|
|
getnetwork_buffer_id = $('#getnetwork_buffer_id').val(); |
|
|
|
|
|
osd_encoder_id = $('#osd_encoder_id').val(); |
|
|
//osd_font_size = $('#osd_font_size').val(); |
|
|
//osd_outline_lilin = $('#osd_outline_lilin').val(); |
|
|
if ($('#enable_osd_bottom').is(":checked")) { |
|
|
enable_osd_bottom = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_osd_bottom = "No"; |
|
|
} |
|
|
osd_bottom_bg_tran = $('#osd_bottom_bg_tran').val(); |
|
|
osd_bottom_content = $('#osd_bottom_content').val(); |
|
|
sensors_type = $('#sensors_type').val(); |
|
|
|
|
|
if ($('#support_dash').is(":checked")) { |
|
|
support_dash = "Yes"; |
|
|
} |
|
|
else { |
|
|
support_dash = "No"; |
|
|
} |
|
|
|
|
|
if ($('#enable_special_char').is(":checked")) { |
|
|
enable_special_char = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_special_char = "No"; |
|
|
} |
|
|
|
|
|
select_number_of_same_plate_detection = $('#select_number_of_same_plate_detection').val(); |
|
|
select_same_plate_detection_dwell = $('#select_same_plate_detection_dwell').val(); |
|
|
|
|
|
if ($('#enable_sync_external_lpr_db').is(":checked")) { |
|
|
enable_sync_external_lpr_db = "Yes"; |
|
|
} |
|
|
else { |
|
|
enable_sync_external_lpr_db = "No"; |
|
|
} |
|
|
|
|
|
external_lpr_db_IP = $('#external_lpr_db_IP').val(); |
|
|
if (external_lpr_db_IP === "127.0.0.1") { |
|
|
external_lpr_db_IP = "localhost"; |
|
|
} |
|
|
|
|
|
external_lpr_db_port = $('#external_lpr_db_port').val(); |
|
|
external_lpr_db_username = $('#external_lpr_db_username').val(); |
|
|
external_lpr_db_password = $('#external_lpr_db_password').val(); |
|
|
} |
|
|
|
|
|
function func_get_service_data() { |
|
|
|
|
|
$.ajax({ |
|
|
url: '/service?get=all', |
|
|
type: "GET", |
|
|
async: true, |
|
|
|
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function (retdata) { |
|
|
var jsonbuf = JSON.parse(retdata); |
|
|
|
|
|
$('#email_address1').val(jsonbuf["EMAIL_ADDRESS1"]); |
|
|
|
|
|
$('#email_address2').val(jsonbuf["EMAIL_ADDRESS2"]); |
|
|
|
|
|
$('#email_address3').val(jsonbuf["EMAIL_ADDRESS3"]); |
|
|
|
|
|
$('#email_address4').val(jsonbuf["EMAIL_ADDRESS4"]); |
|
|
|
|
|
$('#email_address5').val(jsonbuf["EMAIL_ADDRESS5"]); |
|
|
|
|
|
$('#email_address').val(jsonbuf["EMAIL_ADDRESS"]); |
|
|
|
|
|
$('#smtp_server').val(jsonbuf["SMTP_SERVER"]); |
|
|
|
|
|
if (jsonbuf["SMTP_AUTH_MODE"] == 0) |
|
|
$('#smtp_authentication').val(IDC_STATIC_AUTH_LOGIN); |
|
|
else if (jsonbuf["SMTP_AUTH_MODE"] == 1) |
|
|
$('#smtp_authentication').val(IDC_STATIC_AUTH_SSL); |
|
|
else if (jsonbuf["SMTP_AUTH_MODE"] == 2) |
|
|
$('#smtp_authentication').val(IDC_STATIC_AUTH_TLS); |
|
|
|
|
|
$('#smtp_port').val(jsonbuf["SMTP_PORT"]); |
|
|
|
|
|
if (jsonbuf["SMTP_AUTH"] == 0) |
|
|
$('#authentication').val("OFF"); |
|
|
else if (jsonbuf["SMTP_AUTH"] == 1) |
|
|
$('#authentication').val("ON"); |
|
|
|
|
|
$('#auth_account').val(jsonbuf["AUTH_ACCOUNT"]); |
|
|
|
|
|
|
|
|
}, |
|
|
error: function (retdata) { |
|
|
setTimeout(func_get_service_data(), 3000); |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
function func_sync_service() { |
|
|
|
|
|
$.ajax({ |
|
|
url: '/sync_service', |
|
|
type: "GET", |
|
|
async: true, |
|
|
|
|
|
beforeSend: function (xmlHttp) { |
|
|
xmlHttp.setRequestHeader("If-Modified-Since", "0"); |
|
|
xmlHttp.setRequestHeader("Cache-Control", "no-cache"); |
|
|
//xmlHttp.setRequestHeader("Authorization", "Basic " + btoa("username:password")); |
|
|
}, |
|
|
success: function () { |
|
|
func_get_service_data(); |
|
|
}, |
|
|
error: function () { |
|
|
console.warn(retdata); |
|
|
} |
|
|
}); |
|
|
} |
|
|
|
|
|
function setInputFilter(textbox, inputFilter) { |
|
|
["input", "keydown", "keyup", "mousedown", "mouseup", "select", "contextmenu", "drop"].forEach(function (event) { |
|
|
textbox.addEventListener(event, function () { |
|
|
if (inputFilter(this.value)) { |
|
|
this.oldValue = this.value; |
|
|
this.oldSelectionStart = this.selectionStart; |
|
|
this.oldSelectionEnd = this.selectionEnd; |
|
|
} else if (this.hasOwnProperty("oldValue")) { |
|
|
this.value = this.oldValue; |
|
|
this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd); |
|
|
} else { |
|
|
this.value = ""; |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
|
|
|
localStorage.setItem('setting_success', 'OK'); |
|
|
|
|
|
</script> |
|
|
|
|
|
</body> |
|
|
</html> |