2024-07-05 06:58:17 +03:00
|
|
|
|
<?php
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
2024-07-05 06:58:17 +03:00
|
|
|
|
use \App\Services\{Auth, DB};
|
|
|
|
|
use \App\Models\User;
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
2024-07-05 06:58:17 +03:00
|
|
|
|
$user = new User(Auth::userid());
|
|
|
|
|
?>
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="ru">
|
|
|
|
|
|
|
|
|
|
<head>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
<?php include($_SERVER['DOCUMENT_ROOT'] . '/views/components/LoadHead.php'); ?>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
|
2024-07-08 13:46:00 +03:00
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
|
2024-07-05 06:58:17 +03:00
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<body>
|
|
|
|
|
<div id="backgr"></div>
|
|
|
|
|
<table class="tmain">
|
2024-07-08 13:46:00 +03:00
|
|
|
|
<?php include($_SERVER['DOCUMENT_ROOT'] . '/views/components/Navbar.php'); ?>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
<tr>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" />
|
|
|
|
|
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
|
|
|
|
|
<script src="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.js"></script>
|
|
|
|
|
<script src="https://cesium.com/downloads/cesiumjs/releases/1.83/Build/Cesium/Cesium.js"></script>
|
|
|
|
|
<link href="https://cesium.com/downloads/cesiumjs/releases/1.83/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet-indoor/0.4.2/leaflet.indoor.min.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet-indoor/0.4.2/leaflet.indoor.min.css" />
|
|
|
|
|
<!-- Подключение плагина Leaflet.markercluster -->
|
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster/dist/MarkerCluster.css">
|
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster/dist/MarkerCluster.Default.css">
|
|
|
|
|
<script src="https://unpkg.com/leaflet.markercluster/dist/leaflet.markercluster.js"></script>
|
|
|
|
|
<!-- Подключение плагина Leaflet-Geoman -->
|
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet-geoman-free/dist/leaflet-geoman.css">
|
|
|
|
|
<script src="https://unpkg.com/leaflet-geoman-free/dist/leaflet-geoman.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<!-- Подключение плагина Leaflet-3d-model -->
|
|
|
|
|
<script src="https://unpkg.com/leaflet-3d-model/dist/leaflet-3d-model.min.js"></script>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
<td class="main">
|
|
|
|
|
<h1>Предложить фото на публикацию</h1>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
<p>Ваш текущий индекс загрузки: <b><?= $user->i('uploadindex') ?></b></p>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
|
|
|
|
|
<div id="formtable">
|
2024-07-08 20:10:00 +03:00
|
|
|
|
<?php
|
|
|
|
|
if (NGALLERY['root']['photo']['upload']['premoderation'] === true) {
|
2024-07-18 18:22:00 +03:00
|
|
|
|
if ($user->content('premoderation') === "true") {
|
2024-07-08 20:10:00 +03:00
|
|
|
|
echo ' <div style="float:left; border:solid 1px #3b7dc1; padding:6px 10px 7px; margin-bottom:13px; background-color:#0199ff44"><b>Поздравляем, ' . $user->i('username') . '!</b><br>Администрацией ' . NGALLERY['root']['title'] . ' была одобрена возможность прямой загрузки фотографий для Вас.<br>Вы можете моментально загрузить любую фотографию, минуя премодерацию. Enjoy!</div>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
?>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="new_vehicle_template new_vehicle">
|
|
|
|
|
<input type="hidden" name="nv_cid[]" value="0">
|
|
|
|
|
<input type="hidden" name="nv_type[]" value="0">
|
|
|
|
|
<table>
|
|
|
|
|
<tbody class="tbody_nv_num" style="display:none">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Бортовой №:</td>
|
|
|
|
|
<td><input type="text" name="nv_num[]" style="width:80px" maxlength="21" value=""></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<tbody class="tbody_nv_gos" style="display:none">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Госномер:</td>
|
|
|
|
|
<td><input type="text" name="nv_gos[]" style="width:120px" maxlength="21" value=""></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<tbody class="tbody_nv_did" style="display:none">
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Депо/Парк:</td>
|
|
|
|
|
<td><select name="nv_did[]" class="did"></select></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Модель:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="hidden" name="nv_mid[]" value="0">
|
|
|
|
|
<input type="text" class="mname" style="width:250px; padding-left:3px" value="(модель неизвестна)">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Шасси:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="hidden" name="nv_chid[]" value="0">
|
|
|
|
|
<input type="text" class="chname" style="width:250px; padding-left:3px" value="(нет)">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Назначение:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<select name="nv_service[]" onchange="changeColor(this)">
|
|
|
|
|
<option value="0" class="s0" selected>Пассажирский</option>
|
|
|
|
|
<option value="1" class="s3">Служебный</option>
|
|
|
|
|
<option value="2" class="s7">Музейный</option>
|
|
|
|
|
</select>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Текущее состояние:</td>
|
|
|
|
|
<td class="sm">
|
|
|
|
|
<select name="nv_state[]" onchange="changeColor(this)">
|
|
|
|
|
<option value="1" class="s0" selected>Эксплуатируется</option>
|
|
|
|
|
<option value="2" class="s2">Не был в эксплуатации в этом городе</option>
|
|
|
|
|
<option value="3" class="s3">Не эксплуатируется</option>
|
|
|
|
|
<option value="4" class="s4">Выведен из эксплуатации / ожидание исключения</option>
|
|
|
|
|
<option value="5" class="s5">Списан</option>
|
|
|
|
|
<option value="6" class="s6">Местонахождение и судьба неизвестны</option>
|
|
|
|
|
<option value="7" class="s7">КВР/модернизация (смена модели)</option>
|
|
|
|
|
<option value="8" class="s8">Перенумерован/передан в пределах города</option>
|
|
|
|
|
<option value="9" class="s9">Передан в другой город</option>
|
|
|
|
|
<option value="21" class="s21">Смена госномера (в пределах предприятия)</option>
|
|
|
|
|
</select> <span class="nw" style="color:#888">Состояние ТС <u>на сегодняшний день</u></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Заводской №:</td>
|
|
|
|
|
<td><input type="text" name="nv_zn[]" size="10" maxlength="12" value=""></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">VIN:</td>
|
|
|
|
|
<td><input type="text" name="nv_vin[]" size="20" maxlength="17" value=""></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">№ шасси:</td>
|
|
|
|
|
<td><input type="text" name="nv_cn[]" size="20" maxlength="17" value=""></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Построен:</td>
|
|
|
|
|
<td class="sm" style="padding-left:31px">
|
|
|
|
|
<input type="text" name="nv_built_m[]" id="nv_built_m_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_built_y[]" id="nv_built_y_" style="font-weight:bold; width:50px; text-align:center; margin-right:-1px" maxlength="4" value=""> <select name="nv_built_approx_aprx[]" id="nv_built_approx_aprx_" class="approx-aprx" style="margin-right:-1px">
|
|
|
|
|
<option value="0" class="s0" selected>точная дата</option>
|
|
|
|
|
<option value="1" class="s3">приблизительно (≈)</option>
|
|
|
|
|
<option value="2" class="s7">не позднее (≤)</option>
|
|
|
|
|
<option value="3" class="s7">не ранее (≥)</option>
|
|
|
|
|
<option value="4" class="s9">начало ... гг.</option>
|
|
|
|
|
<option value="5" class="s9">середина ... гг.</option>
|
|
|
|
|
<option value="6" class="s9">конец ... гг.</option>
|
|
|
|
|
<option value="7" class="s9">... гг.</option>
|
|
|
|
|
</select> <span class="nw" style="color:#888">ММ.ГГГГ — дата постройки ТС по табличке/документам</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Актуально c...</td>
|
|
|
|
|
<td class="sm">
|
|
|
|
|
<input type="text" name="nv_start_d[]" id="nv_start_d_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_start_m[]" id="nv_start_m_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_start_y[]" id="nv_start_y_" style="font-weight:bold; width:50px; text-align:center; margin-right:-1px" maxlength="4" value=""> <select name="nv_start_approx_aprx[]" id="nv_start_approx_aprx_" class="approx-aprx" style="margin-right:-1px">
|
|
|
|
|
<option value="0" class="s0" selected>точная дата</option>
|
|
|
|
|
<option value="1" class="s3">приблизительно (≈)</option>
|
|
|
|
|
<option value="2" class="s7">не позднее (≤)</option>
|
|
|
|
|
<option value="3" class="s7">не ранее (≥)</option>
|
|
|
|
|
<option value="4" class="s9">начало ... гг.</option>
|
|
|
|
|
<option value="5" class="s9">середина ... гг.</option>
|
|
|
|
|
<option value="6" class="s9">конец ... гг.</option>
|
|
|
|
|
<option value="7" class="s9">... гг.</option>
|
|
|
|
|
</select> <span class="nw" style="color:#888">ДД.ММ.ГГГГ — дата поступления или присвоения номера</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Начало работы</td>
|
|
|
|
|
<td class="sm">
|
|
|
|
|
<input type="text" name="nv_launc_d[]" id="nv_launc_d_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_launc_m[]" id="nv_launc_m_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_launc_y[]" id="nv_launc_y_" style="font-weight:bold; width:50px; text-align:center; margin-right:-1px" maxlength="4" value=""> <select name="nv_launc_approx_aprx[]" id="nv_launc_approx_aprx_" class="approx-aprx" style="margin-right:-1px">
|
|
|
|
|
<option value="0" class="s0" selected>точная дата</option>
|
|
|
|
|
<option value="1" class="s3">приблизительно (≈)</option>
|
|
|
|
|
<option value="2" class="s7">не позднее (≤)</option>
|
|
|
|
|
<option value="3" class="s7">не ранее (≥)</option>
|
|
|
|
|
<option value="4" class="s9">начало ... гг.</option>
|
|
|
|
|
<option value="5" class="s9">середина ... гг.</option>
|
|
|
|
|
<option value="6" class="s9">конец ... гг.</option>
|
|
|
|
|
<option value="7" class="s9">... гг.</option>
|
|
|
|
|
</select> <span class="nw" style="color:#888">ДД.ММ.ГГГГ — первый выход c пассажирами, если известен</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Отставлен:</td>
|
|
|
|
|
<td class="sm">
|
|
|
|
|
<input type="text" name="nv_haltd_d[]" id="nv_haltd_d_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_haltd_m[]" id="nv_haltd_m_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_haltd_y[]" id="nv_haltd_y_" style="font-weight:bold; width:50px; text-align:center; margin-right:-1px" maxlength="4" value=""> <select name="nv_haltd_approx_aprx[]" id="nv_haltd_approx_aprx_" class="approx-aprx" style="margin-right:-1px">
|
|
|
|
|
<option value="0" class="s0" selected>точная дата</option>
|
|
|
|
|
<option value="1" class="s3">приблизительно (≈)</option>
|
|
|
|
|
<option value="2" class="s7">не позднее (≤)</option>
|
|
|
|
|
<option value="3" class="s7">не ранее (≥)</option>
|
|
|
|
|
<option value="4" class="s9">начало ... гг.</option>
|
|
|
|
|
<option value="5" class="s9">середина ... гг.</option>
|
|
|
|
|
<option value="6" class="s9">конец ... гг.</option>
|
|
|
|
|
<option value="7" class="s9">... гг.</option>
|
|
|
|
|
</select> <span class="nw" style="color:#888">ДД.ММ.ГГГГ — последний выход c пассажирами, если известен</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Ушёл (или списан):</td>
|
|
|
|
|
<td class="sm">
|
|
|
|
|
<input type="text" name="nv_leave_d[]" id="nv_leave_d_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_leave_m[]" id="nv_leave_m_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_leave_y[]" id="nv_leave_y_" style="font-weight:bold; width:50px; text-align:center; margin-right:-1px" maxlength="4" value=""> <select name="nv_leave_approx_aprx[]" id="nv_leave_approx_aprx_" class="approx-aprx" style="margin-right:-1px">
|
|
|
|
|
<option value="0" class="s0" selected>точная дата</option>
|
|
|
|
|
<option value="1" class="s3">приблизительно (≈)</option>
|
|
|
|
|
<option value="2" class="s7">не позднее (≤)</option>
|
|
|
|
|
<option value="3" class="s7">не ранее (≥)</option>
|
|
|
|
|
<option value="4" class="s9">начало ... гг.</option>
|
|
|
|
|
<option value="5" class="s9">середина ... гг.</option>
|
|
|
|
|
<option value="6" class="s9">конец ... гг.</option>
|
|
|
|
|
<option value="7" class="s9">... гг.</option>
|
|
|
|
|
</select> <span class="nw" style="color:#888">ДД.ММ.ГГГГ — дата продажи/списания/убытия</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Утилизирован:</td>
|
|
|
|
|
<td class="sm" style="padding-left:31px">
|
|
|
|
|
<input type="text" name="nv_scrap_m[]" id="nv_scrap_m_" style="font-weight:bold; width:30px; text-align:center; margin-right:-1px" maxlength="2" value=""><input type="text" name="nv_scrap_y[]" id="nv_scrap_y_" style="font-weight:bold; width:50px; text-align:center; margin-right:-1px" maxlength="4" value=""> <select name="nv_scrap_approx_aprx[]" id="nv_scrap_approx_aprx_" class="approx-aprx" style="margin-right:-1px">
|
|
|
|
|
<option value="0" class="s0" selected>точная дата</option>
|
|
|
|
|
<option value="1" class="s3">приблизительно (≈)</option>
|
|
|
|
|
<option value="2" class="s7">не позднее (≤)</option>
|
|
|
|
|
<option value="3" class="s7">не ранее (≥)</option>
|
|
|
|
|
<option value="4" class="s9">начало ... гг.</option>
|
|
|
|
|
<option value="5" class="s9">середина ... гг.</option>
|
|
|
|
|
<option value="6" class="s9">конец ... гг.</option>
|
|
|
|
|
<option value="7" class="s9">... гг.</option>
|
|
|
|
|
</select> <span class="nw" style="color:#888">ММ.ГГГГ — фактическая дата полной порезки/разборки ТС</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Примечание:</td>
|
|
|
|
|
<td><input type="text" name="nv_note[]" maxlength="150" style="width:450px" value=""></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Информация:</td>
|
|
|
|
|
<td><textarea name="nv_history[]" rows="4" style="width:450px"></textarea></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<form id="mform" method="post" enctype="multipart/form-data" action="?action=write">
|
|
|
|
|
<input type="hidden" name="creative" id="creative" value="">
|
2024-07-06 08:26:29 +03:00
|
|
|
|
<input type="hidden" name="lat" id="markerLat" value="20971520">
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="lng" id="markerLng" id="creative" value="">
|
2024-07-05 06:58:17 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<table width="100%">
|
|
|
|
|
<col width="190">
|
|
|
|
|
<tbody class="p20">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" id="step1" class="narrow" style="font-size:20px; padding:10px 15px 7px">
|
|
|
|
|
Шаг 1. <b>Выберите фотографию для загрузки и укажите дату съёмки:</b> </td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
2024-07-06 08:05:10 +03:00
|
|
|
|
|
2024-07-05 06:58:17 +03:00
|
|
|
|
<td></td>
|
|
|
|
|
<td style="padding:2px 15px 5px 2px">
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
2024-07-05 06:58:17 +03:00
|
|
|
|
<label class="button">
|
|
|
|
|
Выбрать файл... <input type="file" name="image" id="image" accept="image/*">
|
|
|
|
|
</label>
|
|
|
|
|
<span id="filename"></span>
|
|
|
|
|
<div style="padding:5px 0 10px" class="sm">Принимаемые форматы:<br>
|
|
|
|
|
JPEG и WEBP — сумма ширины и высоты не более 2500 пикселей, файл не более 700 КБ<br>
|
|
|
|
|
GIF и PNG — только для чертежей и схем, без ограничения ширины и высоты, файл не более 20 МБ</div>
|
|
|
|
|
<div id="preview"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Дата съёмки:</td>
|
|
|
|
|
<td style="padding-bottom:12px">
|
|
|
|
|
<span style="display:inline-block; margin-bottom:3px"><select name="day" id="day" style="width:48px">
|
|
|
|
|
<option value="0" selected>??</option>
|
|
|
|
|
<option value="1">01</option>
|
|
|
|
|
<option value="2">02</option>
|
|
|
|
|
<option value="3">03</option>
|
|
|
|
|
<option value="4">04</option>
|
|
|
|
|
<option value="5">05</option>
|
|
|
|
|
<option value="6">06</option>
|
|
|
|
|
<option value="7">07</option>
|
|
|
|
|
<option value="8">08</option>
|
|
|
|
|
<option value="9">09</option>
|
|
|
|
|
<option value="10">10</option>
|
|
|
|
|
<option value="11">11</option>
|
|
|
|
|
<option value="12">12</option>
|
|
|
|
|
<option value="13">13</option>
|
|
|
|
|
<option value="14">14</option>
|
|
|
|
|
<option value="15">15</option>
|
|
|
|
|
<option value="16">16</option>
|
|
|
|
|
<option value="17">17</option>
|
|
|
|
|
<option value="18">18</option>
|
|
|
|
|
<option value="19">19</option>
|
|
|
|
|
<option value="20">20</option>
|
|
|
|
|
<option value="21">21</option>
|
|
|
|
|
<option value="22">22</option>
|
|
|
|
|
<option value="23">23</option>
|
|
|
|
|
<option value="24">24</option>
|
|
|
|
|
<option value="25">25</option>
|
|
|
|
|
<option value="26">26</option>
|
|
|
|
|
<option value="27">27</option>
|
|
|
|
|
<option value="28">28</option>
|
|
|
|
|
<option value="29">29</option>
|
|
|
|
|
<option value="30">30</option>
|
|
|
|
|
<option value="31">31</option>
|
|
|
|
|
</select><select name="month" id="month" style="width:160px; margin:0 -1px">
|
|
|
|
|
<option value="0" selected>?? — Неизвестно</option>
|
|
|
|
|
<option value="1">01 — Январь</option>
|
|
|
|
|
<option value="2">02 — Февраль</option>
|
|
|
|
|
<option value="3">03 — Март</option>
|
|
|
|
|
<option value="4">04 — Апрель</option>
|
|
|
|
|
<option value="5">05 — Май</option>
|
|
|
|
|
<option value="6">06 — Июнь</option>
|
|
|
|
|
<option value="7">07 — Июль</option>
|
|
|
|
|
<option value="8">08 — Август</option>
|
|
|
|
|
<option value="9">09 — Сентябрь</option>
|
|
|
|
|
<option value="10">10 — Октябрь</option>
|
|
|
|
|
<option value="11">11 — Ноябрь</option>
|
|
|
|
|
<option value="12">12 — Декабрь</option>
|
|
|
|
|
</select><select name="year" id="year" style="width:65px">
|
|
|
|
|
<option value="0" selected>????</option>
|
|
|
|
|
<option value="2024">2024</option>
|
|
|
|
|
<option value="2023">2023</option>
|
|
|
|
|
<option value="2022">2022</option>
|
|
|
|
|
<option value="2021">2021</option>
|
|
|
|
|
<option value="2020">2020</option>
|
|
|
|
|
<option value="2019">2019</option>
|
|
|
|
|
<option value="2018">2018</option>
|
|
|
|
|
<option value="2017">2017</option>
|
|
|
|
|
<option value="2016">2016</option>
|
|
|
|
|
<option value="2015">2015</option>
|
|
|
|
|
<option value="2014">2014</option>
|
|
|
|
|
<option value="2013">2013</option>
|
|
|
|
|
<option value="2012">2012</option>
|
|
|
|
|
<option value="2011">2011</option>
|
|
|
|
|
<option value="2010">2010</option>
|
|
|
|
|
<option value="2009">2009</option>
|
|
|
|
|
<option value="2008">2008</option>
|
|
|
|
|
<option value="2007">2007</option>
|
|
|
|
|
<option value="2006">2006</option>
|
|
|
|
|
<option value="2005">2005</option>
|
|
|
|
|
<option value="2004">2004</option>
|
|
|
|
|
<option value="2003">2003</option>
|
|
|
|
|
<option value="2002">2002</option>
|
|
|
|
|
<option value="2001">2001</option>
|
|
|
|
|
<option value="2000">2000</option>
|
|
|
|
|
<option value="1999">1999</option>
|
|
|
|
|
<option value="1998">1998</option>
|
|
|
|
|
<option value="1997">1997</option>
|
|
|
|
|
<option value="1996">1996</option>
|
|
|
|
|
<option value="1995">1995</option>
|
|
|
|
|
<option value="1994">1994</option>
|
|
|
|
|
<option value="1993">1993</option>
|
|
|
|
|
<option value="1992">1992</option>
|
|
|
|
|
<option value="1991">1991</option>
|
|
|
|
|
<option value="1990">1990</option>
|
|
|
|
|
<option value="1989">1989</option>
|
|
|
|
|
<option value="1988">1988</option>
|
|
|
|
|
<option value="1987">1987</option>
|
|
|
|
|
<option value="1986">1986</option>
|
|
|
|
|
<option value="1985">1985</option>
|
|
|
|
|
<option value="1984">1984</option>
|
|
|
|
|
<option value="1983">1983</option>
|
|
|
|
|
<option value="1982">1982</option>
|
|
|
|
|
<option value="1981">1981</option>
|
|
|
|
|
<option value="1980">1980</option>
|
|
|
|
|
<option value="1979">1979</option>
|
|
|
|
|
<option value="1978">1978</option>
|
|
|
|
|
<option value="1977">1977</option>
|
|
|
|
|
<option value="1976">1976</option>
|
|
|
|
|
<option value="1975">1975</option>
|
|
|
|
|
<option value="1974">1974</option>
|
|
|
|
|
<option value="1973">1973</option>
|
|
|
|
|
<option value="1972">1972</option>
|
|
|
|
|
<option value="1971">1971</option>
|
|
|
|
|
<option value="1970">1970</option>
|
|
|
|
|
<option value="1969">1969</option>
|
|
|
|
|
<option value="1968">1968</option>
|
|
|
|
|
<option value="1967">1967</option>
|
|
|
|
|
<option value="1966">1966</option>
|
|
|
|
|
<option value="1965">1965</option>
|
|
|
|
|
<option value="1964">1964</option>
|
|
|
|
|
<option value="1963">1963</option>
|
|
|
|
|
<option value="1962">1962</option>
|
|
|
|
|
<option value="1961">1961</option>
|
|
|
|
|
<option value="1960">1960</option>
|
|
|
|
|
<option value="1959">1959</option>
|
|
|
|
|
<option value="1958">1958</option>
|
|
|
|
|
<option value="1957">1957</option>
|
|
|
|
|
<option value="1956">1956</option>
|
|
|
|
|
<option value="1955">1955</option>
|
|
|
|
|
<option value="1954">1954</option>
|
|
|
|
|
<option value="1953">1953</option>
|
|
|
|
|
<option value="1952">1952</option>
|
|
|
|
|
<option value="1951">1951</option>
|
|
|
|
|
<option value="1950">1950</option>
|
|
|
|
|
<option value="1949">1949</option>
|
|
|
|
|
<option value="1948">1948</option>
|
|
|
|
|
<option value="1947">1947</option>
|
|
|
|
|
<option value="1946">1946</option>
|
|
|
|
|
<option value="1945">1945</option>
|
|
|
|
|
<option value="1944">1944</option>
|
|
|
|
|
<option value="1943">1943</option>
|
|
|
|
|
<option value="1942">1942</option>
|
|
|
|
|
<option value="1941">1941</option>
|
|
|
|
|
<option value="1940">1940</option>
|
|
|
|
|
<option value="1939">1939</option>
|
|
|
|
|
<option value="1938">1938</option>
|
|
|
|
|
<option value="1937">1937</option>
|
|
|
|
|
<option value="1936">1936</option>
|
|
|
|
|
<option value="1935">1935</option>
|
|
|
|
|
<option value="1934">1934</option>
|
|
|
|
|
<option value="1933">1933</option>
|
|
|
|
|
<option value="1932">1932</option>
|
|
|
|
|
<option value="1931">1931</option>
|
|
|
|
|
<option value="1930">1930</option>
|
|
|
|
|
<option value="1929">1929</option>
|
|
|
|
|
<option value="1928">1928</option>
|
|
|
|
|
<option value="1927">1927</option>
|
|
|
|
|
<option value="1926">1926</option>
|
|
|
|
|
<option value="1925">1925</option>
|
|
|
|
|
<option value="1924">1924</option>
|
|
|
|
|
<option value="1923">1923</option>
|
|
|
|
|
<option value="1922">1922</option>
|
|
|
|
|
<option value="1921">1921</option>
|
|
|
|
|
<option value="1920">1920</option>
|
|
|
|
|
<option value="1919">1919</option>
|
|
|
|
|
<option value="1918">1918</option>
|
|
|
|
|
<option value="1917">1917</option>
|
|
|
|
|
<option value="1916">1916</option>
|
|
|
|
|
<option value="1915">1915</option>
|
|
|
|
|
<option value="1914">1914</option>
|
|
|
|
|
<option value="1913">1913</option>
|
|
|
|
|
<option value="1912">1912</option>
|
|
|
|
|
<option value="1911">1911</option>
|
|
|
|
|
<option value="1910">1910</option>
|
|
|
|
|
<option value="1909">1909</option>
|
|
|
|
|
<option value="1908">1908</option>
|
|
|
|
|
<option value="1907">1907</option>
|
|
|
|
|
<option value="1906">1906</option>
|
|
|
|
|
<option value="1905">1905</option>
|
|
|
|
|
<option value="1904">1904</option>
|
|
|
|
|
<option value="1903">1903</option>
|
|
|
|
|
<option value="1902">1902</option>
|
|
|
|
|
<option value="1901">1901</option>
|
|
|
|
|
<option value="1900">1900</option>
|
|
|
|
|
<option value="1899">1899</option>
|
|
|
|
|
<option value="1898">1898</option>
|
|
|
|
|
<option value="1897">1897</option>
|
|
|
|
|
<option value="1896">1896</option>
|
|
|
|
|
<option value="1895">1895</option>
|
|
|
|
|
<option value="1894">1894</option>
|
|
|
|
|
<option value="1893">1893</option>
|
|
|
|
|
<option value="1892">1892</option>
|
|
|
|
|
<option value="1891">1891</option>
|
|
|
|
|
<option value="1890">1890</option>
|
|
|
|
|
<option value="1889">1889</option>
|
|
|
|
|
<option value="1888">1888</option>
|
|
|
|
|
<option value="1887">1887</option>
|
|
|
|
|
<option value="1886">1886</option>
|
|
|
|
|
<option value="1885">1885</option>
|
|
|
|
|
<option value="1884">1884</option>
|
|
|
|
|
<option value="1883">1883</option>
|
|
|
|
|
<option value="1882">1882</option>
|
|
|
|
|
<option value="1881">1881</option>
|
|
|
|
|
<option value="1880">1880</option>
|
|
|
|
|
<option value="1879">1879</option>
|
|
|
|
|
<option value="1878">1878</option>
|
|
|
|
|
<option value="1877">1877</option>
|
|
|
|
|
<option value="1876">1876</option>
|
|
|
|
|
<option value="1875">1875</option>
|
|
|
|
|
<option value="1874">1874</option>
|
|
|
|
|
<option value="1873">1873</option>
|
|
|
|
|
<option value="1872">1872</option>
|
|
|
|
|
<option value="1871">1871</option>
|
|
|
|
|
<option value="1870">1870</option>
|
|
|
|
|
<option value="1869">1869</option>
|
|
|
|
|
<option value="1868">1868</option>
|
|
|
|
|
<option value="1867">1867</option>
|
|
|
|
|
<option value="1866">1866</option>
|
|
|
|
|
<option value="1865">1865</option>
|
|
|
|
|
<option value="1864">1864</option>
|
|
|
|
|
<option value="1863">1863</option>
|
|
|
|
|
<option value="1862">1862</option>
|
|
|
|
|
<option value="1861">1861</option>
|
|
|
|
|
<option value="1860">1860</option>
|
|
|
|
|
<option value="1859">1859</option>
|
|
|
|
|
<option value="1858">1858</option>
|
|
|
|
|
<option value="1857">1857</option>
|
|
|
|
|
<option value="1856">1856</option>
|
|
|
|
|
<option value="1855">1855</option>
|
|
|
|
|
<option value="1854">1854</option>
|
|
|
|
|
<option value="1853">1853</option>
|
|
|
|
|
<option value="1852">1852</option>
|
|
|
|
|
<option value="1851">1851</option>
|
|
|
|
|
<option value="1850">1850</option>
|
2024-07-17 04:12:44 +03:00
|
|
|
|
</select> </span> <span id="dateLoaded" style="position:relative; top:2px; padding:2px 6px; display:none" class="nw label-green">Установлена дата из EXIF</span><span id="dateAbsent" style="position:relative; top:2px; padding:2px 6px; display:none" class="nw label-orange">Укажите дату съёмки (нет в EXIF)</span> <span class="sm nw"><a href="#" class="dot" onclick="setDate(<?=(new DateTime())->format('d,m,Y');?>); return false">Сегодня</a> · <a href="#" class="dot" onclick="setDate(<?=(new DateTime('yesterday'))->format('d,m,Y');?>); return false">Вчера</a> · <a href="#" class="dot" onclick="setDate(0,0,0); return false">Неизвестно</a></span>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" style="height:10px"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
2024-07-05 06:58:17 +03:00
|
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" style="height:10px"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
|
|
<tbody class="p20">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" id="step3" class="narrow" style="font-size:20px; padding:10px 15px 7px">Шаг 2. <b>Введите подпись для фотографии:</b></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Место съёмки:</td>
|
|
|
|
|
<td style="padding-right:15px">
|
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding:0; vertical-align:middle">
|
|
|
|
|
<input type="text" name="place" id="place" maxlength="255" style="width:506px" onfocus="showHint('place')" onblur="hideHint('place')" value="">
|
|
|
|
|
</td>
|
|
|
|
|
<td style="padding:0; position:relative; vertical-align:top" width="100%">
|
|
|
|
|
<div style="border:1px dashed #FF9797; color:red; background-color:#ffff99; padding:2px 4px 3px; margin:0 5px; display:none; position:absolute" id="place_hint"><small><strong>Без сокращений</strong> (кроме <strong>«к/ст»</strong>, <strong>«л/ст»</strong>).<br />Если указана улица, <strong>остановку</strong> пишем в примечании (не обязательно).<br /><strong>В кавычках:</strong> названия к/ст, колец, остановок, станций метро.<br /><strong>Без кавычек:</strong> ж/д платформы и станции.<br />Если на фото <strong>салон</strong>, место можно не указывать.</small></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">
|
|
|
|
|
Описание:
|
|
|
|
|
<div class="sm" style="color:#999; margin:3px 5px 0 0; white-space:normal">(если требуются)</div>
|
|
|
|
|
</td>
|
|
|
|
|
<td style="padding-right:15px">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding:0; vertical-align:middle"><textarea name="descr" onfocus="showHint('descr')" onblur="hideHint('descr')" style="width:506px; height:100px; margin-bottom:7px"></textarea></td>
|
|
|
|
|
<td style="padding:0; position:relative; vertical-align:top" width="100%">
|
|
|
|
|
<div style="border:1px dashed #FF9797; color:red; background-color:#ffff99; padding:2px 4px 3px; margin:0 5px; display:none; position:absolute" id="descr_hint"><small>Текстовое описание изображения в произвольной форме:<br>пояснения, дополнения и т. п., если необходимы..</small></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
2024-07-05 06:58:17 +03:00
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" style="height:7px"></td>
|
|
|
|
|
<tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" style="height:10px"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
2024-07-05 06:58:17 +03:00
|
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" style="height:10px"></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
2024-07-06 08:05:10 +03:00
|
|
|
|
|
2024-07-05 06:58:17 +03:00
|
|
|
|
<tbody class="p20">
|
|
|
|
|
<tr>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
<td colspan="2" id="step4" class="narrow" style="font-size:20px; padding:10px 15px 0">Шаг 3. <b>Отметьте точку, с которой вы делали кадр, на карте:</b></td>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td></td>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
<td style="padding:7px 2px">
|
|
|
|
|
<input type="checkbox" name="nomap" id="nomap" value="1" onclick="switchMap()"> <label for="nomap">Не указывать координаты</label>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr class="upl-map">
|
|
|
|
|
<td class="lcol">Точка съёмки:</td>
|
|
|
|
|
<td>
|
|
|
|
|
<div id="map_frame" class="s11 p20" style="display:inline-block; padding:3px">
|
|
|
|
|
<div id="map_canvas" style="width:600px; height:300px; overflow:hidden"></div>
|
|
|
|
|
<div>
|
|
|
|
|
<label for="mapSelector">Выберите карту:</label>
|
|
|
|
|
<select id="mapSelector">
|
|
|
|
|
<option value="osm">OpenStreetMap</option>
|
|
|
|
|
<option value="hot">Humanitarian OpenStreetMap Team</option>
|
|
|
|
|
<option value="opnv">OPNVKarte</option>
|
|
|
|
|
<option value="2gis">2ГИС (только Россия)</option>
|
|
|
|
|
<option value="google">Google Maps</option>
|
|
|
|
|
</select>
|
|
|
|
|
<div>
|
|
|
|
|
<label for="railwayCheckbox">Железная дорога от OpenRailwayMap:</label>
|
|
|
|
|
<input type="checkbox" id="railwayCheckbox">
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="lcol">Место съёмки:</td>
|
|
|
|
|
<td style="padding-right:15px">
|
|
|
|
|
<table width="100%">
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="padding:0; vertical-align:middle">
|
|
|
|
|
<input type="text" name="place" id="place" maxlength="255" style="width:506px" onfocus="showHint('place')" onblur="hideHint('place')" value="">
|
|
|
|
|
</td>
|
2024-07-08 20:10:00 +03:00
|
|
|
|
|
2024-07-08 13:46:00 +03:00
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" style="height:7px"></td>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
</tr>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
<script>
|
|
|
|
|
var map = L.map('map_canvas').setView([55.7558, 37.6176], 13);
|
|
|
|
|
var marker;
|
|
|
|
|
var geocoder;
|
|
|
|
|
|
|
|
|
|
// Инициализация базовых слоев Leaflet.js
|
|
|
|
|
var baseLayers = {
|
|
|
|
|
"osm": L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
|
|
|
maxZoom: 19
|
|
|
|
|
}),
|
|
|
|
|
"hot": L.tileLayer('https://tile-{s}.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
|
|
|
|
|
maxZoom: 19
|
|
|
|
|
}),
|
|
|
|
|
"opnv": L.tileLayer('https://{s}.tile.thunderforest.com/transport/{z}/{x}/{y}.png', {
|
|
|
|
|
maxZoom: 19,
|
|
|
|
|
attribution: 'Map data © <a href="https://www.thunderforest.com/">Thunderforest</a>'
|
|
|
|
|
}),
|
|
|
|
|
"2gis": L.tileLayer('https://tile2.maps.2gis.com/tiles?x={x}&y={y}&z={z}&v=1', {
|
|
|
|
|
maxZoom: 19,
|
|
|
|
|
attribution: '© 2GIS'
|
|
|
|
|
}),
|
|
|
|
|
"yandex": L.tileLayer('https://vec0{s}.maps.yandex.net/tiles?l=map&v=4.53.2&z={z}&x={x}&y={y}&scale=1&lang=ru_RU', {
|
|
|
|
|
subdomains: ['01', '02', '03', '04'],
|
|
|
|
|
maxZoom: 19
|
|
|
|
|
}),
|
|
|
|
|
"yandex-satellite": L.tileLayer('https://sat0{s}.maps.yandex.net/tiles?l=sat&v=3.827.0&z={z}&x={x}&y={y}&scale=1&lang=ru_RU', {
|
|
|
|
|
subdomains: ['01', '02', '03', '04'],
|
|
|
|
|
maxZoom: 19
|
|
|
|
|
}),
|
|
|
|
|
"google": L.tileLayer('https://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}', {
|
|
|
|
|
subdomains: ['mt0', 'mt1', 'mt2', 'mt3'],
|
|
|
|
|
maxZoom: 19,
|
|
|
|
|
attribution: '© Google Maps'
|
|
|
|
|
}),
|
|
|
|
|
"openrailway": L.tileLayer('https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png', {
|
|
|
|
|
maxZoom: 19,
|
|
|
|
|
attribution: '© OpenRailwayMap'
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
document.getElementById('railwayCheckbox').addEventListener('change', function() {
|
|
|
|
|
if (this.checked) {
|
|
|
|
|
baseLayers["openrailway"].addTo(map);
|
|
|
|
|
} else {
|
|
|
|
|
map.removeLayer(baseLayers["openrailway"]);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// Инициализация карты Leaflet.js с выбранным базовым слоем по умолчанию
|
|
|
|
|
baseLayers["osm"].addTo(map);
|
|
|
|
|
|
|
|
|
|
// Добавляем элемент управления выбора карты
|
|
|
|
|
document.getElementById('mapSelector').addEventListener('change', function() {
|
|
|
|
|
var selectedLayer = this.value;
|
|
|
|
|
|
|
|
|
|
// Удаляем текущий слой карты Leaflet.js
|
|
|
|
|
map.eachLayer(function(layer) {
|
|
|
|
|
map.removeLayer(layer);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Добавляем выбранный слой карты Leaflet.js
|
|
|
|
|
baseLayers[selectedLayer].addTo(map);
|
|
|
|
|
|
|
|
|
|
// Добавляем разметку внутри зданий для выбранных карт
|
|
|
|
|
if (selectedLayer === "osm" || selectedLayer === "hot" || selectedLayer === "opnv") {
|
|
|
|
|
addIndoorLayer(selectedLayer);
|
|
|
|
|
} else {
|
|
|
|
|
// Очищаем слой indoor, если выбран другой тип карты
|
|
|
|
|
clearIndoorLayer();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Функция добавления слоя разметки внутри зданий (Indoor)
|
|
|
|
|
function addIndoorLayer(selectedLayer) {
|
|
|
|
|
// Очищаем предыдущий indoor слой, если он был добавлен
|
|
|
|
|
clearIndoorLayer();
|
|
|
|
|
|
|
|
|
|
// Пример добавления indoor слоя с использованием Leaflet Indoor.js
|
|
|
|
|
// Ваш код для загрузки и отображения indoor карты
|
|
|
|
|
// Ниже приведён пример заглушки
|
|
|
|
|
|
|
|
|
|
// Создаём новый indoor слой
|
|
|
|
|
map.indoorLayer = new L.Indoor();
|
|
|
|
|
|
|
|
|
|
// Добавляем его на карту
|
|
|
|
|
map.indoorLayer.addTo(map);
|
|
|
|
|
|
|
|
|
|
// Загрузка и отображение indoor карты с помощью Indoor.js
|
|
|
|
|
// Пример заглушки: добавление одного здания с этажами и метками
|
|
|
|
|
var building = {
|
|
|
|
|
name: "Пример здания",
|
|
|
|
|
floors: [{
|
|
|
|
|
level: 0,
|
|
|
|
|
plan: {
|
|
|
|
|
imageUrl: "path/to/indoor/plan.png", // URL изображения плана здания
|
|
|
|
|
width: 800, // Ширина изображения в пикселях
|
|
|
|
|
height: 600 // Высота изображения в пикселях
|
|
|
|
|
},
|
|
|
|
|
markers: [{
|
|
|
|
|
latLng: [51.505, -0.09], // Координаты метки на плане
|
|
|
|
|
label: "Метка на плане"
|
|
|
|
|
}]
|
|
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Добавляем здание на indoor слой
|
|
|
|
|
map.indoorLayer.addLevel(building);
|
|
|
|
|
|
|
|
|
|
// Пример настройки интерактивности для меток
|
|
|
|
|
building.floors.forEach(function(floor) {
|
|
|
|
|
floor.markers.forEach(function(marker) {
|
|
|
|
|
var markerIcon = L.divIcon({
|
|
|
|
|
className: 'indoor-marker',
|
|
|
|
|
html: marker.label
|
|
|
|
|
});
|
|
|
|
|
L.marker(marker.latLng, {
|
|
|
|
|
icon: markerIcon
|
|
|
|
|
}).addTo(map.indoorLayer.getLevel(floor.level));
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Функция очистки indoor слоя
|
|
|
|
|
function clearIndoorLayer() {
|
|
|
|
|
if (map.indoorLayer) {
|
|
|
|
|
map.removeLayer(map.indoorLayer);
|
|
|
|
|
delete map.indoorLayer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Добавляем обработчик клика на карту Leaflet.js
|
|
|
|
|
map.on('click', function(e) {
|
|
|
|
|
if (marker) {
|
|
|
|
|
map.removeLayer(marker);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
marker = L.marker(e.latlng).addTo(map);
|
|
|
|
|
document.getElementById('markerLat').value = e.latlng.lat;
|
|
|
|
|
document.getElementById('markerLng').value = e.latlng.lng;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Инициализация поискового элемента управления Leaflet.js
|
|
|
|
|
geocoder = L.Control.geocoder({
|
|
|
|
|
defaultMarkGeocode: false
|
|
|
|
|
}).on('markgeocode', function(e) {
|
|
|
|
|
var latlng = e.geocode.center;
|
|
|
|
|
|
|
|
|
|
if (marker) {
|
|
|
|
|
map.removeLayer(marker);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
marker = L.marker(latlng).addTo(map);
|
|
|
|
|
map.setView(latlng, 13);
|
|
|
|
|
|
|
|
|
|
document.getElementById('markerLat').value = latlng.lat;
|
|
|
|
|
document.getElementById('markerLng').value = latlng.lng;
|
|
|
|
|
|
|
|
|
|
var bbox = e.geocode.bbox;
|
|
|
|
|
if (bbox.isValid()) {
|
|
|
|
|
var poly = L.polygon([
|
|
|
|
|
bbox.getSouthEast(),
|
|
|
|
|
bbox.getNorthEast(),
|
|
|
|
|
bbox.getNorthWest(),
|
|
|
|
|
bbox.getSouthWest()
|
|
|
|
|
]).addTo(map);
|
|
|
|
|
map.fitBounds(poly.getBounds());
|
|
|
|
|
}
|
|
|
|
|
}).addTo(map);
|
|
|
|
|
</script>
|
|
|
|
|
<tbody class="p20">
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2" class="narrow" style="font-size:20px; padding:10px 15px 5px">Шаг 4. <b>Выберите опции загрузки:</b></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<td class="lcol">Лицензия:</td>
|
|
|
|
|
<td style="padding-bottom:7px">
|
|
|
|
|
<select name="license">
|
|
|
|
|
<option value="0">Не указана</option>
|
|
|
|
|
<option value="1" selected>Copyright ©</option>
|
|
|
|
|
<option value="2">Атрибуция (BY)</option>
|
|
|
|
|
<option value="3">Атрибуция — С сохранением условий (BY-SA)</option>
|
|
|
|
|
<option value="4">Атрибуция — Некоммерческое использование (BY-NC)</option>
|
|
|
|
|
<option value="5">Атрибуция — Некоммерческое использование — С сохранением условий (BY-NC-SA)</option>
|
|
|
|
|
<option value="6">Атрибуция — Без производных работ (BY-ND)</option>
|
|
|
|
|
<option value="7">Атрибуция — Некоммерческое использование — Без производных работ (BY-NC-ND)</option>
|
|
|
|
|
<option value="8">Передача в общественное достояние (Zero)</option>
|
|
|
|
|
<option value="9">Нет авторских прав (Mark)</option>
|
|
|
|
|
</select> <a href="https://creativecommons.org/licenses/?lang=ru" target="_blank" class="und sm">Информация о лицензиях</a>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td style="padding:20px 2px 12px">
|
|
|
|
|
<button id="submitbtn" href="#" class="progress-button" data-loading="Идёт загрузка..." data-finished="Обработка..." type="submit">Отправить фотографию</button>
|
|
|
|
|
<span id="statusbox" class="narrow" style="font-size:20px; font-weight:bold; position:relative; top:-12px"></span>
|
|
|
|
|
<div id="errorsbox" style="display:none; color:red; margin-top:15px; font-weight:bold;"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</form>
|
|
|
|
|
</div><br>
|
|
|
|
|
<div id="loadtable" class="p20" style="display:none; padding-bottom:20px; margin-bottom:15px">
|
|
|
|
|
<h4>Загруженные фотографии</h4>
|
|
|
|
|
<div id="loadbox" style="display:flex; flex-wrap:wrap; gap:10px"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2024-07-08 20:10:00 +03:00
|
|
|
|
<tr>
|
|
|
|
|
<?php include($_SERVER['DOCUMENT_ROOT'] . '/views/components/Footer.php'); ?>
|
|
|
|
|
</tr>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
</table>
|
2024-07-05 07:59:53 +03:00
|
|
|
|
<script>
|
2024-07-08 13:46:00 +03:00
|
|
|
|
$('#mform').submit(function(e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
var formData = new FormData(this);
|
|
|
|
|
var bar = $('.bar');
|
|
|
|
|
var percent = $('.percent');
|
|
|
|
|
var status = $('#status');
|
|
|
|
|
var continuepost = 0;
|
2024-07-09 00:00:18 +03:00
|
|
|
|
$('#submitbtn').prop("disabled", true);
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: '/api/upload',
|
|
|
|
|
data: formData,
|
|
|
|
|
|
|
|
|
|
xhr: function() {
|
|
|
|
|
// Добавляем спиннер и блокируем кнопку во время загрузки
|
|
|
|
|
//$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3" disabled><div class="plus-button-reflection"></div>Опубликовать</button>');
|
|
|
|
|
|
|
|
|
|
var xhr = new window.XMLHttpRequest();
|
|
|
|
|
xhr.upload.addEventListener("progress", function(evt) {
|
|
|
|
|
if (evt.lengthComputable) {
|
|
|
|
|
var percentComplete = parseInt(((evt.loaded / evt.total) * 100));
|
|
|
|
|
console.log(evt.total);
|
|
|
|
|
|
|
|
|
|
// Обновляем прогресс загрузки
|
|
|
|
|
scrollProgressBarWidth(percentComplete);
|
|
|
|
|
}
|
|
|
|
|
}, false);
|
|
|
|
|
return xhr;
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
success: function(response) {
|
|
|
|
|
try {
|
|
|
|
|
var jsonData = JSON.parse(response);
|
|
|
|
|
} catch (err) {
|
|
|
|
|
//$("#r").html('<button id="uploadbtn" style="margin-right: 15px; background: none; border: none; color: aliceblue; " type="submit" name="createpost" class="mb-3 mt-3"><i style="position:relative; font-size: 25px; margin-right: 10px; color: aliceblue; top: 4px;" class="ti ti-message-share uploadbtn"></i>Опубликовать</button>');
|
|
|
|
|
$("#prgtd").html('');
|
|
|
|
|
$("#prgrsg").html('');
|
|
|
|
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
|
|
|
|
Notify.noty('danger', escapeHtml(err.message));
|
|
|
|
|
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
|
|
|
|
scrollProgressBarWidth(0);
|
2024-07-09 00:00:18 +03:00
|
|
|
|
$('#submitbtn').prop("disabled", false);
|
2024-07-08 13:46:00 +03:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (jsonData.errorcode == "1") {
|
|
|
|
|
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
|
|
|
|
//$("#r").html('<button id="uploadbtn" style="margin-right: 15px; background: none; border: none; color: aliceblue; " type="submit" name="createpost" class="mb-3 mt-3"><i style="position:relative; font-size: 25px; margin-right: 10px; color: aliceblue; top: 4px;" class="ti ti-message-share uploadbtn"></i>Опубликовать</button>');
|
|
|
|
|
$("#prgtd").html('');
|
|
|
|
|
$("#prgrsg").html('');
|
|
|
|
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
|
|
|
|
Notify.noty('danger', 'В посте нет контента!');
|
|
|
|
|
scrollProgressBarWidth(0);
|
2024-07-09 00:00:18 +03:00
|
|
|
|
$('#submitbtn').prop("disabled", false);
|
2024-07-08 13:46:00 +03:00
|
|
|
|
|
|
|
|
|
} else if (jsonData.errorcode == "101") {
|
|
|
|
|
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
|
|
|
|
//$("#r").html('<button id="uploadbtn" style="margin-right: 15px; background: none; border: none; color: aliceblue; " type="submit" name="createpost" class="mb-3 mt-3"><i style="position:relative; font-size: 25px; margin-right: 10px; color: aliceblue; top: 4px;" class="ti ti-message-share uploadbtn"></i>Опубликовать</button>');
|
|
|
|
|
$("#prgtd").html('');
|
|
|
|
|
$("#prgrsg").html('');
|
|
|
|
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
|
|
|
|
Notify.noty('danger', 'В посте больше 10 медиафайлов');
|
2024-07-09 00:00:18 +03:00
|
|
|
|
$('#submitbtn').prop("disabled", false);
|
2024-07-08 13:46:00 +03:00
|
|
|
|
scrollProgressBarWidth(0);
|
|
|
|
|
} else if (jsonData.errorcode == "0") {
|
|
|
|
|
Notify.noty('success', 'Успешная публикация!');
|
|
|
|
|
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3" disabled>Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
|
|
|
|
//$("#r").html('<button id="uploadbtn" style="margin-right: 15px; background: none; border: none; color: aliceblue; " type="submit" name="createpost" class="mb-3 mt-3"><i style="position:relative; font-size: 25px; margin-right: 10px; color: aliceblue; top: 4px;" class="ti ti-message-share uploadbtn"></i>Опубликовать</button>');
|
|
|
|
|
$("#prgtd").html('');
|
|
|
|
|
$("#prgrsg").html('');
|
|
|
|
|
/*let positionData = {
|
|
|
|
|
id: jsonData.id,
|
|
|
|
|
user_id: jsonData.user_id,
|
|
|
|
|
text: jsonData.text,
|
|
|
|
|
user_flname: jsonData.user_flname,
|
|
|
|
|
username: jsonData.username,
|
|
|
|
|
user_photo: jsonData.user_photo
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ws.send(JSON.stringify(positionData));*/
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
window.location.replace("/photo/" + jsonData.id);
|
|
|
|
|
scrollProgressBarWidth(0);
|
|
|
|
|
}, 1000);
|
|
|
|
|
} else if (jsonData.errorcode == "LIMITEXCEEDED") {
|
|
|
|
|
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
|
|
|
|
$("#prgtd").html('');
|
|
|
|
|
$("#prgrsg").html('');
|
|
|
|
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
|
|
|
|
//alert('За последнюю минуту вы отправили слишком много запросов. Повторите попытку позже.');
|
|
|
|
|
createModal('NONE', 'NONE', 'NONE', 'LIMITEXCEEDED', 'limit');
|
|
|
|
|
scrollProgressBarWidth(0);
|
|
|
|
|
} else {
|
|
|
|
|
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
|
|
|
|
$("#prgtd").html('');
|
|
|
|
|
$("#prgrsg").html('');
|
|
|
|
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
|
|
|
|
Notify.noty('danger', 'Неизвестная ошибка');
|
|
|
|
|
scrollProgressBarWidth(0);
|
2024-07-09 00:00:18 +03:00
|
|
|
|
$('#submitbtn').prop("disabled", false);
|
2024-07-08 13:46:00 +03:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error: function(xhr, status, error) {
|
|
|
|
|
$("#r").html('<button type="submit" id="register" name="loginaccount" class="btn btn-block btn-primary py-2 ripple-handler mt-1 mb-3">Опубликовать<span class="ripple-mask"><span class="ripple" style=""></span></span></button>');
|
|
|
|
|
$("#prgtd").html('');
|
|
|
|
|
$("#prgrsg").html('');
|
|
|
|
|
//$("#prgrsg").html('<div id="prgrs" class="progress-bar progress-bar-striped progress-bar-animated bg-danger" role="progressbar" aria-valuenow="0" aria-valuemin="100" aria-valuemax="100" style="width: 100%">100%</div>');
|
|
|
|
|
Notify.noty('danger', 'Не удалось опубликовать пост');
|
|
|
|
|
scrollProgressBarWidth(0);
|
2024-07-09 00:00:18 +03:00
|
|
|
|
$('#submitbtn').prop("disabled", false);
|
2024-07-08 13:46:00 +03:00
|
|
|
|
},
|
|
|
|
|
cache: false,
|
|
|
|
|
contentType: false,
|
|
|
|
|
processData: false
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2024-07-05 06:58:17 +03:00
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
</html>
|