diff --git a/public/version2/js/dashboard_pages/accident_points/daily_accidents_create.js b/public/version2/js/dashboard_pages/accident_points/daily_accidents_create.js
index 6c87d10e..bcd8768b 100644
--- a/public/version2/js/dashboard_pages/accident_points/daily_accidents_create.js
+++ b/public/version2/js/dashboard_pages/accident_points/daily_accidents_create.js
@@ -409,7 +409,7 @@ $(document).ready(function () {
add_accident_date = modalAdd.find('#add_accident_date').persianDatepicker({
format: "YYYY/MM/DD",
- minDate: new Date(2019, 03 - 1, 21), // it will set minDate from first of 1401
+ minDate: new Date(2019, 3 - 1, 21), // it will set minDate from first of 1401
autoClose: true,
// initialValue: false,
onSelect: function (unix) {
@@ -431,7 +431,7 @@ $(document).ready(function () {
edit_accident_date = modalEdit.find('#edit_accident_date').persianDatepicker({
format: "YYYY/MM/DD",
- minDate: new Date(2019, 03 - 1, 21), // it will set minDate from first of 1401
+ minDate: new Date(2019, 3 - 1, 21), // it will set minDate from first of 1401
autoClose: true,
initialValue: false,
onSelect: function (unix) {
@@ -544,7 +544,7 @@ $(document).ready(function () {
// fetch accident reasons begin
$.ajax({
- url: "https://rms.rmto.ir/daily_accident/accident_reasons",
+ url: "/daily_accident/accident_reasons",
type: "GET",
cache: false,
async: false,
@@ -566,7 +566,7 @@ $(document).ready(function () {
// fetch accident increase damage reasons begin
$.ajax({
- url: "https://rms.rmto.ir/daily_accident/accident_increase_damage_reasons",
+ url: "/daily_accident/accident_increase_damage_reasons",
type: "GET",
cache: false,
async: false,
@@ -588,7 +588,7 @@ $(document).ready(function () {
// fetch accident participants begin
$.ajax({
- url: "https://rms.rmto.ir/daily_accident/get_participants",
+ url: "/daily_accident/get_participants",
type: "GET",
cache: false,
async: false,
@@ -610,7 +610,7 @@ $(document).ready(function () {
// fetch accident type begin
$.ajax({
- url: "https://rms.rmto.ir/daily_accident/accident_types",
+ url: "/daily_accident/accident_types",
type: "GET",
cache: false,
async: false,
@@ -631,7 +631,7 @@ $(document).ready(function () {
// fetch accident collision type begin
$.ajax({
- url: "https://rms.rmto.ir/daily_accident/get_accident_collision_type",
+ url: "/daily_accident/get_accident_collision_type",
type: "GET",
cache: false,
async: false,
@@ -657,7 +657,7 @@ $(document).ready(function () {
// permissins begin
$.ajax({
- url: "https://rms.rmto.ir/webapi/user/get-permission",
+ url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
@@ -692,7 +692,7 @@ $(document).ready(function () {
$.inArray("add-accident-province", PERMISSIONS) != -1
) {
$.ajax({
- url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray("add-accident", PERMISSIONS) != -1 ? "?type=all" : ""}`,
+ url: `/webapi/getuser/province-perm${$.inArray("add-accident", PERMISSIONS) != -1 ? "?type=all" : ""}`,
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -720,7 +720,7 @@ $(document).ready(function () {
}
$.ajax({
- url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray("edit-accident", PERMISSIONS) != -1 ? "?type=all" : ""}`,
+ url: `/webapi/getuser/province-perm${$.inArray("edit-accident", PERMISSIONS) != -1 ? "?type=all" : ""}`,
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -747,7 +747,7 @@ $(document).ready(function () {
});
$.ajax({
- url: `https://rms.rmto.ir/webapi/getuser/province-perm?type=all`,
+ url: `/webapi/getuser/province-perm?type=all`,
type: "GET",
beforeSend: function () {
showLoaderScreen();
@@ -816,7 +816,7 @@ $(document).ready(function () {
processing: true,
select: true,
ajax: {
- url: "https://rms.rmto.ir/daily_accident/show",
+ url: "/daily_accident/show",
type: "GET",
dataSrc: function (json) {
@@ -1067,7 +1067,7 @@ $(document).ready(function () {
className: "static-btn-cta",
text: '
-  |
-  |
@@ -901,7 +901,7 @@ function showBodyFast(data) {
var bodycol = "";
for (var i = 0; i < data.length; i++) {
- bodycol += ` | `;
diff --git a/public/version2/js/dashboard_pages/fast_react/by_table_report.js b/public/version2/js/dashboard_pages/fast_react/by_table_report.js
index 1e9bf4ab..6cc1f184 100644
--- a/public/version2/js/dashboard_pages/fast_react/by_table_report.js
+++ b/public/version2/js/dashboard_pages/fast_react/by_table_report.js
@@ -22,7 +22,7 @@ $(document).ready(function () {
initialValueType: "persian",
});
- let reqUrl = "https://rms.rmto.ir/public/contents/provinces";
+ let reqUrl = "/public/contents/provinces";
$.ajax({
url: reqUrl,
@@ -112,10 +112,10 @@ $(document).ready(function () {
},
});
- // $.getScript('https://rms.rmto.ir/version2/js/dashboard_pages/road_observations/test.js');
+ // $.getScript('/version2/js/dashboard_pages/road_observations/test.js');
$.ajax({
- url: "https://rms.rmto.ir/webapi/user/get-permission",
+ url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
@@ -171,7 +171,7 @@ $("#sorttestitems").on("click", function() {
$("#gozarehtowntable")
.DataTable()
.ajax.url(
- "https://rms.rmto.ir/v2/road_observations/report/report_table" +
+ "/v2/road_observations/report/report_table" +
"?from_date=" +
date_from +
"&date_to=" +
@@ -219,7 +219,7 @@ function rendertable(PROVINCES) {
processing: true,
select: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_observations/report/report_table",
+ url: "/v2/road_observations/report/report_table",
type: "GET",
dataSrc: function (json) {
// let temp = []
@@ -533,7 +533,7 @@ function rendertable(PROVINCES) {
queryParems.push(`toDate=${date_to}`);
// }
// if (province != 0) queryParems.push(`province_id=${province}`);
- const url = `https://rms.rmto.ir/v2/road_observations/report/report${queryParems.length != 0 ? `?${queryParems.join("&")}` : ""}`;
+ const url = `/v2/road_observations/report/report${queryParems.length != 0 ? `?${queryParems.join("&")}` : ""}`;
window.open(url, "_blank");
},
},
diff --git a/public/version2/js/dashboard_pages/fast_react/operation_cartable.js b/public/version2/js/dashboard_pages/fast_react/operation_cartable.js
index 35674ebd..270db7d4 100644
--- a/public/version2/js/dashboard_pages/fast_react/operation_cartable.js
+++ b/public/version2/js/dashboard_pages/fast_react/operation_cartable.js
@@ -2,11 +2,11 @@
var operationCartable;
var operationCartable_url = "/v2/road_observations/operator/cartable/show";
const MAP_ENDPOINT = "https://rmsmap.rmto.ir";
-var provinces_api = "https://rms.rmto.ir/webapi/getuser/province-perm";
-var permission_api = "https://rms.rmto.ir/webapi/user/get-permission";
+var provinces_api = "/webapi/getuser/province-perm";
+var permission_api = "/webapi/user/get-permission";
var update_api = "/v2/road_observations/handle/"
var items_api = "/v2/items";
-var excel_api = 'https://rms.rmto.ir/v2/road_observations/operator/cartable/report';
+var excel_api = '/v2/road_observations/operator/cartable/report';
var markers = [];
var markersLayer;
var editMap = null;
diff --git a/public/version2/js/dashboard_pages/fast_react/pending.js b/public/version2/js/dashboard_pages/fast_react/pending.js
index 6231396c..35bb535f 100644
--- a/public/version2/js/dashboard_pages/fast_react/pending.js
+++ b/public/version2/js/dashboard_pages/fast_react/pending.js
@@ -970,7 +970,7 @@ function pendingTableFunc() {
queryParems.push(`toDate=${currentDate.to}`);
}
if (province != 0) queryParems.push(`province_id=${province}`);
- const url = `https://rms.rmto.ir/v2/road_observations/report/pending${queryParems.length != 0 ? `?${queryParems.join("&")}` : ""}`;
+ const url = `/v2/road_observations/report/pending${queryParems.length != 0 ? `?${queryParems.join("&")}` : ""}`;
window.open(url, "_blank");
},
},
@@ -979,7 +979,7 @@ function pendingTableFunc() {
className: "d-md-none mx-2",
text: '',
action: function (e, dt, node, config) {
- window.location = 'https://rms.rmto.ir/v2'
+ window.location = '/v2'
},
},
// className: "done-table-btn mx-2",
diff --git a/public/version2/js/dashboard_pages/fast_react/supervise_cartable.js b/public/version2/js/dashboard_pages/fast_react/supervise_cartable.js
index 8ab63c3d..efe7a715 100644
--- a/public/version2/js/dashboard_pages/fast_react/supervise_cartable.js
+++ b/public/version2/js/dashboard_pages/fast_react/supervise_cartable.js
@@ -3,11 +3,11 @@ var supervisorCartable;
var supervisorCartable_url = "/v2/road_observations/supervisor/cartable/show";
var verify_api = "/v2/road_observations/supervisor/cartable/verify/";
var items_api = "/v2/items";
-var provinces_api = "https://rms.rmto.ir/webapi/getuser/province-perm";
-var edarat_api = "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/";
-var permission_api = "https://rms.rmto.ir/webapi/user/get-permission";
+var provinces_api = "/webapi/getuser/province-perm";
+var edarat_api = "/public/contents/edarate_shahri_by_province/";
+var permission_api = "/webapi/user/get-permission";
const MAP_ENDPOINT = "https://rmsmap.rmto.ir";
-var excel_api = "https://rms.rmto.ir/v2/road_observations/supervisor/cartable/report";
+var excel_api = "/v2/road_observations/supervisor/cartable/report";
var markers = [];
var markersLayer;
var mapZoom = getWidth() < 508 ? 5 : 6;
diff --git a/public/version2/js/dashboard_pages/map.js b/public/version2/js/dashboard_pages/map.js
index feae6e40..b3ff96c6 100644
--- a/public/version2/js/dashboard_pages/map.js
+++ b/public/version2/js/dashboard_pages/map.js
@@ -1,20 +1,20 @@
//variables
-const get_rahdari_projects_by_filter_api = "https://rms.rmto.ir/v2/contract/report/map";
-const get_road_items_by_filter_api = "https://rms.rmto.ir/api/get-items-on-map";
-const get_road_patrols_by_filter_api = "https://rms.rmto.ir/v2/road_patrols/report/map";
-const get_safety_and_privacy_by_filter_api = "https://rms.rmto.ir/v2/safety_and_privacy/report/map";
-const get_road_observations_by_filter_api = "https://rms.rmto.ir/public/homeprojects/fast/points";
-const get_rahdari_projects_by_id = "https://rms.rmto.ir/v2/rahdari_projects/project/";
-const get_road_items_by_id = "https://rms.rmto.ir/public/projects/road-items/";
-const get_road_patrols_by_id = "https://rms.rmto.ir/v2/road_patrols/report/";
-const get_safety_and_privacy_by_id = "https://rms.rmto.ir/v2/safety_and_privacy/";
-const get_road_observations_by_id = "https://rms.rmto.ir/v2/road_observations/";
-const provinces_api = "https://rms.rmto.ir/webapi/getuser/province-perm?type=all";
-const edarat_api = "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/";
-const road_items_items_api = "https://rms.rmto.ir/v2/items";
-const road_items_subitems_api = "https://rms.rmto.ir/v2/sub_items/";
-const safety_and_privacy_subitems_api = "https://rms.rmto.ir/v2/safety_and_privacy/sub_item_list";
-const unserializeJudiciaryDocument_url = "https://rms.rmto.ir/v2/safety_and_privacy/operator/cartable/unserialize/judiciary_document/";
+const get_rahdari_projects_by_filter_api = "/v2/contract/report/map";
+const get_road_items_by_filter_api = "/api/get-items-on-map";
+const get_road_patrols_by_filter_api = "/v2/road_patrols/report/map";
+const get_safety_and_privacy_by_filter_api = "/v2/safety_and_privacy/report/map";
+const get_road_observations_by_filter_api = "/public/homeprojects/fast/points";
+const get_rahdari_projects_by_id = "/v2/rahdari_projects/project/";
+const get_road_items_by_id = "/public/projects/road-items/";
+const get_road_patrols_by_id = "/v2/road_patrols/report/";
+const get_safety_and_privacy_by_id = "/v2/safety_and_privacy/";
+const get_road_observations_by_id = "/v2/road_observations/";
+const provinces_api = "/webapi/getuser/province-perm?type=all";
+const edarat_api = "/public/contents/edarate_shahri_by_province/";
+const road_items_items_api = "/v2/items";
+const road_items_subitems_api = "/v2/sub_items/";
+const safety_and_privacy_subitems_api = "/v2/safety_and_privacy/sub_item_list";
+const unserializeJudiciaryDocument_url = "/v2/safety_and_privacy/operator/cartable/unserialize/judiciary_document/";
let FILTERQUERY = {}
let TYPE;
MINZOOM = 5;
@@ -998,7 +998,7 @@ const roadPatrolsCreateMarkers = (data) => {
const plaque = result.officer_plaque.split("-");
modal.find('#modal_details_officer_plaque').html(`${plaque[0]}
${plaque[1] == "*" ? '' : plaque[1]}
${plaque[2]}
-
ایران
${plaque[3]}
`)
modal.find('#modal_details_distance').text(`${result.distance} کیلومتر`)
- modal.find('#modal_detail_report_link').attr('href',`https://rms.rmto.ir/v2/road_patrols/operator/report/${data[i].id}`)
+ modal.find('#modal_detail_report_link').attr('href',`/v2/road_patrols/operator/report/${data[i].id}`)
modal.modal('show')
hideLoaderScreen()
},
@@ -1186,10 +1186,10 @@ const RoadObservationsCreateMarkers = (data) => {
if (result.data.image_before || result.data.image_after) {
modal.find('#modal_details_images').addClass('d-flex')
modal.find('#modal_details_images').removeClass('d-none')
- modal.find('#modal_details_image_before').attr('href', 'https://rms.rmto.ir/' + result.data.image_before)
- modal.find('#modal_details_image_before_img').attr('src', 'https://rms.rmto.ir/' + result.data.image_before)
- modal.find('#modal_details_image_after').attr('href', 'https://rms.rmto.ir/' + result.data.image_after)
- modal.find('#modal_details_image_after_img').attr('src', 'https://rms.rmto.ir/' + result.data.image_after)
+ modal.find('#modal_details_image_before').attr('href', '/' + result.data.image_before)
+ modal.find('#modal_details_image_before_img').attr('src', '/' + result.data.image_before)
+ modal.find('#modal_details_image_after').attr('href', '/' + result.data.image_after)
+ modal.find('#modal_details_image_after_img').attr('src', '/' + result.data.image_after)
}
modal.modal('show')
hideLoaderScreen()
diff --git a/public/version2/js/dashboard_pages/rahdari_points/create.js b/public/version2/js/dashboard_pages/rahdari_points/create.js
index e531df3e..98096516 100644
--- a/public/version2/js/dashboard_pages/rahdari_points/create.js
+++ b/public/version2/js/dashboard_pages/rahdari_points/create.js
@@ -284,7 +284,7 @@ $(document).bind('click', function (e) {
$(document).ready(function () {
$.ajax({
- url: "https://rms.rmto.ir/webapi/user/get-permission",
+ url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
@@ -387,7 +387,7 @@ $(document).ready(function () {
select: true,
destroy: true,
ajax: {
- url: "https://rms.rmto.ir/rahdari-points",
+ url: "/rahdari-points",
type: "GET",
dataSrc: function (json) {
@@ -702,7 +702,7 @@ $("#example").on("click", "button.rahdari-control", function () {
$("#lat-rahdar").val(lat);
$("#lng-rahdar").val(lng);
for (i = 0; i < row.data().files.length; i++) {
- $("#rahdaredit #deviceImg" + (i + 1) + "Preview").attr("src", "https://rms.rmto.ir/storage/" + row.data().files[i].path);
+ $("#rahdaredit #deviceImg" + (i + 1) + "Preview").attr("src", "/storage/" + row.data().files[i].path);
}
if (document.getElementById("deviceImg1Preview").hasAttribute('src')) {
@@ -1025,11 +1025,11 @@ function showModalRahdari(id) {
$("#rahdaredit").modal("show");
}
$("#submitNewRow").on("click", function () {
- let url = "https://rms.rmto.ir/rahdari/road-maintenance-project/create";
+ let url = "/rahdari/road-maintenance-project/create";
if (edit) {
url =
- "https://rms.rmto.ir/rahdari/road-maintenance-project/" +
+ "/rahdari/road-maintenance-project/" +
idEdit +
"/edit";
}
@@ -1423,7 +1423,7 @@ $("#submitNewRow").on("click", function () {
function ajaxcalltable() {
$.ajax({
- url: "https://rms.rmto.ir/rahdari/road-maintenance-project/getlist",
+ url: "/rahdari/road-maintenance-project/getlist",
type: "GET",
success: function (result) {
// console.log(result.data[0]);
@@ -1459,35 +1459,35 @@ function restrictInputOtherThanArabic($field) {
$("#approveprojecttype").on("click", function () {
if ($("#roadmaintanace").is(":checked")) {
- window.open("https://rms.rmto.ir/road-maintenance-project");
+ window.open("/road-maintenance-project");
} else if ($("#reviewdangerpoint").is(":checked")) {
- window.open("https://rms.rmto.ir/road-danger-prevention");
+ window.open("/road-danger-prevention");
} else if ($("#improveroad").is(":checked")) {
- window.open("https://rms.rmto.ir/road-upgrade-safety");
+ window.open("/road-upgrade-safety");
} else if ($("#faniproject").is(":checked")) {
- window.open("https://rms.rmto.ir/road-technical-building");
+ window.open("/road-technical-building");
} else if ($("#rahdarkhane").is(":checked")) {
- window.open("https://rms.rmto.ir/road-tollhouse-management");
+ window.open("/road-tollhouse-management");
} else if ($("#projectbuild").is(":checked")) {
- window.open("https://rms.rmto.ir/road-construction-rural");
+ window.open("/road-construction-rural");
}
$("#stepModalprojecttype").modal("hide");
});
function showprojecttest(index) {
if (index == 1) {
- window.open("https://rms.rmto.ir/road-maintenance-project");
+ window.open("/road-maintenance-project");
// to do next page
} else if (index == 2) {
- window.open("https://rms.rmto.ir/road-danger-prevention");
+ window.open("/road-danger-prevention");
} else if (index == 3) {
- window.open("https://rms.rmto.ir/road-upgrade-safety");
+ window.open("/road-upgrade-safety");
} else if (index == 4) {
- window.open("https://rms.rmto.ir/road-technical-building");
+ window.open("/road-technical-building");
} else if (index == 5) {
- window.open("https://rms.rmto.ir/road-tollhouse-management");
+ window.open("/road-tollhouse-management");
} else if (index == 6) {
- window.open("https://rms.rmto.ir/road-construction-rural");
+ window.open("/road-construction-rural");
}
}
$("#addrahdar").on("click", function () {
@@ -1695,7 +1695,7 @@ $("#addrahdar").on("click", function () {
$.ajax({
- url: "https://rms.rmto.ir/rahdari-points/create",
+ url: "/rahdari-points/create",
type: "POST",
data: formDatadd,
headers: {
@@ -1914,7 +1914,7 @@ $("#editrahdar").on("click", function () {
}
$.ajax({
- url: "https://rms.rmto.ir/rahdari-points/" + idEdit,
+ url: "/rahdari-points/" + idEdit,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1925,7 +1925,7 @@ $("#editrahdar").on("click", function () {
processData: false,
success: function (result) {
$.ajax({
- url: "https://rms.rmto.ir/rahdari-points",
+ url: "/rahdari-points",
type: "GET",
success: function (result) {
// console.log(result.data[0]);
@@ -2034,7 +2034,7 @@ function checkPersianWordValidation(str) {
}
function getProvincesFilter() {
- let reqUrl = "https://rms.rmto.ir/public/contents/provinces";
+ let reqUrl = "/public/contents/provinces";
// showLoaderScreen();
$.ajax({
url: reqUrl,
@@ -2063,7 +2063,7 @@ function getProvincesFilter() {
function getProvincesAdd() {
/// [start] tollhouse_add_province_url
- let reqUrl = `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('add-tollhouse', PERMISSIONS) != -1 ? '?type=all' : ''}`
+ let reqUrl = `/webapi/getuser/province-perm${$.inArray('add-tollhouse', PERMISSIONS) != -1 ? '?type=all' : ''}`
/// [end] tollhouse_add_province_url
// showLoaderScreen();
@@ -2095,7 +2095,7 @@ function getProvincesAdd() {
function getProvincesEdit() {
/// [start] tollhouse_edit_tollhouse_url
- let reqUrl = `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('edit-tollhouse', PERMISSIONS) != -1 ? '?type=all' : ''}`
+ let reqUrl = `/webapi/getuser/province-perm${$.inArray('edit-tollhouse', PERMISSIONS) != -1 ? '?type=all' : ''}`
/// [end] tollhouse_edit_ptollhouse_url
// showLoaderScreen();
@@ -2126,7 +2126,7 @@ function getProvincesEdit() {
}
function getTowns(id, val) {
- let reqUrl = "https://rms.rmto.ir/public/contents/provinces/" + id;
+ let reqUrl = "/public/contents/provinces/" + id;
showLoaderScreen();
$.ajax({
url: reqUrl,
@@ -2147,7 +2147,7 @@ function getTowns(id, val) {
}
function getTowns2(id, val) {
- let reqUrl = "https://rms.rmto.ir/public/contents/provinces/" + id;
+ let reqUrl = "/public/contents/provinces/" + id;
showLoaderScreen();
$.ajax({
url: reqUrl,
@@ -2335,7 +2335,7 @@ $(document).on('click', '.btn-show-img-subitem', function () {
var tr = $(this).closest("tr");
var row = table.row(tr);
for (i = 0; i < row.data().files.length; i++) {
- $('#imgSubItem' + (i + 1)).attr('src', 'https://rms.rmto.ir/storage/' + row.data().files[i].path);
+ $('#imgSubItem' + (i + 1)).attr('src', '/storage/' + row.data().files[i].path);
}
$('#subItemImgModal').modal('show')
@@ -2358,7 +2358,7 @@ $("#example").on("click", "button.deletsubmit", function () {
showLoaderOnConfirm: true,
preConfirm: () => {
$.ajax({
- url: "https://rms.rmto.ir/rahdari-points/" + idkol + "/delete",
+ url: "/rahdari-points/" + idkol + "/delete",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -2407,7 +2407,7 @@ $("#btn_filter_show").on("click", function () {
queryParems.push(`type=${typearray}`)
}
- const url = `https://rms.rmto.ir/rahdari-points${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
+ const url = `/rahdari-points${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
$.ajax({
url: url,
diff --git a/public/version2/js/dashboard_pages/receipt/list.js b/public/version2/js/dashboard_pages/receipt/list.js
index 984126c0..a970a350 100644
--- a/public/version2/js/dashboard_pages/receipt/list.js
+++ b/public/version2/js/dashboard_pages/receipt/list.js
@@ -26,24 +26,24 @@ var filter_date_from;
// end date/time picker variable
// api list
-var damage_api = "https://rms.rmto.ir/v2/receipt/get-damages";
-var permissions_api = "https://rms.rmto.ir/webapi/user/get-permission";
-var province_api = "https://rms.rmto.ir/webapi/getuser/province-perm";
-var receipt_show = "https://rms.rmto.ir/v2/receipt/show";
-var receipt_add_api = "https://rms.rmto.ir/v2/receipt/store";
-var receipt_edit_api = "https://rms.rmto.ir/v2/receipt/update/";
-var receipt_delete_api = "https://rms.rmto.ir/v2/receipt/delete/";
+var damage_api = "/v2/receipt/get-damages";
+var permissions_api = "/webapi/user/get-permission";
+var province_api = "/webapi/getuser/province-perm";
+var receipt_show = "/v2/receipt/show";
+var receipt_add_api = "/v2/receipt/store";
+var receipt_edit_api = "/v2/receipt/update/";
+var receipt_delete_api = "/v2/receipt/delete/";
var mapUrl = "https://rmsmap.rmto.ir/141map/";
-var city_api = "https://rms.rmto.ir/public/contents/provinces/";
-var accident_type_api = "https://rms.rmto.ir/daily_accident/accident_types";
-var payment_info_api = "https://rms.rmto.ir/v2/receipt/upload-payment-info/";
-var get_all_info_api = "https://rms.rmto.ir/v2/receipt/";
-var sendToInsurance = "https://rms.rmto.ir/v2/receipt/send-to-insurance/";
-var sendToDaghi = "https://rms.rmto.ir/v2/receipt/send-to-daghi/";
-var documentRelease = "https://rms.rmto.ir/v2/receipt/document-release/";
-var invoice_bill_api = "https://rms.rmto.ir/v2/receipt/invoice-bill/";
-var send_sms_again = "https://rms.rmto.ir/v2/receipt/send-sms-again/";
-var call_payment_status_api = "https://rms.rmto.ir/v2/receipt/call-payment-status/";
+var city_api = "/public/contents/provinces/";
+var accident_type_api = "/daily_accident/accident_types";
+var payment_info_api = "/v2/receipt/upload-payment-info/";
+var get_all_info_api = "/v2/receipt/";
+var sendToInsurance = "/v2/receipt/send-to-insurance/";
+var sendToDaghi = "/v2/receipt/send-to-daghi/";
+var documentRelease = "/v2/receipt/document-release/";
+var invoice_bill_api = "/v2/receipt/invoice-bill/";
+var send_sms_again = "/v2/receipt/send-sms-again/";
+var call_payment_status_api = "/v2/receipt/call-payment-status/";
// end api list
@@ -988,13 +988,13 @@ $(document).ready(function () {
render: function (data, type, row) {
let content = ``;
if (data.damage_picture2 == null && data.damage_picture1 != null) {
- content += `

`
+ content += `

`
} else if (data.damage_picture1 == null && data.damage_picture2 != null) {
- content += `

`
+ content += `

`
} else if (data.damage_picture1 == null && data.damage_picture2 == null) {
content += `عکسی موجود نمی باشد`
} else {
- content += `


`
+ content += `


`
}
content += `
`;
return content;
@@ -1267,13 +1267,13 @@ $(document).on("click", ".btn-edit-receipt", function () {
modal.find("#plaque_number_edit3").val(plaque_value[3]);
if (data.damage_picture1 != null) {
- modal.find("#deviceImg1Preview_edit").attr("src", "https://rms.rmto.ir/storage/" + data.damage_picture1);
+ modal.find("#deviceImg1Preview_edit").attr("src", "/storage/" + data.damage_picture1);
modal.find("#deviceImg1Title_edit").css("display", "none");
modal.find("#deviceImg1Preview_edit").css("display", "");
modal.find("#deleteDeviceImg1_edit").prop("disabled", false);
}
if (data.damage_picture2 != null) {
- modal.find("#deviceImg2Preview_edit").attr("src", "https://rms.rmto.ir/storage/" + data.damage_picture2);
+ modal.find("#deviceImg2Preview_edit").attr("src", "/storage/" + data.damage_picture2);
modal.find("#deviceImg2Title_edit").css("display", "none");
modal.find("#deviceImg2Preview_edit").css("display", "");
modal.find("#deleteDeviceImg2_edit").prop("disabled", false);
@@ -1297,7 +1297,7 @@ $(document).on("click", ".btn-edit-receipt", function () {
let perv_file = modal.find("#download_perv_file");
if (data.police_file != null) {
perv_file.find("button").prop("disabled", false);
- perv_file.attr("href", `https://rms.rmto.ir/storage/${data.police_file}`);
+ perv_file.attr("href", `/storage/${data.police_file}`);
} else {
perv_file.find("button").prop("disabled", true);
perv_file.removeAttr("href");
@@ -2014,7 +2014,7 @@ $(document).on("click", ".btn-insurance-receipt", function () {
if (data.deposit_insurance_image) {
modal.find("input[name='deposit_redio_insurance'][value='1']").prop('checked', true);
modal.find("#deposit_slip_insurance").val("").removeAttr("disabled");
- modal.find("#deposit_slip_insurancePreview").attr("src", `https://rms.rmto.ir/storage/${data.deposit_insurance_image}`);
+ modal.find("#deposit_slip_insurancePreview").attr("src", `/storage/${data.deposit_insurance_image}`);
modal.find("#deposit_slip_insurancePreview").css("display", "");
modal.find("#deposit_slip_insuranceTitle").css("display", "none");
modal.find('#deposit_slip_insurance_amount').removeAttr("disabled").val(data.deposit_insurance_amount)
@@ -2022,7 +2022,7 @@ $(document).on("click", ".btn-insurance-receipt", function () {
if (data.deposit_daghi_amount) {
modal.find("input[name='deposit_redio_daghi'][value='1']").prop('checked', true);
modal.find("#deposit_slip_daghi").val("").removeAttr("disabled");
- modal.find("#deposit_slip_daghiPreview").attr("src", `https://rms.rmto.ir/storage/${data.deposit_daghi_image}`);
+ modal.find("#deposit_slip_daghiPreview").attr("src", `/storage/${data.deposit_daghi_image}`);
modal.find("#deposit_slip_daghiPreview").css("display", "");
modal.find("#deposit_slip_daghiTitle").css("display", "none");
modal.find('#deposit_slip_daghi_amount').removeAttr("disabled").val(data.deposit_daghi_amount)
@@ -2426,23 +2426,23 @@ $(document).on("click", ".btn-all-data-show", function () {
modal.find("#axis_name_all").text(results.axis_name);
modal.find("#status_all").text(results.status_fa);
results.police_serial != null ? modal.find("#police_serial_all").text(results.police_serial) : modal.find("#police_serial_all").text("-")
- results.police_file != null ? modal.find("#police_file_all").attr("href", `https://rms.rmto.ir/storage/${results.police_file}`) : modal.find("#police_file_all button").prop("disabled", true);
+ results.police_file != null ? modal.find("#police_file_all").attr("href", `/storage/${results.police_file}`) : modal.find("#police_file_all button").prop("disabled", true);
- results.damage_picture1 != null ? modal.find(".img-box-1").append(`
`) : modal.find(".img-box-1").append(`تصویری آپلود نشده است`);
- results.damage_picture2 != null ? modal.find(".img-box-2").append(`
`) : modal.find(".img-box-2").append(`تصویری آپلود نشده است`);
+ results.damage_picture1 != null ? modal.find(".img-box-1").append(`
`) : modal.find(".img-box-1").append(`تصویری آپلود نشده است`);
+ results.damage_picture2 != null ? modal.find(".img-box-2").append(`
`) : modal.find(".img-box-2").append(`تصویری آپلود نشده است`);
- results.deposit_insurance_image != null ? modal.find(".img-box-deposit-insurance").append(`
`) : "تصویری آپلود نشده است";
+ results.deposit_insurance_image != null ? modal.find(".img-box-deposit-insurance").append(`
`) : "تصویری آپلود نشده است";
results.deposit_insurance_image != null ? modal.find(".amount-box-deposit-insurance").html(`سهم بیمه : ${Number(results.deposit_insurance_amount).toLocaleString("en")} ریال
`) : modal.find(".amount-box-deposit-insurance").html(`سهم بیمه : ${Number(0).toLocaleString("en")} ریال
`);
- results.deposit_daghi_image != null ? modal.find(".img-box-deposit-daghi").append(`
`) : "تصویری آپلود نشده است";
+ results.deposit_daghi_image != null ? modal.find(".img-box-deposit-daghi").append(`
`) : "تصویری آپلود نشده است";
results.deposit_daghi_image != null ? modal.find(".amount-box-deposit-daghi").html(`سهم داغی : ${Number(results.deposit_daghi_amount).toLocaleString("en")} ریال
`) : modal.find(".amount-box-deposit-daghi").html(`سهم داغی : ${Number(0).toLocaleString("en")} ریال
`);
@@ -2534,7 +2534,7 @@ $("#btn_excel-download").on("click", function () {
}
}
if (province != 0) queryParems.push(`province=${province}`);
- const url = `https://rms.rmto.ir/reports/receipt${queryParems.length != 0 ? `?${queryParems.join("&")}` : ""}`;
+ const url = `/reports/receipt${queryParems.length != 0 ? `?${queryParems.join("&")}` : ""}`;
window.open(url, "_blank");
});
diff --git a/public/version2/js/dashboard_pages/road_items/operation_cartable.js b/public/version2/js/dashboard_pages/road_items/operation_cartable.js
index feeda2cb..900d8597 100644
--- a/public/version2/js/dashboard_pages/road_items/operation_cartable.js
+++ b/public/version2/js/dashboard_pages/road_items/operation_cartable.js
@@ -2,8 +2,8 @@
var operationCartable;
var operationCartable_url = "/v2/road_items/operator/cartable/show";
const MAP_ENDPOINT = "https://rmsmap.rmto.ir";
-var permission_api = "https://rms.rmto.ir/webapi/user/get-permission";
-var excel_api = "https://rms.rmto.ir/v2/road_items/operator/cartable/report";
+var permission_api = "/webapi/user/get-permission";
+var excel_api = "/v2/road_items/operator/cartable/report";
var update_api = "/v2/road_items/operator/update/"
var items_api = "/v2/items"
var markers = [];
diff --git a/public/version2/js/dashboard_pages/road_items/reports.js b/public/version2/js/dashboard_pages/road_items/reports.js
index 45de1d2c..24a8b545 100644
--- a/public/version2/js/dashboard_pages/road_items/reports.js
+++ b/public/version2/js/dashboard_pages/road_items/reports.js
@@ -86,7 +86,7 @@ var subprovinceobj
var provincechoose = null;
var gozareshtable;
var zirgozareshtable;
-var root_local = "https://rms.rmto.ir/";
+var root_local = "/";
// var root_local = "http://192.168.1.75/rms_new/public/index.php/";
// function showLoaderScreen() {
@@ -114,7 +114,7 @@ $(document).bind('click', function(e) {
$(document).ready(function() {
$.ajax({
- url: "https://rms.rmto.ir/webapi/user/get-permission",
+ url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
@@ -699,89 +699,6 @@ $(document).ready(function() {
buttons: [],
});
- // var table = $("#example").DataTable({
- // dom: "p>",
- // scrollX: true,
- // responsive: true,
- // pagingType: "simple_numbers",
- // language: {
- // sEmptyTable: "هیچ دادهای در جدول وجود ندارد",
- // sInfo: "نمایش _START_ تا _END_ از _TOTAL_ ردیف",
- // sInfoEmpty: "نمایش 0 تا 0 از 0 ردیف",
- // sInfoFiltered: "(فیلتر شده از _MAX_ ردیف)",
- // sInfoPostFix: "",
- // sInfoThousands: ",",
- // sLengthMenu: "نمایش _MENU_ ردیف",
- // sLoadingRecords: "در حال بارگذاری...",
- // sProcessing: "در حال پردازش...",
- // sSearch: "جستجو: ",
- // sZeroRecords: "رکوردی با این مشخصات پیدا نشد",
- // oPaginate: {
- // sFirst: "برگهی نخست",
- // sLast: "برگهی آخر",
- // sNext: "بعدی",
- // sPrevious: "قبلی",
- // },
- // oAria: {
- // sSortAscending: ": فعال سازی نمایش به صورت صعودی",
- // sSortDescending: ": فعال سازی نمایش به صورت نزولی",
- // },
- // },
- // order: [
- // [0, null],
- // [1, "asc"],
- // [2, "desc"],
- // [3, "desc"],
- // [4, "desc"],
- // [5, "desc"],
- // ],
- // order: [
- // [1, "asc"]
- // ],
- // processing: true,
- // ajax: {
- // url: root_local + "users/provinces-projects-count",
- // type: "GET",
- // dataSrc: function(json) {
- // console.log(json);
- // hideLoaderScreen()
- // totalCounts = json.data.count;
- // return json.data.projects;
- // },
- // },
- // columns: [{
- // data: null,
- // render: function(data, type, row, meta) {
- // return meta.row + 1;
- // },
- // },
- // { data: "province_name" },
- // { data: "roadItemsProjects" },
- // { data: "roadPatrolProjects" },
- // { data: "fastReaction" },
- // { data: "projectsCount" },
- // ],
- // initComplete: function(settings, json) {
- // $("body").find(".dataTables_scrollBody").addClass("scrollbar");
- // },
-
- // buttons: [],
- // footerCallback: function(row, data, start, end, display) {
- // var api = this.api();
-
- // // Update footer
- // $(api.column(0).footer()).html("");
- // $(api.column(1).footer()).html("مجموع");
- // if (totalCounts != null) {
- // $(api.column(2).footer()).html(totalCounts.roadItemsCount);
- // $(api.column(3).footer()).html(totalCounts.roadPatrolCount);
- // $(api.column(4).footer()).html(totalCounts.fastReaction);
- // $(api.column(5).footer()).html(totalCounts.totalCount);
- // }
- // },
- // });
-
- // mohammad edit start
var testItemsTable = $("#exampleTestItems").DataTable({
// dom: "lBfrtip",
dom: "p>",
@@ -818,7 +735,7 @@ $(document).ready(function() {
},
processing: true,
ajax: {
- url: "https://rms.rmto.ir/api/testitems",
+ url: "/api/testitems",
type: "GET",
dataSrc: function(json) {
return json.data;
@@ -8048,7 +7965,7 @@ $("#listitemtable").on("click", "button.editor_remove", function(e) {
showLoaderOnConfirm: true,
preConfirm: () => {
$.ajax({
- url: "https://rms.rmto.ir/users/cities-projects-item/delete",
+ url: "/users/cities-projects-item/delete",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -8076,7 +7993,7 @@ $("#listitemtable").on("click", "button.editor_remove", function(e) {
function ajaxcalltable() {
$.ajax({
- url: "https://rms.rmto.ir/projects/getrirpadmin",
+ url: "/projects/getrirpadmin",
type: "GET",
success: function(result) {
hideLoaderScreen()
@@ -8118,7 +8035,7 @@ $("#sort_date").on("click", function() {
$("#example")
.DataTable()
.ajax.url(
- "https://rms.rmto.ir/users/provinces-projects-count" +
+ "/users/provinces-projects-count" +
"?end-date=" +
endDate +
"&start-date=" +
@@ -8154,7 +8071,7 @@ $("#sortt_date").on("click", function() {
$("#examplee")
.DataTable()
.ajax.url(
- "https://rms.rmto.ir/users/province-cities-projects-count" +
+ "/users/province-cities-projects-count" +
"?province-id=" +
province_id +
"&end-date=" +
@@ -8228,7 +8145,7 @@ $("#sort_dateTestItems").on("click", function() {
$("#exampleTestItems")
.DataTable()
.ajax.url(
- "https://rms.rmto.ir/api/testitems" +
+ "/api/testitems" +
"?end-date=" +
endDate +
"&start-date=" +
@@ -8267,7 +8184,7 @@ $("#submitsubostan").on("click", function() {
showLoaderScreen()
$.ajax({
- url: "https://rms.rmto.ir/projects/getrirpadmin?end-date=" + endDate + "&start-date=" + startDate,
+ url: "/projects/getrirpadmin?end-date=" + endDate + "&start-date=" + startDate,
type: "GET",
success: function(result) {
@@ -8335,7 +8252,7 @@ function plusrow(xid, name) {
function showprovincename() {
// alert("hiii")
- let reqUrl = "https://rms.rmto.ir/public/contents/provinces";
+ let reqUrl = "/public/contents/provinces";
// showLoaderScreen();
$.ajax({
url: reqUrl,
@@ -8572,7 +8489,7 @@ function showtable1(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=1" + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province?item=1" + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
dataSrc: function(json) {
hideLoaderScreen()
@@ -9009,7 +8926,7 @@ function showtable2(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=2" +
+ url: "/v2/road_items/report/total-items-group-province?item=2" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -9594,7 +9511,7 @@ function showtable3(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=3" +
+ url: "/v2/road_items/report/total-items-group-province?item=3" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -9918,7 +9835,7 @@ function showtable4(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=4" +
+ url: "/v2/road_items/report/total-items-group-province?item=4" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -10116,7 +10033,7 @@ function showtable5(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=5" +
+ url: "/v2/road_items/report/total-items-group-province?item=5" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -10508,7 +10425,7 @@ function showtable6(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=6" +
+ url: "/v2/road_items/report/total-items-group-province?item=6" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -10805,7 +10722,7 @@ function showtable7(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=7" +
+ url: "/v2/road_items/report/total-items-group-province?item=7" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -11145,7 +11062,7 @@ function showtable8(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=8" +
+ url: "/v2/road_items/report/total-items-group-province?item=8" +
"&dfrom_date=" +
date_from +
"&date_to=" +
@@ -11441,7 +11358,7 @@ function showtable9(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=9" +
+ url: "/v2/road_items/report/total-items-group-province?item=9" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -11858,7 +11775,7 @@ function showtable10(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=10" +
+ url: "/v2/road_items/report/total-items-group-province?item=10" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -12130,7 +12047,7 @@ function showtable11(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=11" +
+ url: "/v2/road_items/report/total-items-group-province?item=11" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -12427,7 +12344,7 @@ function showtable12(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=12" +
+ url: "/v2/road_items/report/total-items-group-province?item=12" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -12747,7 +12664,7 @@ function showtable13(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=13" +
+ url: "/v2/road_items/report/total-items-group-province?item=13" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -12995,7 +12912,7 @@ function showtable14(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=14" +
+ url: "/v2/road_items/report/total-items-group-province?item=14" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -13290,7 +13207,7 @@ function showtable15(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=10" +
+ url: "/v2/road_items/report/total-items-group-province?item=10" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -13464,7 +13381,7 @@ function showtable16(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=16" +
+ url: "/v2/road_items/report/total-items-group-province?item=16" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -13809,7 +13726,7 @@ function showtable20(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=20" +
+ url: "/v2/road_items/report/total-items-group-province?item=20" +
"&from_date=" +
date_from +
"&date_to=" +
@@ -14389,7 +14306,7 @@ $("#maremat1").on("click", "button.show_table", function() {
var id = tablemaremat.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -14465,7 +14382,7 @@ $("#maremat").on("click", "button.show_table", function() {
//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::Render child table ::::: maxter
//::::::::::::::::::::::::::::::::::::::::::::::::::::Get child table maxter
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -14554,7 +14471,7 @@ $("#paksazi").on("click", "button.show_table", function() {
var id = tablepaksazi.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -14637,7 +14554,7 @@ $("#alaem").on("click", "button.show_table", function() {
var id = tablealaem.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -14698,7 +14615,7 @@ $("#hefaz").on("click", "button.show_table", function() {
var id = tablehefaz.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -14762,7 +14679,7 @@ $("#lighting").on("click", "button.show_table", function() {
var id = tablelighting.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -14824,7 +14741,7 @@ $("#ruler").on("click", "button.show_table", function() {
var id = tableruller.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -14886,7 +14803,7 @@ $("#coloring").on("click", "button.show_table", function() {
var id = tablecoloring.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -14948,7 +14865,7 @@ $("#washed").on("click", "button.show_table", function() {
var id = tablewashing.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -15011,7 +14928,7 @@ $("#saftey").on("click", "button.show_table", function() {
var id = tablesafety.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -15074,7 +14991,7 @@ $("#harim").on("click", "button.show_table", function() {
var id = tableharim.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -15137,7 +15054,7 @@ $("#pol").on("click", "button.show_table", function() {
var id = tablepol.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -15199,7 +15116,7 @@ $("#tunnelGaleri").on("click", "button.show_table", function() {
var id = tabletunnel.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -15260,7 +15177,7 @@ $("#zemestanii").on("click", "button.show_table", function() {
var id = tablezem.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -15324,7 +15241,7 @@ $("#mashinAlat").on("click", "button.show_table", function() {
var id = tablemachin.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -15387,7 +15304,7 @@ $("#tollhouse").on("click", "button.show_table", function() {
var id = tablerahdar.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -15447,7 +15364,7 @@ $("#emer").on("click", "button.show_table", function() {
var id = tableemer.row(tr).data().id;
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + id,
+ url: "/public/contents/edarate_shahri_by_province/" + id,
success: function(result) {
objectsendtown = [];
@@ -15551,7 +15468,7 @@ function showtabletownmaremat(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=1&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=1&province_id=" + num,
type: "GET",
dataSrc: function(json) {
for (var j = 0; j < objectsendtown.length; j++) {
@@ -15973,7 +15890,7 @@ function showtabletownpaksazi(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=2&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=2&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -16537,7 +16454,7 @@ function showtabletownalaemmm(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=3&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=3&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -16838,7 +16755,7 @@ function showtabletownheafz(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=4&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=4&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -17047,7 +16964,7 @@ function showtabletownlighting(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=5&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=5&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -17422,7 +17339,7 @@ function showtabletownruller(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=6&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=6&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -17696,7 +17613,7 @@ function showtabletowncoloring(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=7&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=7&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -18019,7 +17936,7 @@ function showtabletownwashing(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=8&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=8&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -18296,7 +18213,7 @@ function showtabletownsafteyy(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=9&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=9&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -18692,7 +18609,7 @@ function showtabletownharimm(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=10&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=10&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -18943,7 +18860,7 @@ function showtabletownpoll(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=11&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=11&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -19217,7 +19134,7 @@ function showtabletowntunel(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=12&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=12&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -19515,7 +19432,7 @@ function showtabletownzemestani(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=13&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=13&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -19717,7 +19634,7 @@ function showtabletownmashinAlat(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=14&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=14&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -19991,7 +19908,7 @@ function showtabletowntollhouse(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=15&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=15&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -20144,7 +20061,7 @@ function showtabletownemer(num) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=16&province_id=" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=16&province_id=" + num,
type: "GET",
dataSrc: function(json) {
@@ -25377,17 +25294,17 @@ function showitemlist() {
if (data.type == "فعالیت روزانه و جاری راهداری") {
if (data.can_delete == 1) {
return (
- ' '
);
} else
return (
- ' '
);
@@ -25473,7 +25390,7 @@ function gozarehtowntable(probj) {
],
processing: true,
ajax: {
- url: "https://rms.rmto.ir/v2/road_items/report/total-group-province",
+ url: "/v2/road_items/report/total-group-province",
type: "GET",
dataSrc: function(json) {
console.log(json);
@@ -25805,7 +25722,7 @@ function gozarehtowntable(probj) {
function format(row, num) {
showLoaderScreen()
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=1&province_id" + num,
+ url: "/v2/road_items/report/total-items-group-province-city?item=1&province_id" + num,
type: "GET",
cache: false,
contentType: false,
@@ -25825,2377 +25742,6 @@ function showtablerizzz(res, row) {
row.child(format(row.data("hiiii
"))).show();
}
-// // $("#gozarehtowntable").on("click", "td.details-control", function(e) {
-// // var tr = $(this).closest('tr');
-
-// // var row = gozareshtable.row(tr);
-// // var provinceid = row.data().id;
-// // if (provinceid != -1) {
-// // if (row.child.isShown()) {
-// // row.child.hide();
-// // tr.removeClass('shown');
-// // } else {
-// // showLoaderScreen()
-// // if (sorttestitemsflag == 1) {
-// // console.log("hey here");
-// // if (
-// // $("#fromDateshowrizitem").val() != " " &&
-// // $("#toDateshowrizitem").val() != " "
-// // ) {
-// // // alert("hihiihiijijjjk")
-// // let date_from = moment(
-// // fromDateshowrizitem.getState().selected.year +
-// // "/" +
-// // fromDateshowrizitem.getState().selected.month +
-// // "/" +
-// // fromDateshowrizitem.getState().selected.date,
-// // "jYYYY/jM/jD"
-// // ).format("YYYY-MM-DD");
-// // let date_to = moment(
-// // toDateshowrizitem.getState().selected.year +
-// // "/" +
-// // toDateshowrizitem.getState().selected.month +
-// // "/" +
-// // toDateshowrizitem.getState().selected.date,
-// // "jYYYY/jM/jD"
-// // ).format("YYYY-MM-DD");
-// // $.ajax({
-// // url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// // success: function(result) {
-
-// // objectfiltertable = [];
-
-// // for (var i = 0; i < result.data.length; i++) {
-
-// // // eacharray.province= i
-// // objectfiltertable.push({
-// // id: result.data[i].id,
-// // name_fa: result.data[i].name_fa,
-// // })
-// // }
-// // $.ajax({
-// // url: "https://rms.rmto.ir/v2/road_items/report/total-group-province-city?province_id=" + provinceid +
-// // "&from_date=" +
-// // date_from +
-// // "&date_to=" +
-// // date_to,
-// // type: "GET",
-// // cache: false,
-// // contentType: false,
-// // processData: false,
-// // success: function(result) {
-// // // objectsend={}
-// // for (var j = 0; j < objectfiltertable.length; j++) {
-// // for (var i = 0; i < result.data.length; i++) {
-
-// // if (objectfiltertable[j].id == result.data[i].c) {
-// // objectfiltertable[j]['t' + result.data[i].i] = {
-// // "s": result.data[i].s
-// // }
-// // }
-// // }
-// // }
-// // var pdata = ''
-// // var testi = ''
-// // for (var i = 0; i < objectfiltertable.length; i++) {
-// // var addnum = 0
-// // if ((objectfiltertable[i].t1) != null) {
-// // addnum = addnum + objectfiltertable[i].t1.s
-// // }
-// // if ((objectfiltertable[i].t2) != null) {
-// // addnum = addnum + objectfiltertable[i].t2.s
-// // }
-// // if ((objectfiltertable[i].t3) != null) {
-// // addnum = addnum + objectfiltertable[i].t3.s
-// // }
-// // if ((objectfiltertable[i].t4) != null) {
-// // addnum = addnum + objectfiltertable[i].t4.s
-// // }
-// // if ((objectfiltertable[i].t5) != null) {
-// // addnum = addnum + objectfiltertable[i].t5.s
-// // }
-// // if ((objectfiltertable[i].t6) != null) {
-// // addnum = addnum + objectfiltertable[i].t6.s
-// // }
-// // if ((objectfiltertable[i].t7) != null) {
-// // addnum = addnum + objectfiltertable[i].t7.s
-// // }
-// // if ((objectfiltertable[i].t8) != null) {
-// // addnum = addnum + objectfiltertable[i].t8.s
-// // }
-// // if ((objectfiltertable[i].t9) != null) {
-// // addnum = addnum + objectfiltertable[i].t9.s
-// // }
-// // if ((objectfiltertable[i].t10) != null) {
-// // addnum = addnum + objectfiltertable[i].t10.s
-// // }
-// // if ((objectfiltertable[i].t11) != null) {
-// // addnum = addnum + objectfiltertable[i].t11.s
-// // }
-// // if ((objectfiltertable[i].t12) != null) {
-// // addnum = addnum + objectfiltertable[i].t12.s
-// // }
-// // if ((objectfiltertable[i].t13) != null) {
-// // addnum = addnum + objectfiltertable[i].t13.s
-// // }
-// // if ((objectfiltertable[i].t14) != null) {
-// // addnum = addnum + objectfiltertable[i].t14.s
-// // }
-// // if ((objectfiltertable[i].t15) != null) {
-// // addnum = addnum + objectfiltertable[i].t15.s
-// // }
-// // if ((objectfiltertable[i].t16) != null) {
-// // addnum = addnum + objectfiltertable[i].t16.s
-// // }
-// // if (addnum == 0) {
-// // addnum = ""
-// // }
-// // testi = testi + '' +
-// // '| ' + " " + ' | ' +
-// // '' + objectfiltertable[i].name_fa + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t1) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t2) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t3) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t4) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t5) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t6) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t7) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t8) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t9) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t10) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t11) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t12) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t13) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t14) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t15) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t16) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t20) + ' | ' +
-// // '' + addnum + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t77) + ' | ' +
-// // '
';
-
-// // }
-// // hideLoaderScreen()
-// // pdata = '\
-// // \
-// // \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// //
\
-// //
\
-// // ' + testi + '
'
-// // row.child(pdata).show();
-// // $('.tablechoose').parent().css('padding', '0px');
-// // tr.addClass('shown');
-// // },
-// // error: function(error) {},
-// // });
-
-
-
-// // }
-// // })
-
-// // }
-// // } else {
-// // $.ajax({
-// // url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// // success: function(result) {
-
-// // objectfiltertable = [];
-
-// // for (var i = 0; i < result.data.length; i++) {
-
-// // // eacharray.province= i
-// // objectfiltertable.push({
-// // id: result.data[i].id,
-// // name_fa: result.data[i].name_fa,
-// // })
-// // }
-// // $.ajax({
-// // url: "https://rms.rmto.ir/v2/road_items/report/total-group-province-city?province_id=" + provinceid,
-// // type: "GET",
-// // cache: false,
-// // contentType: false,
-// // processData: false,
-// // success: function(result) {
-// // // objectsend={}
-// // for (var j = 0; j < objectfiltertable.length; j++) {
-// // for (var i = 0; i < result.data.length; i++) {
-
-// // if (objectfiltertable[j].id == result.data[i].c) {
-// // objectfiltertable[j]['t' + result.data[i].i] = {
-// // "s": result.data[i].s
-// // }
-// // }
-// // }
-// // }
-// // var pdata = ''
-// // var testi = ''
-// // for (var i = 0; i < objectfiltertable.length; i++) {
-// // var addnum = 0
-// // if ((objectfiltertable[i].t1) != null) {
-// // addnum = addnum + objectfiltertable[i].t1.s
-// // }
-// // if ((objectfiltertable[i].t2) != null) {
-// // addnum = addnum + objectfiltertable[i].t2.s
-// // }
-// // if ((objectfiltertable[i].t3) != null) {
-// // addnum = addnum + objectfiltertable[i].t3.s
-// // }
-// // if ((objectfiltertable[i].t4) != null) {
-// // addnum = addnum + objectfiltertable[i].t4.s
-// // }
-// // if ((objectfiltertable[i].t5) != null) {
-// // addnum = addnum + objectfiltertable[i].t5.s
-// // }
-// // if ((objectfiltertable[i].t6) != null) {
-// // addnum = addnum + objectfiltertable[i].t6.s
-// // }
-// // if ((objectfiltertable[i].t7) != null) {
-// // addnum = addnum + objectfiltertable[i].t7.s
-// // }
-// // if ((objectfiltertable[i].t8) != null) {
-// // addnum = addnum + objectfiltertable[i].t8.s
-// // }
-// // if ((objectfiltertable[i].t9) != null) {
-// // addnum = addnum + objectfiltertable[i].t9.s
-// // }
-// // if ((objectfiltertable[i].t10) != null) {
-// // addnum = addnum + objectfiltertable[i].t10.s
-// // }
-// // if ((objectfiltertable[i].t11) != null) {
-// // addnum = addnum + objectfiltertable[i].t11.s
-// // }
-// // if ((objectfiltertable[i].t12) != null) {
-// // addnum = addnum + objectfiltertable[i].t12.s
-// // }
-// // if ((objectfiltertable[i].t13) != null) {
-// // addnum = addnum + objectfiltertable[i].t13.s
-// // }
-// // if ((objectfiltertable[i].t14) != null) {
-// // addnum = addnum + objectfiltertable[i].t14.s
-// // }
-// // if ((objectfiltertable[i].t15) != null) {
-// // addnum = addnum + objectfiltertable[i].t15.s
-// // }
-// // if ((objectfiltertable[i].t16) != null) {
-// // addnum = addnum + objectfiltertable[i].t16.s
-// // }
-// // if (addnum == 0) {
-// // addnum = ""
-// // }
-// // testi = testi + '' +
-// // '| ' + " " + ' | ' +
-// // '' + objectfiltertable[i].name_fa + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t1) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t2) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t3) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t4) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t5) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t6) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t7) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t8) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t9) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t10) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t11) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t12) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t13) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t14) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t15) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t16) + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t20) + ' | ' +
-// // '' + addnum + ' | ' +
-// // '' + checkfunctionS(objectfiltertable[i].t77) + ' | ' +
-// // '
';
-
-// // }
-// // hideLoaderScreen()
-// // pdata = '\
-// // \
-// // \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// // | \
-// //
\
-// // \
-// // ' + testi + '
'
-// // row.child(pdata).show();
-// // $('.tablechoose').parent().css('padding', '0px');
-// // tr.addClass('shown');
-// // },
-// // error: function(error) {},
-// // });
-
-
-
-// // }
-// // })
-
-// // }
-
-
-// // }
-// // }
-
-
-
-
-// // })
-
-// $("#maremat").on("click", "td.details-control", function(e) {
-
-// let date_from
-// let date_to
-
-// var v1
-// var v2
-// var v3
-// var v4
-// var v5
-// var v6
-// var v7
-// var v8
-// var v9
-// var v10
-// var v11
-// var v12
-// var v13
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablemaremat.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// // showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=1&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t10) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t10) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t11) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t11) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t12) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t12) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t13) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t13) + ' | ' +
-// '
'+
-// '' + checkfunctionC(objectitemstable[i].t14) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t14) + ' | ' +
-// '
';
-
-// }
-// // hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-// $("#paksazi").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablepaksazi.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=2&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t10) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t10) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t11) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t11) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t12) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t12) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t13) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t13) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t14) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t14) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t15) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t15) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t16) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t16) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t17) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t17) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t18) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t18) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t19) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t19) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-
-// $("#alaem").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablealaem.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=3&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-// $("#hefaz").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablehefaz.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=4&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + "" + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-
-// }
-
-
-
-// })
-// //lighting
-// $("#lighting").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-
-// var row = tablelighting.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=5&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' +
-// ' | ' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t10) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t10) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t11) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t11) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-// $("#ruler").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-
-
-// var tr = $(this).closest('tr');
-
-// var row = tableruller.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=6&province_id=" + provinceid,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-// $("#coloring").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablecoloring.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=7&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t9) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-// $("#saftey").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablesafety.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=9&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t10) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t10) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t11) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t11) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t12) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t12) + ' | ' +
-
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-
-// $("#washed").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablewashing.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=8&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-
-// }
-
-
-
-// })
-// $("#harim").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tableharim.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=10&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-
-// }
-
-
-
-// })
-
-// $("#pol").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablepol.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=11&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' +
-// ' | ' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-// $("#tunnelGaleri").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tabletunnel.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=12&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-
-
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-
-// $("#zemestanii").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablezem.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=13&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + +' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-// $("#mashinAlat").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablemachin.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=14&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-
-// }
-
-
-
-// })
-// $("#tollhouse").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tablerahdar.row(tr);
-// var provinceid = row.data().id;
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=15&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-// $("#emergency").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-// var tr = $(this).closest('tr');
-
-// var row = tableemer.row(tr);
-// var provinceid = row.data().id;
-
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=16&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t6) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t7) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t8) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t9) + ' | ' +
-// '' + checkfunctionS(objectitemstable[i].t9) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-
-// //item bazdid bare
-// $("#controlitemm").on("click", "td.details-control", function(e) {
-// let date_from
-// let date_to
-
-// if (
-// $("#fromdatamaremat").val() != " " &&
-// $("#todatemaremat").val() != " "
-// ) {
-// // alert("hihiihiijijjjk")
-// date_from = moment(
-// fromdatamaremat.getState().selected.year +
-// "/" +
-// fromdatamaremat.getState().selected.month +
-// "/" +
-// fromdatamaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// date_to = moment(
-// todatemaremat.getState().selected.year +
-// "/" +
-// todatemaremat.getState().selected.month +
-// "/" +
-// todatemaremat.getState().selected.date,
-// "jYYYY/jM/jD"
-// ).format("YYYY-MM-DD");
-// }
-
-// var tr = $(this).closest('tr');
-
-// var row = tablecontrol.row(tr);
-// var provinceid = row.data().id;
-
-// if (provinceid != -1) {
-// if (row.child.isShown()) {
-// row.child.hide();
-// tr.removeClass('shown');
-// } else {
-// showLoaderScreen()
-
-// $.ajax({
-// url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
-// success: function(result) {
-
-// objectitemstable = [];
-
-// for (var i = 0; i < result.data.length; i++) {
-
-// // eacharray.province= i
-// objectitemstable.push({
-// id: result.data[i].id,
-// name_fa: result.data[i].name_fa,
-// })
-// }
-// $.ajax({
-// url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=20&province_id=" + provinceid + "&date_from=" + date_from + "&date_to=" + date_to,
-// type: "GET",
-// cache: false,
-// contentType: false,
-// processData: false,
-// success: function(result) {
-// // objectsend={}
-// for (var j = 0; j < objectitemstable.length; j++) {
-// for (var i = 0; i < result.data.length; i++) {
-
-// if (objectitemstable[j].id == result.data[i].ci) {
-// objectitemstable[j]['t' + result.data[i].t] = {
-// "c": result.data[i].c,
-// "s": result.data[i].s
-// }
-// }
-// }
-// }
-
-// var pdata = ''
-// var testi = ''
-// for (var i = 0; i < objectitemstable.length; i++) {
-// testi = testi + '' +
-// '| ' + " " + ' | ' +
-// '' + objectitemstable[i].name_fa + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t1) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t2) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t3) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t4) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t5) + ' | ' +
-// '' + checkfunctionC(objectitemstable[i].t6) + ' | ' +
-// '
';
-
-// }
-// hideLoaderScreen()
-// pdata = ''
-// row.child(pdata).show();
-// $('.tablechoose').parent().css('padding', '0px');
-
-// tr.addClass('shown');
-// },
-// error: function(error) {},
-// });
-
-
-
-// }
-// })
-
-// }
-// }
-
-
-
-
-// })
-
-
-// item bazdidi bare
-
function checkfunctionC(obj) {
if (obj != undefined) {
return obj.c
@@ -28241,7 +25787,7 @@ $("#sorttestitems").on("click", function() {
$("#gozarehtowntable")
.DataTable()
.ajax.url(
- "https://rms.rmto.ir/v2/road_items/report/total-group-province" +
+ "/v2/road_items/report/total-group-province" +
"?from_date=" +
date_from +
"&date_to=" +
@@ -28280,7 +25826,7 @@ $("#marematsort").on("click", function() {
showLoaderScreen()
if (parseInt(optionselected) == 1) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#maremat")
.DataTable()
@@ -28294,7 +25840,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 2) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#paksazi")
.DataTable()
@@ -28308,7 +25854,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 3) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#alaem")
.DataTable()
.ajax.url(
@@ -28321,7 +25867,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 4) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#hefaz")
.DataTable()
@@ -28334,7 +25880,7 @@ $("#marematsort").on("click", function() {
)
.load();
} else if (parseInt(optionselected) == 5) {
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + parseInt(optionselected);
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + parseInt(optionselected);
$("#lighting")
.DataTable()
@@ -28348,7 +25894,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 6) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#ruler")
.DataTable()
@@ -28362,7 +25908,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 7) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#coloring")
.DataTable()
@@ -28376,7 +25922,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 8) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#washed")
.DataTable()
@@ -28390,7 +25936,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 9) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#saftey")
.DataTable()
@@ -28404,7 +25950,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 10) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#harim")
.DataTable()
@@ -28418,7 +25964,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 11) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#pol")
.DataTable()
@@ -28432,7 +25978,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 12) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#tunnelGaleri")
.DataTable()
@@ -28446,7 +25992,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 13) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#tunnelGaleri")
.DataTable()
@@ -28460,7 +26006,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 14) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#mashinAlat")
.DataTable()
@@ -28474,7 +26020,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 15) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#tollhouse")
.DataTable()
@@ -28488,7 +26034,7 @@ $("#marematsort").on("click", function() {
.load();
} else if (parseInt(optionselected) == 16) {
var optionselect = parseInt(optionselected);
- var urlselectd = "https://rms.rmto.ir/v2/road_items/report/total-items-group-province?item=" + optionselect;
+ var urlselectd = "/v2/road_items/report/total-items-group-province?item=" + optionselect;
$("#emergency")
.DataTable()
@@ -28551,7 +26097,7 @@ $("#gozarehtowntable").on("click", "td.AcitivityMount", async function(e) {
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable = [];
@@ -28567,7 +26113,7 @@ $("#gozarehtowntable").on("click", "td.AcitivityMount", async function(e) {
})
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-group-province-city?province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-group-province-city?province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -29004,7 +26550,7 @@ $("#maremat").on("click", "td.AcitivityMount", async function(e) {
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -29020,7 +26566,7 @@ $("#maremat").on("click", "td.AcitivityMount", async function(e) {
})
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=1&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=1&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -29477,7 +27023,7 @@ $("#paksazi").on("click", "td.AcitivityMount", async function(e) {
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -29493,7 +27039,7 @@ $("#paksazi").on("click", "td.AcitivityMount", async function(e) {
})
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=2&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=2&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -30113,7 +27659,7 @@ $("#alaem").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -30130,7 +27676,7 @@ $("#alaem").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=3&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=3&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -30461,7 +28007,7 @@ $("#hefaz").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -30478,7 +28024,7 @@ $("#hefaz").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=4&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=4&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -30680,7 +28226,7 @@ $("#lighting").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -30697,7 +28243,7 @@ $("#lighting").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=5&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=5&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -31109,7 +28655,7 @@ $("#ruler").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -31126,7 +28672,7 @@ $("#ruler").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=6&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=6&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -31434,7 +28980,7 @@ $("#coloring").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -31451,7 +28997,7 @@ $("#coloring").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=7&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=7&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -31805,7 +29351,7 @@ $("#washed").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -31822,7 +29368,7 @@ $("#washed").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=8&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=8&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -32132,7 +29678,7 @@ $("#saftey").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -32149,7 +29695,7 @@ $("#saftey").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=9&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=9&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -32587,7 +30133,7 @@ $("#harim").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -32604,7 +30150,7 @@ $("#harim").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=10&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=10&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -32888,7 +30434,7 @@ $("#pol").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -32905,7 +30451,7 @@ $("#pol").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=11&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=11&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -33212,7 +30758,7 @@ $("#tunnelGaleri").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -33229,7 +30775,7 @@ $("#tunnelGaleri").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=12&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=12&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -33562,7 +31108,7 @@ $("#zemestanii").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -33579,7 +31125,7 @@ $("#zemestanii").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=13&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=13&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -33833,7 +31379,7 @@ $("#mashinAlat").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -33850,7 +31396,7 @@ $("#mashinAlat").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=14&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=14&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -34159,7 +31705,7 @@ $("#tollhouse").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -34176,7 +31722,7 @@ $("#tollhouse").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=15&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=15&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -34349,7 +31895,7 @@ $("#emergency").on("click", "td.AcitivityMount", async function(e) {
"jYYYY/jM/jD"
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -34366,7 +31912,7 @@ $("#emergency").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=16&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=16&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -34724,7 +32270,7 @@ $("#controlitemm").on("click", "td.AcitivityMount", async function(e) {
).format("YYYY-MM-DD");
$.ajax({
- url: "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/" + provinceid,
+ url: "/public/contents/edarate_shahri_by_province/" + provinceid,
async: false,
success: function(result) {
objectfiltertable.length = 0
@@ -34741,7 +32287,7 @@ $("#controlitemm").on("click", "td.AcitivityMount", async function(e) {
// second ajax
$.ajax({
- url: "https://rms.rmto.ir/v2/road_items/report/total-items-group-province-city?item=20&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
+ url: "/v2/road_items/report/total-items-group-province-city?item=20&province_id=" + provinceid + "&from_date=" + date_from + "&date_to=" + date_to,
type: "GET",
async: false,
cache: false,
@@ -34989,7 +32535,7 @@ $(document).on('click', '#btn_excel_download', function() {
return false;
}
- const url = `https://rms.rmto.ir/reports/${route}${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
+ const url = `/reports/${route}${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
window.open(url, '_blank')
})
\ No newline at end of file
diff --git a/public/version2/js/dashboard_pages/road_items/supervise_cartable.js b/public/version2/js/dashboard_pages/road_items/supervise_cartable.js
index 22fe250a..e19392a7 100644
--- a/public/version2/js/dashboard_pages/road_items/supervise_cartable.js
+++ b/public/version2/js/dashboard_pages/road_items/supervise_cartable.js
@@ -5,10 +5,10 @@ var verify_api = "/v2/road_items/supervisor/cartable/verify/";
var items_api = "/v2/items";
var restore_api = "/v2/road_items/supervisor/cartable/restore/";
var delete_api = "/v2/road_items/supervisor/cartable/delete/";
-var provinces_api = "https://rms.rmto.ir/webapi/getuser/province-perm";
-var edarat_api = "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/";
-var permission_api = "https://rms.rmto.ir/webapi/user/get-permission";
-var excel_api = "https://rms.rmto.ir/v2/road_items/supervisor/cartable/report";
+var provinces_api = "/webapi/getuser/province-perm";
+var edarat_api = "/public/contents/edarate_shahri_by_province/";
+var permission_api = "/webapi/user/get-permission";
+var excel_api = "/v2/road_items/supervisor/cartable/report";
const MAP_ENDPOINT = "https://rmsmap.rmto.ir";
var markers = [];
var markersLayer;
diff --git a/public/version2/js/dashboard_pages/road_patrols/operation_cartable.js b/public/version2/js/dashboard_pages/road_patrols/operation_cartable.js
index 38e22fd4..f24ef278 100644
--- a/public/version2/js/dashboard_pages/road_patrols/operation_cartable.js
+++ b/public/version2/js/dashboard_pages/road_patrols/operation_cartable.js
@@ -2,8 +2,8 @@
var operationCartable;
var operationCartable_url = "/v2/road_patrols/operator/cartable/show";
const MAP_ENDPOINT = "https://rmsmap.rmto.ir";
-var permission_api = "https://rms.rmto.ir/webapi/user/get-permission";
-var excel_api = "https://rms.rmto.ir/v2/road_patrols/operator/cartable/report";
+var permission_api = "/webapi/user/get-permission";
+var excel_api = "/v2/road_patrols/operator/cartable/report";
var report_api = "/v2/road_patrols/operator/report/";
var items_api = "/v2/items"
var markers = [];
diff --git a/public/version2/js/dashboard_pages/road_patrols/operation_create.js b/public/version2/js/dashboard_pages/road_patrols/operation_create.js
index aca33000..f09c6c83 100644
--- a/public/version2/js/dashboard_pages/road_patrols/operation_create.js
+++ b/public/version2/js/dashboard_pages/road_patrols/operation_create.js
@@ -63,8 +63,8 @@ var mapStartIcon = L.divIcon({
`,
- iconSize: [55, 75],
- iconAnchor: [33, 64],
+ iconSize: [56, 75],
+ iconAnchor: [28, 75],
});
var mapEndIcon = L.divIcon({
html: `
diff --git a/public/version2/js/dashboard_pages/road_patrols/supervise_cartable.js b/public/version2/js/dashboard_pages/road_patrols/supervise_cartable.js
index 45a0805f..010bbfa5 100644
--- a/public/version2/js/dashboard_pages/road_patrols/supervise_cartable.js
+++ b/public/version2/js/dashboard_pages/road_patrols/supervise_cartable.js
@@ -3,12 +3,12 @@ var supervisorCartable;
var supervisorCartable_url = "/v2/road_patrols/supervisor/cartable/show";
var verify_api = "/v2/road_patrols/supervisor/cartable/verify/";
var items_api = "/v2/items"
-var provinces_api = "https://rms.rmto.ir/webapi/getuser/province-perm";
-var edarat_api = "https://rms.rmto.ir/public/contents/edarate_shahri_by_province/";
-var permission_api = "https://rms.rmto.ir/webapi/user/get-permission";
+var provinces_api = "/webapi/getuser/province-perm";
+var edarat_api = "/public/contents/edarate_shahri_by_province/";
+var permission_api = "/webapi/user/get-permission";
var deletePatrol_api = "/v2/road_patrols/supervisor/cartable/delete/";
var report_api = "/v2/road_patrols/operator/report/";
-var excel_api = "https://rms.rmto.ir/v2/road_patrols/supervisor/cartable/report";
+var excel_api = "/v2/road_patrols/supervisor/cartable/report";
const MAP_ENDPOINT = "https://rmsmap.rmto.ir";
var markers = [];
var markersLayer;
@@ -57,7 +57,7 @@ var mapEndIcon = L.divIcon({
`,
iconSize: [55, 75],
- iconAnchor: [33, 64],
+ iconAnchor: [28, 75],
});
// icon
diff --git a/public/version2/js/dashboard_pages/safety_and_privacy/operation_cartable.js b/public/version2/js/dashboard_pages/safety_and_privacy/operation_cartable.js
index 12d87fcc..c07aa3f7 100644
--- a/public/version2/js/dashboard_pages/safety_and_privacy/operation_cartable.js
+++ b/public/version2/js/dashboard_pages/safety_and_privacy/operation_cartable.js
@@ -5,11 +5,11 @@ var unserializeJudiciaryDocument_url = "/v2/safety_and_privacy/operator/cartable
var list_item_api = "/v2/safety_and_privacy/sub_item_list";
var secondStep_url = "/v2/safety_and_privacy/operator/second_step/";
var thirdStep_url = "/v2/safety_and_privacy/operator/third_step/";
-var provinces_api = "https://rms.rmto.ir/webapi/getuser/province-perm";
+var provinces_api = "/webapi/getuser/province-perm";
var delete_api = "/v2/safety_and_privacy/delete/";
-var excel_api = "https://rms.rmto.ir/reports/safety-and-privacy";
+var excel_api = "/reports/safety-and-privacy";
const MAP_ENDPOINT = "https://rmsmap.rmto.ir";
-var permission_api = "https://rms.rmto.ir/webapi/user/get-permission";
+var permission_api = "/webapi/user/get-permission";
var items_api = "/v2/items"
var markers = [];
var secondStepFiles = []
diff --git a/public/version2/js/dashboard_pages/safety_and_privacy/report.js b/public/version2/js/dashboard_pages/safety_and_privacy/report.js
index a4b552ac..40ca9a3c 100644
--- a/public/version2/js/dashboard_pages/safety_and_privacy/report.js
+++ b/public/version2/js/dashboard_pages/safety_and_privacy/report.js
@@ -2,8 +2,8 @@ var fromDateshowrizitem, toDateshowrizitem;
var PERMISSIONS = []
var PROVINCES = [];
var gozareshtable;
-var MAIN_URL = "https://rms.rmto.ir/v2/safety_and_privacy/report/safety_and_privacy_data"
-var EXCEL_API = "https://rms.rmto.ir/v2/safety_and_privacy/report/excel";
+var MAIN_URL = "/v2/safety_and_privacy/report/safety_and_privacy_data"
+var EXCEL_API = "/v2/safety_and_privacy/report/excel";
function checkfunctionS(obj) {
if (obj != undefined) {
@@ -15,7 +15,7 @@ function checkfunctionS(obj) {
$(document).ready(function () {
- let reqUrl = "https://rms.rmto.ir/public/contents/provinces";
+ let reqUrl = "/public/contents/provinces";
$.ajax({
url: reqUrl,
@@ -105,10 +105,10 @@ $(document).ready(function () {
},
});
- $.getScript('https://rms.rmto.ir/version2/js/dashboard_pages/safety_and_privacy/subtable.js');
+ $.getScript('/version2/js/dashboard_pages/safety_and_privacy/subtable.js');
$.ajax({
- url: "https://rms.rmto.ir/webapi/user/get-permission",
+ url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
diff --git a/public/version2/js/dashboard_pages/winter_camp/create.js b/public/version2/js/dashboard_pages/winter_camp/create.js
index ee6c6c63..a1daee2d 100644
--- a/public/version2/js/dashboard_pages/winter_camp/create.js
+++ b/public/version2/js/dashboard_pages/winter_camp/create.js
@@ -131,7 +131,7 @@ $(document).bind('click', function (e) {
});
(function () {
$.ajax({
- url: "https://rms.rmto.ir/webapi/user/get-permission",
+ url: "/webapi/user/get-permission",
type: "GET",
cache: false,
async: false,
@@ -163,7 +163,7 @@ $(document).bind('click', function (e) {
if ($.inArray('show-camp', PERMISSIONS) != -1 || $.inArray('show-camp-province', PERMISSIONS) != -1) {
$.ajax({
/// [start] camp_add_province_url
- url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('show-camp', PERMISSIONS) != -1 ? '?type=all' : ''}`,
+ url: `/webapi/getuser/province-perm${$.inArray('show-camp', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] camp_add_province_url
type: "GET",
beforeSend: function () {
@@ -207,7 +207,7 @@ $(document).bind('click', function (e) {
if ($.inArray('add-camp', PERMISSIONS) != -1 || $.inArray('add-camp-province', PERMISSIONS) != -1) {
$.ajax({
/// [start] camp_add_province_url
- url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('add-camp', PERMISSIONS) != -1 ? '?type=all' : ''}`,
+ url: `/webapi/getuser/province-perm${$.inArray('add-camp', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] camp_add_province_url
type: "GET",
beforeSend: function () {
@@ -253,7 +253,7 @@ $(document).bind('click', function (e) {
if ($.inArray('edit-camp', PERMISSIONS) != -1 || $.inArray('edit-camp-province', PERMISSIONS) != -1) {
$.ajax({
/// [start] camp_edit_province_url
- url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('edit-camp', PERMISSIONS) != -1 ? '?type=all' : ''}`,
+ url: `/webapi/getuser/province-perm${$.inArray('edit-camp', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] camp_edit_province_url
type: "GET",
beforeSend: function () {
@@ -298,7 +298,7 @@ $(document).bind('click', function (e) {
$.ajax({
/// [start] camp_filter_province_url
- url: `https://rms.rmto.ir/webapi/getuser/province-perm${$.inArray('show-camp', PERMISSIONS) != -1 ? '?type=all' : ''}`,
+ url: `/webapi/getuser/province-perm${$.inArray('show-camp', PERMISSIONS) != -1 ? '?type=all' : ''}`,
/// [end] camp_filter_province_url
type: "GET",
beforeSend: function () {
@@ -373,7 +373,7 @@ $(document).bind('click', function (e) {
select: true,
destroy: true,
ajax: {
- url: "https://rms.rmto.ir/webapi/camp/index",
+ url: "/webapi/camp/index",
type: "GET",
dataSrc: function (json) {
return json.data;
@@ -734,7 +734,7 @@ $("#submit-new-camp").on("click", function () {
}
if (checkAjax) {
$.ajax({
- url: "https://rms.rmto.ir/webapi/camp/storeDevelop",
+ url: "/webapi/camp/storeDevelop",
type: "POST",
data: formData,
headers: {
@@ -807,7 +807,7 @@ $("#winter-camp-table").on("click", "button.image-show", function () {
for (var i = 0; i < 3; i++) {
$("#imgSubItem" + i + "").removeAttr("src")
if (photoSelected[i] != undefined) {
- $("#imgSubItem" + i + "").attr("src", "https://rms.rmto.ir/" + photoSelected[i].path.replace("public", "storage") + "")
+ $("#imgSubItem" + i + "").attr("src", "/" + photoSelected[i].path.replace("public", "storage") + "")
}
else {
$("#imgSubItem" + i + "").attr("src", "../dist/images/notavailable.jpg")
@@ -835,7 +835,7 @@ $("#winter-camp-table").on("click", "button.location-button", function () {
var tr = $(this).closest("tr");
var row = tableCamp.row(tr);
idSelect = row.data().id;
- window.open("https://rms.rmto.ir/v2/winter_camp/map/" + idSelect);
+ window.open("/v2/winter_camp/map/" + idSelect);
});
$("#winter-camp-table").on("click", "button.deletsubmit", function () {
var tr = $(this).closest("tr");
@@ -853,7 +853,7 @@ $("#winter-camp-table").on("click", "button.deletsubmit", function () {
preConfirm: () => {
showLoaderScreen();
$.ajax({
- url: "https://rms.rmto.ir/webapi/camp/deleteDevelop/" + idSelect,
+ url: "/webapi/camp/deleteDevelop/" + idSelect,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -1092,7 +1092,7 @@ $("#edit-add-camp").on("click", function () {
}
if (checkEditAjax) {
$.ajax({
- url: "https://rms.rmto.ir/webapi/camp/editDevelop/" + idChoosen,
+ url: "/webapi/camp/editDevelop/" + idChoosen,
type: "POST",
data: formData,
headers: {
@@ -1216,7 +1216,7 @@ $("#btn_filter_show").on("click", function () {
if (blockage != 0)
queryParems.push(`blockage=${blockage}`)
- const url = `https://rms.rmto.ir/camp/all${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
+ const url = `/camp/all${queryParems.length != 0 ? `?${queryParems.join('&')}` : ''}`
$.ajax({
url: url,
@@ -1464,7 +1464,7 @@ function resetEditData(data) {
if (data.files[0] != undefined) {
- $("#edit-deviceImg1Preview").attr("src", "https://rms.rmto.ir/" + data.files[0].path.replace("public", "storage") + "")
+ $("#edit-deviceImg1Preview").attr("src", "/" + data.files[0].path.replace("public", "storage") + "")
$("#edit-deviceImg1Title").css("display", "none")
$("#edit-deleteDeviceImg1").removeAttr('disabled');
@@ -1472,7 +1472,7 @@ function resetEditData(data) {
}
if (data.files[1] != undefined) {
- $("#edit-deviceImg2Preview").attr("src", "https://rms.rmto.ir/" + data.files[1].path.replace("public", "storage") + "")
+ $("#edit-deviceImg2Preview").attr("src", "/" + data.files[1].path.replace("public", "storage") + "")
$("#edit-deviceImg2Title").css("display", "none")
$("#edit-deleteDeviceImg2").removeAttr('disabled');
@@ -1480,7 +1480,7 @@ function resetEditData(data) {
}
if (data.files[2] != undefined) {
- $("#edit-deviceImg3Preview").attr("src", "https://rms.rmto.ir/" + data.files[2].path.replace("public", "storage") + "")
+ $("#edit-deviceImg3Preview").attr("src", "/" + data.files[2].path.replace("public", "storage") + "")
$("#edit-deviceImg3Title").css("display", "none")
$("#edit-deleteDeviceImg3").removeAttr('disabled');
@@ -1706,7 +1706,7 @@ function setMarkerDefaultAddEdit(startlatlng, endlatlng, status) {
function reloadTable() {
$.ajax({
url:
- "https://rms.rmto.ir/webapi/camp/index",
+ "/webapi/camp/index",
type: "GET",
success: function (result) {
$("#winter-camp-table").dataTable().fnClearTable();
@@ -2186,7 +2186,7 @@ $('.btn-delete-img').on('click', function () {
function addTowntoSelect(num) {
$.ajax({
- url: "https://rms.rmto.ir/public/contents/provinces/" + num,
+ url: "/public/contents/provinces/" + num,
type: "GET",
success: function (result) {
hideLoaderScreen();
@@ -2211,7 +2211,7 @@ function addTowntoSelect(num) {
}
function addTowntoSelectEdit(num) {
$.ajax({
- url: "https://rms.rmto.ir/public/contents/provinces/" + num,
+ url: "/public/contents/provinces/" + num,
type: "GET",
success: function (result) {
hideLoaderScreen();
@@ -2237,7 +2237,7 @@ function addTowntoSelectEdit(num) {
function addTownToEditedCity(num, cityid) {
showLoaderScreen()
$.ajax({
- url: "https://rms.rmto.ir/public/contents/provinces/" + num,
+ url: "/public/contents/provinces/" + num,
type: "GET",
success: function (result) {
hideLoaderScreen();
@@ -2332,7 +2332,7 @@ $(".temporary-open").on('click', function () {
formData.append("id", idChoosen);
formData.append("is-open-type", 1);
$.ajax({
- url: "https://rms.rmto.ir/camp/update",
+ url: "/camp/update",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),
@@ -2365,7 +2365,7 @@ $(".complet-open").on('click', function () {
formData.append("id", idChoosen);
formData.append("is-open-type", 2);
$.ajax({
- url: "https://rms.rmto.ir/camp/update",
+ url: "/camp/update",
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content"),