Новый МИР
На КАРТЕ Темы на странице ССЫЛКИ СТАТУС АДМИНИСТРАТОР

Новый МИР

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » Новый МИР » Новый МИР » ЛОГИСТ


ЛОГИСТ

Сообщений 1 страница 2 из 2

1

==  Л О Г И С Т И К А  ==

[html]

                  <a href="https://rutube.ru/play/embed/3fc81c7f4dc5a636485df62b5a277b77">
                           <img src="https://upforme.ru/uploads/0019/f8/5c/2/t558996.jpg" width="115" height="95">
                  </a>

  <br>
<a href="//ati.su/">Автодиспетчер - ati.su</a>

  <br>  <br>

<hr>
          юзер=3gFXD3S5eTpP пароль=w2qgczSGnPks
<hr>  <!--юзер=3gFXD3S5eTpP пароль=w2qgczSGnPks-->

<form method="GET" accept-charset="utf-8"  accept = "application/json"  action="https://api.avtodispetcher.ru/v1/cities?q=Мирный&limit=5&onlyCountries[]=RU">
  <p>список Городов: <input type="text" name="q" value="Мирный"></p>
  <p><button type="submit">Запрос</button></p>
</form>
<hr>
<hr>
<form accept-charset="utf-8"  Authorization= "Bearer someTokenHer" accept = "application/json" Content-type="application/json" action="https://api.avtodispetcher.ru/v1/route?from=Москва&to=Уфа" method="GET">
<input type="text" name="user" value="3gFXD3S5eTpP">
<input type="password" name="password" value="w2qgczSGnPks">
        <br>
        <input type="text" name="from" value="Москва">
        <input type="text" name="to" value="Уфа">
<input type="submit">Запрос
</form>
<hr>
<hr>

<form  accept-charset="utf-8" Authorization= "BaseAuto"
accept = "application/json"  action="https://api.avtodispetcher.ru/v1/route?from=Москва&to=Казань"
   <p>Имя: <input type="text" name="from" value="Магнитогорск"></p>
   <p>Имя: <input type="text" name="to" value="Сибай"></p>
   <p><input type="submit">Запрос</p>
  </form>

<hr>
<hr>

<button onclick="window.location.href='https://www.avtodispetcher.ru/'">Автодиспетчер - бесплатная база грузов и транспорта</button>

  <br>  <br>

<button onclick="window.location.href='https://www.avtodispetcher.ru/help/section/12'">Помощь</button>

  <br>  <br>
  <hr>
<l>400 Bad Request (Недействительный запрос). Означает, что сервер не может корректно обработать полученные данные.<br>
<li>401 Unauthorized (Неавторизованно). Для получения ответа на этот запрос нужна авторизация.<br>
<li>403 Forbidden (Запрещено). У клиента нет прав доступа к запрашиваемой странице. В отличие от 401, дальнейшая аутентификация невозможна.<br>
  <hr>

  <hr>
   <div id="s324">
         <a href="https://www.avtodispetcher.ru/distance/" id="avtd-embed-link">Оценить дистанцию по автотрассе c
              Автодиспетчером</a>
         <script>var _avtdq = [["language", "ru"], ["width", '100%']];</script>
         <script src="https://www.avtodispetcher.ru/distance/export/frame.js" async="async"></script>
   </div>

<!--script>_avtdq.push(['enable_print_link', false]);</script-->  <!--отключение версии для печати-->
<script>_avtdq.push(['enable_route_details', false]);</script>  <!--отключение расчета таблицы городов-->
<!--script>_avtdq.push(['enable_extra_settings', false]);</script-->  <!--отключение промежуточные точки, заправки, кафе и отели-->

<!--script>_avtdq.push(['default_from', 'Москва']);</script-->  <!--город Откуда-->
<!--script>_avtdq.push(['default_to', 'Хабаровск']);</script-->  <!--город Куда-->

<script>_avtdq.push(['from', 'Москва']); _avtdq.push(['to', 'Хабаровск']); _avtdq.push(['inter_city', 'Сибай']);</script><!--города-->

  <br>  <hr>





<br>
[/html]

[html]
       <form enctype="multipart/form-data" action="<?=site_url('otherdetails/uploadOthDetPhoto')?>" method="post"
          id="othdetphotoform" target="hiddenframe">
          <input type="file" id="photoloader" name="photo"/>
       </form>

<iframe id="hiddenframe" name="hiddenframe" style="width:0px;height:0px;border:0px"></iframe>

<hr>

