You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

43 lines
1.4 KiB

  1. <div style="overflow-x:auto;">
  2. <table id="passes" class="img-grid">
  3. <?php
  4. if ($page > 1) {
  5. echo "<tr><th><a href=\"?page=" . ($page-1) . "\">" . $lang['prev'] . "</a></th>";
  6. } else {
  7. echo "<tr><th></th>";
  8. }
  9. echo "<th>" . $lang['page'] . " $page " . $lang['of'] . " $page_count</th>";
  10. if ($page < $page_count) {
  11. echo "<th><a href=\"?page=" . ($page+1) . "\">" . $lang['next'] . "</a></th></tr>";
  12. } else {
  13. echo "<th></th></tr>";
  14. }
  15. $row_count=0;
  16. $col_count=0;
  17. $baseurl = $configs->base_url;
  18. foreach ($images as $image) {
  19. if($row_count%3==0) {
  20. echo "<tr>";
  21. $col_count=1;
  22. }
  23. if ($image['is_noaa'] == true) {
  24. $ending = "-MCIR.jpg";
  25. } else {
  26. $ending = "-122-rectified.jpg";
  27. }
  28. echo "<td><div id =\"satimgdiv\"><a href=". "detail.php?id=" . $image['id'] ."><img id=\"satimg\" src=". $baseurl . "thumb/" . $image['file_path'] . $ending ."></img></a></div>";
  29. echo "<ul><li>". $image['sat_name'] ."</li>";
  30. echo "<li> " . $lang['elev'] . ": ". $image['max_elev'] ."°</li>";
  31. echo "<li>". date('d/m/Y H:i:s', $image['pass_start']) ."</li></ul></td>";
  32. if($col_count==3) {
  33. echo "</tr>";
  34. }
  35. $row_count++;
  36. $col_count++;
  37. }
  38. ?>
  39. </table>
  40. </div>
  41. </body>
  42. </html>