| 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/tabledm/ |
Upload File : |
<?php
//ini_set('display_errors', '1');
$str_currentData = "<table border=\"1\" width=\"400\" style=\"border-collapse: collapse;\">";
$str_currentData .= "<tr>";
$str_currentData .= "<th>Sto u basti</th>";
$str_currentData .= "<th>Indikator</th>";
$str_currentData .= "<th>Poziv</th>";
$str_currentData .= "</tr>";
$file = fopen("tables.txt", "r") or exit("Unable to open file!");
$line = fgets($file);
$arrline=explode(";", $line);
for($i=1;$i<count($arrline);$i++){
$str_currentData .= "<tr align=\"center\">";
$str_currentData .= "<td>";
$str_currentData .= $i;
$str_currentData .= "</td>";
$str_currentData .= "<td>";
if($arrline[$i]=="1"){
$str_currentData .= "<img src=\"images/redcircle.png\" width=\"40\"/>";
}else{
$str_currentData .= "<img src=\"images/greencircle.png\" width=\"40\"/>";
}
$str_currentData .= "</td>";
$str_currentData .= "<td>";
$str_currentData .= "<a href=\"receive.php?sdata=".$i.";0\">Poništi</a>";
$str_currentData .= "</td>";
$str_currentData .= "</tr>";
}
$str_currentData .= "</table>";
echo($str_currentData);
?>