| 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/meteoca/ |
Upload File : |
<!DOCTYPE html>
<!--
******************************
Project: MeteoCA, 2017-2020
Version: PHP-7
Author : M. Kukic
Note :
******************************
-->
<html>
<style>
table, th, td {
border: 1px solid black;
}
th, td {
padding: 5px;
text-align: center;
}
</style>
<head>
<link rel='shortcut icon' type='image/png' href='favicon.png'/>
<title>AMS METEOCA</title>
<script>var dan = new Date();
document.write('CET '+dan.getDate()+'.'+(dan.getMonth()+1)+'.'+dan.getFullYear()+'. - '+dan.getHours()+':'+dan.getMinutes()+':'+dan.getSeconds());
</script>
</head>
<body>
<div style="width:740px; word-wrap:break-word;">
<?php
include "config.php";
echo "
<hr>
<fieldset>
<legend><h3>Mreza AMS - Čačak</h3></legend>
<table border=\"0\"></fieldset>";
echo "<b>AMS - Info</b><br><br>";
echo "<table border='1'>";
echo "<tr>";
echo "<th>Id</th>";
echo "<th>Code</th>";
echo "<th>Name</th>";
echo "<th>N</th>";
echo "<th>E</th>";
echo "<th>MSL[m] </th>";
echo "<th>Pn [mb] </th>";
echo "</tr>";
//$sql = "SELECT * FROM ams";
//$result = mysqli_query($dbh, $sql) or die(mysqli_error());
for ($i = 0; $i<$nams; $i++)
{
$sql = "SELECT * FROM ams WHERE amsid='".$ams[$i]."'";
$result = mysqli_query($dbh, $sql) or die(mysqli_error());
$row = mysqli_fetch_array($result);
echo "<tr>";
echo "<td>".$row['id']."</td>";
echo "<td>".$row['amsid']."</td>";
echo "<td>".$row['name']."</td>";
echo "<td>".$row['gsirina']."</td>";
echo "<td>".$row['gduzina']."</td>";
echo "<td>".$row['msl']."</td>";
echo "<td>".$row['pn']."</td>";
echo "</tr>";
}
echo "</table>";
//echo "<br>";
?>
<hr>
<a href="javascript:history.go(-1)"><img src="img/back.png"></a><a href='ams.php'><img src='img/hom.png'><a href="wemos-d1.htm"><img src="img/info.png"></a>
</div>
</body>
</html>