Warning: Cannot use a scalar value as an array in /home/admin/public_html/forum/include/fm.class.php on line 757

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/include/fm.class.php on line 770

Warning: Invalid argument supplied for foreach() in /home/admin/public_html/forum/topic.php on line 737
Форумы портала PHP.SU :: Перевод html таблицы генерируемой скриптом php в формат xls

 PHP.SU

Программирование на PHP, MySQL и другие веб-технологии
PHP.SU Портал     На главную страницу форума Главная     Помощь Помощь     Поиск Поиск     Поиск Яндекс Поиск Яндекс     Вакансии  Пользователи Пользователи


 Страниц (1): [1]   

> Без описания
haotichni
Отправлено: 06 Декабря, 2012 - 11:29:25
Post Id


Новичок


Покинул форум
Сообщений всего: 38
Дата рег-ции: Февр. 2011  
Откуда: Беларусь, Брест


Помог: 0 раз(а)




Есть хтмл таблица генерируемая с помощью пхп, как эту таблицу хтмл сохранить в формате xls?



report.php
PHP:
скопировать код в буфер обмена
  1. <?PHP
  2.  
  3.         include "login.php";
  4.  
  5.  
  6.         $template = tmpl_open('templates/report.html');
  7.  
  8.         if ($_GET['ratedate1'] == '') $ratedate1 = date('d.m.Y', strtotime('first monday last week'));
  9.                 else $ratedate1 = $_GET['ratedate1'];
  10.         if ($_GET['ratedate2'] == '') $ratedate2 = date('d.m.Y');
  11.                 else $ratedate2 = $_GET['ratedate2'];
  12.         if ($_GET['ratedate1c'] == '') $ratedate1c = date('Y/m/d', strtotime('first monday last week'));
  13.                 else $ratedate1c = $_GET['ratedate1c'];
  14.         if ($_GET['ratedate1c'] == '') $ratedate2c = date('Y/m/d');
  15.                 else $ratedate2c = $_GET['ratedate2c'];
  16.  
  17.         ////////////////        I
  18.         $stmt = ociparse($conn, "select count(id) con from ty where power < 140 and DATE_IN between :d1 and :d2" );
  19.         ocibindbyname($stmt, ":d1", $ratedate1);
  20.         ocibindbyname($stmt, ":d2", $ratedate2);
  21.         ociexecute($stmt, OCI_DEFAULT);
  22.         ocifetch($stmt);
  23.         $a11 = ociresult($stmt, "CON");
  24.  
  25.         $stmt = ociparse($conn, "select count(id) con from ty where power >= 140 and power <200 and DATE_IN between :d1 and :d2" );
  26.         ocibindbyname($stmt, ":d1", $ratedate1);
  27.         ocibindbyname($stmt, ":d2", $ratedate2);
  28.         ociexecute($stmt, OCI_DEFAULT);
  29.         ocifetch($stmt);
  30.         $a12 = ociresult($stmt, "CON");
  31.  
  32.         $stmt = ociparse($conn, "select count(id) con from ty where power >= 200 and DATE_IN between :d1 and :d2" );
  33.         ocibindbyname($stmt, ":d1", $ratedate1);
  34.         ocibindbyname($stmt, ":d2", $ratedate2);
  35.         ociexecute($stmt, OCI_DEFAULT);
  36.         ocifetch($stmt);
  37.         $a13 = ociresult($stmt, "CON");
  38.  
  39.         ////////////////        II
  40.         $stmt = ociparse($conn, "select count(id) con from ty where power < 140 and DATE_IN between :d1 and :d2 and DATE_OUT IS NOT NULL" );
  41.         ocibindbyname($stmt, ":d1", $ratedate1);
  42.         ocibindbyname($stmt, ":d2", $ratedate2);
  43.         ociexecute($stmt, OCI_DEFAULT);
  44.         ocifetch($stmt);
  45.         $a21 = ociresult($stmt, "CON");
  46.  
  47.         $stmt = ociparse($conn, "select count(id) con from ty where power >= 140 and power <200 and DATE_IN between :d1 and :d2 and DATE_OUT IS NOT NULL");
  48.         ocibindbyname($stmt, ":d1", $ratedate1);
  49.         ocibindbyname($stmt, ":d2", $ratedate2);
  50.         ociexecute($stmt, OCI_DEFAULT);
  51.         ocifetch($stmt);
  52.         $a22 = ociresult($stmt, "CON");
  53.  
  54.         $stmt = ociparse($conn, "select count(id) con from ty where power >200 and DATE_IN between :d1 and :d2 and DATE_OUT IS NOT NULL");
  55.         ocibindbyname($stmt, ":d1", $ratedate1);
  56.         ocibindbyname($stmt, ":d2", $ratedate2);
  57.         ociexecute($stmt, OCI_DEFAULT);
  58.         ocifetch($stmt);
  59.         $a23 = ociresult($stmt, "CON");
  60.  
  61.         ////////////////        III
  62.                 $stmt = ociparse($conn, "select count(id) con from ty where power < 140 and DATE_IN between '01.06.2012' and :d2" );
  63.         ocibindbyname($stmt, ":d2", $ratedate2);
  64.         ociexecute($stmt, OCI_DEFAULT);
  65.         ocifetch($stmt);
  66.         $a31 = ociresult($stmt, "CON");
  67.  
  68.         $stmt = ociparse($conn, "select count(id) con from ty where power >= 140 and power <200 and DATE_IN between '01.06.2012' and :d2" );
  69.         ocibindbyname($stmt, ":d2", $ratedate2);
  70.         ociexecute($stmt, OCI_DEFAULT);
  71.         ocifetch($stmt);
  72.         $a32 = ociresult($stmt, "CON");
  73.  
  74.         $stmt = ociparse($conn, "select count(id) con from ty where power >= 200 and DATE_IN between '01.06.2012' and :d2" );
  75.         ocibindbyname($stmt, ":d2", $ratedate2);
  76.         ociexecute($stmt, OCI_DEFAULT);
  77.         ocifetch($stmt);
  78.         $a33 = ociresult($stmt, "CON");
  79.  
  80.         ////////////////        IV
  81.         $stmt = ociparse($conn, "select count(id) con from ty where power < 140 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL" );
  82.         ocibindbyname($stmt, ":d2", $ratedate2);
  83.         ociexecute($stmt, OCI_DEFAULT);
  84.         ocifetch($stmt);
  85.         $a41 = ociresult($stmt, "CON");
  86.  
  87.         $stmt = ociparse($conn, "select count(id) con from ty where power >= 140 and power <200 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL");
  88.         ocibindbyname($stmt, ":d2", $ratedate2);
  89.         ociexecute($stmt, OCI_DEFAULT);
  90.         ocifetch($stmt);
  91.         $a42 = ociresult($stmt, "CON");
  92.  
  93.         $stmt = ociparse($conn, "select count(id) con from ty where power >200 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL");
  94.         ocibindbyname($stmt, ":d2", $ratedate2);
  95.         ociexecute($stmt, OCI_DEFAULT);
  96.         ocifetch($stmt);
  97.         $a43 = ociresult($stmt, "CON");
  98.  
  99.         ////////////////        V
  100.         $stmt = ociparse($conn, "select avg(count_day) avg from ty where power < 140 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL" );
  101.         ocibindbyname($stmt, ":d2", $ratedate2);
  102.         ociexecute($stmt, OCI_DEFAULT);
  103.         ocifetch($stmt);
  104.         $a51 = ociresult($stmt, "AVG");
  105.  
  106.        
  107.  
  108.         $stmt = ociparse($conn, "select avg(count_day) avg from ty where power >= 140 and power <200 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL");
  109.         ocibindbyname($stmt, ":d2", $ratedate2);
  110.         ociexecute($stmt, OCI_DEFAULT);
  111.         ocifetch($stmt);
  112.         $a52 = ociresult($stmt, "AVG");
  113.  
  114.         $stmt = ociparse($conn, "select avg(count_day) avg from ty where power >200 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL");
  115.         ocibindbyname($stmt, ":d2", $ratedate2);
  116.         ociexecute($stmt, OCI_DEFAULT);
  117.         ocifetch($stmt);
  118.         $a53 = ociresult($stmt, "AVG");
  119.  
  120.                 ////////////////        VI
  121.         $stmt = ociparse($conn, "select count(id) con from podkl where power < 140 and DATE_IN between :d1 and :d2" );
  122.         ocibindbyname($stmt, ":d1", $ratedate1);
  123.         ocibindbyname($stmt, ":d2", $ratedate2);
  124.         ociexecute($stmt, OCI_DEFAULT);
  125.         ocifetch($stmt);
  126.         $a61 = ociresult($stmt, "CON");
  127.  
  128.         $stmt = ociparse($conn, "select count(id) con from podkl where power >= 140 and power <200 and DATE_IN between :d1 and :d2" );
  129.         ocibindbyname($stmt, ":d1", $ratedate1);
  130.         ocibindbyname($stmt, ":d2", $ratedate2);
  131.         ociexecute($stmt, OCI_DEFAULT);
  132.         ocifetch($stmt);
  133.         $a62 = ociresult($stmt, "CON");
  134.  
  135.         $stmt = ociparse($conn, "select count(id) con from podkl where power >= 200 and DATE_IN between :d1 and :d2" );
  136.         ocibindbyname($stmt, ":d1", $ratedate1);
  137.         ocibindbyname($stmt, ":d2", $ratedate2);
  138.         ociexecute($stmt, OCI_DEFAULT);
  139.         ocifetch($stmt);
  140.         $a63 = ociresult($stmt, "CON");
  141.  
  142.         ////////////////        VII
  143.         $stmt = ociparse($conn, "select count(id) con from podkl where power < 140 and DATE_IN between :d1 and :d2 and DATE_OUT IS NOT NULL" );
  144.         ocibindbyname($stmt, ":d1", $ratedate1);
  145.         ocibindbyname($stmt, ":d2", $ratedate2);
  146.         ociexecute($stmt, OCI_DEFAULT);
  147.         ocifetch($stmt);
  148.         $a71 = ociresult($stmt, "CON");
  149.  
  150.         $stmt = ociparse($conn, "select count(id) con from podkl where power >= 140 and power <200 and DATE_IN between :d1 and :d2 and DATE_OUT IS NOT NULL");
  151.         ocibindbyname($stmt, ":d1", $ratedate1);
  152.         ocibindbyname($stmt, ":d2", $ratedate2);
  153.         ociexecute($stmt, OCI_DEFAULT);
  154.         ocifetch($stmt);
  155.         $a72 = ociresult($stmt, "CON");
  156.  
  157.         $stmt = ociparse($conn, "select count(id) con from podkl where power >200 and DATE_IN between :d1 and :d2 and DATE_OUT IS NOT NULL");
  158.         ocibindbyname($stmt, ":d1", $ratedate1);
  159.         ocibindbyname($stmt, ":d2", $ratedate2);
  160.         ociexecute($stmt, OCI_DEFAULT);
  161.         ocifetch($stmt);
  162.         $a73 = ociresult($stmt, "CON");
  163.  
  164.         ////////////////        VIII
  165.                 $stmt = ociparse($conn, "select count(id) con from podkl where power < 140 and DATE_IN between '01.06.2012' and :d2" );
  166.         ocibindbyname($stmt, ":d2", $ratedate2);
  167.         ociexecute($stmt, OCI_DEFAULT);
  168.         ocifetch($stmt);
  169.         $a81 = ociresult($stmt, "CON");
  170.  
  171.         $stmt = ociparse($conn, "select count(id) con from podkl where power >= 140 and power <200 and DATE_IN between '01.06.2012' and :d2" );
  172.         ocibindbyname($stmt, ":d2", $ratedate2);
  173.         ociexecute($stmt, OCI_DEFAULT);
  174.         ocifetch($stmt);
  175.         $a82 = ociresult($stmt, "CON");
  176.  
  177.         $stmt = ociparse($conn, "select count(id) con from podkl where power >= 200 and DATE_IN between '01.06.2012' and :d2" );
  178.         ocibindbyname($stmt, ":d2", $ratedate2);
  179.         ociexecute($stmt, OCI_DEFAULT);
  180.         ocifetch($stmt);
  181.         $a83 = ociresult($stmt, "CON");
  182.  
  183.         ////////////////        IX
  184.         $stmt = ociparse($conn, "select count(id) con from podkl where power < 140 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL" );
  185.         ocibindbyname($stmt, ":d2", $ratedate2);
  186.         ociexecute($stmt, OCI_DEFAULT);
  187.         ocifetch($stmt);
  188.         $a91 = ociresult($stmt, "CON");
  189.  
  190.         $stmt = ociparse($conn, "select count(id) con from podkl where power >= 140 and power <200 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL");
  191.         ocibindbyname($stmt, ":d2", $ratedate2);
  192.         ociexecute($stmt, OCI_DEFAULT);
  193.         ocifetch($stmt);
  194.         $a92 = ociresult($stmt, "CON");
  195.  
  196.         $stmt = ociparse($conn, "select count(id) con from podkl where power >200 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL");
  197.         ocibindbyname($stmt, ":d2", $ratedate2);
  198.         ociexecute($stmt, OCI_DEFAULT);
  199.         ocifetch($stmt);
  200.         $a93 = ociresult($stmt, "CON");
  201.  
  202.        
  203.        
  204.         ////////////////        X
  205.         $stmt = ociparse($conn, "select avg(count_day) avg from podkl where power < 140 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL" );
  206.         ocibindbyname($stmt, ":d2", $ratedate2);
  207.         ociexecute($stmt, OCI_DEFAULT);
  208.         ocifetch($stmt);
  209.         $a101 = ociresult($stmt, "AVG");
  210.  
  211.         $stmt = ociparse($conn, "select avg(count_day) avg from podkl where power >= 140 and power <200 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL");
  212.         ocibindbyname($stmt, ":d2", $ratedate2);
  213.         ociexecute($stmt, OCI_DEFAULT);
  214.         ocifetch($stmt);
  215.         $a102 = ociresult($stmt, "AVG");
  216.  
  217.         $stmt = ociparse($conn, "select avg(count_day) avg from podkl where power >200 and DATE_IN between '01.06.2012' and :d2 and DATE_OUT IS NOT NULL");
  218.         ocibindbyname($stmt, ":d2", $ratedate2);
  219.         ociexecute($stmt, OCI_DEFAULT);
  220.         ocifetch($stmt);
  221.         $a103 = ociresult($stmt, "AVG");
  222.  
  223.         tmpl_iterate($template, "data");
  224.         tmpl_set($template, "data/a11", $a11);
  225.         tmpl_set($template, "data/a12", $a12);
  226.         tmpl_set($template, "data/a13", $a13);
  227.         tmpl_set($template, "data/a14", $a11+$a12+$a13);
  228.         tmpl_set($template, "data/a21", $a21);
  229.         tmpl_set($template, "data/a22", $a22);
  230.         tmpl_set($template, "data/a23", $a23);
  231.         tmpl_set($template, "data/a24", $a21+$a22+$a23);
  232.         tmpl_set($template, "data/a31", $a31);
  233.         tmpl_set($template, "data/a32", $a32);
  234.         tmpl_set($template, "data/a33", $a33);
  235.         tmpl_set($template, "data/a34", $a31+$a32+$a33);
  236.         tmpl_set($template, "data/a41", $a41);
  237.         tmpl_set($template, "data/a42", $a42);
  238.         tmpl_set($template, "data/a43", $a43);
  239.         tmpl_set($template, "data/a44", $a41+$a42+$a43);
  240.         tmpl_set($template, "data/a51", round($a51,2));
  241.         tmpl_set($template, "data/a52", round($a52,2));
  242.         tmpl_set($template, "data/a53", round($a53,2));
  243.        
  244.         $rgValues = array();
  245.     if ($a51>0) $rgValues[] = $a51;
  246.     if ($a52>0) $rgValues[] = $a52;
  247.     if ($a53>0) $rgValues[] = $a53;
  248.    
  249.         tmpl_set($template, "data/a54", round((array_sum($rgValues)/count($rgValues)),2));
  250.         tmpl_set($template, "data/a61", $a61);
  251.         tmpl_set($template, "data/a62", $a62);
  252.         tmpl_set($template, "data/a63", $a63);
  253.         tmpl_set($template, "data/a64", $a61+$a62+$a63);
  254.         tmpl_set($template, "data/a71", $a71);
  255.         tmpl_set($template, "data/a72", $a72);
  256.         tmpl_set($template, "data/a73", $a73);
  257.         tmpl_set($template, "data/a74", $a71+$a72+$a73);
  258.         tmpl_set($template, "data/a81", $a81);
  259.         tmpl_set($template, "data/a82", $a82);
  260.         tmpl_set($template, "data/a83", $a83);
  261.         tmpl_set($template, "data/a84", $a81+$a82+$a83);
  262.         tmpl_set($template, "data/a91", $a91);
  263.         tmpl_set($template, "data/a92", $a92);
  264.         tmpl_set($template, "data/a93", $a93);
  265.         tmpl_set($template, "data/a94", $a91+$a92+$a93);
  266.         tmpl_set($template, "data/a101", round($a101,2));
  267.         tmpl_set($template, "data/a102", round($a102,2));
  268.         tmpl_set($template, "data/a103", round($a103,2));
  269.        
  270.  
  271.     $rgValues = array();
  272.     if ($a101>0) $rgValues[] = $a101;
  273.     if ($a102>0) $rgValues[] = $a102;
  274.     if ($a103>0) $rgValues[] = $a103;
  275.  
  276.     tmpl_set($template, "data/a104", round((array_sum($rgValues)/count($rgValues)),2));
  277.         tmpl_set($template, "ratedate1", $ratedate1);
  278.         tmpl_set($template, "ratedate2", $ratedate2);
  279.         tmpl_set($template, "ratedate1c", $ratedate1c);
  280.         tmpl_set($template, "ratedate2c", $ratedate2c);
  281.  
  282.        
  283.         tmpl_set($template, "head/DATE_IN", $ratedate1);
  284.         tmpl_set($template, "head/DATE_OUT", $ratedate2);
  285.  
  286.  
  287.        
  288.        
  289.        
  290.         echo tmpl_parse($template);
  291.        
  292.        
  293.        
  294. ?>
  295.  


