Initial commit
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
<?php session_start();
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<title>Historia agregatów</title>
|
||||
|
||||
<!-- Bootstrap -->
|
||||
<link href="bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h1><?php echo $_SESSION['site401ahis_devName']; ?> - historia pomiarów [<?php echo $_SESSION['site401ahis_from']; ?> - <?php echo $_SESSION['site401ahis_to']; ?>]</h1>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<br/>
|
||||
<div class="pull-right"><button type="button" class="btn btn-default" onclick="window.print();">Drukuj</button></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Lp.</th>
|
||||
<th>Data</th>
|
||||
<th>H<sub>ST</sub> [m]</th>
|
||||
<th>H<sub>D</sub> [m]</th>
|
||||
<th>Q [m<sup>3</sup>/min] </th>
|
||||
<th>p<sub>1</sub> [m]</th>
|
||||
<th>p<sub>2</sub> [m]</th>
|
||||
<th>I [A]</th>
|
||||
<th>U [V]</th>
|
||||
<th>P<sub>e</sub> [kW]</th>
|
||||
<th>cos(φ)</th>
|
||||
<th>Czas pracy [h]</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<?php
|
||||
for($i=0;$i<count($_SESSION['site401ahis_array']);$i++)
|
||||
{
|
||||
echo"
|
||||
<tr>
|
||||
<td>".($i+1).".</td>
|
||||
<td>".$_SESSION['site401ahis_array'][$i]['his_date']."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_hst'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_hd'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_q'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_p1'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_p2'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_I'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_U'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_PE'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_cos'])."</td>
|
||||
<td>".str_replace('.',',',$_SESSION['site401ahis_array'][$i]['his_work_time'])."</td>
|
||||
</tr>
|
||||
";
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user