Показать сообщение отдельно
  #14 (permalink)  
Старый 22.04.2014, 13:49
Аватар для рони
Профессор
Отправить личное сообщение для рони Посмотреть профиль Найти все сообщения от рони
 
Регистрация: 27.05.2010
Сообщений: 33,105

Chamus,
<html>

<head>
<title>Мастер ТЭН - программа компании ООО «Электронагреватели», версия 1.0
</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$(function () {

    $("#tt").click(function () {
        goCalc()
    });

    function goCalc() {
        var tr = $("<tr/>");
        $("<td/>", {
            html: "<div class='' title=''></div>"
        }).appendTo(tr);
        $(".journal > tbody tr:first td:nth-of-type(n+2)").each(function (indx) {
            var sum = 0;
            $("td:nth-child(" + (indx + 2) + ")", ".journal tbody").each(function () {
                sum += +$(this).text();
            });
            $("<td/>", {
                text: sum
            }).appendTo(tr);
        });
        tr.appendTo('.journal > tbody')
    }
})
</script>
</head>

<body>
<div class="top1">
<div class="wd" id="top1">

<span id="tt">ТЕСТ</span>

<ul id="tasks" style="display: block;"></ul>

<div class="clear"></div>
</div>
</div>

<div class="top2">
<div class="wd spacer33" id="top-second-menu">
<table border="0" style="display: table;" width="100%">
  <thead>

  </thead>
</table>
</div>
</div>

<div class="wd" id="main" style="display: block;">
<br>

<table class="journal" style="display: table;">
<thead>
  <tr>
    <th id="coloumnsControl">
      <div class="resize"></div>
    </th>
    <th>
      <div style="width: 40px;">
        <span>Номер наряда</span>
      </div>
    </th>
    <th>
      <div style="width: 148px;">
        <span>Пользователь</span>
      </div>
    </th>
    <th>
      <div style="width: 101px;">
        <span>Дата</span>
      </div>
    </th>
    </tr>
</thead>

<tbody>
  <tr>
    <td class=" status-closed">
      <div class="ten" title="ТЭН"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr style="opacity: 0.3;">
    <td class="">
      <div class="ten" title="ТЭН"></div>

      <div class="transport"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="ten" title="ТЭН"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="slab" title="Пластина"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="shtucer" title="Штуцер"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class="">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class="">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class="">
      <div class="ten" title="ТЭН"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr style="opacity: 0.3;">
    <td class="">
      <div class="ten" title="ТЭН"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr style="opacity: 0.3;">
    <td class="">
      <div class="ten" title="ТЭН"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class="">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr style="opacity: 0.3;">
    <td class="">
      <div class="ten" title="ТЭН"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class="">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class="">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class="">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="shtucer" title="Штуцер"></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class=" status-closed">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class="">
      <div class="" title=""></div>
    </td>
    <td>374</td>
    <td>123</td>
    <td>123</td>
  </tr>

  <tr>
    <td class="">
      <div class="" title=""></div>
    </td>

    <td class="c cellCol1691">374</td>

    <td>123</td>

    <td class="c cellCol1721">123</td>
  </tr>
</tbody>

<tfoot>
  <tr>
    <td colspan="100"><a class="more" href="#">...</a>
    </td>
  </tr>
</tfoot>
</table>
<br>
</div>

</body>

</html>
Ответить с цитированием