report.html
CODE (html):
скопировать код в буфер обмена
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <HTML>
  3. <HEAD>
  4.         <TITLE>Ежедневные отчеты</TITLE>
  5.         <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
  6.        
  7.         <link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection" />
  8.         <link rel="stylesheet" href="css/print.css" type="text/css" media="print" />
  9.  
  10.     <link rel="stylesheet" type="text/css" media="all" href="css/calendar-blue.css" />
  11.         <script type="text/javascript" src="/jscalendar/calendar.js"></script>
  12.         <script type="text/javascript" src="/jscalendar/lang/calendar-ru_win_.js"></script>
  13.         <script type="text/javascript" src="/jscalendar/calendar-setup.js"></script>
  14.  
  15.         <script type="text/javascript" src="js/main.js"></script>
  16.  
  17.         <script language="JavaScript" type="text/javascript">
  18.  
  19.                 function dateChanged1(calendar)
  20.                 {
  21.                         var y = calendar.date.getFullYear();
  22.                         var m = calendar.date.getMonth()+1;
  23.                         var d = calendar.date.getDate();
  24.                         document.getElementById('ratedate1').value = d + "." + m + "." + y;
  25.                         document.getElementById('ratedate1c').value = y + "/" + m + "/" + d;
  26.                 };
  27.  
  28.                 function dateChanged2(calendar)
  29.                 {
  30.                         var y = calendar.date.getFullYear();
  31.                         var m = calendar.date.getMonth()+1;
  32.                         var d = calendar.date.getDate();
  33.                         document.getElementById('ratedate2').value = d + "." + m + "." + y;
  34.                         document.getElementById('ratedate2c').value = y + "/" + m + "/" + d;
  35.                 };
  36.  
  37.                
  38.         </script>
  39.  
  40.  
  41. </HEAD>
  42. <BODY>
  43.         <div class="left_s noprint">
  44.         <br/>
  45.  
  46.                 <div class="in_l" id="calendar1" ></div>
  47.                 <div class="in_c" id="calendar2" ></div>
  48.                 <div class="in_r" >
  49.                         <form name="postform" id="postform" method="get" action="report.php">
  50.                                 <input type="hidden" name="ratedate1" id="ratedate1" style="visibility: hidden" value="{ratedate1}" />
  51.                                 <input type="hidden" name="ratedate2" id="ratedate2" style="visibility: hidden" value="{ratedate2}" />
  52.                                 <input type="hidden" name="ratedate1c" id="ratedate1c" style="visibility: hidden" value="{ratedate1c}" />
  53.                                 <input type="hidden" name="ratedate2c" id="ratedate2c" style="visibility: hidden" value="{ratedate2c}" />
  54.                                 <input type="submit" class="myButton" value="Получить данные" />
  55.                         </form>
  56.                 </div> 
  57.         <script type="text/javascript">
  58.                 Calendar.setup(
  59.                         {
  60.                                 flat           : "calendar1",
  61.                                 flatCallback   : dateChanged1,
  62.                                 ifFormat       : "%d.%m.%Y",
  63.                                 daFormat       : "%d.%m.%Y",
  64.                                 date           : "{ratedate1c}",
  65.                                 step           : 1,
  66.                                 showsTime      : false,
  67.                                 showOthers     : true
  68.                         }
  69.                 );
  70.         </script>
  71.         <script type="text/javascript">
  72.                 Calendar.setup(
  73.                         {
  74.                                 flat           : "calendar2",
  75.                                 flatCallback   : dateChanged2,
  76.                                 ifFormat       : "%d.%m.%Y",
  77.                                 daFormat       : "%d.%m.%Y",
  78.                                 date           : "{ratedate2c}",
  79.                                 step           : 1,
  80.                                 showsTime      : false,
  81.                                 showOthers     : true
  82.                         }
  83.                 );
  84.         </script>
  85. </div>
  86.  
  87. <div class="report">
  88.         <table>
  89.                 <tmpl:head>
  90.                         <tr>
  91.                         <th class="pol2 tbl_head fname vertical" rowspan="3">Наименование РУП-облэнерго:</th>
  92.                         <th class="pol2 tbl_head fname vertical" rowspan="3">Мощность элетроустановок объекта, кВА:</th>
  93.                         <th class="tbl_head fname" colspan="5">Выдача ТУ</th>
  94.                         <th class="tbl_head fname" colspan="5">Осуществление административной процедуры по подключению</th>
  95.                         </tr>
  96.                         <tr>
  97.                                 <th class="tbl_head fname" colspan="2">за очетную неделю с {DATE_IN} по {DATE_OUT}</th>
  98.                                 <th class="tbl_head fname" colspan="2">за отчетный период нарастающим итогом (с 01.06.2012 по {DATE_OUT})</th>
  99.                                 <th class="tbl_head fname vertical" rowspan="2">средний срок выдачи ТУ за отчетный период нарастающим итогом с ( 01.06.2012 ), кол. дней</th>
  100.                                 <th class="tbl_head fname" colspan="2">за очетную неделю с {DATE_IN} по {DATE_OUT}</th>
  101.                                 <th class="tbl_head fname" colspan="2">за отчетный период нарастающим итогом (с 01.06.2012 по {DATE_OUT})</th>
  102.                                 <th class="pol2 tbl_head fname vertical" rowspan="2">средний срок осуществления административной процедуры за отчетный период нарастающим итогом с ( 01.06.2012 ), кол. дней</th>
  103.                         </tr>
  104.                         <tr>
  105.                                 <th class="tbl_head fname vertical">зарегестрировано заявлений, шт</th>
  106.                                 <th class="tbl_head fname vertical">выдано ТУ, шт</th>
  107.                                 <th class="tbl_head fname vertical">зарегестрировано заявлений, шт</th>
  108.                                 <th class="tbl_head fname vertical">выдано ТУ, шт</th>
  109.                                 <th class="tbl_head fname vertical">зарегестрировано заявлений, шт</th>
  110.                                 <th class="tbl_head fname vertical">выдано ТУ, шт</th>
  111.                                 <th class="tbl_head fname vertical">зарегестрировано заявлений, шт</th>
  112.                                 <th class="tbl_head fname vertical">выдано ТУ, шт</th>
  113.                         </tr>
  114.                 </tmpl:head>   
  115.                 <tmpl:data>
  116.                         <tr>
  117.                                 <th class="tbl_head fname" rowspan="4">РУП Брестэнерго</th>
  118.                                 <td>до 140</td>
  119.                                 <td>{a11}</td>
  120.                                 <td>{a21}</td>
  121.                                 <td>{a31}</td>
  122.                                 <td>{a41}</td>
  123.                                 <td>{a51}</td>
  124.                                 <td>{a61}</td>
  125.                                 <td>{a71}</td>
  126.                                 <td>{a81}</td>
  127.                                 <td>{a91}</td>
  128.                                 <td>{a101}</td>
  129.                         </tr>  
  130.                         <tr>
  131.                                 <td>140-200</td>
  132.                                 <td>{a12}</td>
  133.                                 <td>{a22}</td>
  134.                                 <td>{a32}</td>
  135.                                 <td>{a42}</td>
  136.                                 <td>{a52}</td>
  137.                                 <td>{a62}</td>
  138.                                 <td>{a72}</td>
  139.                                 <td>{a82}</td>
  140.                                 <td>{a92}</td>
  141.                                 <td>{a102}</td>
  142.                         </tr>  
  143.                         <tr>
  144.                                 <td>более 200</td>
  145.                                 <td>{a13}</td>
  146.                                 <td>{a23}</td>
  147.                                 <td>{a33}</td>
  148.                                 <td>{a43}</td>
  149.                                 <td>{a53}</td>
  150.                                 <td>{a63}</td>
  151.                                 <td>{a73}</td>
  152.                                 <td>{a83}</td>
  153.                                 <td>{a93}</td>
  154.                                 <td>{a103}</td>
  155.                         </tr>  
  156.                         <tr>
  157.                                 <td>итого:</td>
  158.                                 <td>{a14}</td>
  159.                                 <td>{a24}</td>
  160.                                 <td>{a34}</td>
  161.                                 <td>{a44}</td>
  162.                                 <td>{a54}</td>
  163.                                 <td>{a64}</td>
  164.                                 <td>{a74}</td>
  165.                                 <td>{a84}</td>
  166.                                 <td>{a94}</td>
  167.                                 <td>{a104}</td>
  168.                         </tr>  
  169.                 </tmpl:data>
  170.                
  171.         </table>
  172.         <a href="index.php" class="myButton" >Выход</a>
  173.         <a href="demo.php" class="myButton" >На печать</a>
  174.        
  175.  
  176.  
  177. </BODY>
  178.  
  179. </HTML>
 
 Top
Страниц (1): [1]
Сейчас эту тему просматривают: 0 (гостей: 0, зарегистрированных: 0)
« XML и его обработка »


Все гости форума могут просматривать этот раздел.
Только зарегистрированные пользователи могут создавать новые темы в этом разделе.
Только зарегистрированные пользователи могут отвечать на сообщения в этом разделе.
 



Powered by PHP  Powered By MySQL  Powered by Nginx  Valid CSS  RSS

 
Powered by ExBB FM 1.0 RC1. InvisionExBB