Preparing for the transition to REST API
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
|
||||
<link rel="stylesheet" href="../resources/engine/openlayers/ol.css" type="text/css">
|
||||
|
||||
<!--script src="https://cdn.tailwindcss.com"></script-->
|
||||
<script type="text/javascript" src="../resources/metadata/jquery.js"></script>
|
||||
<script type="text/javascript" src="../resources/metadata/sprintf.js"></script>
|
||||
<script type="text/javascript" src="../resources/metadata/qrcode.js"></script>
|
||||
@ -26,7 +27,7 @@
|
||||
<!--link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script-->
|
||||
|
||||
<script type="text/javascript" src="../translation?v=9"></script>
|
||||
<script type="text/javascript" src="/api/translation/v01/array"></script>
|
||||
<link rel="stylesheet" type="text/css" href="../resources/metadata/dbms/dbms.css?v=14"/>
|
||||
<script type="text/javascript" src="../resources/metadata/dbms/BrowserDetect.js?v=14"></script>
|
||||
<script type="text/javascript" src="../resources/metadata/dbms/tools.js?v=14"></script>
|
||||
@ -40,7 +41,7 @@
|
||||
|
||||
<script type="text/javascript" src="../resources/engine/popup.js?v=14"></script>
|
||||
<script type="text/javascript" src="../resources/engine/index.js?v=21"></script>
|
||||
<script type="text/javascript" src="../resources/engine/user.js?v=14"></script>
|
||||
<script type="text/javascript" src="../resources/engine/user.js?v=16"></script>
|
||||
|
||||
<style>
|
||||
html,
|
||||
@ -144,7 +145,7 @@ select{
|
||||
|
||||
</style>
|
||||
|
||||
<script>
|
||||
<script type="application/javascript">
|
||||
|
||||
if(window.location.host.indexOf('locust.kz')>=0){
|
||||
window.location.href = "https://ccalm.org";
|
||||
@ -354,6 +355,8 @@ function onLoadPage()
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@ -373,6 +376,7 @@ function onLoadPage()
|
||||
<td style="width:80%;padding-left:5px;color: rgb(100, 100, 100);" id="user_name">{{name}} {{patronymic}} {{surname}} (<span>{{ roles.join(', ') }}</span>)</td>
|
||||
<td style="padding-left:5px;" th:text="${Language}">Language</td>
|
||||
<td style="padding-left:5px; width:200px;position: relative;">
|
||||
<!--select id="lang" onchange="setCookie('lng',this.value,365,'/'); location.reload();" style="width: 95%; position: absolute; transform: translate(0%, -52%); z-index: 10000;"-->
|
||||
<select id="lang" onchange="setCookie('lng',this.value,365,'/'); location.reload();" style="width: 95%; position: absolute; transform: translate(0%, -52%); z-index: 10000;">
|
||||
<option value="3">English</option>
|
||||
<option value="1">Russian Русский</option>
|
||||
@ -1412,8 +1416,6 @@ new Calendar({
|
||||
|
||||
<div id="tab_admin" style="position: absolute; width:100px; height:100px; padding:3px; overflow:scroll;">
|
||||
|
||||
<button id="btnChangePassword" class="main" style="width:100%;margin-top:1px;" onclick="g_user.changePassword();" th:text="${Change_login_password}">Change_login_password</button>
|
||||
|
||||
<div id="lblReports" th:text="${Reports}">Reports</div>
|
||||
<button class="main" style="width:100%;margin-top:1px;" onclick="showReportCountries();" th:text="${Filling_forms_by_countries}">Filling_forms_by_countries</button>
|
||||
<button class="main" style="width:100%;margin-top:1px;" onclick="showReportInspectors();" th:text="${Completed_forms_by_tablets}">Completed_forms_by_tablets</button>
|
||||
@ -1654,6 +1656,9 @@ var vectorSourceV = new ol.source.Vector({});
|
||||
var vectorSourceDel = new ol.source.Vector({});
|
||||
var vectorSourceDelV = new ol.source.Vector({});
|
||||
|
||||
var vectorSourceHealth = new ol.source.Vector({});
|
||||
var vectorSourceHealthV = new ol.source.Vector({});
|
||||
|
||||
var vectorSourceArea = new ol.source.Vector({});
|
||||
|
||||
var vectorSourceCheckpoint = new ol.source.Vector({});
|
||||
@ -1759,6 +1764,14 @@ map = new ol.Map({
|
||||
source: vectorSourceDelV,
|
||||
zIndex: 50
|
||||
}),
|
||||
new ol.layer.Vector({
|
||||
source: vectorSourceHealth,
|
||||
zIndex: 100
|
||||
}),
|
||||
new ol.layer.Vector({
|
||||
source: vectorSourceHealthV,
|
||||
zIndex: 50
|
||||
}),
|
||||
new ol.layer.Vector({
|
||||
source: vectorSourceArea,
|
||||
zIndex: 50
|
||||
@ -1884,8 +1897,13 @@ map.on('singleclick', function(evt){ //map.on('click', function(evt){
|
||||
if(feature.userType=="FrmCheckpoint")
|
||||
{
|
||||
let coordinates = feature.getGeometry().getCoordinates();
|
||||
content.innerHTML = '<b>'+trt('Title')+'</b>: '+feature.userTitle+'<br><b>'+trt('Creator')+'</b>: '+feature.userName+'<br><b>'+trt('Radius')+'</b>: '+feature.userRadius+'m.'+'<br><b>'+trt('Want_temperature')+'</b>: '+feature.userTemperature+'°C';
|
||||
content.innerHTML += '<table><tr><td><button class="main" onclick="g_density_larval.callData('+feature.userID+');">'+trt('Hopper_density')+'</button></td><td><button class="main" onclick="g_density_imago.callData('+feature.userID+');">'+trt('Adult_density')+'</button></td></tr></table>';
|
||||
content.innerHTML =
|
||||
'<span style="white-space: nowrap;"><b>' + trt('Title') + '</b>: ' + feature.userTitle + '</span><br>' +
|
||||
'<span style="white-space: nowrap;"><b>' + trt('Creator') + '</b>: ' + feature.userName + '</span><br>' +
|
||||
'<span style="white-space: nowrap;"><b>' + trt('Radius') + '</b>: ' + feature.userRadius + 'm.</span><br>' +
|
||||
'<span style="white-space: nowrap;"><b>' + trt('Want_air_temperature') + '</b>: ' + feature.userTemperature_air + '°C</span><br>' +
|
||||
'<span style="white-space: nowrap;"><b>' + trt('Want_soil_temperature') + '</b>: ' + feature.userTemperature_air + '°C</span>';
|
||||
content.innerHTML += '<table style="width: 100%;border-spacing: 2px; border-collapse: separate;"><tr><td><button class="main" style="width: 100%;" onclick="g_density_larval.callData('+feature.userID+');">'+trt('Hopper_density')+'</button></td><td><button class="main" style="width: 100%;" onclick="g_density_imago.callData('+feature.userID+');">'+trt('Adult_density')+'</button></td></tr></table>';
|
||||
overlay.setPosition(coordinates);
|
||||
}else{
|
||||
overlay.setPosition(undefined);
|
||||
@ -1994,7 +2012,6 @@ window.onresize = function()
|
||||
}
|
||||
onresize();
|
||||
|
||||
|
||||
onLoadPage();
|
||||
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user