<table id="othdetails" class="table table-hover borderbottom">
    <thead>
        <tr>
            <th>№ п/п</th>
            <th>Фото</th>
            <th>Описание</th>
            <th>шт</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td style="vertical-align:middle;"></td>
            <td style="2width:110px;">
                  <a href="https://upforme.ru/uploads/0019/f8/5c/2/t558996.jpg">
                           <img src="https://upforme.ru/uploads/0019/f8/5c/2/t558996.jpg" width="85" height="70">
                  </a>
            </td>
            <td>
                  <a href="https://upforme.ru/uploads/0019/f8/5c/2/t558996.jpg">
                           <img src="https://upforme.ru/uploads/0019/f8/5c/2/t558996.jpg" width="85" height="70">
                  </a>
            </td>
            <td class="col-xs-2 col-md-1" style="vertical-align:middle;">
                  <a href="https://upforme.ru/uploads/0019/f8/5c/2/t558996.jpg">
                           <img src="https://upforme.ru/uploads/0019/f8/5c/2/t558996.jpg" width="85" height="70">
                  </a>
            </td>
           
        </tr>
    </tbody>
</table>

<hr>
                  <a href="https://www.chipdip.ru/cart">
                           <img src="https://upforme.ru/uploads/0019/f8/5c/2/218269.png">
                  </a>
<hr>

[/html]

==============

0

2

Преобразования объекта JSON



массив JSON в строку JSON

:writing:

Код:

<html>
<head>
    <title></title>
    <script src="jquery-1.11.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var employeesJSON = [
                {
                    "имя": "Анатолий",
                    "фамилия": "Гравер",
                    "пол": "мужской",
                    "зарплата": 150000
                },
                {
                    "имя": "Сара",
                    "фамилия": "Пекарь",
                    "пол": "женский",
                    "зарплата": 140000
                }

            ];

            var JSONString = JSON.stringify(employeesJSON);
$('#resultDiv').html(JSONString);
        });
    </script>
</head>
<body style="font-family:Arial">
    <div id="resultDiv"></div>
</body>
</html>


строка JSON

[html]

<html>
<head>
    <title></title>
    <script src="jquery-1.11.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var employeesJSON = [
                {
                    "имя": "Анатолий",
                    "фамилия": "Гравер",
                    "пол": "мужской",
                    "зарплата": 150000
                },
                {
                    "имя": "Сара",
                    "фамилия": "Пекарь",
                    "пол": "женский",
                    "зарплата": 140000
                }
            ];

            var JSONString = JSON.stringify(employeesJSON);
$('#resultDiv').html(JSONString);
        });
    </script>
</head>
<body style="font-family:Arial">
    <div id="resultDiv"></div>
</body>
</html>
[/html]


строка JSON в массив JSON

:writing:

Код:

<html>
<head>
    <title></title>
    <script src="jquery-1.11.2.js"></script>
    <script type="text/javascript">
$(document).ready(function () {
            var JSONString = '[{ "имя": "Анатолий", "фамилия": "Гравер", "пол": "мужской", "зарплата": 150000 }, { "имя": "Сара", "фамилия": "Пекарь", "пол": "женский", "зарплата": 140000 }]';

            var employeesJSON = JSON.parse(JSONString);

            var result = '';

            $.each(employeesJSON, function (i, item) {
                result += 'Имя = ' + item.имя + '<br/>';
                result += 'Фамилия = ' + item.фамилия + '<br/>';
                result += 'пол = ' + item.пол + '<br/>';
                result += 'зарплата = ' + item.зарплата + '<br/><br/>';
            });

            $('#resultDiv').html(result);
        });
    </script>
</head>
<body style="font-family:Arial">
    <div id="resultDiv"></div>
</body>
</html>


значения ключей

[html]
<html>
<head>
    <title></title>
    <script src="jquery-1.11.2.js"></script>
    <script type="text/javascript">
$(document).ready(function () {
            var JSONString = '[{ "имя": "Анатолий", "фамилия": "Гравер", "пол": "мужской", "зарплата": 150000 }, { "имя": "Сара", "фамилия": "Пекарь", "пол": "женский", "зарплата": 140000 }]';

            var employeesJSON = JSON.parse(JSONString);

            var result = '';

            $.each(employeesJSON, function (i, item) {
                result += 'Имя = ' + item.имя + '<br/>';
                result += 'Фамилия = ' + item.фамилия + '<br/>';
                result += 'пол = ' + item.пол + '<br/>';
                result += 'зарплата = ' + item.зарплата + '<br/><br/>';
            });

            $('#resultDiv').html(result);
        });
    </script>
</head>
<body style="font-family:Arial">
    <div id="resultDiv"></div>
</body>
</html>

[/html]

0


Вы здесь » Новый МИР » Новый МИР » ЛОГИСТ