| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/timoe/ |
Upload File : |
<!DOCTYPE html>
<!--
******************************
Project: IS VetroIng, 2023.
Version: 23-04-08
Author : TIM/M.Kukic
Note :
******************************
-->
<html>
<head>
<style>
table, th, td {
border: 1px solid gray;
border-collapse: collapse;
}
th, td {
padding: 4px;
text-align: center;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='shortcut icon' type='image/png' href='favicon.png'/>
<meta http-equiv="refresh" content="20">
<title>VetroIng</title>
</head>
<body>
<div style="width:720px; word-wrap:break-word;">
<?php
//
include "config.php";
include "hed.php";
$loc = $_GET["loc"];
$loc = 0;
//echo $vtg[$loc];
//
$sql = "SELECT * FROM engvtg WHERE vtgid='".$vtg[$loc]."' ORDER BY dattim DESC LIMIT 1024";
if ($vap==5) {
$result = mysql_query($sql, $dbh) or die (mysql_error($dbh));
$nuz = mysql_num_rows($result);
}else{
$result = mysqli_query($dbh, $sql) or die(mysqli_error($dbh));
$nuz = mysqli_num_rows($result);
}
echo "VTG: <b>".$vtg[$loc]." - ".$vtgnam[$loc]."</b> / Uzoraka ".$nuz;
echo "<br>";
echo "<table style='background-color:#F0F8FF; width:720px; margin:0 auto;'>";
echo "<tr>";
echo "<th>Br.</th>";
echo "<th>Vreme</th>";
echo "<th>Gen</th>";
echo "<th>ACV</th>";
echo "<th>DCV</th>";
echo "<th>DCA</th>";
echo "<th>GTemp</th>";
echo "</tr>";
for ($i = 1; $i<($nuz+1); $i++) {
if ($vap==5) {
$row = mysql_fetch_array($result);
}else{
$row = mysqli_fetch_array($result);
}
//
echo "<tr>";
echo "<td>".$i."</td>";
$dt=$row['dattim'];
$go=substr($dt,0,4);
$me=substr($dt,5,2);
$da=substr($dt,8,2);
$vr=substr($dt,11,5);
echo "<td>".$da."/".$me."/".$go." - ".$vr."</td>";
echo "<td>".$row['gen']."</td>";
echo "<td>".$row['acv']."</td>";
echo "<td>".$row['dcv']."</td>";
echo "<td>".$row['dca']."</td>";
echo "<td>".$row['gtmp']."</td>";
echo "</tr>";
}
echo "</table>";
echo "<br>";
//
if ($vap==5) {
mysql_close($dbh);
}else{
mysqli_close($dbh);
}
?>
<hr>
<img src="img/b_white-2.png">
<a href="javascript:history.go(-1)"><img src="img/r_ret.png" width="" height="48"></a>
</div>
<?php include "fut.php";?>
</body>
</html>